[simplify-rtx] Zero-initialise local array in simplify_immed_subreg
[official-gcc.git] / gcc / ChangeLog
blobfe68253b37a92c3b446e8a932668d7fe8cc10fb4
1 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
4         before merging in bytes to pass down to real_from_target.
6 2016-10-07  Richard Biener  <rguenther@suse.de>
8         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9         required hack.
10         (substitute_and_fold_dom_walker::before_dom_children):
11         Substitute and fold before pass specific folding to avoid
12         feeding that with SSA names that will be later released.
13         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
14         introduced by folding and visited by evaluate_stmt called during
15         ccp_fold_stmt.
16         (likely_value): Likewise.
17         (evaluate_stmt): Likewise.
18         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
19         (simplify_div_or_mod_using_ranges): Likewise.
20         (simplify_min_or_max_using_ranges): Likewise.
21         (simplify_abs_using_ranges): Likewise.
22         (simplify_conversion_using_ranges): Likewise.
23         (simplify_float_conversion_using_ranges): Likewise.
24         (simplify_stmt_using_ranges): Likewise.
26 2016-10-07  Marek Polacek  <polacek@redhat.com>
28         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
29         FALLTHROUGH_LABEL_P here...
30         (warn_implicit_fallthrough_r): ...not here.
32 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
34         PR tree-optimization/77880
35         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
36         necessary.
38 2016-10-07  Marek Polacek  <polacek@redhat.com>
40         PR c++/77803
41         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
43 2016-10-07  Richard Biener  <rguenther@suse.de>
45         * bitmap.h: Document constraints on bitmap modification while
46         iterating over it.
48 2016-10-07  Richard Biener  <rguenther@suse.de>
50         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
51         * bitmap.h (bmp_iter_set): When advancing to the next element
52         check that we didn't remove the current one.
53         (bmp_iter_and): Likewise.
54         (bmp_iter_and_compl): Likewise.
55         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
56         we currently iterate on but keep a one-level queue.
57         * sched-deps.c (remove_from_deps): Do not clear current bit
58         but keep a one-level queue.
60 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
62         PR tree-optimization/77664
63         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
64         for the other ranges.
65         (optimize_range_tests_diff): Fix up formatting.
66         (optimize_range_tests_var_bound): New function.
67         (optimize_range_tests): Use it.
69 2016-10-07  Martin Liska  <mliska@suse.cz>
71         * coverage.c (build_gcov_exit_decl): Fix priority what
72         should be really 99.
74 2016-10-07  Richard Biener  <rguenther@suse.de>
76         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
77         vars in gimple_bind_vars but not in BLOCK_VARS.
79 2016-10-07  Richard Biener  <rguenther@suse.de>
81         PR tree-optimization/77879
82         * tree-ssa-structalias.c (handle_const_call): Properly handle
83         NRV return slots.
84         (handle_pure_call): Likewise.
86 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
88         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
89         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
90         possible overflow.
92 2016-10-06  Andrew Pinski  <apinski@cavium.com>
94         * config/aarch64/aarch64-cores.def: Add a comment before each
95         set of cores.
97 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
99         PR tree-optimization/77862
100         * tree-vrp.c (add_equivalence): Use get_value_range so that
101         num_vr_values is checked before accessing vr_values.
103 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
105         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
106           POINTER_TYPE_P.
108 2016-10-05  Jeff Law  <law@redhat.com>
110         PR tree-optimization/71661
111         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
112         removal of a forwarder exposes a new natural loop.
114 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
116         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
117         Introduce ssesuffix variable.
118         (<mask_codefor><code><mode>3<mask_name>): Ditto.
119         (*<code><mode>3): Ditto.
121 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
123         * postreload.c (reload_cse_simplify): Skip also USE when detecting
124         noop move.
126 2016-10-06  Richard Biener  <rguenther@suse.de>
128         PR tree-optimization/77855
129         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
130         instead of removing the current item while iterating over the set
131         which is not safe.
133 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
134             Eric Botcazou  <ebotcazou@adacore.com>
136         PR target/77759
137         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
138         (classify_registers): Don't set it
139         (function_arg_slotno): Don't initialize and test it.  Tidy up.
141 2016-10-06  Richard Biener  <rguenther@suse.de>
143         PR tree-optimization/77839
144         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
145         lattice transition.
147 2016-10-06  Martin Liska  <mliska@suse.cz>
149         * gcc.c: Set -fprofile-update=atomic when profiling is
150         enabled and -pthread is set.  Warn when one combines
151         -pthread and -fprofile-update=single for an app using
152         profiling code.
154 2016-10-06  Martin Liska  <mliska@suse.cz>
156         PR bootstrap/77788
157         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
158         * gimple-ssa-strength-reduction.c (slsr_process_cast):
159         Initialize a pointer to NULL.
160         (slsr_process_copy): Likewise.
161         * input.c (location_get_source_line): Likewise.
162         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
164 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
166         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
167         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
168         (ix86_handle_option): Deleted handle of OPT_mpcommit.
169         * config.gcc: Deleted pcommitintrin.h
170         * config/i386/pcommitintrin.h: Deleted file.
171         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
172         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
173         detection.
174         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
175         __PCOMMIT__.
176         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
177         (PTA_PCOMMIT): Deleted define.
178         (ix86_option_override_internal): Deleted handle of option.
179         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
180         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
181         __builtin_ia32_pcommit): Deleted.
182         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
183         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
184         (pcommit): Deleted instruction.
185         * config/i386/i386.opt: Mention -mpcommit deprecation.
186         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
188 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
190         PR target/77874
191         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
192         Remove wrong assert.
193         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
194         Use <round_constraint> as operand 1 constraint.
196 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
198         PR sanitizer/66343
199         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
200         (ubsan_instrument_float_cast): And not here.
202         PR sanitizer/66343
203         * ubsan.c (ubsan_ids): New GTY(()) array.
204         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
205         instead of static local counters.
207 2016-10-05  Martin Sebor  <msebor@redhat.com>
209         PR bootstrap/77819
210         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
211         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
212         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
213         (default_printf_pointer_format): Define function.
214         * targhooks.c (linux_printf_pointer_format): Define new function.
215         * targhooks.h (linux_printf_pointer_format): Declare.
216         (gnu_libc_printf_pointer_format): Remove declaration.
218 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
220         * fold-const.c (native_encode_real): Fix logic for selecting offset
221         to write to when BYTES_BIG_ENDIAN.
223 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
225         * builtins.c (fold_builtin_strchr): Remove function.
226         (fold_builtin_strrchr): Likewise.
227         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
228         * gimple-fold.c (target_char_cst_p): New function.
229         (gimple_fold_builtin_strchr) Add more foldings.
230         (gimple_fold_builtin): Add index, strrchr, rindex cases.
232 2016-10-05  Richard Biener  <rguenther@suse.de>
234         PR middle-end/77863
235         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
236         capture ids in c-exprs.
238 2016-10-05  Richard Biener  <rguenther@suse.de>
240         PR middle-end/77826
241         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
242         with types_match for GIMPLE code gen to handle type mismatched
243         constants properly.
244         (dt_operand::gen): Adjust.
245         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
246         and constant A.
248 2016-10-05  Richard Biener  <rguenther@suse.de>
250         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
252 2016-10-05  Richard Biener  <rguenther@suse.de>
254         PR middle-end/77842
255         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
257 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
259         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
260         version check to protect only DW_TAG_imported_module generation.
262 2016-10-05  Richard Biener  <rguenther@suse.de>
264         PR middle-end/55152
265         * match.pd (min(a,-a) -> -abs(a)): New pattern.
267 2016-10-04  Ian Lance Taylor  <iant@golang.org>
269         * explow.c (allocate_dynamic_stack_space): Call
270         do_pending_stack_adjust before handling flag_split_stack.
272 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
274         * genattrtab.c (make_internal_attr): Supply dummy column number to
275         file_location ctor.
276         (main): Likewise.
277         * genoutput.c (init_insn_for_nothing): Likewise.
278         * gensupport.c (add_define_attr): Likewise.
279         * read-md.c (message_at_1): Print column number.
280         (fatal_with_file_and_line): Likewise.
281         (rtx_reader::read_char): Track column numbers.
282         (rtx_reader::unread_char): Likewise.
283         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
284         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
285         (rtx_reader::handle_file): Initialize m_read_md_colno.
286         (rtx_reader::get_current_location): Supply column number to
287         file_location ctor.
288         * read-md.h (struct file_location): Add field "colno".
289         (file_location::file_location): Likewise.
290         (rtx_reader::get_colno): New accessor.
291         (rtx_reader::m_read_md_colno): New field.
292         (rtx_reader::m_last_line_colno): New field.
294 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
296         * doc/extend.texi (Java Exceptions): Remove.
297         (java_interface): Remove.
299 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
301         PR tree-optimization/77808
302         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
303         and addr are different before copying points-to information.
305 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
307         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
308         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
309         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
310         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
312 2016-10-04  Richard Biener  <rguenther@suse.de>
314         PR tree-optimization/77399
315         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
316         verify the target can convert.
318 2016-10-04  Richard Biener  <rguenther@suse.de>
320         PR middle-end/77833
321         * explow.c (plus_constant): Verify the mode of the constant
322         pool offset before calling plus_constant.
324 2016-10-04  Richard Biener  <rguenther@suse.de>
326         PR middle-end/77407
327         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
328         type support, mark with :C.
329         (X / -X -> -1): Mark with :C.
331 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
333         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
334         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
335         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
336         * doc/tm.texi: Regenerated.
337         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
338         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
339         * config/darwin.h (JCR_SECTION_NAME): Remove.
340         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
341         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
342         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
343         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
344         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
345         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
347 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
349         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
350         between "because" and "param" in dump message in call to fprintf.
352 2016-10-03  Jeff Law  <law@redhat.com>
354         PR tree-optimization/71550
355         PR tree-optimization/71403
356         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
357         (profitable_jump_thread_path): Also return boolean indicating if
358         the realized path will create an irreducible loop.
359         Remove loop depth tests from 71403.
360         (fsm_find_control_statement_thread_paths): Remove loop depth tests
361         from 71403.  If threading will create an irreducible loop, then
362         throw away loop iteration and related information.
364 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
366         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
367         -Woverloaded-virtual checks for warning options.
368         * configure: Regenerate.
370 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
372         PR preprocessor/77699
373         * input.c (maybe_grow): Don't allocate one byte extra headroom.
374         (get_next_line): Return false on error.
375         (read_next_line): Removed, use get_next_line instead.
376         (read_line_num): Don't copy the line.
377         (location_get_source_line): Don't use static data.
378         (selftest::test_reading_source_line): Add more test cases.
380 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
382         Revert
383         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
385         * ifcvt.c (noce_try_avoid_const_materialization): New function.
386         (noce_process_if_block): Use it.
388 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
390         * doc/invoke.texi: Update -Wint-in-bool-context.
392 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
394         * dwarf2out.c (output_fde, output_call_frame_info,
395         dwarf2out_do_cfi_startproc, set_indirect_string,
396         gen_internal_sym, output_die, output_line_info): Use
397         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
398         ASM_GENERATE_INTERNAL_LABEL output.
400 2016-10-01  Richard Biener  <rguenther@suse.de>
402         PR middle-end/77798
403         * genmatch.c (get_operand_type): Add operand position arg
404         and handle COND_EXPR comparison operand with fixed boolean_type_node.
405         (expr::gen_transform): Adjust.
406         (dt_simplify::gen_1): Likewise.
408 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
410         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
411         comments.  Simplify asserts, remove unnecessary conditions.
412         Formatting fixes.
413         (*<code><mode>3): Likewise.
415 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
417         * doc/invoke.texi (-Wregister): Document.
419 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
421         * configure.ac: Split CHECKING_P into CHECKING_P and
422         ENABLE_EXTRA_CHECKING.
423         * configure: Regenerated.
424         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
425         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
427 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
429         PR other/31566
430         * gcc.c (process_command): For @filename handling, output
431         the correct name if the file does not exist.
433 2016-09-30  Marek Polacek  <polacek@redhat.com>
435         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
436         * config/alpha/predicates.md: Likewise.
438 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
440         * ifcvt.c (noce_try_avoid_const_materialization): New function.
441         (noce_process_if_block): Use it.
443 2016-09-30  Martin Liska  <mliska@suse.cz>
445         * doc/invoke.texi: Document asan-use-after-return that
446         it's disabled by default in runtime.
448 2016-09-30  Richard Biener  <rguenther@suse.de>
450         * tree-vrp.c (intersect_ranges): If we failed to handle
451         the intersection choose a constant singleton range if available.
453 2016-09-30  Richard Biener  <rguenther@suse.de>
455         PR tree-optimization/77399
456         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
457         float <-> int conversions.
459 2016-09-30  Alan Modra  <amodra@gmail.com>
461         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
463 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
465         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
466         ext_level before calling CPUID with 0x80000008.
467         Simplify xgetbv checks.
469 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
471         * Makefile.in (OBJS): Add print-rtl-function.o.
472         * print-rtl-function.c: New file.
473         * print-rtl.h (print_rtx_function): New decl.
475 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
477         PR target/77756
478         * config/i386/cpuid.h (__get_cpuid_count): New.
479         (__get_cpuid): Rename __level to __leaf.
481 2016-09-29  Marek Polacek  <polacek@redhat.com>
483         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
485 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
487         * builtins.c (expand_builtin_memcmp): don't swap args unless
488         result is only being compared with zero.
490 2016-09-29  Marek Polacek  <polacek@redhat.com>
492         * dwarf2out.c (loc_descriptor): Add fall through comment.
493         (add_const_value_attribute): Likewise.
495 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
497         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
498         with "v6t2".  Move "arch" attribute above "pool_range".
499         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
500         with "v6t2".
501         (*thumb2_movhi_vfp): Likewise.
502         (*arm_movhi_fp16): Likewise.
503         (*thumb2_movhi_fp16): Likewise.
504         (*arm_movsi_vfp): Remove "arch" attribute.
505         (*thumb2_movsi_vfp): Likewise.
507 2016-09-29  Martin Liska  <mliska@suse.cz>
509         * doc/extend.texi: Remove limitation of Objective C for
510         __attribute__((constructor)) and __attribute__((destructor)).
512 2016-09-29  Richard Biener  <rguenther@suse.de>
514         PR tree-optimization/77768
515         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
516         Handle stores to readonly memory when removing redundant stores.
518 2016-09-29  Richard Biener  <rguenther@suse.de>
520         PR middle-end/77407
521         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
522         X / -X -> -1 simplifications.
524 2016-09-29  Richard Biener  <rguenther@suse.de>
526         PR middle-end/55152
527         * match.pd: Add max(a,-a) -> abs(a) pattern.
528         * tree-ssa-phiopt.c (minmax_replacement): Disable for
529         HONOR_SIGNED_ZEROS types.
531 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
533         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
534         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
536 2016-09-29  Richard Biener  <rguenther@suse.de>
538         * tree-vrp.c (set_defs_to_varying): New helper avoiding
539         writing to vr_const_varying.
540         (vrp_initialize): Call it.
541         (vrp_visit_stmt): Likewise.
542         (evrp_dom_walker::before_dom_children): Likewise.
544 2016-09-29  Richard Biener  <rguenther@suse.de>
546         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
547         constructors with vector elements.
549 2016-09-29  Richard Biener  <rguenther@suse.de>
551         PR tree-optimization/77768
552         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
553         with stores to a place we know has a constant value.
555 2016-09-29  Alan Modra  <amodra@gmail.com>
557         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
558         * doc/invoke.texi: Document it.
559         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
560         (rs6000_passes_float): Comment.
561         (rs6000_passes_long_double): New static var.
562         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
563         (init_cumulative_args): Set up to emit fp .gnu_attribute for
564         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
565         to include fp values returned in vectors.
566         Set rs6000_passes_long_double.
567         (rs6000_function_arg_advance_1): Likewise for function args.
568         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
569         and SPE.  Emit long double tag value too.
570         (rs6000_opt_vars): Add gnu-attr.
571         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
572         * configure: Regenerate.
573         * config.in: Regenerate.
575 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
577         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
578         of 0 < x.
579         (format_floating, format_string, format_directive,
580         get_destination_size, pass_sprintf_length::handle_gimple_call):
581         Likewise.
583 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
585         * gimple-ssa-sprintf.c: Fix comment formatting.
586         (format_integer): Use is_gimple_assign.
587         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
588         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
589         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
590         (pass_sprintf_length::execute): Use is_gimple_call.
592 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
594         * gimple-fold.c (gimple_fold_builtin): After failing to fold
595         strchr, also try the generic folding.
597 2016-09-28  Martin Sebor  <msebor@redhat.com>
599         PR c/77762
600         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
601         Fix typos.
603 2016-09-28  Martin Sebor  <msebor@redhat.com>
605         PR middle-end/77683
606         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
607         length modifier is not expected.
608         (format_floating): Ignore l length modifier and fail gracefuly
609         when it isn't one of the other expected ones.
611 2016-09-28  Martin Sebor  <msebor@redhat.com>
613         PR bootstrap/77753
614         * varasm.c (assemble_addr_to_section): Increase local buffer size.
616 2016-09-27  Richard Biener  <rguenther@suse.de>
618         * dwarf2out.c (cu_die_list): New global.
619         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
620         main_comp_unit_die to cu_die_list if we created it.
621         Move break_out_includes ...
622         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
623         the cu_die_list.
625 2016-09-28  Richard Biener  <rguenther@suse.de>
627         * dwarf2out.c (struct die_struct): Add removed flag.
628         (lookup_type_die): If the DIE is marked as removed, clear
629         TYPE_SYMTAB_DIE and return NULL.
630         (lookup_decl_die): If the DIE is marked as removed, remove it
631         from the hash and return NULL.
632         (mark_removed): New helper.
633         (prune_unused_types_prune): Call it for removed DIEs.
634         (gen_subprogram_die): Move the premark_used_types call to after
635         DIEs for the functions scopes are generated.
636         (process_scope_var): Do not re-create pruned types or type decls.
637         Make sure to also re-parent type decls.
638         (dwarf2out_finish): Move unused type pruning and debug_types
639         handling ...
640         (dwarf2out_early_finish): ... here.
642 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
644         * config/arc/arc-c.c: New file.
645         * config/arc/arc-c.def: Likewise.
646         * config/arc/t-arc: Likewise.
647         * config.gcc: Include arc-c.o as c and cpp object.
648         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
649         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
650         arc_cpu_cpp_builtins.
652 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
654         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
655         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
657 2016-09-28  Nathan Sidwell  <nathan@acm.org>
659         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
660         printing.
662 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
664         PR tree-optimization/61056
665         * gimple-fold.c (gimple_fold_builtin_strchr):
666         New function to optimize strchr (s, 0) to strlen.
667         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
669 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
671         PR tree-optimization/77724
672         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
673         Add tree_fits_shwi_p check.
675 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
677         * auto-inc-dec.c (try_merge): Remove break after return.
678         * cselib.c (autoinc_split): Likewise.
679         * explow.c (promote_mode): Likewise.
680         * fixed-value.c (fixed_arithmetic): Likewise.
681         * hsa.c (hsa_internal_fn::get_arity): Likewise.
682         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
683         * trans-mem.c (get_attrs_for): Likewise.
684         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
685         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
686         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
687         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
688         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
689         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
690         * config/cris/cris.c (cris_op_str): Likewise.
691         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
692         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
694 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
696         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
697         IFN_GOACC_REDUCTION_CODES): New.
698         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
699         ifn_goacc_reduction_kind): Use them.
700         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
701         of internal functions, when applicable.
703 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
705         * config/mips/constraints.md (d): Fix documentation.
706         * doc/md.texi (Machine Constraints): Update accordingly.
708 2016-09-27  Richard Biener  <rguenther@suse.de>
710         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
711         cur_line_info_table initialization ...
712         (dwarf2out_assembly_start): ... here.
714 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
716         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
717         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
718         (*thumb2_movhi_vfp): Likewise.
719         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
720         template.  Expand predicable attribute to mark VMOV.F16 as not
721         predicable.  Add "arch" attribute.
722         (*thumb2_movhi_fp16): Likewise.
723         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
724         (*thumb2_movsi_vfp): Add "arch" attribute.
726 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
728         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
729         VAR_DECL string.
731 2016-09-27  Marek Polacek  <polacek@redhat.com>
733         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
734         comment.
736         * config/c6x/c6x.h: Adjust fall through comment.
737         * config/sh/sh.c (final_prescan_insn): Likewise.
738         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
739         (visium_expand_fp_cstore): Likewise.
741 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
743         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
744         expected by -Wimplicit-fallthrough.
745         (thumb1_size_rtx_costs): Likewise.
746         (thumb2_reorg): Likewise.
747         (tls_mentioned_p): Add "Fall through" comment.
748         (thumb2_reorg): Likewise.
749         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
750         comment form expected by -Wimplicit-fallthrough.
752 2016-09-27  Martin Liska  <mliska@suse.cz>
754         PR gcov-profile/46266
755         * input.h (RESERVED_LOCATION_P): New macro.
756         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
757         instread of comparison with UNKNOWN_LOCATION.
759 2016-09-27  Richard Biener  <rguenther@suse.de>
761         PR tree-optimization/77745
762         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
763         When removing redundant stores make sure to check compatibility
764         of the TBAA state for downstream accesses.
765         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
766         value-numbering virtual operands for store matches.
768 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
770         PR target/51244
771         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
772         movrt patterns.  Match them before anything else in the SET case.
774 2016-09-27  Martin Liska  <mliska@suse.cz>
776         PR gcov-profile/7970
777         PR gcov-profile/16855
778         PR gcov-profile/44779
779         * coverage.c (build_gcov_exit_decl): New function.
780         (coverage_obj_init): Call the function and generate __gcov_exit
781         destructor.
782         * doc/gcov.texi: Document when __gcov_exit function is called.
784 2016-09-27  Marek Polacek  <polacek@redhat.com>
786         PR bootstrap/77751
787         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
788         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
789         -Wno-error instead of -Wno-implicit-fallthrough.
791 2016-09-27  Martin Liska  <mliska@suse.cz>
793         PR bootstrap/77749
794         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
796 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
798         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
799         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
800         comments.  Remove break after return.
801         (ix86_fp_compare_code_to_integer, has_dispatch,
802         ix86_simd_clone_usable): Remove break after return.
804 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
806         PR rlt-optimization/77714
807         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
808         REG_EQUAL note.
810 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
812         PR ipa/77677
813         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
814         extract_range_from_unary_expr to convert value_range.
815         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
816         (extract_range_from_unary_expr): This.
817         * tree-vrp.h (extract_range_from_unary_expr): Declare.
819 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
821         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
823 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
825         * config/i386/i386.c (ix86_print_operand)
826         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
827         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
828         (epilogue_renumber): Likewise.
830 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
832         PR middle-end/77719
833         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
834         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
836 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
838         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
839         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
840         is_mm_seq_cst, is_mm_sync): Move to ...
841         * memmodel.h: This.  New file.
842         * builtins.c: Include memmodel.h.
843         * optabs.c: Likewise.
844         * tsan.c: Likewise.
845         * config/aarch64/aarch64.c: Likewise.
846         * config/alpha/alpha.c: Likewise.
847         * config/arm/arm.c: Likewise.
848         * config/i386/i386.c: Likewise.
849         * config/ia64/ia64.c: Likewise.
850         * config/mips/mips.c: Likewise.
851         * config/rs6000/rs6000.c: Likewise.
852         * config/sparc/sparc.c: Likewise.
853         * genconditions.c: Include memmodel.h in generated file.
854         * genemit.c: Likewise.
855         * genoutput.c: Likewise.
856         * genpeep.c: Likewise.
857         * genpreds.c: Likewise.
858         * genrecog.c: Likewise.
860 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
862         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
863         "c" instead when parsing characters.  Move operand parsing into...
864         (read_rtx_operand): ...this new function, renaming "i" to "idx",
865         and tightening the scope of various locals.
867 2016-09-26  Liu Hao  <lh_mouse@126.com>
869         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
871 2016-09-26  Marek Polacek  <polacek@redhat.com>
873         * system.h: Use __has_attribute to check whether the fallthrough
874         attribute is supported.
876 2016-09-26  Marek Polacek  <polacek@redhat.com>
878         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
879         gimple_call_internal_p.
880         * ipa-split.c (find_return_bb): Likewise.
881         (execute_split_functions): Likewise.
882         * omp-low.c (dump_oacc_loop_part): Likewise.
883         (oacc_loop_xform_head_tail): Likewise.
884         * predict.c (predict_loops): Likewise.
885         * sanopt.c (pass_sanopt::execute): Likewise.
886         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
887         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
888         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
889         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
890         (expand_ifn_va_arg): Likewise.
891         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
892         (optimize_mask_stores): Likewise.
893         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
894         (vect_transform_stmt): Likewise.
895         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
896         * tsan.c (instrument_memory_accesses): Likewise.
898 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
899             Alexander Monakov  <amonakov@ispras.ru>
901         * regrename.c (rename_chains): Check
902         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
903         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
904         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
906 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
908         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
909         (s390_sched_score): Likewise.
911 2016-09-26  Martin Liska  <mliska@suse.cz>
913         * doc/gcov.texi: Update program output of gcov tool.
915 2016-09-26  Martin Liska  <mliska@suse.cz>
917         PR gcov-profile/23332
918         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
919         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
920         * value-prof.c (dump_histogram_value): Do not handle
921         HIST_TYPE_CONST_DELTA.
922         (stream_in_histogram_value): Likewise.
923         (gimple_find_values_to_profile): Likewise.
924         * value-prof.h (enum hist_type): Likewise.
926 2016-09-26  Martin Liska  <mliska@suse.cz>
928         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
929         from default sanitize recover values.
930         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
931         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
932         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
933         consistent.
934         * opts.c (finish_options): Do a generic loop over options
935         that can be recovered.
936         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
937         SANITIZE_RETURN.
938         (common_handle_option): Likewise.
939         * opts.h: Declare can_recover to sanitizer_opts_s.
941 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
943         * target.def(elf_flags_numeric): Change documentation to present tense.
944         * doc/tm.texi: Regenerate.
946 2016-09-26  Marek Polacek  <polacek@redhat.com>
948         PR c/7652
949         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
950         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
951         -Wno-switch-fallthrough.
952         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
953         (expand_builtin): Likewise.
954         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
955         * convert.c (convert_to_real_1): Likewise.
956         (convert_to_integer_1): Likewise.
957         * final.c (output_alternate_entry_point): Likewise.
958         * genattrtab.c (make_canonical): Likewise.
959         (write_test_expr): Likewise.
960         * genpreds.c (validate_exp): Likewise.
961         * gimple-ssa-strength-reduction.c
962         (find_candidates_dom_walker::before_dom_children): Likewise.
963         * godump.c (go_format_type): Likewise.
964         * reload1.c (elimination_effects): Likewise.
965         * resource.c (mark_referenced_resources): Likewise.
966         (mark_set_resources): Likewise.
967         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
968         * varasm.c (output_addressed_constants): Likewise.
970 2016-09-26  Marek Polacek  <polacek@redhat.com>
972         PR c/7652
973         * common.opt (Wimplicit-fallthrough): New option.
974         * doc/extend.texi: Document statement attributes and the fallthrough
975         attribute.
976         * doc/invoke.texi: Document -Wimplicit-fallthrough.
977         * gimple.h (gimple_call_internal_p): New function.
978         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
979         (struct label_entry): New struct.
980         (find_label_entry): New function.
981         (case_label_p): New function.
982         (collect_fallthrough_labels): New function.
983         (last_stmt_in_scope): New function.
984         (should_warn_for_implicit_fallthrough): New function.
985         (warn_implicit_fallthrough_r): New function.
986         (maybe_warn_implicit_fallthrough): New function.
987         (expand_FALLTHROUGH_r): New function.
988         (expand_FALLTHROUGH): New function.
989         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
990         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
991         (gimplify_label_expr): New function.
992         (gimplify_case_label_expr): Set location.
993         (gimplify_expr): Call gimplify_label_expr.
994         * internal-fn.c (expand_FALLTHROUGH): New function.
995         * internal-fn.def (FALLTHROUGH): New internal function.
996         * langhooks.c (lang_GNU_OBJC): New function.
997         * langhooks.h (lang_GNU_OBJC): Declare.
998         * system.h (gcc_fallthrough): Define.
999         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1000         * tree.h (FALLTHROUGH_LABEL_P): Define.
1002 2016-09-26  Richard Biener  <rguenther@suse.de>
1004         * dwarf2out.c (stripattributes): Remove unused function.
1005         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1006         Push dwarf_split_debug_info handling into init_sections_and_labels.
1007         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1008         (DEBUG_MACRO_SECTION_FLAGS): Remove.
1009         (debug_macinfo_section_name): New global.
1010         (output_macinfo): Use debug_macinfo_section_name.
1011         (init_sections_and_labels): Split out section and label generation
1012         from dwarf2out_init.  Set debug_macinfo_section_name.
1013         (dwarf2out_init): Move text section label generation and emission
1014         to ...
1015         (dwarf2out_assembly_start): ... here.
1016         (dwarf2out_finish): Call init_sections_and_labels before DWARF
1017         output starts.
1019 2016-09-26  Richard Biener  <rguenther@suse.de>
1021         PR debug/77692
1022         * cgraphunit.c (analyze_functions): Before early removing
1023         global vars calls the late_global_decl debug handler mark
1024         the variable as readonly.
1026 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1028         PR target/51244
1029         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1030         (sh_rtx_costs): Handle SET of movt and movrt patterns.
1031         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1032         declare new overloads.
1033         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1034         operand.
1036 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1038         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1039         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1041 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1043         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1044         * configure: Regenerate.
1046 2016-09-24  Marek Polacek  <polacek@redhat.com>
1048         PR c/77490
1049         * doc/invoke.texi: Document -Wbool-operation.
1051 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1053         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1054         * config/rs6000/rs6000.c (expand_block_compare): New function used by
1055         cmpmemsi pattern to do builtin expansion of memcmp ().
1056         (compute_current_alignment): Add helper function for
1057         expand_block_compare used to compute alignment as the compare proceeds.
1058         (select_block_compare_mode): Used by expand_block_compare to select
1059         the mode used for reading the next chunk of bytes in the compare.
1060         (do_load_for_compare): Used by expand_block_compare to emit the load
1061         insns for the compare.
1062         (rs6000_emit_dot_insn): Moved this function to avoid a forward
1063         reference from expand_block_compare ().
1064         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1065         prototype for this function.
1066         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1067         target option for controlling how much code inline expansion of
1068         memcmp() will be allowed to generate.
1070 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1072         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1073         hook_bool_mode_false, hook_bool_mode_true,
1074         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1075         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1076         hook_bool_const_rtx_insn_const_rtx_insn_true,
1077         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1078         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1079         hook_bool_const_tree_hwi_hwi_const_tree_false,
1080         hook_bool_const_tree_hwi_hwi_const_tree_true,
1081         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1082         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1083         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1084         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
1085         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
1086         hook_bool_const_tree_true, hook_bool_tree_tree_false,
1087         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
1088         hook_bool_rtx_insn_true, hook_bool_rtx_false,
1089         hook_bool_uintp_uintp_false,
1090         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
1091         hook_rtx_tree_int_null, hook_uint_mode_0,
1092         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
1093         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
1094         hook_constcharptr_const_rtx_insn_null,
1095         hook_constcharptr_const_tree_const_tree_null,
1096         hook_constcharptr_int_const_tree_null,
1097         hook_constcharptr_int_const_tree_const_tree_null,
1098         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
1099         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
1100         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
1102         * vec.h (vNULL): Extend comment to say = vNULL initialization
1103         isn't needed for static vars.
1105         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
1106         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
1107         = vNULL initialization of file scope vec.
1108         * passes.c (pass_tab, enabled_pass_uid_range_tab,
1109         disabled_pass_uid_range_tab): Likewise.
1110         * haifa-sched.c (sched_luids, h_i_d): Likewise.
1111         * tree-chkp-opt.c (check_infos): Likewise.
1112         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
1114         * vec.h (vnull::operator vec): Add constexpr keyword for
1115         C++11 and later.
1117 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
1119         PR tree-optimization/77654
1120         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
1121         to duplicate_ssa_name_ptr_info.
1123 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
1125         PR preprocessor/77672
1126         * input.c (selftest::test_lexer_string_locations_simple): Update
1127         test to expect location information of the terminator character
1128         at the location of the final closing quote.
1129         (selftest::test_lexer_string_locations_hex): Likewise.
1130         (selftest::test_lexer_string_locations_oct): Likewise.
1131         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
1132         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
1133         (selftest::test_lexer_string_locations_ucn4): Likewise.
1134         (selftest::test_lexer_string_locations_ucn8): Likewise.
1135         (selftest::test_lexer_string_locations_u8): Likewise.
1136         (selftest::test_lexer_string_locations_utf8_source): Likewise.
1137         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
1138         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
1139         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
1140         (selftest::test_lexer_string_locations_macro): Likewise.
1141         (selftest::test_lexer_string_locations_long_line): Likewise.
1143 2016-09-23  Richard Biener  <rguenther@suse.de>
1145         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
1146         virtual definition to virtual use if the call devirtualizes
1147         to a const or pure function.
1148         (visit_use): Also visit calls we can devirtualize to a
1149         const or pure function.
1151 2016-09-23  Richard Biener  <rguenther@suse.de>
1153         PR tree-optimization/77697
1154         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
1155         signal error if we have sth ternary or unhandled.
1157 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1159         * config/arm/arm_neon.h (vabd_f16): New.
1160         (vabdq_f16): New.
1161         (vabs_f16): New.
1162         (vabsq_f16): New.
1163         (vadd_f16): New.
1164         (vaddq_f16): New.
1165         (vcage_f16): New.
1166         (vcageq_f16): New.
1167         (vcagt_f16): New.
1168         (vcagtq_f16): New.
1169         (vcale_f16): New.
1170         (vcaleq_f16): New.
1171         (vcalt_f16): New.
1172         (vcaltq_f16): New.
1173         (vceq_f16): New.
1174         (vceqq_f16): New.
1175         (vceqz_f16): New.
1176         (vceqzq_f16): New.
1177         (vcge_f16): New.
1178         (vcgeq_f16): New.
1179         (vcgez_f16): New.
1180         (vcgezq_f16): New.
1181         (vcgt_f16): New.
1182         (vcgtq_f16): New.
1183         (vcgtz_f16): New.
1184         (vcgtzq_f16): New.
1185         (vcle_f16): New.
1186         (vcleq_f16): New.
1187         (vclez_f16): New.
1188         (vclezq_f16): New.
1189         (vclt_f16): New.
1190         (vcltq_f16): New.
1191         (vcltz_f16): New.
1192         (vcltzq_f16): New.
1193         (vcvt_f16_s16): New.
1194         (vcvt_f16_u16): New.
1195         (vcvt_s16_f16): New.
1196         (vcvt_u16_f16): New.
1197         (vcvtq_f16_s16): New.
1198         (vcvtq_f16_u16): New.
1199         (vcvtq_s16_f16): New.
1200         (vcvtq_u16_f16): New.
1201         (vcvta_s16_f16): New.
1202         (vcvta_u16_f16): New.
1203         (vcvtaq_s16_f16): New.
1204         (vcvtaq_u16_f16): New.
1205         (vcvtm_s16_f16): New.
1206         (vcvtm_u16_f16): New.
1207         (vcvtmq_s16_f16): New.
1208         (vcvtmq_u16_f16): New.
1209         (vcvtn_s16_f16): New.
1210         (vcvtn_u16_f16): New.
1211         (vcvtnq_s16_f16): New.
1212         (vcvtnq_u16_f16): New.
1213         (vcvtp_s16_f16): New.
1214         (vcvtp_u16_f16): New.
1215         (vcvtpq_s16_f16): New.
1216         (vcvtpq_u16_f16): New.
1217         (vcvt_n_f16_s16): New.
1218         (vcvt_n_f16_u16): New.
1219         (vcvtq_n_f16_s16): New.
1220         (vcvtq_n_f16_u16): New.
1221         (vcvt_n_s16_f16): New.
1222         (vcvt_n_u16_f16): New.
1223         (vcvtq_n_s16_f16): New.
1224         (vcvtq_n_u16_f16): New.
1225         (vfma_f16): New.
1226         (vfmaq_f16): New.
1227         (vfms_f16): New.
1228         (vfmsq_f16): New.
1229         (vmax_f16): New.
1230         (vmaxq_f16): New.
1231         (vmaxnm_f16): New.
1232         (vmaxnmq_f16): New.
1233         (vmin_f16): New.
1234         (vminq_f16): New.
1235         (vminnm_f16): New.
1236         (vminnmq_f16): New.
1237         (vmul_f16): New.
1238         (vmul_lane_f16): New.
1239         (vmul_n_f16): New.
1240         (vmulq_f16): New.
1241         (vmulq_lane_f16): New.
1242         (vmulq_n_f16): New.
1243         (vneg_f16): New.
1244         (vnegq_f16): New.
1245         (vpadd_f16): New.
1246         (vpmax_f16): New.
1247         (vpmin_f16): New.
1248         (vrecpe_f16): New.
1249         (vrecpeq_f16): New.
1250         (vrnd_f16): New.
1251         (vrndq_f16): New.
1252         (vrnda_f16): New.
1253         (vrndaq_f16): New.
1254         (vrndm_f16): New.
1255         (vrndmq_f16): New.
1256         (vrndn_f16): New.
1257         (vrndnq_f16): New.
1258         (vrndp_f16): New.
1259         (vrndpq_f16): New.
1260         (vrndx_f16): New.
1261         (vrndxq_f16): New.
1262         (vrsqrte_f16): New.
1263         (vrsqrteq_f16): New.
1264         (vrecps_f16): New.
1265         (vrecpsq_f16): New.
1266         (vrsqrts_f16): New.
1267         (vrsqrtsq_f16): New.
1268         (vsub_f16): New.
1269         (vsubq_f16): New.
1271 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1273         * config.gcc (extra_headers): Add arm_fp16.h
1274         * config/arm/arm_fp16.h: New.
1275         * config/arm/arm_neon.h: Include "arm_fp16.h".
1277 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1279         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
1280         variants).
1281         (vmulf): New (v8hf, v4hf variants).
1282         (vfma): New (v8hf, v4hf variants).
1283         (vfms): New (v8hf, v4hf variants).
1284         (vsub): New (v8hf, v4hf variants).
1285         (vcage): New (v8hf, v4hf variants).
1286         (vcagt): New (v8hf, v4hf variants).
1287         (vcale): New (v8hf, v4hf variants).
1288         (vcalt): New (v8hf, v4hf variants).
1289         (vceq): New (v8hf, v4hf variants).
1290         (vcgt): New (v8hf, v4hf variants).
1291         (vcge): New (v8hf, v4hf variants).
1292         (vcle): New (v8hf, v4hf variants).
1293         (vclt): New (v8hf, v4hf variants).
1294         (vceqz): New (v8hf, v4hf variants).
1295         (vcgez): New (v8hf, v4hf variants).
1296         (vcgtz): New (v8hf, v4hf variants).
1297         (vcltz): New (v8hf, v4hf variants).
1298         (vclez): New (v8hf, v4hf variants).
1299         (vabd): New (v8hf, v4hf variants).
1300         (vmaxf): New (v8hf, v4hf variants).
1301         (vmaxnm): New (v8hf, v4hf variants).
1302         (vminf): New (v8hf, v4hf variants).
1303         (vminnm): New (v8hf, v4hf variants).
1304         (vpmaxf): New (v4hf variant).
1305         (vpminf): New (v4hf variant).
1306         (vpadd): New (v4hf variant).
1307         (vrecps): New (v8hf, v4hf variants).
1308         (vrsqrts): New (v8hf, v4hf variants).
1309         (vabs): New (v8hf, v4hf variants).
1310         (vneg): New (v8hf, v4hf variants).
1311         (vrecpe): New (v8hf, v4hf variants).
1312         (vrnd): New (v8hf, v4hf variants).
1313         (vrnda): New (v8hf, v4hf variants).
1314         (vrndm): New (v8hf, v4hf variants).
1315         (vrndn): New (v8hf, v4hf variants).
1316         (vrndp): New (v8hf, v4hf variants).
1317         (vrndx): New (v8hf, v4hf variants).
1318         (vrsqrte): New (v8hf, v4hf variants).
1319         (vmul_lane): Add v4hf and v8hf variants.
1320         (vmul_n): Add v4hf and v8hf variants.
1321         (vext): New (v8hf, v4hf variants).
1322         (vcvts): New (v8hi, v4hi variants).
1323         (vcvts): New (v8hf, v4hf variants).
1324         (vcvtu): New (v8hi, v4hi variants).
1325         (vcvtu): New (v8hf, v4hf variants).
1326         (vcvts_n): New (v8hf, v4hf variants).
1327         (vcvtu_n): New (v8hi, v4hi variants).
1328         (vcvts_n): New (v8hi, v4hi variants).
1329         (vcvtu_n): New (v8hf, v4hf variants).
1330         (vbsl): New (v8hf, v4hf variants).
1331         (vcvtas): New (v8hf, v4hf variants).
1332         (vcvtau): New (v8hf, v4hf variants).
1333         (vcvtms): New (v8hf, v4hf variants).
1334         (vcvtmu): New (v8hf, v4hf variants).
1335         (vcvtns): New (v8hf, v4hf variants).
1336         (vcvtnu): New (v8hf, v4hf variants).
1337         (vcvtps): New (v8hf, v4hf variants).
1338         (vcvtpu): New (v8hf, v4hf variants).
1340 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1342         * config/arm/arm-builtins.c (hf_UP): New.
1343         (si_UP): New.
1344         (vfp_builtin_data): New.  Update comment.
1345         (enum arm_builtins): Include "arm_vfp_builtins.def".
1346         (ARM_BUILTIN_VFP_PATTERN_START): New.
1347         (arm_init_vfp_builtins): New.
1348         (arm_init_builtins): Add arm_init_vfp_builtins.
1349         (arm_expand_vfp_builtin): New.
1350         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
1351         long line.
1352         * config/arm/arm_vfp_builtins.def: New file.
1353         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
1354         (arm-builtins.o): Likewise.
1356 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1358         PR ipa/77677
1359         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
1360         from constant while creating value range.
1362 2016-09-23  Renlin Li  <renlin.li@arm.com>
1364         * ira.c (ira): Move ira_use_lra_p initialization code to ...
1365         (ira_init_once): Here.
1367 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
1368             Jakub Jelinek  <jakub@redhat.com>
1370         * hooks.h (hook_uint_uintp_false): Rename to...
1371         (hook_bool_uint_uintp_false): ... this.
1372         * hooks.c (hook_uint_uintp_false): Rename to...
1373         (hook_bool_uint_uintp_false): ... this.
1374         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
1375         instead of hook_uint_uintp_false.
1377 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1379         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
1380         (arm_init_builtins): Move body of a loop to the standalone
1381         function arm_init_neon_builtin.
1382         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
1383         moved from arm_neon_builtin with some white-space fixes.
1384         (arm_expand_neon_builtin): Move code into the standalone function
1385         arm_expand_neon_builtin_1.
1387 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1389         * config/arm/iterators.md (VCVTHI): New.
1390         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
1391         (NEON_VAGLTE): New.
1392         (VFM_LANE_AS): New.
1393         (VH_CVTTO): New.
1394         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
1395         (V_HALF): Add V4HF.  Fix white-space.
1396         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
1397         (V_s_elem): Likewise.
1398         (V_sz_elem): Fix white-space.
1399         (V_elem_ch): Likewise.
1400         (VH_elem_ch): New.
1401         (scalar_mul_constraint): Add V8HF and V4HF.
1402         (Is_float_mode): Fix white-space.
1403         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
1404         (q): Add HF.  Fix white-space.
1405         (float_sup): New.
1406         (float_SUP): New.
1407         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
1408         (neon_vfm_lane_as): New.
1409         * config/arm/neon.md (add<mode>3_fp16): New.
1410         (sub<mode>3_fp16): New.
1411         (mul<mode>3add<mode>_neon): New.
1412         (fma<VH:mode>4_intrinsic): New.
1413         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
1414         (fmsub<VH:mode>4_intrinsic): New.
1415         (<absneg_str><mode>2): New.
1416         (neon_v<absneg_str><mode>): New.
1417         (neon_v<fp16_rnd_str><mode>): New.
1418         (neon_vrsqrte<mode>): New.
1419         (neon_vpaddv4hf): New.
1420         (neon_vadd<mode>): New.
1421         (neon_vsub<mode>): New.
1422         (neon_vmulf<mode>): New.
1423         (neon_vfma<VH:mode>): New.
1424         (neon_vfms<VH:mode>): New.
1425         (neon_vc<cmp_op><mode>): New.
1426         (neon_vc<cmp_op><mode>_fp16insn): New
1427         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
1428         (neon_vca<cmp_op><mode>): New.
1429         (neon_vca<cmp_op><mode>_fp16insn): New.
1430         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
1431         (neon_vc<cmp_op>z<mode>): New.
1432         (neon_vabd<mode>): New.
1433         (neon_v<maxmin>f<mode>): New.
1434         (neon_vp<maxmin>fv4hf: New.
1435         (neon_<fmaxmin_op><mode>): New.
1436         (neon_vrecps<mode>): New.
1437         (neon_vrsqrts<mode>): New.
1438         (neon_vrecpe<mode>): New (VH variant).
1439         (neon_vdup_lane<mode>_internal): New.
1440         (neon_vdup_lane<mode>): New.
1441         (neon_vcvt<sup><mode>): New (VCVTHI variant).
1442         (neon_vcvt<sup><mode>): New (VH variant).
1443         (neon_vcvt<sup>_n<mode>): New (VH variant).
1444         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
1445         (neon_vcvt<vcvth_op><sup><mode>): New.
1446         (neon_vmul_lane<mode>): New.
1447         (neon_vmul_n<mode>): New.
1448         * config/arm/unspecs.md (UNSPEC_VCALE): New
1449         (UNSPEC_VCALT): New.
1450         (UNSPEC_VFMA_LANE): New.
1451         (UNSPECS_VFMS_LANE): New.
1453 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1455         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1456         ("*extzv<mode><clobbercc_or_nocc>"):
1457         Correct a typo in a comment.
1458         Merged patterns.
1459         ("*insv<mode>_zEC12", "*insv<mode>_z10")
1460         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1461         ("*insv<mode>_zEC12_appendbitsleft")
1462         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1463         ("*insv<mode>_z10_appendbitsleft"): Ditto.
1464         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1465         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1466         Provide pattern with operands switched.
1467         ("*pre_z10_extv<mode>"):
1468         Use new subst patterns.
1469         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1470         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1471         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1472         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1473         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1474         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1475         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1476         New patterns.
1477         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1478         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1479         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1480         on zEC12.
1481         ("SINT"): New mode_iterator with SI, HI, QI.
1482         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1483         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1484         duplication.
1486 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1488         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1489         new interface of s390_contiguous_bitmask_p.
1490         ("contiguous_bitmask_nowrap_operand"): New predicate.
1491         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1492         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1493         of s390_contiguous_bitmask_p.
1494         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1495         ("NxxSw"): New constraint.
1496         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1497         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1498         interface.
1499         (s390_contiguous_bitmask_nowrap_p): Export.
1500         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1501         former s390_contiguous_bitmask_p.
1502         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1503         detect contiguous bit ranges with wraparound.  Change signature to
1504         return START and END position instead of POS and LENGTH.
1505         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1506         ranges with wraparound.
1507         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1508         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1509         Adapt to new signature of s390_contiguous_bitmask_p.
1511 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1513         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1514         (create_intersect_range_checks): New.
1515         (vect_create_cond_for_alias_checks): Call above function.
1517 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1519         * config/arm/iterators.md (Code iterators): Fix some white-space
1520         in the comments.
1521         (GLTE): New.
1522         (ABSNEG): New
1523         (FCVT): Moved from vfp.md.
1524         (VCVT_HF_US_N): New.
1525         (VCVT_SI_US_N): New.
1526         (VCVT_HF_US): New.
1527         (VCVTH_US): New.
1528         (FP16_RND): New.
1529         (absneg_str): New.
1530         (FCVTI32typename): Moved from vfp.md.
1531         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1532         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1533         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1534         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1535         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1536         (vcvth_op): New.
1537         (fp16_rnd_str): New.
1538         (fp16_rnd_insn): New.
1539         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1540         (UNSPEC_VCVT_HF_U_N): New.
1541         (UNSPEC_VCVT_SI_S_N): New.
1542         (UNSPEC_VCVT_SI_U_N): New.
1543         (UNSPEC_VCVTH_S): New.
1544         (UNSPEC_VCVTH_U): New.
1545         (UNSPEC_VCVTA_S): New.
1546         (UNSPEC_VCVTA_U): New.
1547         (UNSPEC_VCVTM_S): New.
1548         (UNSPEC_VCVTM_U): New.
1549         (UNSPEC_VCVTN_S): New.
1550         (UNSPEC_VCVTN_U): New.
1551         (UNSPEC_VCVTP_S): New.
1552         (UNSPEC_VCVTP_U): New.
1553         (UNSPEC_VCVTP_S): New.
1554         (UNSPEC_VCVTP_U): New.
1555         (UNSPEC_VRND): New.
1556         (UNSPEC_VRNDA): New.
1557         (UNSPEC_VRNDI): New.
1558         (UNSPEC_VRNDM): New.
1559         (UNSPEC_VRNDN): New.
1560         (UNSPEC_VRNDP): New.
1561         (UNSPEC_VRNDX): New.
1562         * config/arm/vfp.md (<absneg_str>hf2): New.
1563         (neon_vabshf): New.
1564         (neon_v<fp16_rnd_str>hf): New.
1565         (neon_vrndihf): New.
1566         (addhf3): New.
1567         (subhf3): New.
1568         (divhf3): New.
1569         (mulhf3): New.
1570         (*mulsf3neghf_vfp): New.
1571         (*negmulhf3_vfp): New.
1572         (*mulsf3addhf_vfp): New.
1573         (*mulhf3subhf_vfp): New.
1574         (*mulhf3neghfaddhf_vfp): New.
1575         (*mulhf3neghfsubhf_vfp): New.
1576         (fmahf4): New.
1577         (neon_vfmahf): New.
1578         (fmsubhf4_fp16): New.
1579         (neon_vfmshf): New.
1580         (*fnmsubhf4): New.
1581         (*fnmaddhf4): New.
1582         (neon_vsqrthf): New.
1583         (neon_vrsqrtshf): New.
1584         (FCVT): Move to iterators.md.
1585         (FCVTI32typename): Likewise.
1586         (neon_vcvth<sup>hf): New.
1587         (neon_vcvth<sup>si): New.
1588         (neon_vcvth<sup>_nhf_unspec): New.
1589         (neon_vcvth<sup>_nhf): New.
1590         (neon_vcvth<sup>_nsi_unspec): New.
1591         (neon_vcvth<sup>_nsi): New.
1592         (neon_vcvt<vcvth_op>h<sup>si): New.
1593         (neon_<fmaxmin_op>hf): New.
1595 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1597         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1598         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1599         ("*insv<mode>_zEC12_appendbitsleft")
1600         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1601         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1603 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1605         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1606         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1607         construct values without normalization.
1608         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1609         static local lhs_ops to vNULL.
1611 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1612             Jiong Wang <jiong.wang@arm.com>
1614         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1615         available when FP16 instructions are available.
1616         (output_move_vfp): Add support for 16-bit data moves.
1617         (arm_validize_comparison): Fix some white-space.  Support HFmode
1618         by conversion to SFmode.
1619         * config/arm/arm.md (truncdfhf2): Fix a comment.
1620         (extendhfdf2): Likewise.
1621         (cstorehf4): New.
1622         (movsicc): Fix some white-space.
1623         (movhfcc): New.
1624         (movsfcc): Fix some white-space.
1625         (*cmovhf): New.
1626         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1627         instructions are available.
1628         (*thumb2_movhi_vfp): Likewise.
1629         (*arm_movhi_fp16): New.
1630         (*thumb2_movhi_fp16): New.
1631         (*movhf_vfp_fp16): New.
1632         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1633         (*movhf_vfp): Likewise.
1634         (extendhfsf2): Enable when VFP FP16 instructions are available.
1635         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1637 2016-09-23  Martin Liska  <mliska@suse.cz>
1639         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1641 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1643         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1644         V4HF modes.
1645         (arm_evpc_neon_vtrn): Likewise.
1646         (arm_evpc_neon_vrev): Likewise.
1647         (arm_evpc_neon_vext): Likewise.
1648         * config/arm/arm_neon.h (vbsl_f16): New.
1649         (vbslq_f16): New.
1650         (vdup_n_f16): New.
1651         (vdupq_n_f16): New.
1652         (vdup_lane_f16): New.
1653         (vdupq_lane_f16): New.
1654         (vext_f16): New.
1655         (vextq_f16): New.
1656         (vmov_n_f16): New.
1657         (vmovq_n_f16): New.
1658         (vrev64_f16): New.
1659         (vrev64q_f16): New.
1660         (vtrn_f16): New.
1661         (vtrnq_f16): New.
1662         (vuzp_f16): New.
1663         (vuzpq_f16): New.
1664         (vzip_f16): New.
1665         (vzipq_f16): New.
1666         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1667         (vdup_lane): New (v8hf, v4hf variants).
1668         (vext): New (v8hf, v4hf variants).
1669         (vbsl): New (v8hf, v4hf variants).
1670         * config/arm/iterators.md (VDQWH): New.
1671         (VH): New.
1672         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1673         (Scalar_mul_8_16): Fix white-space.
1674         (Is_d_reg): Add V4HF and V8HF.
1675         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1676         (neon_vdup_lane<mode>): New.
1677         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1678         (*neon_vtrn<mode>_insn): Likewise.
1679         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1680         (*neon_vzip<mode>_insn): Likewise
1681         (neon_vuzp<mode>_internal): Likewise.
1682         (*neon_vuzp<mode>_insn): Likewise
1683         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1685 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1686             Matthew Wahab  <matthew.wahab@arm.com>
1688         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1689         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1690         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1691         available.  Also fix some white-space.
1692         * config/arm/vfp.md (*arm_movhi_vfp): New.
1693         (*thumb2_movhi_vfp): New.
1695 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1697         * config/arm/arm-c.c (arm_cpu_builtins): Define
1698         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1699         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1701 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1703         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1704         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1705         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1706         arm_v8_2a_fp16_neon_hw.
1707         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1708         arm_v8_2a_neon.
1710 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1712         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1713         arm_fp16_alternative_ok and arm_fp16_none_ok.
1715 2016-09-23  Martin Liska  <mliska@suse.cz>
1717         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1719 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1721         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1722         ("armv8.2-a"): New.
1723         ("armv8.2-a+fp16"): New.
1724         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1725         (FL2_FP16INST): New.
1726         (FL2_FOR_ARCH8_2A): New.
1727         * config/arm/arm-tables.opt: Regenerate.
1728         * config/arm/arm.c (arm_arch8_2): New.
1729         (arm_fp16_inst): New.
1730         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1731         for incompatible fp16-format settings.
1732         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1733         (TARGET_NEON_FP16INST): New.
1734         (arm_arch8_2): Declare.
1735         (arm_fp16_inst): Declare.
1736         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1737         march=armv8.2-a and march=armv8.2-a+fp16.
1738         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1739         and armv8.2-a+fp16.
1740         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1741         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1743 2016-09-23  Martin Liska  <mliska@suse.cz>
1745         * doc/extend.texi: Remove fused-madd from i386 target options.
1747 2016-09-23  Martin Liska  <mliska@suse.cz>
1749         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1750         Handle movbe.
1752 2016-09-23  Martin Liska  <mliska@suse.cz>
1754         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1755         Handle crc32.
1757 2016-09-23  Martin Liska  <mliska@suse.cz>
1759         PR target/71652
1760         * config/i386/i386.c (ix86_option_override_internal): Change
1761         signature and return false when there's an error related to
1762         arch string.
1763         (release_options_strings): New function.
1764         (ix86_valid_target_attribute_tree): Call the function.
1766 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1768         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1769         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1770         (gen_hsa_ctor_assignment): Likewise.
1771         * print-tree.c (print_node): Likewise.
1772         * tree-dump.c (dequeue_and_dump): Likewise.
1773         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1774         * expr.c (store_constructor): Likewise.
1775         * fold-const.c (operand_equal_p): Likewise.
1776         * tree-pretty-print.c (dump_generic_node): Likewise.
1777         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1778         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1780 2016-09-23  Richard Biener  <rguenther@suse.de>
1782         * hooks.h (hook_uint_uintp_false): Declare.
1784 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1786         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1787         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1789 2016-09-22  Martin Sebor  <msebor@redhat.com>
1791         PR target/77676
1792         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1793         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1794         (target_int_min): Correct computation.
1795         (format_integer): Use long long as the argument for the ll length
1796         modifier.
1797         (format_floating): Use target_int_max().
1798         (get_string_length): Same.
1799         (format_string): Avoid setting the bounded flag for strings
1800         of unknown length.
1801         (try_substitute_return_value): Avoid setting range info when
1802         the result isn't bounded.
1803         * varasm.c (assemble_name): Increase buffer size.
1805 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1806             Terry Guo  <terry.guo@arm.com>
1808         * target.def (elf_flags_numeric): New target hook.
1809         * targhooks.h (default_asm_elf_flags_numeric): New.
1810         * varasm.c (default_asm_elf_flags_numeric): New.
1811         (default_elf_asm_named_section): Use new target hook.
1812         * config/arm/arm.opt (mpure-code): New.
1813         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1814         * config/arm/arm.c (arm_asm_init_sections): Add section
1815         attribute to default text section if -mpure-code.
1816         (arm_option_check_internal): Diagnose use of option with
1817         non supported targets and/or options.
1818         (arm_asm_elf_flags_numeric): New.
1819         (arm_function_section): New.
1820         (arm_elf_section_type_flags): New.
1821         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1822         for -mpure-code.
1823         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1824         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1826 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1828         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1830 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1832         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1833         * rtl.h: Adjust prototype.
1835 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1837         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1838         (prev_active_insn): Likewise.
1839         (active_insn_p): Likewise.
1840         * rtl.h: Adjust prototypes.
1841         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1842         * config/arc/arc.md: Likewise.
1843         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1844         (branch_needs_nop_p): Likewise.
1845         (use_skip_p): Likewise.
1846         * config/sh/sh.c (gen_block_redirect): Likewise.
1847         (split_branches): Likewise.
1848         * reorg.c (optimize_skip): Likewise.
1849         (fill_simple_delay_slots): Likewise.
1850         (fill_slots_from_thread): Likewise.
1851         (relax_delay_slots): Likewise.
1852         * resource.c (mark_target_live_regs): Likewise.
1854 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1856         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1857         type to rtx_insn *.
1858         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1859         (prev_nonnote_nondebug_insn): Likewise.
1860         * config/cris/cris-protos.h: Adjust prototype.
1861         * rtl.h: Likewise.
1862         * jump.c (rtx_renumbered_equal_p): Adjust.
1864 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1866         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1867         * rtl.h: Adjust prototype.
1868         * config/sh/sh.md: Adjust.
1869         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1871 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1873         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1874         (prev_nondebug_insn): Likewise.
1875         * loop-doloop.c (doloop_condition_get): Likewise.
1876         * rtl.h: Adjust prototype.
1877         * cfgloop.h: Likewise.
1879 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1881         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1882         (prev_nonnote_insn): Likewise.
1883         * jump.c (reversed_comparison_code_parts): Likewise.
1884         (reversed_comparison): Likewise.
1885         * rtl.h: Adjust prototypes.
1886         * config/arc/arc.md: Adjust.
1887         * cse.c (find_comparison_args): Likewise.
1888         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1889         (fix_reg_dead_note): Change argument type to rtx_insn *.
1890         (delete_prior_computation): Likewise.
1891         (delete_computation): Likewise.
1892         (fill_slots_from_thread): Adjust.
1893         (relax_delay_slots): Likewise.
1894         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1895         (simplify_relational_operation_1): Likewise.
1896         (simplify_ternary_operation): Likewise.
1898 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1900         * config/arc/arc-protos.h (arc_label_align): Change type of
1901         variables from rtx to rtx_insn *.
1902         * config/arc/arc.c (arc_label_align): Likewise.
1903         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1904         * config/bfin/bfin.c (workaround_speculation): Likewise.
1905         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1906         (find_last_same_clock): Likewise.
1907         (reorg_split_calls): Likewise.
1908         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1909         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1910         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1911         (same_cmp_following_p): Likewise.
1912         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1913         (same_cmp_following_p): Likwise.
1914         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1915         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1916         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1917         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1918         (rl78_alloc_physical_registers_cmp): Likewise.
1919         (rl78_alloc_physical_registers_umul): Likewise.
1920         (rl78_calculate_death_notes): Likewise.
1921         * config/s390/s390-protos.h (s390_label_align): Likewise.
1922         * config/s390/s390.c (s390_label_align): Likewise.
1923         * config/sh/sh.c (barrier_align): Likewise.
1924         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1925         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1926         (emit_cbcond_nop): Likewise.
1928 2016-09-22  Martin Liska  <mliska@suse.cz>
1930         PR ipa/77653
1931         * ipa-icf.c (sem_variable::merge): Yield merge operation if
1932         alias address matters, not necessarily address of original.
1934 2016-09-22  Richard Biener  <rguenther@suse.de>
1936         PR middle-end/77697
1937         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1938         fold fails.
1940 2016-09-22  Richard Biener  <rguenther@suse.de>
1942         PR middle-end/77677
1943         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1944         from constant folding results.
1945         (gimple_resimplify2): Likewise.
1946         (gimple_resimplify3): Likewise.
1948 2016-09-22  Richard Biener  <rguenther@suse.de>
1950         PR middle-end/77678
1951         * expr.c (expand_expr_real_1): Guard array access against negative
1952         offset.
1954 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1956         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1957         of MPFR_RNDN.
1958         (format_floating): Likewise.
1960 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1962         PR fortran/77665
1963         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1964         for all IFN_GOMP_SIMD_* internal fns, not just for
1965         IFN_GOMP_SIMD_ORDERED_*.
1967 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1969         PR target/77670
1970         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1971         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1972         instructions when you want to invert the test.
1973         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1974         correct order for XXSEL.
1975         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1976         for using XSCMP{EQ,GT,GE}DP.
1978 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
1980         * genconstants.c (main): Introduce noop_reader and convert call
1981         to read_md_files to a method call.
1982         * genenums.c (main): Likewise.
1983         * genmddeps.c (main): Likewise.
1984         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1985         rtx_reader_ptr->get_top_level_filename ().
1986         (write_tm_preds_h): Likewise.
1987         (write_insn_preds_c): Likewise.
1988         * gensupport.c (class gen_reader): New subclass of rtx_reader.
1989         (rtx_handle_directive): Convert to...
1990         (gen_reader::handle_unknown_directive): ...this.
1991         (init_rtx_reader_args_cb): Convert return type from bool to
1992         rtx_reader *.  Create a gen_reader instance, using it for the
1993         call to read_md_files.  Return it if no errors occur.
1994         (init_rtx_reader_args): Convert return type from bool to
1995         rtx_reader *.
1996         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1997         (init_rtx_reader_args_cb): Likewise.
1998         * read-md.c (struct file_name_list): Move to class rtx_reader.
1999         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2000         (read_md_filename): Delete in favor of
2001         rtx_reader::m_read_md_filename.
2002         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2003         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2004         (base_dir): Delete in favor of rtx_reader::m_base_dir.
2005         (first_dir_md_include): Delete in favor of
2006         rtx_reader::m_first_dir_md_include.
2007         (last_dir_md_include_ptr): Delete in favor of
2008         rtx_reader::m_last_dir_md_include_ptr.
2009         (max_include_len): Delete.
2010         (rtx_reader_ptr): New.
2011         (fatal_with_file_and_line): Use get_filename and get_lineno
2012         accessors of rtx_reader_ptr.
2013         (require_char_ws): Likewise.
2014         (rtx_reader::read_char): New method, based on ::read_char.
2015         (rtx_reader::unread_char): New method, based on ::unread_char.
2016         (read_escape): Use get_filename and get_lineno accessors of
2017         rtx_reader_ptr.
2018         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2019         (read_string): Use get_filename and get_lineno accessors of
2020         rtx_reader_ptr.
2021         (rtx_reader::rtx_reader): New ctor.
2022         (rtx_reader::~rtx_reader): New dtor.
2023         (handle_include): Convert from a function to...
2024         (rtx_reader::handle_include): ...this method, converting
2025         handle_directive from a callback to a virtual function.
2026         (handle_file): Likewise, converting to...
2027         (rtx_reader::handle_file): ...this method.
2028         (handle_toplevel_file): Likewise, converting to...
2029         (rtx_reader::handle_toplevel_file): ...this method.
2030         (rtx_reader::get_current_location): New method.
2031         (parse_include): Convert from a function to...
2032         (rtx_reader::add_include_path): ...this method, dropping redundant
2033         update to unused max_include_len.
2034         (read_md_files): Convert from a function to...
2035         (rtx_reader::read_md_files): ...this method, converting
2036         handle_directive from a callback to a virtual function.
2037         (noop_reader::handle_unknown_directive): New method.
2038         * read-md.h (directive_handler_t): Delete this typedef.
2039         (in_fname): Delete.
2040         (read_md_file): Delete.
2041         (read_md_lineno): Delete.
2042         (read_md_filename): Delete.
2043         (class rtx_reader): New class.
2044         (rtx_reader_ptr): New decl.
2045         (class noop_reader): New subclass of rtx_reader.
2046         (read_char): Reimplement in terms of rtx_reader::read_char.
2047         (unread_char): Reimplement in terms of rtx_reader::unread_char.
2048         (read_md_files): Delete.
2049         * read-rtl.c (read_rtx_code): Update for deletion of globals
2050         read_md_filename and read_md_lineno.
2052 2016-09-21  Jason Merrill  <jason@redhat.com>
2054         * input.h (from_macro_definition_at): New.
2056 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2058         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2060 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2062         PR tree-optimization/77550
2063         * tree-vect-stmts.c (create_array_ref): Change parameters.
2064         (get_group_alias_ptr_type): New function.
2065         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2067 2016-09-21  Marek Polacek  <polacek@redhat.com>
2069         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2070         Add falls through comment.
2072 2016-09-21  Richard Biener  <rguenther@suse.de>
2074         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2075         (replace_child): Likewise.
2076         (remove_child_TAG): Adjust.
2077         (move_marked_base_types): Likewise.
2078         (prune_unused_types_prune): Clear die_sib of removed children.
2080 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
2082         PR target/77326
2083         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2084         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
2086 2016-09-21  Richard Biener  <rguenther@suse.de>
2088         PR tree-optimization/77648
2089         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
2090         with complex RHS.
2091         (make_transitive_closure_constraints): Adjust comment.
2092         (make_any_offset_constraints): New function.
2093         (handle_rhs_call): Make sure to first expand a pointer to all
2094         subfields before transitively closing it.
2095         (handle_const_call): Likewise.  Properly expand returned
2096         pointers as well.
2097         (handle_pure_call): Likewise.
2099 2016-09-21  Richard Biener  <rguenther@suse.de>
2100             Jakub Jelinek  <jakub@redhat.com>
2102         PR tree-optimization/77621
2103         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2104         group at non-vectorizable stmts.
2106 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2108         PR tree-optimization/72835
2109         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
2110         (make_new_ssa_for_all_defs): Likewise.
2111         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
2113 2016-09-20  Martin Sebor  <msebor@redhat.com>
2115         PR middle-end/49905
2116         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
2117         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
2118         * config/linux.c (gnu_libc_printf_pointer_format): New function.
2119         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
2120         * config/sol2.c (solaris_printf_pointer_format): New function.
2121         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
2122         options.
2123         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
2124         * doc/tm.texi: Regenerate.
2125         * gimple-fold.h (get_range_strlen): New function.
2126         (get_maxval_strlen): Declare existing function.
2127         * gimple-fold.c (get_range_strlen): Add arguments and compute both
2128         maximum and minimum.
2129          (get_range_strlen): Define overload.
2130         (get_maxval_strlen): Adjust.
2131         * gimple-ssa-sprintf.c: New file and pass.
2132         * passes.def (pass_sprintf_length): Add new pass.
2133         * targhooks.h (default_printf_pointer_format): Declare new function.
2134         (gnu_libc_printf_pointer_format): Same.
2135         (solaris_libc_printf_pointer_format): Same.
2136         * targhooks.c (default_printf_pointer_format): Define new function.
2137         * tree-pass.h (make_pass_sprintf_length): Declare new function.
2138         * print-tree.c: Increase buffer size.
2140 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2142         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
2144 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2146         * common.opt: New option -fipa-vrp.
2147         * ipa-cp.c (ipa_get_vr_lat): New.
2148         (ipcp_vr_lattice::print): Likewise.
2149         (print_all_lattices): Call ipcp_vr_lattice::print.
2150         (ipcp_vr_lattice::meet_with): New.
2151         (ipcp_vr_lattice::meet_with_1): Likewise.
2152         (ipcp_vr_lattice::top_p): Likewise.
2153         (ipcp_vr_lattice::bottom_p): Likewsie.
2154         (ipcp_vr_lattice::set_to_bottom): Likewise.
2155         (set_all_contains_variable): Call VR set_to_bottom.
2156         (initialize_node_lattices): Init VR lattices.
2157         (propagate_vr_accross_jump_function): New.
2158         (propagate_constants_accross_call): Call
2159         propagate_vr_accross_jump_function.
2160         (ipcp_store_vr_results): New.
2161         (ipcp_driver): Handle VR.
2162         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2163         (ipa_set_jf_unknown): Likewise.
2164         (ipa_compute_jump_functions_for_edge): Likewise.
2165         (ipa_node_params_t::duplicate): Likewise.
2166         (ipa_write_jump_function): Likewise.
2167         (ipa_read_jump_function): Likewise.
2168         (write_ipcp_transformation_info): Likewise.
2169         (read_ipcp_transformation_info): Likewise.
2170         (ipcp_update_vr): New.
2171         (ipcp_transform_function): Handle VR.
2172         * ipa-prop.h (struct ipa_vr): New.
2173         * cgraph.c: Include tree-vrp.h.
2174         * cgraphunit.c: Likewise.
2175         * ipa-utils.c: Likewise.
2176         * ipa.c: Likewise.
2177         * opts.c: Likewise.
2178         * toplev.c: Likewise.
2179         * ipa-devirt.c: Likewise.
2180         * ipa-inline-transform.c: Likewise.
2181         * ipa-inline.c: Likewise.
2182         * ipa-profile.c: Likewise.
2184 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2186         * doc/invoke.texi: Document -fdump-tree-evrp.
2187         * passes.def: Define new pass_early_vrp.
2188         * timevar.def: Define new TV_TREE_EARLY_VRP.
2189         * tree-pass.h (make_pass_early_vrp): New.
2190         * tree-ssa-propagate.c: Make replace_uses_in non static.
2191         * tree-ssa-propagate.h: Export replace_uses_in.
2192         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2193         (extract_range_from_assert): Factor out
2194         extract_range_for_var_from_comparison_expr.
2195         (vrp_initialize_lattice): New.
2196         (vrp_initialize): Factor out vrp_initialize_lattice.
2197         (vrp_valueize): Fix it to reject complex value ranges.
2198         (vrp_free_lattice): New.
2199         (evrp_dom_walker::before_dom_children): Likewise.
2200         (evrp_dom_walker::after_dom_children): Likewise.
2201         (evrp_dom_walker::push_value_range): Likewise.
2202         (evrp_dom_walker::pop_value_range): Likewise.
2203         (execute_early_vrp): Likewise.
2204         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2205         (make_pass_early_vrp): New.
2207 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2209         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2210         instead of exact_log2.
2212 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2214         PR target/77621
2215         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2216         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2217         (ix86_add_stmt_cost): Penalize DFmode vector operations
2218         for !TARGET_VECTORIZE_DOUBLE.
2220 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
2222         * doc/invoke.texi (Warning Options): Simplify language.
2223         (Optimize Options): Complete sentence.
2225 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
2227         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
2228         early_finish hook.
2230 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2232         PR target/71395
2233         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
2234         inits on power8 and above, use the VMRGEW instruction instead of a
2235         permute.
2237         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
2238         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
2239         initialization.
2241 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2243         * config/aarch64/arm_neon.h
2244         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
2245         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
2246         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
2248 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2250         * config/var/vax.h (ELIMINABLE_REGS): Define.
2251         (INITIAL_ELIMINATION_OFFSET): Define.
2253 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
2255         PR middle-end/77624
2256         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2257         cast to void * if the cast is from some other pointer type.
2259 2016-09-20  Richard Biener  <rguenther@suse.de>
2261         PR tree-optimization/77646
2262         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2263         a VDEF.
2265 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2267         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
2268         attributes to all inlined functions and make them extern.
2270 2016-09-20  Richard Biener  <rguenther@suse.de>
2272         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
2273         hook.
2274         * debug.c (do_nothing_debug_hooks): Adjust.
2275         * dbxout.c (dbx_debug_hooks): Likewise.
2276         * sdbout.c (sdb_debug_hooks): Likewise.
2277         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
2278         (dwarf2out_finish): Move producer, filename and
2279         path annotation ...
2280         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
2281         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
2283 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2285         PR c++/77434
2286         * doc/invoke.texi: Document -Wint-in-bool-context.
2288         PR middle-end/77421
2289         * dwarf2out.c (output_loc_operands): Fix an assertion.
2291 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2293         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
2294         (CR_DECIMAL_DIG): New macro.
2296 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2298         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
2299         element.
2301 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
2303         PR rtl-optimization/77416
2304         * lra-remat.c (operand_to_remat): Process hard coded insn
2305         registers.
2307 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2309         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
2310         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
2312 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2314         * target.def (lra_p): Wordsmithing.
2315         * doc/tm.texi: Regenerate.
2317 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
2318             Jan Hubicka  <jh@suse.cz>
2320         PR target/77587
2321         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
2322         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
2323         Call ultimate_alias_target just once, not up to 4 times.
2325 2016-09-19  Richard Biener  <rguenther@suse.de>
2327         * dwarf2out.c (early_dwarf_finished): New global.
2328         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
2329         is false.
2330         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
2331         if called from LTO exit early.
2332         (dwarf2out_late_global_decl): When being during the early
2333         debug phase do not add locations but only const value attributes.
2334         Adjust the way we generate early DIEs for LTO.
2336 2016-09-19  Richard Biener  <rguenther@suse.de>
2338         PR middle-end/77605
2339         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
2340         proper niter to bound the loops.
2342 2016-09-19  Richard Biener  <rguenther@suse.de>
2344         PR tree-optimization/77514
2345         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
2346         search for folded stmt.
2348 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
2350         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
2351         * tree-pass.h (make_pass_early_thread_jumps): Declare.
2352         * tree-ssa-threadbackward.c (fsm_find_thread_path,
2353         fsm_find_thread_path, profitable_jump_thread_path,
2354         fsm_find_control_statement_thread_paths,
2355         find_jump_threads_backwards): Add speed_p parameter.
2356         (pass_data_early_thread_jumps): New pass.
2357         (make_pass_early_thread_jumps): New function.
2359 2016-09-17  Andreas Schwab  <schwab@suse.de>
2361         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
2362         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2364 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
2366         * recog.c (rest_of_handle_split_after_reload): Delete.
2367         (pass_split_after_reload::gate): New method.
2368         (pass_split_after_reload::execute): Call split_all_insns directly.
2370 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
2372         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
2373         parameters for functions taking long long arguments.
2375 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2377         PR target/77613
2378         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
2379         splat with truncate.
2381 2016-09-16  Jason Merrill  <jason@redhat.com>
2383         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
2384         New.
2385         * hwint.c (exact_log2): Use pow2p_hwi.
2386         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
2387         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
2388         * builtins.c (get_object_alignment_2, get_object_alignment)
2389         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
2390         least_bit_hwi.
2391         * calls.c (compute_argument_addresses, store_one_arg): Use
2392         least_bit_hwi.
2393         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
2394         * combine.c (force_to_mode): Use least_bit_hwi.
2395         (contains_muldiv, find_split_point, combine_simplify_rtx)
2396         (simplify_if_then_else, simplify_set, force_to_mode)
2397         (if_then_else_cond, simplify_and_const_int_1)
2398         (simplify_compare_const): Use pow2p_hwi.
2399         * cse.c (fold_rtx): Use pow2p_hwi.
2400         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
2401         Use least_bit_hwi.
2402         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
2403         (init_expmed_one_conv): Use pow2p_hwi.
2404         * expr.c (is_aligning_offset): Use pow2p_hwi.
2405         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
2406         (fold_binary_loc): Use pow2p_hwi.
2407         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
2408         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
2409         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
2410         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
2411         Use least_bit_hwi.
2412         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
2413         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
2414         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
2415         * omp-low.c (oacc_loop_fixed_partitions)
2416         (oacc_loop_auto_partitions): Use least_bit_hwi.
2417         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
2418         * stor-layout.c (place_field): Use least_bit_hwi.
2419         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
2420         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
2421         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
2422         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
2423         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
2424         * tree-vect-data-refs.c (vect_analyze_group_access_1)
2425         (vect_grouped_store_supported, vect_grouped_load_supported)
2426         (vect_permute_load_chain, vect_shift_permute_load_chain)
2427         (vect_transform_grouped_load): Use pow2p_hwi.
2428         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
2429         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
2430         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
2431         least_bit_hwi.
2432         * tsan.c (instrument_expr): Use least_bit_hwi.
2433         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
2435 2016-09-16  Andreas Schwab  <schwab@suse.de>
2437         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
2438         OFFSET, not offset.
2439         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2441 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2443         PR target/77526
2444         * combine.c (rest_of_handle_combine): If any edges have been purged,
2445         free dominators if available.
2447 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2448             Eric Botcazou  <ebotcazou@adacore.com>
2450         PR middle-end/77594
2451         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2452         through into expand_addsub_overflow after expand_neg_overflow.
2454 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
2456         * diagnostic-show-locus.c
2457         (selftest::test_fixit_insert_containing_newline): New function.
2458         (selftest::test_fixit_replace_containing_newline): New function.
2459         (selftest::diagnostic_show_locus_c_tests): Call the above.
2461 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
2463         PR tree-optimization/77503
2464         * tree-vect-loop.c (vectorizable_reduction): Record reduction
2465         code for CONST_COND_REDUCTION at analysis stage and use it at
2466         transform stage.
2467         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2468         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2469         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2470         field.
2472 2016-09-15  Richard Biener  <rguenther@suse.de>
2474         PR middle-end/77544
2475         * fold-const.c (split_tree): Do not split constant ~X.
2477 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2479         PR rtl-optimization/77425
2480         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2481         is NULL.
2483         PR middle-end/77475
2484         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2485         use %qs instead of %s where desirable, use argument instead of arg in
2486         the diagnostic wording, add list of supported strategies and
2487         spellcheck hint.
2488         (ix86_option_override_internal): Emit target("m...") instead of
2489         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2490         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2491         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2492         main_args_p ? "..." : "..." in diagnostics to make translation
2493         possible.
2495 2016-09-15  Richard Biener  <rguenther@suse.de>
2497         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2498         extra offset argument.
2499         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2500         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2501         to reflect new offset parameter.
2502         * doc/tm.texi: Regenerate.
2503         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2504         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2505         offset argument.
2506         (darwin_asm_output_dwarf_offset): Likewise.
2507         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2508         argument.
2509         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2510         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2511         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2513 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2515         PR fortran/72743
2516         * ipa-icf.c (set_alias_uids): New function.
2517         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2518         all the merged variable's referring aliases.
2520 2016-09-15  Richard Biener  <rguenther@suse.de>
2522         PR tree-optimization/77514
2523         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2524         only forced_stmts sequence.
2526 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2528         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2529         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2530         FOR_EACH_SSA_NAME to iterate over SSA variables.
2531         (pass_expand::execute): Likewise.
2532         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2533         * tree-cfg.c (dump_function_to_file): Likewise.
2534         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2535         (update_ssa): Likewise.
2536         * tree-ssa-alias.c (dump_alias_info): Likewise.
2537         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2538         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2539         (create_outofssa_var_map): Likewise.
2540         (coalesce_ssa_name): Likewise.
2541         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2542         * tree-ssa-pre.c (compute_avail): Likewise.
2543         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2544         (scc_vn_restore_ssa_info): Likewise.
2545         (free_scc_vn): Likwise.
2546         (run_scc_vn): Likewise.
2547         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2548         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2549         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2550         * tree-ssa.c (verify_ssa): Likewise.
2552 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2554         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2555         and mips64r2 as default 32-bit and 64-bit architectures.
2556         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2557         as default 32-bit and 64-bit architectures.
2559 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2561         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2562         of succ edge.
2564 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2566         * target.def (lra_p): Change commentary (for the manual) for the
2567         new default.
2568         * doc/tm.texi: Regenerate.
2570 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2572         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2573         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2574         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2575         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2577 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2579         * targhooks.c (default_lra_p): Return true instead of false.
2581 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2583         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2584         hook_bool_void_false.
2585         * config/avr/avr.c: Ditto.
2586         * config/bfin/bfin.c: Ditto.
2587         * config/c6x/c6x.c: Ditto.
2588         * config/cr16/cr16.c: Ditto.
2589         * config/cris/cris.c: Ditto.
2590         * config/epiphany/epiphany.c: Ditto.
2591         * config/fr30/fr30.c: Ditto.
2592         * config/frv/frv.c: Ditto.
2593         * config/h8300/h8300.c: Ditto.
2594         * config/ia64/ia64.c: Ditto.
2595         * config/iq2000/iq2000.c: Ditto.
2596         * config/lm32/lm32.c: Ditto.
2597         * config/m32c/m32c.c: Ditto.
2598         * config/m32r/m32r.c: Ditto.
2599         * config/m68k/m68k.c: Ditto.
2600         * config/mcore/mcore.c: Ditto.
2601         * config/microblaze/microblaze.c: Ditto.
2602         * config/mmix/mmix.c: Ditto.
2603         * config/mn10300/mn10300.c: Ditto.
2604         * config/moxie/moxie.c: Ditto.
2605         * config/msp430/msp430.c: Ditto.
2606         * config/nios2/nios2.c: Ditto.
2607         * config/nvptx/nvptx.c: Ditto.
2608         * config/pa/pa.c: Ditto.
2609         * config/pdp11/pdp11.c: Ditto.
2610         * config/rl78/rl78.c: Ditto.
2611         * config/sparc/sparc.c: Ditto.
2612         * config/spu/spu.c: Ditto.
2613         * config/stormy16/stormy16.c: Ditto.
2614         * config/tilegx/tilegx.c: Ditto.
2615         * config/tilepro/tilepro.c: Ditto.
2616         * config/v850/v850.c: Ditto.
2617         * config/vax/vax.c: Ditto.
2618         * config/visium/visium.c: Ditto.
2619         * config/xtensa/xtensa.c: Ditto.
2621 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2623         PR sanitizer/68260
2624         * tsan.c: Include target.h.
2625         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2626         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2627         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2628         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2629         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2631 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2632             Martin Liska  <mliska@suse.cz>
2634         PR middle-end/77574
2635         * predict.c (force_edge_cold): Add braces to a condition.
2637 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2639         PR rtl-optimization/77289
2640         * lra-constraints.c (get_final_hard_regno): Removed.
2641         (get_hard_regno): Add new parameter final_p.
2642         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2643         (operands_match_p): Adjust call to get_hard_regno.
2644         (uses_hard_regs_p): Likewise.
2645         (process_alt_operands): Likewise.
2647 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2649         PR target/70713
2650         * config/msp430/msp430.c (msp430_start_function): Emit an error
2651         if a function is both weak and specifies an interrupt number.
2653 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2655         PR tree-optimization/77454
2656         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2657         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2658         Formatting fix.
2660 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2662         * config/aarch64/aarch64-builtins.c
2663         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2665 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2667         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2668         SFmode and SCmode arguments by reference.
2670 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2672         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2673         Rename to...
2674         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2675         for renaming of add_fixit_insert to add_fixit_insert_before.
2676         (selftest::test_one_liner_fixit_insert_after): New function.
2677         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2678         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2679         (selftest::test_one_liner_many_fixits): Likewise.
2680         (selftest::test_diagnostic_show_locus_one_liner): Update for
2681         renaming, call new test function.
2682         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2683         renaming of add_fixit_insert to add_fixit_insert_before.
2684         (selftest::test_fixit_consolidation): Likewise.
2685         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2686         Likewise.
2687         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2688         (selftest::test_applying_fixits_insert_before): ...this.
2689         (selftest::test_applying_fixits_insert): Update for renaming of
2690         add_fixit_insert to add_fixit_insert_before.
2691         (selftest::test_applying_fixits_insert_after): New function.
2692         (selftest::test_applying_fixits_insert_after_at_line_end): New
2693         function.
2694         (selftest::test_applying_fixits_insert_after_failure): New function.
2695         (selftest::test_applying_fixits_multiple): Update for renaming of
2696         add_fixit_insert to add_fixit_insert_before.
2697         (selftest::change_line): Likewise.
2698         (selftest::test_applying_fixits_unreadable_file): Likewise.
2699         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2700         (selftest::test_applying_fixits_column_validation): Likewise.
2701         (selftest::test_applying_fixits_column_validation): Likewise.
2702         (selftest::edit_context_c_tests): Update for renamed test function;
2703         call new test functions.
2705 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2707         PR tree-optimization/77536
2708         PR rtl-optimization/68212
2709         * config/rs6000/rs6000.md (div->recip splitter): Remove
2710         optimize_insn_for_speed_p condition.
2712 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2714         * optabs.c (prepare_cmp_insn): Update documentation comment.
2716 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2717             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2719         PR middle-end/77475
2720         * opts.h (candidates_list_and_hint): Declare.
2721         * opts-common.c (candidates_list_and_hint): New function.
2722         (cmdline_handle_error): Use it.
2724 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2726         * edit-context.c (edited_line::get_len): New accessor.
2727         (edited_file::print_diff): Split out hunk-printing into...
2728         (edited_file::print_diff_hunk): New method.
2729         (edited_file::print_diff_line): New method.
2731 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2733         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2734         New tuning option.
2735         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2736         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2737         (aarch64_operands_ok_for_ldpstp): Return false if
2738         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2739         was SImode and the alignment is less than 8 byte.
2740         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2742 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2744         PR target/77570
2745         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2747 2016-09-12  Marek Polacek  <polacek@redhat.com>
2749         * doc/extend.texi: Use lowercase "boolean".
2750         * doc/invoke.texi: Likewise.
2751         * doc/md.texi: Likewise.
2752         * target.def: Likewise.
2753         * doc/tm.texi: Regenerated.
2755 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2757         PR middle-end/77426
2758         * expmed.c (synth_mult): Delete duplicate mode check.
2760 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2762         PR C/71602
2763         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2764         va_list type only.
2765         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2766         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2768 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2770         PR rtl-optimization/77289
2771         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2772         register numbers.  Remove support for subregs.
2773         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2774         (get_reg_class): Delete removed get_final_hard_regno() argument.
2775         (uses_hard_regs_p): Call get_final_hard_regno().
2777 2016-09-09  Martin Sebor  <msebor@redhat.com>
2779         PR c/77520
2780         PR c/77521
2781         * pretty-print.c (pp_quoted_string): New function.
2782         (pp_format): Call it for %c and %s directives.
2784 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2786         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2787         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2788         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2789         * target.def (frame_pointer_required, can_eliminate): Likewise.
2790         * doc/tm.texi: Regenerated.
2791         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2792         ELIMINABLE_REGS.
2793         * df-scan.c (df_hard_reg_init): Likewise.
2794         * ira.c (ira_setup_eliminable_regset): Likewise.
2795         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2796         init_elim_table): Likewise.
2797         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2798         set_initial_elim_offsets, update_eliminables,
2799         init_elim_table): Likewise.
2800         * rtlanal.c (get_initial_register_offset): Likewise.
2801         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2802         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2803         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2804         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2805         * config/fr30/fr30.h: Fix comment.
2806         * config/frv/frv.c: Likewise.
2807         * config/frv/frv.h: Likewise.
2808         * config/ft32/ft32.h: Likewise.
2809         * config/visium/visium.h: Likewise.
2810         * config/pa/pa64-linux.h: Likewise.
2811         * config/v850/v850.h: Likewise.
2812         * config/cris/cris.c: Likewise.
2813         * config/ia64/ia64.h: Likewise.
2814         * config/moxie/moxie.h: Likewise.
2815         * config/m32r/m32r.h: Likewise.
2817 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2819         PR target/77267
2820         * config.in: Regenerate.
2821         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2822         New macro.
2823         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2824         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2825         static-libmpxwrappers case.
2826         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2827         MPX_LD_AS_NEEDED_GUARD_POP.
2828         * configure: Regenerate.
2829         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2830         defined if linker support "--push-state"/"--pop-state".
2832 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2834         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2836 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2838         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2839         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2840         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2841         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2842         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2843         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2844         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2845         Document.
2846         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2847         width macros from TS 18661-1.
2848         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2850 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2852         PR fortran/77516
2853         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2854         OMP_CLAUSE_SAFELEN_EXPR.
2856 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2858         * Makefile.in (OBJS): Add substring-locations.o.
2859         * langhooks-def.h (class substring_loc): New forward decl.
2860         (lhd_get_substring_location): New decl.
2861         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2862         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2863         * langhooks.c (lhd_get_substring_location): New function.
2864         * langhooks.h (class substring_loc): New forward decl.
2865         (struct lang_hooks): Add field get_substring_location.
2866         * substring-locations.c: New file, taking definition of
2867         format_warning_va and format_warning_at_substring from
2868         c-family/c-format.c, making them non-static.
2869         * substring-locations.h (class substring_loc): Move class here
2870         from c-family/c-common.h.  Add and rewrite comments.
2871         (format_warning_va): New decl.
2872         (format_warning_at_substring): New decl.
2873         (get_source_location_for_substring): Add comment.
2875 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2877         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2878         to avoid -Wnarrowing warning.
2879         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2880         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2882 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2884         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2885         Avoid use of base_offset if offset already in range.
2887 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2889         * config/sh/sh-protos.h (struct sh_atomic_model,
2890         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2891         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2892         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2893         * config/sh/sh.h (struct sh_atomic_model,
2894         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2895         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2896         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2897         Guard with __cplusplus.
2899 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2901         PR target/69255
2902         * config/i386/i386.c (ix86_expand_builtin): For builtin with
2903         unsupported or unknown ISA, use expand_call.
2905 2016-09-06  Martin Liska  <mliska@suse.cz>
2907         PR gcov-profile/77378
2908         PR gcov-profile/77466
2909         * tree-profile.c (tree_profiling): Detect whether target can use
2910         -fprofile-update=atomic.
2912 2016-09-06  Richard Biener  <rguenther@suse.de>
2914         PR tree-optimization/77479
2915         * tree-vrp.c (update_value_range): Extend overflow handling to
2916         VARYING.
2918 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2920         PR target/77476
2921         * config/i386/i386.md (isa): Add x64_avx512bw.
2922         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2923         (kmov_isa): New mode attr.
2924         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2925         (*zero_extend<mode>si2): Likewise.
2926         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2928 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
2930         * doc/invoke.texi (SPU Options): nops -> NOPs.
2931         (x86 Options): Ditto.
2933 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2935         PR middle-end/77475
2936         * toplev.c (process_options): Temporarily set input_location
2937         to UNKNOWN_LOCATION around targetm.target_option.override () call.
2939 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
2941         PR rtl-optimization/77452
2942         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2943         inner-mode reference to a CONST_VECTOR constant in the constant pool.
2945 2016-09-05  Marek Polacek  <polacek@redhat.com>
2947         PR c/77423
2948         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2950 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2952         PR other/77421
2953         * gensupport.c (alter_output_for_subst_insn): Remove redundant
2954         *insn_out == '*' test.  Don't copy unnecessary to yet another
2955         memory buffer, and don't leak it.
2957         PR rtl-optimization/77425
2958         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2960 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2962         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2964 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2966         * common.opt (fdiagnostics-generate-patch): New option.
2967         * diagnostic.c: Include "edit-context.h".
2968         (diagnostic_initialize): Initialize context->edit_context_ptr.
2969         (diagnostic_finish): Delete context->edit_context_ptr.
2970         (diagnostic_report_diagnostic): Add fix-it hints from the
2971         diagnostic to context->edit_context_ptr, if any.
2972         * diagnostic.h (class edit_context): Add forward decl.
2973         (struct diagnostic_context): Add field "edit_context_ptr".
2974         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2975         -fdiagnostics-generate-patch.
2976         (-fdiagnostics-generate-patch): New item.
2977         * toplev.c: Include "edit-context.h".
2978         (process_options): Set global_dc->edit_context_ptr to a new
2979         edit_context if the options need one.
2980         (toplev::main): Handle -fdiagnostics-generate-patch by using
2981         global_dc->edit_context_ptr.
2983 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2985         PR c/65467
2986         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2987         map and firstprivate clauses on target construct for _Atomic
2988         qualified decls.
2989         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2990         on target construct for _Atomic qualified decls.
2991         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2992         decls.
2993         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2994         _Atomic qualified arguments not mentioned in uniform clause.
2996 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2998         * Makefile.in (OBJS-libcommon): Add edit-context.o.
2999         * diagnostic-color.c (color_dict): Add "diff-filename",
3000         "diff-hunk", "diff-delete", and "diff-insert".
3001         (parse_gcc_colors): Update default value of GCC_COLORS in comment
3002         to reflect above changes.
3003         * doc/invoke.texi (-fdiagnostics-color): Update description of
3004         default GCC_COLORS, and of the supported capabilities.
3005         * edit-context.c: New file.
3006         * edit-context.h: New file.
3007         * input.c (struct fcache): Add field "missing_trailing_newline".
3008         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3009         true.
3010         (add_file_to_cache_tab): Likewise.
3011         (fcache::fcache): Likewise.
3012         (get_next_line): Update c->missing_trailing_newline.
3013         (location_missing_trailing_newline): New function.
3014         * input.h (location_missing_trailing_newline): New decl.
3015         * selftest-run-tests.c (selftest::run_tests): Call
3016         edit_context_c_tests.
3017         * selftest.h (edit_context_c_tests): New decl.
3019 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3020             Richard Biener  <rguenth@suse.de>
3022         PR tree-optimization/77444
3023         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3024         as steptype, remove redundant initialization.
3026 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3028         PR sanitizer/77396
3029         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3030         (sanopt_optimize_walker): Optimize away
3031         __asan_before_dynamic_init (...) followed by
3032         __asan_after_dynamic_init () without intervening memory loads/stores.
3033         * ipa-pure-const.c (special_builtin_state): Handle
3034         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3035         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3037 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3039         * cfg.c (free_original_copy_tables): Replace second assignment of
3040         bb_copy = NULL by bb_original = NULL. 
3042 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3044         PR other/77421
3045         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3046         assignment added in r216794.
3048 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3050         * Makefile.in (OBJS): Add typed-splay-tree.o.
3051         * selftest-run-tests.c (selftest::run_tests): Call
3052         typed_splay_tree_c_tests.
3053         * selftest.h (typed_splay_tree_c_tests): New decl.
3054         * typed-splay-tree.c: New file.
3055         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3056         (typed_splay_tree::max): New method.
3057         (typed_splay_tree::min): New method.
3058         (typed_splay_tree::foreach): New method.
3059         (typed_splay_tree::closure): New struct.
3060         (typed_splay_tree::inner_foreach_fn): New function.
3062 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3064         * ipa-cp.c (ipcp_store_bits_results): Change option name from
3065         -fipa-cp-bit to -fipa-bit-cp.
3067 2016-09-01  Martin Sebor  <msebor@redhat.com>
3069         PR tree-optimization/71831
3070         * tree-object-size.h: Return bool instead of the size and add
3071         argument for the size.
3072         * tree-object-size.c (compute_object_offset): Update signature.
3073         (addr_object_size): Same.
3074         (compute_builtin_object_size): Return bool instead of the size
3075         and add argument for the size.  Handle POINTER_PLUS_EXPR when
3076         optimization is disabled.
3077         (expr_object_size): Adjust.
3078         (plus_stmt_object_size): Adjust.
3079         (pass_object_sizes::execute): Adjust.
3080         * builtins.c (fold_builtin_object_size): Adjust.
3081         * doc/extend.texi (Object Size Checking): Update.
3082         * ubsan.c (instrument_object_size): Adjust.
3084 2016-09-01  Martin Sebor  <msebor@redhat.com>
3086         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
3087         it fits the output of the formatted function regardless of its
3088         arguments.
3089         * gcc/genmodes.c (parser::parse_expr): Same.
3090         * gimplify.c (gimplify_asm_expr): Same.
3091         * passes.c (pass_manager::register_one_dump_file): Same.
3092         * print-tree.c (print_node): Same.
3094 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3096         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
3098 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3100         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
3102 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3104         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
3105         * config/rs6000/vector.md: Ditto.
3106         * config/rs6000/vsx.md: Ditto.
3108 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3110         * ipa-inline-analysis.c (param_change_prob): Get to the base object
3111         first in all cases.
3113 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3115         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
3116         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
3117         *return_and_restore_gpregs_<mode>_r11,
3118         *return_and_restore_gpregs_<mode>_r12,
3119         *return_and_restore_gpregs_<mode>_r1,
3120         *return_and_restore_fpregs_<mode>_r11,
3121         *return_and_restore_fpregs_<mode>_r12,
3122         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
3123         directly instead of via the "l" constraint.  Renumber operands.
3124         Fix whitespace.
3126 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3128         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
3129         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
3130         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
3131         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
3132         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
3133         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
3134         *call_value_nonlocal_darwin64, reload_macho_picbase,
3135         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
3136         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
3137         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
3138         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
3139         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
3140         *save_fpregs_<mode>_r1): Ditto.
3141         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
3142         *return_and_restore_gpregs_spe): Ditto.
3144 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3146         * config/rs6000/rs6000.md
3147         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
3148         the use of the link register.
3149         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
3151 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3152             Michael Meissner  <meissner@linux.vnet.ibm.com>
3154         PR target/72827
3155         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
3156         reg+reg addressing for TImode.
3157         (rs6000_legitimate_address_p): Only allow register indirect
3158         addressing for TImode, even without TARGET_QUAD_MEMORY.
3160 2016-09-01  Richard Biener  <rguenther@suse.de>
3162         PR middle-end/77436
3163         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3164         check whether the result fits the desired result type.
3166 2016-09-01  Nathan Sidwell  <nathan@acm.org>
3168         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3170 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
3172         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3173         New function.
3174         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3176 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3178         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3179         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3180         for comparisons of integer ZERO_EXTEND against zero.
3182 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3184         * config/i386/i386.c (ix86_option_override_internal): Also disable the
3185         STV pass if -mstackrealign is enabled.
3187 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
3189         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3190         AVX512IFMA.
3192 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3194         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3195         (layout_range::intersects_line_p): New method.
3196         (test_range_contains_point_for_single_point): Rename to...
3197         (test_layout_range_for_single_point): ...this, and add testing
3198         for layout_range::intersects_line_p.
3199         (test_range_contains_point_for_single_line): Rename to...
3200         (test_layout_range_for_single_line): ...this,  and add testing
3201         for layout_range::intersects_line_p.
3202         (test_range_contains_point_for_multiple_lines): Rename to...
3203         (test_layout_range_for_multiple_lines): ...this,  and add testing
3204         for layout_range::intersects_line_p.
3205         (layout::layout): Populate m_fixit_hints.
3206         (layout::get_expanded_location): Handle the case of a line-span
3207         for a fix-it hint.
3208         (layout::validate_fixit_hint_p): New method.
3209         (get_line_span_for_fixit_hint): New function.
3210         (layout::calculate_line_spans): Add spans for fixit-hints.
3211         (layout::should_print_annotation_line_p): New method.
3212         (layout::print_any_fixits): Drop param "richloc", instead using
3213         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
3214         (diagnostic_show_locus): Avoid printing blank annotation lines.
3215         (selftest::test_diagnostic_context::test_diagnostic_context):
3216         Initialize show_column and start_span.
3217         (selftest::test_diagnostic_context::start_span_cb): New static
3218         function.
3219         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3220         (selftest::diagnostic_show_locus_c_tests): Update for function
3221         renamings.  Call test_diagnostic_show_locus_fixit_lines.
3223 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3225         PR tree-optimization/73714
3226         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
3228 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3230         * selftest.c: Move "namespace selftest {" to top of file,
3231         removing explicit "selftest::" qualifiers throughout.
3233 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3235         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
3236         New types.
3237         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
3238         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
3239         Replace builtin with vector extension.
3240         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
3241         New types.
3242         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
3243         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
3244         Replace builtin with vector extension.
3245         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
3246         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
3247         Replace builtin with vector extension.
3248         * config/i386/xmmintrin.h (__m128_u): New type.
3249         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
3250         (_mm_load_ps, _mm_store_ps): Simplify.
3252 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
3254         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
3256 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3258         * diagnostic-show-locus.c (colorizer::begin_state): Support more
3259         than 3 ranges per diagnostic by alternating between color 1 and
3260         color 2.
3261         (layout::layout): Replace use of rich_location::MAX_RANGES
3262         with richloc->get_num_locations ().
3263         (layout::calculate_line_spans): Replace use of
3264         rich_location::MAX_RANGES with m_layout_ranges.length ().
3265         (layout::print_annotation_line): Handle arbitrary numbers of
3266         ranges in caret-printing by defaulting to '^'.
3267         (selftest::test_one_liner_many_fixits): New function.
3268         (test_diagnostic_show_locus_one_liner): Call it.
3269         * diagnostic.c (diagnostic_initialize): Update for renaming
3270         of rich_location::MAX_RANGES to
3271         rich_location::STATICALLY_ALLOCATED_RANGES.
3272         * diagnostic.h (struct diagnostic_context): Likewise.
3274 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3276         * selftest.c (selftest::named_temp_file::named_temp_file): New
3277         ctor.
3278         (selftest::temp_source_file::~temp_source_file): Move to...
3279         (selftest::named_temp_file::~named_temp_file): ...here.
3280         (selftest::test_named_temp_file): New function.
3281         (selftest::selftest_c_tests): Call test_named_temp_file.
3282         * selftest.h (class named_temp_file): New class.
3283         (class temp_source_file): Convert to a subclass of named_temp_file.
3285 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
3287         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
3288         USEs of LR_REGNO in returns and sibcalls.
3289         (rs6000_output_mi_thunk): Similar.
3290         (rs6000_sibcall_aix): Similar.
3291         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
3292         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
3293         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
3294         Remove the USE of LR_REGNO from the patterns as well.  Delete an
3295         obsolete comment.
3296         (return_internal_<mode>): Delete.
3298 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
3300         * gcc/config/aarch64/aarch64-simd.md
3301         (aarch64_ld2<mode>_dreg_le): New.
3302         (aarch64_ld2<mode>_dreg_be): New.
3303         (aarch64_ld2<mode>_dreg): Removed.
3304         (aarch64_ld3<mode>_dreg_le): New.
3305         (aarch64_ld3<mode>_dreg_be): New.
3306         (aarch64_ld3<mode>_dreg): Removed.
3307         (aarch64_ld4<mode>_dreg_le): New.
3308         (aarch64_ld4<mode>_dreg_be): New.
3309         (aarch64_ld4<mode>_dreg): Removed.
3310         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
3312 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3314         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
3315         redundant location param.
3316         (test_one_liner_fixit_remove): Likewise.
3317         (test_one_liner_fixit_replace): Likewise.
3318         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
3319         * gcc-rich-location.c
3320         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
3321         get_range_from_loc.  Drop overload taking a const char *.
3322         * gcc-rich-location.h
3323         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
3324         a const char *.
3326 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3328         * config/linux.c (linux_libc_has_function): Return true on musl.
3330 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3332         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
3334 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3336         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
3337         used for abnormal egdes.
3339 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
3341         PR tree-optimization/72866
3342         * tree-vect-patterns.c (search_type_for_mask): Turn into
3343         a small wrapper, move all code to ...
3344         (search_type_for_mask_1): ... this new function.  Add caching
3345         and adjust recursive calls.
3347         PR debug/77363
3348         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
3349         instead of lookup_type_die (type_main_variant (type)) even for array
3350         types.
3352         PR middle-end/77377
3353         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
3354         constant pool reference return x instead of c.
3356 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
3358         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
3359         include MQ.
3361 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3363         * input.c
3364         (selftest::test_make_location_nonpure_range_endpoints): Fix
3365         header comment.
3367 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3369         * diagnostic-show-locus.c
3370         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
3371         function.
3372         (selftest::test_diagnostic_show_locus_one_liner): Call it.
3373         * input.c (get_pure_location): Move to libcpp/line-map.c.
3374         * input.h (get_pure_location): Convert decl to an inline function
3375         calling implementation in libcpp.
3377 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
3379         PR target/77403
3380         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
3381         template for intel asm dialect.
3382         (vec_set_hi_<mode><mask_name>): Ditto.
3384 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3386         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
3387         (selftest::fail_formatted): Likewise.
3389 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3391         * input.c (make_location): Call get_start and get_finish
3392         on the endpoints to avoid storing packed ranges or ad-hoc
3393         ranges in them.
3394         (selftest::test_make_location_nonpure_range_endpoints): New function.
3395         (selftest::input_c_tests): Call it.
3396         * input.h (get_start): New inline function.
3398 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3400         PR c/77398
3401         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
3402         with assert.
3404 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
3406         * Makefile.in (gcov-iov.h): Add dummy recipe.
3408 2016-08-29  Nathan Sidwell  <nathan@acm.org>
3410         * config/nvptx/nvptx.c: #include tree-vrp.h.
3412 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
3414         PR target/77324
3415         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
3416         HIGH+LO construct during reload.
3418 2016-08-28  Tom de Vries  <tom@codesourcery.com>
3420         PR lto/70955
3421         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3422         'sysv_abi va_list' attribute.
3423         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3424         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3425         attributes.
3427 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3429         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
3430         * emit-rtl.c (unshare_all_rtl_1): Adjust.
3431         (unshare_all_rtl_again): Likewise.
3432         * function.c (assign_stack_local_1): Likewise.
3433         (assign_stack_temp_for_type): Likewise.
3435 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3437         * cfgbuild.c (make_edges): Adjust.
3438         * cfgrtl.c (can_delete_label_p): Likewise.
3439         * dwarf2cfi.c (create_trace_edges): Likewise.
3440         * except.c (sjlj_emit_dispatch_table): Likewise.
3441         * function.h (struct expr_status): make x_forced_labels a vector.
3442         * jump.c (rebuild_jump_labels_1): Adjust.
3443         * reload1.c (set_initial_label_offsets): Likewise.
3444         * stmt.c (force_label_rtx): Likewise.
3445         (expand_label): Likewise.
3447 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3449         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
3451 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
3453         PR tree-optimization/71077
3454         PR tree-optimization/68542
3455         * fold-const.c (fold_relational_const): Fix folding of
3456         VECTOR_CST comparisons that have a scalar boolean result type.
3457         (selftest::test_vector_folding): New static function.
3458         (selftest::fold_const_c_tests): Call it.
3460 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
3462         * doc/extend.texi (SPU Built-in Functions): Remove stale
3463         references to material formerly at IBM and Sony.
3465 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
3467         PR target/77349
3468         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3470 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3472         * diagnostic-show-locus.c
3473         (selftest::test_fixit_consolidation): New function.
3474         (selftest::diagnostic_show_locus_c_tests): Call it.
3475         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3476         constructor based on source_range.
3478 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3480         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3481         "fixit-delete".
3482         (parse_gcc_colors): Update description of default GCC_COLORS.
3483         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3484         (colorizer::set_fixit_insert): New method.
3485         (colorizer::set_fixit_delete): New method.
3486         (colorizer::get_color_by_name): New method.
3487         (colorizer::STATE_FIXIT_INSERT): New constant.
3488         (colorizer::STATE_FIXIT_DELETE): New constant.
3489         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3490         fields in favor of new field "m_stop_color".  Add fields
3491         "m_fixit_insert" and "m_fixit_delete".
3492         (colorizer::colorizer): Update for above changes.  Replace
3493         colorize_start calls with calls to get_color_by_name.
3494         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3495         STATE_FIXIT_DELETE.  Update for field renamings.
3496         (colorizer::finish_state): Simplify by using m_stop_color,
3497         rather than multiple identical "*_ce" fields.
3498         (colorizer::get_color_by_name): New method.
3499         (layout::print_any_fixits): Print insertions and replacements
3500         using the "fixit-insert" color, and deletions using the
3501         "fixit-delete" color.
3502         * doc/invoke.texi (-fdiagnostics-color): Update description of
3503         default GCC_COLORS, and of the supported capabilities.
3505 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3507         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3508         current_function_static_stack_size variable with the static
3509         stack frame size of the current function when
3510         flag_stack_usage_info is enabled.
3512 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3514         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3515         assignment inside if condition.
3517 2016-08-26  Richard Biener  <rguenther@suse.de>
3519         PR tree-optimization/69047
3520         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3521         extracts similar to what FRE does.
3522         (non_rewritable_mem_ref_base): Likewise.
3524 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3526         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3527         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3528         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3529         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3530         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3531         Likewise.
3532         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3533         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3534         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3535         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3536         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3538 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3540         PR target/70473
3541         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3542         reservation duration to 15 cycles.
3543         (cortex_a8_vfp_macs): Likewise.
3544         (cortex_a8_vfp_macd): Likewise.
3545         (cortex_a8_vfp_divs): Likewise.
3546         (cortex_a8_vfp_divd): Likewise.
3548 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3550         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3551         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3553 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3554             Martin Jambhor  <mjambor@suse.cz>
3556         * common.opt: New option -fipa-bit-cp.
3557         * doc/invoke.texi: Document -fipa-bit-cp.
3558         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3559         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3560         * tree-ssa-ccp.h: New header file.
3561         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3562         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3563         Replace all occurences of tree parameter by two new params: signop, int.
3564         (bit_value_unop_1): Change to bit_value_unop and export it.
3565         Replace all occurences of tree parameter by two new params: signop,
3566         int.
3567         (bit_value_binop): Change call from bit_value_binop_1 to
3568         bit_value_binop.
3569         (bit_value_assume_aligned): Likewise.
3570         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3571         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3572         to ccp_finalize.
3573         (ccp_finalize): Skip processing if val->mask == 0.
3574         * ipa-cp.c: Include tree-ssa-ccp.h
3575         (ipcp_bits_lattice): New class.
3576         (ipcp_param_lattice (bits_lattice): New member.
3577         (print_all_lattices): Call ipcp_bits_lattice::print.
3578         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3579         (initialize_node_lattices): Likewise.
3580         (propagate_bits_accross_jump_function): New function.
3581         (propagate_constants_accross_call): Call
3582         propagate_bits_accross_jump_function.
3583         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3584         (ipcp_store_bits_results): New function.
3585         (ipcp_driver): Call ipcp_store_bits_results.
3586         * ipa-prop.h (ipa_bits): New struct.
3587         (ipa_jump_func): Add new member bits of type ipa_bits.
3588         (ipa_param_descriptor): Change decl to decl_or_type.
3589         (ipa_get_param): Change decl to decl_or_type and assert on
3590         PARM_DECL.
3591         (ipa_get_type): New function.
3592         (ipcp_transformation_summary): New member bits.
3593         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3594         (ipa_populate_param_decls): Likewise.
3595         (ipa_dump_param): Likewise.
3596         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3597         function.
3598         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3599         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3600         propagation.
3601         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3602         (ipa_write_jump_function): Add streaming for ipa_bits.
3603         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3604         (write_ipcp_transformation_info): Add streaming for ipa_bits
3605         summary for ltrans.
3606         (read_ipcp_transfomration_info): Add support for reading streamed
3607         ipa_bits.
3608         (ipcp_update_bits): New function.
3609         (ipcp_transform_function): Call ipcp_update_bits.
3611 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3613         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3614         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3616 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3618         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3620 2016-08-25  Richard Biener  <rguenther@suse.de>
3622         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3623         Only add locations in late dwarf.
3624         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3625         (dwarf2out_early_finish): But do it here.
3627 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3628             Michael Collison  <michael.collison@arm.com>
3630         * config/arm/arm-modes.def: Add new condition code mode CC_V
3631         to represent the overflow bit.
3632         * config/arm/arm.c (maybe_get_arm_condition_code):
3633         Add support for CC_Vmode.
3634         (arm_gen_unlikely_cbranch): New function to generate common
3635         rtl conditional branches for overflow patterns.
3636         * config/arm/arm-protos.h: Add prototype for
3637         arm_gen_unlikely_cbranch.
3638         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3639         addsi3_compareV_upper): New patterns to support signed
3640         builtin overflow add operations.
3641         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3642         New patterns to support unsigned builtin add overflow operations.
3643         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3644         builtin overflow subtract operations,
3645         (usubv<mode>4): New patterns to support unsigned builtin subtract
3646         overflow operations.
3647         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3648         to support builtin overflow negate operations.
3650 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3652         Revert
3653         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3655         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3656         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3657         needed.
3659 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3661         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3662         MULTILIB_OPTIONS should be used.  Small wording fixes.
3663         * genmultilib: Memorize set of all option combinations in
3664         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3665         found in MULTILIB_OPTIONS by checking if option set is listed in
3666         combination_space.  Output new and existing error message to stderr.
3668 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3670         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3671         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3672         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3673         (MULTILIB_REUSE): Remove reuse rules for option set including
3674         -mfpu=fp-armv8 and -mfpu=vfpv4
3676 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3678         * config/arm/t-rtems: Add vfp multilib.
3680 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3682         * config/s390/s390.c (s390_asm_file_start): Call
3683         default_file_start.
3685 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3687         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3688         initialization of all 0's to the 0 constant, instead of directly
3689         generating XOR.  Add support for V4SImode vector initialization on
3690         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3691         initialization.  Change variables used in V4SFmode vector
3692         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3693         any memory addresses are in index form.  Add support for using
3694         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3695         with all of the same element.
3696         (regno_or_subregno): New helper function to return a register
3697         number for either REG or SUBREG.
3698         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3699         Use regno_or_subregno where possible.
3700         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3701         DImode value from two SImode values in order to generate V4SImode
3702         vector initialization on 64-bit systems with direct move.
3703         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3704         initialization.
3705         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3706         swappable.
3707         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3708         declaration.
3709         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3710         attributes to initialize V8HImode and V16QImode vectors with the
3711         same element.
3712         (VSX_SPLAT_COUNT): Likewise.
3713         (VSX_SPLAT_SUFFIX): Likewise.
3714         (UNSPEC_VSX_VEC_INIT): New unspec.
3715         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3716         Allow SFmode values to come from Altivec registers.
3717         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3718         on 64-bit systems with direct move.
3719         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3720         vector initializations, to allow V4SImode vector initializations
3721         on 64-bit systems with direct move.
3722         (vsx_splat_v4si): Likewise.
3723         (vsx_splat_v4si_di): Likewise.
3724         (vsx_splat_v4sf): Likewise.
3725         (vsx_splat_v4sf_internal): Likewise.
3726         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3727         register classes.
3728         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3729         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3730         initializing V8HImode and V16QImode vectors with the same
3731         element.
3732         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3733         optimization if -maltivec=be.
3735 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3737         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3738         attribute for alternatives 3 and 4.
3740 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3742         * selftest.c (selftest::assert_str_contains): New function.
3743         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3744         * selftest.h (selftest::assert_str_contains): New decl.
3745         (ASSERT_STR_CONTAINS): New macro.
3747 2016-08-23  Richard Biener  <rguenther@suse.de>
3749         PR tree-optimization/77286
3750         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3751         the CFG here.
3752         (vect_transform_loop): Split exit edges of loop and scalar
3753         loop if required and at the appropriate time.
3755 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3757         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3758         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3759         needed.
3760         Correct a typo in a comment.
3762 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3764         * config/s390/s390.md ("*andc_split"): New splitter for and with
3765         complement.
3767 2016-08-23  Richard Biener  <rguenther@suse.de>
3769         PR tree-optimization/27336
3770         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3771         by looking for a non-EH edge.
3772         (process_assert_insertions_for): Likewise.
3774 2016-08-23  Richard Biener  <rguenther@suse.de>
3776         PR middle-end/77305
3777         * statistics.c (statistics_counter_event): Robustify against
3778         NULL current_pass.
3780 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3782         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3783         for targets amdfam10 and barcelona.
3785 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3787         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3788         (zero_extend<mode>di2): Ditto.
3789         (*zero_extend<mode>si2): Ditto.
3790         (*zero_extendqihi2): Ditto.
3792 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3794         PR middle-end/77269
3795         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3796         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3798 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3800         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3801         identical consecutive elements.
3802         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3803         the node's def stmt, avoid printing an unwanted trailing newline by
3804         replacing the call to print_gimple_stmt() with its inlined body and
3805         adjusting it to not set pp_needs_newline and to call pp_flush()
3806         instead of pp_newline_and_flush().
3808 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3810         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3811         (float32_type_node, float64_type_node, float32x_type_node)
3812         (float128x_type_node): New macros.
3813         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3814         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3815         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3816         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3817         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3818         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3819         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3820         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3821         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3822         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3823         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3824         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3825         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3826         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3827         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3828         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3829         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3830         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3831         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3832         and copysign.
3833         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3834         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3835         * doc/extend.texi (Other Builtins): Document these built-in
3836         functions.
3837         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3838         for nan and nans.
3840 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3842         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3844 2016-08-22  Richard Biener  <rguenther@suse.de>
3846         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3848 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3850         PR target/77270
3851         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3852         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3853         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3855 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3857         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3858         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3859         (vrp_visit_switch_stmt): Likewise.
3860         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3861         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3862         (vrp_visit_stmt): Use extract_range_from_stmt.
3863         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3865 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3867         * Makefile.in: Add tree-vrp.h to GTFILES.
3868         * gengtype.c (open_base_files): Add tree-vrp.h.
3869         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3870         * builtins.c: Likewise.
3871         * fold-const.c: Likewise.
3872         * gimple-builder.c: Likewise.
3873         * gimple-laddress.c: Likewise.
3874         * hsa-gen.c: Likewise.
3875         * internal-fn.c: Likewise.
3876         * ssa.h: Likewise.
3877         * targhooks.c: Liewise,
3878         * tree-ssa-address.c: Likewise.
3879         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3880         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3881         * tree-vrp.h: New file.
3883 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3885         PR tree-optimization/61839
3886         * tree-vrp.c (two_valued_val_range_p): New.
3887         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3888         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3889         Also Convert VAR BINOP CST where VAR is two-valued to
3890         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3892 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3894         * diagnostic-show-locus.c
3895         (layout::annotation_line_showed_range_p): New method.
3896         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3897         Reimplement case fixit_hint::REPLACE to cover removals, and
3898         replacements where the range of the replacement isn't one
3899         of the ranges in the rich_location.
3900         (test_one_liner_fixit_replace): Likewise.
3901         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3902         function.
3903         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3904         New function.
3905         (selftest::test_diagnostic_show_locus_one_liner): Call the new
3906         functions.
3907         * diagnostic.c (print_parseable_fixits): Remove case
3908         fixit_hint::REMOVE.
3910 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
3912         PR target/77270
3913         * config/i386/i386.c (ix86_option_override_internal): Remove
3914         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3915         Enable SSE prefetch also for TARGET_PREFETCHWT1.
3916         Do not try to enable TARGET_PRFCHW ISA flag here.
3917         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3918         Rewrite expander function body.
3919         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3921 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3923         PR c/32187
3924         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3925         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3926         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3927         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3928         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3929         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3930         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3931         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3932         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3933         tree_index values.
3934         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3935         macros.
3936         (struct floatn_type_info): New structure type.
3937         (floatn_nx_types): New variable declaration.
3938         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3939         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3940         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3941         * tree.c (floatn_nx_types): New variable.
3942         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3943         corresponding complex types.
3944         * target.def (floatn_mode): New hook.
3945         * targhooks.c: Include "real.h".
3946         (default_floatn_mode): New function.
3947         * targhooks.h (default_floatn_mode): New prototype.
3948         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3949         types.
3950         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3951         effective-target and dg-add-options keywords.
3952         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3953         Document new effective-target keywords.
3954         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3955         * doc/tm.texi: Regenerate.
3956         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3957         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3958         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3959         18661-3.
3960         * real.h (struct real_format): Add field ieee_bits.
3961         * real.c (ieee_single_format, mips_single_format)
3962         (motorola_single_format, spu_single_format, ieee_double_format)
3963         (mips_double_format, motorola_double_format)
3964         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3965         (ieee_extended_intel_128_format)
3966         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3967         (mips_extended_format, ieee_quad_format, mips_quad_format)
3968         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3969         (decimal_double_format, decimal_quad_format, ieee_half_format)
3970         (arm_half_format, real_internal_format: Initialize ieee_bits
3971         field.
3972         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3973         float128_type_node.  Set float80_type_node to float64x_type_node
3974         if appropriate and long_double_type_node not appropriate.
3975         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3976         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3977         Initialize ieee_bits field.
3978         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3979         (rs6000_init_builtins): Set ieee128_float_type_node to
3980         float128_type_node.
3981         (rs6000_floatn_mode): New function.
3983 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3985         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3986         _rdseed64_step): Uglify argument names and/or local variable names
3987         in inline functions.
3988         * config/i386/rtmintrin.h (_xabort): Likewise.
3989         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3990         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3991         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3992         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3993         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3994         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3995         _mm_maskz_ternarylogic_epi32): Likewise.
3996         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3997         __lwpins32, __lwpins64): Likewise.
3998         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3999         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4000         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4001         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4002         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4003         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4004         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4005         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4006         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4007         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4008         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4009         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4010         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4011         _mm256_mask_i64gather_epi32): Likewise.
4012         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4013         * config/i386/ia32intrin.h (__writeeflags): Likewise.
4014         * config/i386/pkuintrin.h (_wrpkru): Likewise.
4015         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4016         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4017         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4018         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4019         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4020         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4021         _mm512_mask_prefetch_i64scatter_ps): Likewise.
4022         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4023         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4024         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4025         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4026         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4027         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4028         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4029         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4031         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4032         returning void.
4033         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4034         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4035         Likewise.
4036         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4037         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
4038         function name.
4039         (_rdpkru_u32): Add space after function name.
4041         * config/i386/t-i386 (i386-c.o): Don't depend on
4042         i386-builtin-types.inc.
4043         (i386.o): Depend on i386-builtin-types.inc.
4045 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
4047         PR target/77281
4048         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4049         Use const_vec_duplicate to check for duplicated elements.
4051 2016-08-19  Richard Biener  <rguenther@suse.de>
4053         PR tree-optimization/77290
4054         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4055         Fix flag_tree_parallelize_loops check.
4057 2016-08-19  Richard Biener  <rguenther@suse.de>
4059         * match.pd (x | 0 -> x): Add.
4061 2016-08-19  Richard Biener  <rguenther@suse.de>
4063         PR tree-optimization/77286
4064         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4065         Deal with virtual PHIs being out-of-order.
4067 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4069         * doc/invoke.texi (fverbose-asm): Note that source code lines
4070         are emitted, and provide an example.
4071         * final.c (asm_show_source): New function.
4072         (final_scan_insn): Call asm_show_source.
4074 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4076         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4077         param with diagnostic_kind.
4078         (class colorizer): Similarly replace field m_diagnostic with
4079         m_diagnostic_kind.
4080         (colorizer::colorizer): Replace diagnostic
4081         param with diagnostic_kind.
4082         (colorizer::begin_state): Update for above field change.
4083         (layout::layout): Replace diagnostic param with rich_location *
4084         and diagnostic_kind.
4085         (diagnostic_show_locus): Replace diagnostic param with richloc
4086         and diagnostic_kind.
4087         (class selftest::test_diagnostic_context): New class.
4088         (selftest::test_diagnostic_show_locus_unknown_location): New
4089         function.
4090         (selftest::test_one_liner_simple_caret): New function.
4091         (selftest::test_one_liner_caret_and_range): New function.
4092         (selftest::test_one_liner_multiple_carets_and_ranges): New
4093         function.
4094         (selftest::test_one_liner_fixit_remove): New function.
4095         (selftest::test_one_liner_fixit_replace): New function.
4096         (selftest::test_diagnostic_show_locus_one_liner): New function.
4097         (selftest::diagnostic_show_locus_c_tests): Call the new test
4098         functions.
4099         * diagnostic.c (diagnostic_initialize): Initialize
4100         colorize_source_p, show_ruler_p and parseable_fixits_p.
4101         (default_diagnostic_finalizer): Update for change to
4102         diagnostic_show_locus.
4103         (diagnostic_append_note): Likewise.
4104         * diagnostic.h (diagnostic_show_locus): Replace
4105         const diagnostic_info * param with location * and diagnostic_t.
4107 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4109         * input.c (saved_line_table): New global.
4110         (class selftest::temp_line_table): Rename to line_table_test and
4111         move declaration to selftest.h, and drop field m_old_line_table.
4112         (selftest::temp_line_table::temp_line_table): Rename ctor to...
4113         (selftest::line_table_test::line_table_test): ...this.  Add a
4114         default ctor.  Store current value of line_table within
4115         saved_line_table.
4116         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
4117         (selftest::line_table_test::~line_table_test): ...this, and
4118         restore line_table from the saved_line_table, rather than
4119         m_old_line_table.
4120         (selftest::test_accessing_ordinary_linemaps): Update for above
4121         renaming.
4122         (selftest::test_lexer): Likewise.
4123         (struct selftest::lexer_test): Likewise.
4124         (selftest::lexer_test::lexer_test): Likewise.
4125         (selftest::input_c_tests): Move the looping over test cases from
4126         here into...
4127         (selftest::for_each_line_table_case): New function.
4128         * input.h (saved_line_table): New decl.
4129         * selftest.h (struct selftest::line_table_case): New forward decl.
4130         (class selftest::line_table_test): New class, moved here from
4131         selftest::temp_line_table in input.c, and renamed.
4132         (selftest::for_each_line_table_case): New decl.
4134 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4136         PR target/72839
4137         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
4139 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
4141         PR middle-end/70895
4142         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
4143         enclosing parallel construct for reduction variables on OpenACC loop
4144         directives.
4146 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
4148         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
4149         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
4150         -gdwarf-3.
4151         (function_to_dwarf_procedure): Update comment.
4153 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4155         * input.c (diagnostics_file_cache_forcibly_evict_file): New
4156         function.
4157         * input.h (diagnostics_file_cache_forcibly_evict_file): New
4158         declaration.
4159         * selftest.c (selftest::temp_source_file::~temp_source_file):
4160         Evict m_filename from the diagnostic file cache.
4162 2016-08-18  Richard Biener  <rguenther@suse.de>
4164         * tree-pass.h (make_pass_materialize_all_clones): Declare.
4165         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4166         make_pass_materialize_all_clones): New simple IPA pass encapsulating
4167         clone materialization.
4168         * passes.def (all_late_ipa_passes): Start with
4169         pass_materialize_all_clones.
4170         * cgraphunit.c (symbol_table::compile): Remove call to
4171         materialize_all_clones.
4172         * tree-into-ssa.c: Include statistics.h.
4173         (update_ssa): Count number of times we do incremental/rewrite
4174         SSA update.
4176 2016-08-18  Richard Biener  <rguenther@suse.de>
4178         PR tree-optimization/77282
4179         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4180         When doing auto-parallelizing also prevent use of PHIs that
4181         carry dependences across loop backedges.
4183 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
4184             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4186         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4188 2016-08-18  Richard Biener  <rguenther@suse.de>
4190         * ssa-iterators.h (ssa_vuse_operand): New inline.
4191         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4192         (predicate_all_scalar_phis): Use remove_phi_node to remove
4193         phi nodes predicated.  Delay removing virtual PHIs.
4194         (predicate_mem_writes): Update virtual operands.
4195         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
4196         (tree_if_conversion): Do not rewrite virtual SSA form.
4197         * tree-phinodes.c (release_phi_node): Make static.
4198         * tree-phinodes.h (release_phi_node): Remove.
4200 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
4202         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4203         codes that appear in bdesc_* arrays, instead include i386-builtin.def
4204         twice to define those.
4205         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4206         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4207         bdesc_multi_arg): Define by including i386-builtin.def the third time.
4208         * config/i386/i386-builtin.def: New file.
4210 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
4212         * input.c (get_source_range_for_char): Rename to...
4213         (selftest::get_source_range_for_char): ...this, and move within
4214         the #if CHECKING_P guard.
4215         (get_num_source_ranges_for_substring): Rename to...
4216         (selftest::get_num_source_ranges_for_substring): ...this, move
4217         within the #if CHECKING_P guard, and make static.
4218         (selftest::assert_num_substring_ranges): Initialize
4219         actual_num_ranges.
4221 2016-08-18  Alan Modra  <amodra@gmail.com>
4223         PR rtl-optimization/72771
4224         * reload.c (find_reloads): Don't assume that a subreg mem is OK
4225         when find_reloads_toplev returns address_reloaded==-1.
4226         (alternative_allows_const_pool_ref): Update comment.
4228 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
4230         PR tree-optimization/71752
4231         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
4232         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
4234 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
4236         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
4237         instead of testing ECF_NORETURN bit in gimple_call_flags.
4238         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
4239         * predict.c (tree_bb_level_predictions): Likewise.
4240         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
4242         PR middle-end/77259
4243         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
4244         turning a call into __builtin_unreachable-like noreturn call, adjust
4245         gimple_call_set_fntype.
4246         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
4247         gimple_call_fntype has void return type.
4249 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
4251         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
4252         maybe_lookup_decl, to handle nested acc loop directives.
4254 2016-08-17  Richard Biener  <rguenther@suse.de>
4256         PR tree-optimization/76490
4257         * tree-vrp.c (update_value_range): Preserve overflow infinities
4258         when intersecting with ranges from get_range_info.
4259         (operand_less_p): Handle overflow infinities correctly.
4260         (value_range_constant_singleton): Use vrp_operand_equal_p
4261         to handle overflow max/min correctly.
4262         (vrp_valueize): Likewise.
4263         (union_ranges): Likewise.
4264         (intersect_ranges): Likewise.
4265         (vrp_visit_phi_node): Improve iteration limitation to only
4266         apply when we'll possibly re-visit the PHI via a changed argument
4267         on the backedge.
4269 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4271         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
4272         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
4273         rather than those that should not be built.
4275 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
4277         PR target/66488
4278         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
4280 2016-08-17  Richard Biener  <rguenther@suse.de>
4282         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
4283         (verify_vssa): New function verifying virtual SSA form.
4284         (verify_ssa): Call it.
4285         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
4286         Do not apply loop-closed SSA handling to virtuals.
4287         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
4288         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
4289         when rewriting their symbol.
4290         (prepare_def_site_for): Likewise.
4291         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
4292         operands of moved stmts.
4294 2016-08-17  Richard Biener  <rguenther@suse.de>
4296         PR tree-optimization/23855
4297         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
4298         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
4299         find guards to hoist.  Do not update SSA form but rewrite virtuals
4300         into loop closed SSA.
4301         (find_loop_guard): Adjust to skip already hoisted guards.  Do
4302         not mark virtuals for renaming or update SSA form.
4304 2016-08-17  Martin Liska  <mliska@suse.cz>
4306         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
4307         a LONG_LONG_TYPE_SIZE comparison.
4308         * gcov-io.h: Remove macro definitions.
4309         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
4310         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
4311         comparison.
4313 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4315         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
4316         that builtins not mentioned in bdesc_* arrays come first, then
4317         the ones mentioned in bdesc_* arrays in the order they appear in
4318         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
4319         IX86_BUILTIN__BDESC_*_LAST enumerator.
4320         (bdesc_mpx): Fix up a comment typo.
4321         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
4322         __builtin_ia32_vpcomneu[bwdq] builtins.
4323         (BDESC_VERIFY, BDESC_VERIFYS): Define.
4324         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
4325         enum ix86_builtins ordering.
4326         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
4327         for direct bdesc_* array member access instead of searching all the
4328         arrays until an fcode match is found.
4330 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
4332         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
4333         pattern as define_insn_and_split.  Split insn before reload to
4334         ashl<mode>3_1.
4335         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
4336         <shift_insn><mode>3_1.
4337         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
4338         <rotate_insn><mode>3_1.
4340 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4342         PR c/72857
4343         * input.c (get_source_range_for_substring): Rename to...
4344         (get_source_location_for_substring): ...this, adding param
4345         "caret_idx", and converting output param from source_range * to
4346         location_t *.
4347         (get_source_range_for_char): New function.
4348         (get_num_source_ranges_for_substring): Update comment to reflect
4349         above renaming.
4350         (assert_char_at_range): Update to use get_source_range_for_char
4351         rather than get_source_range_for_substring.
4352         (test_lexer_string_locations_concatenation_2): Likewise.
4353         * substring-locations.h (get_source_range_for_substring): Rename
4354         to...
4355         (get_source_location_for_substring): ...this, and adding param
4356         "caret_idx", and converting output param from source_range * to
4357         location_t *.
4359 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4361         * input.c (class selftest::temp_source_file): Move to
4362         selftest.h.
4363         (selftest::temp_source_file::temp_source_file): Move to
4364         selftest.c.
4365         (selftest::temp_source_file::~temp_source_file): Likewise.
4366         * selftest.c (selftest::temp_source_file::temp_source_file): Move
4367         here from input.c.
4368         (selftest::temp_source_file::~temp_source_file): Likewise.
4369         * selftest.h (class selftest::temp_source_file): Move here from
4370         input.c
4372 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4374         PR target/71910
4375         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
4376         inlining, add cgraph edge for the added __builtin_unreachable call.
4378         PR middle-end/67485
4379         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
4380         only cast it to SHWI for the final comparison.
4382 2016-08-16  Martin Liska  <mliska@suse.cz>
4384         PR gcov-profile/36412
4385         * doc/gcov.texi: Document --hash-filenames(-x).
4386         * gcov.c (print_usage): Add the option.
4387         (process_args): Process the option, sort options alphabetically.
4388         (md5sum_to_hex): New function.
4389         (make_gcov_file_name): Do the md5sum and append it to a
4390         filename.
4392 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4394         PR tree-optimization/69848
4395         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
4396         and swtich operands to avoid additional NOT instruction.
4397         (vcond<v_cmp_mixed><mode>): Ditto.
4398         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4400 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4402         * doc/install.texi (*-*-solaris2*): Adjust latest change.
4404 2016-08-16  Richard Biener  <rguenther@suse.de>
4406         PR tree-optimization/76783
4407         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
4408         BB visited flags at start.
4410 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4412         PR tree-optimization/72817
4413         PR tree-optimization/73450
4414         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
4415         multiple_of_p for adjusted IV.base.
4417 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
4419         PR target/72867
4420         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
4421         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
4422         for !flag_finite_math_only or flag_signed_zeros.
4423         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
4424         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
4425         depend on flag_finite_math_only.
4426         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
4427         New insn pattern.
4428         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
4429         (*ieee_smin<mode>3): Ditto.
4430         (*ieee_smax<mode>3): Ditto.
4431         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
4432         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
4433         flag_signed_zeros.
4434         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
4435         depend on flag_finite_math_only.
4436         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
4437         (*mmx_<code>v2sf3): Remove.
4438         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
4439         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
4440         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
4442 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
4444         PR rtl-optimization/73650
4445         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
4446         it is not a simple move.
4448 2016-08-15  Martin Liska  <mliska@suse.cz>
4450         PR driver/72765
4451         * gcc.c (do_spec_1): Call save_string with the right size.
4452         (save_string): Do an assert about string we copy.
4454 2016-08-15  Richard Biener  <rguenther@suse.de>
4456         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4457         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4458         TV_MACH_DEP.
4459         (pass_data_stv): Likewise.
4461 2016-08-15  Richard Biener  <rguenther@suse.de>
4463         PR tree-optimization/73434
4464         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4465         TBAA info on the base when forwarding a non-invariant address.
4467 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4469         * dwarf2out.c (struct checksum_attributes): Add
4470         at_string_length_bit_size and at_string_length_byte_size fields.
4471         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4472         and DW_AT_string_length_byte_size.
4473         (die_checksum_ordered): Handle at_string_length_bit_size and
4474         at_string_length_byte_size.
4475         (gen_array_type_die): For dwarf_version >= 5 emit
4476         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4477         (adjust_string_types): For dwarf_version >= 5 remove
4478         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4479         (resolve_addr): Likewise.
4481         PR debug/71906
4482         * dwarf2out.c (string_types): New variable.
4483         (gen_array_type_die): Change early_dwarf handling of
4484         DW_AT_string_length, create DW_OP_call4 referencing the
4485         length var temporarily.  Handle parameters that are pointers
4486         to string length.
4487         (adjust_string_types): New function.
4488         (gen_subprogram_die): Temporarily set string_types to local var,
4489         call adjust_string_types if needed.
4490         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4491         New functions.
4492         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4494 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4496         * doc/install.texi (*-*-solaris2*): Fix version number and document
4497         requirement on GNU make for building libjava with the Solaris linker.
4499 2016-08-15  Martin Liska  <mliska@suse.cz>
4500             Jakub Jelinek  <jakub@redhat.com>
4502         PR tree-optimization/72824
4503         * tree-loop-distribution.c (const_with_all_bytes_same)
4504         <case VECTOR_CST>: Fix a typo.
4506 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4508         PR target/76342
4509         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4510         Renamed from _mm512_undefined_si512.
4511         (_mm_undefined_si512): New definition.
4513 2016-08-13  Richard Biener  <rguenther@suse.de>
4515         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4516         into PHIs and update the lattice for its def.
4518 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4520         PR c/71512
4521         * ubsan.c (instrument_si_overflow): Pass true instead of false
4522         to gsi_replace.
4523         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4524         of bbs.  Return TODO_cleanup_cfg if any returned true.
4526 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4528         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4529         ISA 3.0 MTVSRDD instruction.
4530         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4531         vecperm.
4533 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4535         PR tree-optimization/71083
4536         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4537         bitfield access when possible.
4539 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4541         PR middle-end/71654
4542         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4543         sign-changing cast from a shorter unsigned type to a wider
4544         signed type.
4546 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4548         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4549         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4550         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4552 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4554         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4555         Correct costs for vec_construct.
4557 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4559         PR tree-optimization/69848
4560         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4561         type CONST_COND_REDUCTION.
4562         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4563         reudction type CONST_COND_REDUCTION.
4565 2016-08-12  Richard Biener  <rguenther@suse.de>
4567         PR tree-optimization/57326
4568         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4569         returning an SSA name.
4570         (phi_translate_1): When fully_constant_expression returns a NAME
4571         make sure we have a leader for it.
4573 2016-08-12  Martin Liska  <mliska@suse.cz>
4574             Adam Fineman  <afineman@afineman.com>
4576         * gcov.c (process_file): Create .gcov file when .gcda
4577         file is missing.
4579 2016-08-12  Marek Polacek  <polacek@redhat.com>
4581         PR c/7652
4582         * alias.c (find_base_value): Adjust fall through comment.
4583         * cfgexpand.c (expand_debug_expr): Likewise.
4584         * combine.c (find_split_point): Likewise.
4585         (expand_compound_operation): Likewise.  Add FALLTHRU.
4586         (make_compound_operation): Adjust fall through comment.
4587         (canon_reg_for_combine): Add FALLTHRU.
4588         (force_to_mode): Adjust fall through comment.
4589         (simplify_shift_const_1): Likewise.
4590         (simplify_comparison): Likewise.
4591         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4592         FALLTHRU.
4593         * config/aarch64/predicates.md: Likewise.
4594         * config/i386/i386.c (function_arg_advance_32): Likewise.
4595         (ix86_gimplify_va_arg): Likewise.
4596         (print_reg): Likewise.
4597         (ix86_print_operand): Likewise.
4598         (ix86_build_const_vector): Likewise.
4599         (ix86_expand_branch): Likewise.
4600         (ix86_sched_init_global): Adjust fall through comment.
4601         (ix86_expand_args_builtin): Add FALLTHRU.
4602         (ix86_expand_builtin): Likewise.
4603         (ix86_expand_vector_init_one_var): Likewise.
4604         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4605         (rs6000_adjust_cost): Likewise.
4606         (insn_must_be_first_in_group): Likewise.
4607         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4608         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4609         * df-scan.c (df_uses_record): Likewise.
4610         * dojump.c (do_jump): Add FALLTHRU.
4611         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4612         comment.
4613         (resolve_args_picking_1): Adjust fall through comment.
4614         (loc_list_from_tree_1): Likewise.
4615         * expmed.c (make_tree): Likewise.
4616         * expr.c (expand_expr_real_2): Add FALLTHRU.
4617         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4618         * fold-const.c (const_binop): Adjust fall through comment.
4619         (fold_truth_not_expr): Likewise.
4620         (fold_cond_expr_with_comparison): Add FALLTHRU.
4621         (fold_binary_loc): Likewise.
4622         (contains_label_1): Adjust fall through comment.
4623         (multiple_of_p): Likewise.
4624         * gcov-tool.c (process_args): Add FALLTHRU.
4625         * genattrtab.c (check_attr_test): Likewise.
4626         (write_test_expr): Likewise.
4627         * genconfig.c (walk_insn_part): Likewise.
4628         * genpreds.c (validate_exp): Adjust fall through comment.
4629         (needs_variable): Likewise.
4630         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4631         (subst_dup): Likewise.
4632         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4633         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4634         (gimplify_scan_omp_clauses): Add FALLTHRU.
4635         (goa_stabilize_expr): Likewise.
4636         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4637         through comment.
4638         * hsa-gen.c (get_address_from_value): Likewise.
4639         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4640         * ira.c (ira_setup_alts): Add FALLTHRU.
4641         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4642         comment.
4643         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4644         * opts.c (common_handle_option): Likewise.
4645         * read-rtl.c (read_rtx_code): Likewise.
4646         * real.c (round_for_format): Likewise.
4647         * recog.c (asm_operand_ok): Likewise.
4648         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4649         * reload1.c (set_label_offsets): Likewise.
4650         (eliminate_regs_1): Likewise.
4651         (reload_reg_reaches_end_p): Likewise.
4652         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4653         (rtx_cost): Likewise.
4654         * sched-rgn.c (is_exception_free): Likewise.
4655         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4656         * stor-layout.c (int_mode_for_mode): Likewise.
4657         * toplev.c (print_to_asm_out_file): Likewise.
4658         (print_to_stderr): Likewise.
4659         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4660         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4661         (chrec_fold_multiply): Likewise.
4662         (evolution_function_is_invariant_rec_p): Likewise.
4663         (for_each_scev_op): Likewise.
4664         * tree-data-ref.c (siv_subscript_p): Likewise.
4665         (get_references_in_stmt): Likewise.
4666         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4667         (substitute_in_expr): Likewise.
4668         (type_cache_hasher::equal): Likewise.
4669         (walk_type_fields): Likewise.
4670         * var-tracking.c (adjust_mems): Add FALLTHRU.
4671         (set_dv_changed): Adjust fall through comment.
4672         * varasm.c (default_function_section): Add FALLTHRU.
4674 2016-08-12  Marek Polacek  <polacek@redhat.com>
4676         PR c/7652
4677         * tree-complex.c (expand_complex_division): Add missing break.
4679 2016-08-12  Richard Biener  <rguenther@suse.de>
4681         * passes.c (execute_todo): Do not push/pop TV_TODO.
4682         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4683         (execute_one_pass): Likewise.
4684         * common.opt (ftime-report-details): New switch.
4685         * doc/invoke.texi (ftime-report-details): Document.
4686         * timevar.h (timer::print_row): Adjust signature.
4687         (timer::all_zero): New static helper.
4688         (timer::child_map_t): New typedef.
4689         (timer::time_var_def): Add children field.
4690         * timevar.c (timer::named_items::print): Adjust.
4691         (timer::~timer): Free timevar recorded children.
4692         (timer::pop_internal): When -ftime-report-details record
4693         time spent in sub-timevars.
4694         (timer::print_row): Adjust.
4695         (timer::print): Print sub-timevar stats, use all_zero.
4696         * timevar.def (TV_TODO): Remove.
4698 2016-08-12  Richard Biener  <rguenther@suse.de>
4700         PR tree-optimization/72851
4701         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4702         worklists to use bitmaps indexed in execution order.
4703         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4704         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4705         (cfg_blocks): Make a bitmap.
4706         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4707         New globals.
4708         (cfg_blocks_empty_p): Adjust.
4709         (cfg_blocks_add): Likewise.
4710         (cfg_blocks_get): Likewise.
4711         (add_ssa_edge): Likewise.
4712         (add_control_edge): Likewise.
4713         (simulate_stmt): Likewise.
4714         (process_ssa_edge_worklist): Likewise.
4715         (simulate_block): Likewise.
4716         (ssa_prop_init): Compute PRE order and stmt UIDs.
4717         (ssa_prop_fini): Adjust.
4718         (ssa_propagate): Adjust.
4720 2016-08-12  Richard Biener  <rguenther@suse.de>
4722         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4723         the currently executable edges have fixed ranges.  Always
4724         go through update_value_range.
4726 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4728         PR debug/63240
4729         * langhooks-def.h
4730         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4731         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4732         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4733         (LANG_HOOKS_DECLS): Add it.
4734         * langhooks.h (struct lang_hooks_for_decls): Add
4735         function_decl_defaulted.  Const_tree-ify
4736         function_decl_explicit_p and function_decl_deleted_p.
4737         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4738         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4739         also at strict DWARF v5.
4741         PR debug/55641
4742         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4743         TYPE_QUAL_CONST in reference-typed decls.
4745         PR debug/49366
4746         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4747         in DW_OP_pieces, just enough to handle pointers to member
4748         functions.
4749         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4750         expression on DWARFv5 if a constant value doesn't work.
4752 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4754         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4755         * selftest.c (selftest::test_assertions): New function.
4756         (selftest::selftest_c_tests): New function.
4757         * selftest.h (selftest::selftest_c_tests): New declaration.
4759 2016-08-11  Richard Biener  <rguenther@suse.de>
4760             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4762         PR rtl-optimization/72855
4763         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4765 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4767         PR target/72863
4768         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4769         (vsx_store_<mode>): Likewise.
4771 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4773         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4774         TImode CONST_WIDE_INT store.
4775         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4777 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4779         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4780         mode if unaligned SSE load and store are optimal.
4782 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4784         PR tree-optimization/71083
4785         * tree-predcom.c (ref_at_iteration): Correctly align the
4786         reference type.
4788 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4790         * config/s390/s390-builtin-types.def: Add INT128 types.
4791         * config/s390/s390-builtins.def: Add INT128 variants for the add
4792         sub low-level builtins dealing with TImode.
4793         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4794         via subreg when expanding a builtin.
4795         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4796         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4797         Fix comment.
4798         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4799         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4800         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4801         "vacc<bhfgq>_<mode>".
4802         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4803         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4804         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4805         "vscbi<bhfgq>_<mode>".
4806         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4807         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4809 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4811         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4813 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4815         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4816         unused declaration.
4817         (vcond<v_cmp_mixed><mode>): Ditto.
4818         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4820 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4822         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4823         variable explicitly, also assert on it before use.
4825 2016-08-11  Richard Biener  <rguenther@suse.de>
4827         PR tree-optimization/72772
4828         * cfgloopmanip.c (create_preheader): Use split_edge if there
4829         is a single loop entry, avoiding degenerate PHIs.
4831 2016-08-11  Richard Biener  <rguenther@suse.de>
4833         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4834         unconditional TODO_cleanup_cfg.
4835         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4836         cleanup only if we threaded a jump.
4838 2016-08-11  Alan Modra  <amodra@gmail.com>
4840         PR target/71680
4841         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4842         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4843         slow.  Emit two reloads for slow mem case, first loading in
4844         fast innermode, then converting to required mode.
4846 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4848         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4849         (vec_extract_sig): New macro.
4850         (vec_insert_exp): New macro.
4851         (vec_test_data_class): New macro.
4852         (scalar_extract_exp): New macro.
4853         (scalar_extract_sig): New macro.
4854         (scalar_insert_exp): New macro.
4855         (scalar_test_data_class): New macro.
4856         (scalar_test_neg): New macro.
4857         (scalar_cmp_exp_gt): New macro.
4858         (scalar_cmp_exp_lt): New macro.
4859         (scalar_cmp_exp_eq): New macro.
4860         (scalar_cmp_exp_unordered): New macro.
4861         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4862         to enforce constraint that operand is a 7-bit unsigned literal.
4863         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4864         for power9 built-ins.
4865         (BU_P9V_VSX_2): Likewise.
4866         (BU_P9V_64BIT_VSX_2): Likewise.
4867         (VSEEDP): Add scalar extract exponent support.
4868         (VSEESP): Add scalar extract signature support.
4869         (VSTDCNDP): Add scalar test negative support.
4870         (VSTDCNSP): Likewise.
4871         (VSIEDP): Add scalar insert exponent support.
4872         (VSCEDPGT): Add scalar compare exponent greater than support.
4873         (VSCEDPLT): Add scalar compare exponent less than support.
4874         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4875         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4876         (VSTDCDP): Add scalar test data class support.
4877         (VSTDCSP): Likewise.
4878         (VSEEDP): Add overload support for scalar extract exponent
4879         operation.
4880         (VSESDP): Add overload support for scalar extract signature
4881         operation.
4882         (VSTDCN): Add overload support for scalar test negative
4883         operation.
4884         (VSTDCNDP): Add overload support for scalar test negative
4885         operation.
4886         (VSTDCNSP): Add overload support for scalar test negative
4887         operation.
4888         (VSIEDP): Add overload support for scalar insert exponent
4889         operation.
4890         (VSTDC): Add overload support for scalar test data class
4891         operation.
4892         (VSTDCDP): Add overload support for scalar test data class
4893         operation.
4894         (VSTDCSP): Add overload support for scalar test data class
4895         opreation.
4896         (VSCEDPGT): Add overload support for scalar compare exponent
4897         greater than operation.
4898         (VSCEDPLT): Add overload support for scalar compare exponent
4899         less than operation.
4900         (VSCEDPEQ): Add overload support for scalar compare exponent
4901         test-for-equality operation.
4902         (VSCEDPUO): Add overload support for scalar compare exponent
4903         test-for-unordered operation.
4904         (VEEDP): Add vector extract exponent support.
4905         (VEESP): Likewise.
4906         (VESDP): Add vector extract significand support.
4907         (VESSP): Likewise.
4908         (VIEDP): Add vector insert exponent support.
4909         (VIESP): Likewise.
4910         (VTDCDP): Add vector test data class support.
4911         (VTDCSP): Likewise.
4912         (VES): Add overload support for vector extract significand operation.
4913         (VESDP): Likewise.
4914         (VESSP): Likewise
4915         (VEE): Add overload support for vector extract exponent operation.
4916         (VEEDP): Likewise.
4917         (VEESP): Likewise.
4918         (VTDC): Add overload support for vector test data class operation.
4919         (VTDCDP): Likewise.
4920         (VTDCSP): Likewise.
4921         (VIE): Add overload support for vector insert exponent operation.
4922         (VIEDP): Likewise.
4923         (VIESP): Likewise.
4924         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4925         overloaded binary floating point functions.
4926         (altivec_resolve_overloaded_builtin): Improve error messages to
4927         distinguish between functions not supported in the current
4928         compiler configuration and functions that were invoked with an
4929         invalid parameter combination, and include the built-in function
4930         name in both error messages.
4931         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4932         New prototype.
4933         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4934         function.
4935         (rs6000_expand_binop_builtin): Add check to enforce that argument
4936         2 of the test data class operations is a 7-bit unsigned literal.
4937         (rs6000_invalid_builtin): Add code to issue an error message if a
4938         built-in function that requires the power9_vector and -m32
4939         command-line options is compiled without these options.
4940         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4941         (UNSPEC_VSX_SXSIGDP): New value.
4942         (UNSPEC_VSX_SXSIGPDP): New value.
4943         (UNSPEC_VSX_SIEXPDP): New value.
4944         (UNSPEC_VSX_SCMPEXPDP): New value.
4945         (UNSPEC_VSX_STSTDC): New value.
4946         (UNSPEC_VSX_VXEXP): New value.
4947         (UNSPEC_VSX_VXSIG): New value.
4948         (UNSPEC_VSX_VIEXP): New value.
4949         (UNSPEC_VSX_VTSTDC): New value.
4950         (xsxexpdp): New insn for scalar extract exponent.
4951         (xsxsigdp): New insn for scalar extract significand.
4952         (xsiexpdp): New insn for scalar insert exponent.
4953         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4954         (*xscmpexpdp): New insn for scalar compare exponents.
4955         (xststdc<Fvsx): New expansion for both single- and
4956         double-precision scalar test data class operations.
4957         (xststdcneg<Fvsx>): New expansion for both single- and
4958         double-precision scalar test for negative value operations.
4959         (*xststdc<Fvsx>): New insn for scalar test data class
4960         operation.
4961         (xvxexp<VSs>): New insn for single- and double-precision
4962         vector extract exponent operation.
4963         (xvxsig<VSs>): New insn for single- and double-precision
4964         vector extract significand operation.
4965         (xviexp<VSs>): New insn for single- and double-precision
4966         vector insert exponent operation.
4967         (xvtstdc<VSs>): New insn for single- and double-precision
4968         vector test data class operation.
4969         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4970         built-in functions to represent the Power9 binary floating-point
4971         support instructions.
4973 2016-08-10  bin cheng  <bin.cheng@arm.com>
4975         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4977 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4978             Renlin Li  <renlin.li@arm.com>
4979             Bin Cheng  <bin.cheng@arm.com>
4981         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4982         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4983         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4984         (aarch64_vcond_internal<mode><mode>): Delete pattern.
4985         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4986         (vcond<v_cmp_result><mode>): Ditto.
4987         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4988         (vcondu<mode><mode>): Ditto.
4989         (vcond<v_cmp_mixed><mode>): New pattern.
4990         (vcondu<mode><v_cmp_mixed>): New pattern.
4991         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4992         of aarch64_vcond_internal.
4994 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4995             Renlin Li  <renlin.li@arm.com>
4996             Bin Cheng  <bin.cheng@arm.com>
4998         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4999         (vec_cmp<mode><v_cmp_result>): New pattern.
5000         (vec_cmpu<mode><mode>): New pattern.
5001         (vcond_mask_<mode><v_cmp_result>): New pattern.
5003 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5005         PR tree-optimization/71734
5006         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5007         REF_LOOP, invoke ref_indep_loop_p_1.
5008         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5009         to ref_indep_loop_p.
5010         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5011         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5012         is inside LOOP, do not cache dpendence value for loops with
5013         non-zero SAFELEN.
5014         (ref_indep_loop_p_2): Delete function.
5015         (can_sm_ref_p): Pass LOOP as additional argument to
5016         ref_indep_loop_p.
5018 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5020         PR target/72853
5021         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5022         being an offsettable address.
5024 2016-08-10  Martin Liska  <mliska@suse.cz>
5026         PR gcov-profile/58306
5027         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5028         atomic variants of profile update functions.
5030 2016-08-10  Martin Liska  <mliska@suse.cz>
5032         Cherry picked (and modified) from google-4_7 branch
5033         2012-12-26  Rong Xu  <xur@google.com>
5034         * common.opt (fprofile-update): Add new flag.
5035         * coretypes.h: Define enum profile_update.
5036         * doc/invoke.texi: Document -fprofile-update.
5037         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5038         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5039         * tree-profile.c (gimple_init_edge_profiler): Generate
5040         also atomic profiler update.
5041         (gimple_gen_edge_profiler): Likewise.
5043 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
5045         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5046         stack_usage_file to NULL after fclose calls.
5048 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5050         PR target/71873
5051         * reload.c (push_reload): Compute subreg_in_class for
5052         subregs of constants and plus expressions. Remove special
5053         handling of SYMBOL_REFs.
5055 2016-08-10  Alan Modra  <amodra@gmail.com>
5057         PR target/71680
5058         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5059         SImode for TARGET_E500_DOUBLE when given SImode.
5061 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
5063         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5064         unused variable __O.
5066 2016-08-09  Martin Liska  <mliska@suse.cz>
5068         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5069         _gcov_reset to __gcov_reset.
5070         * doc/gcov-tool.texi: Fix typo.
5072 2016-08-09  Martin Liska  <mliska@suse.cz>
5074         * value-prof.c (gimple_divmod_values_to_profile): Do not
5075         instrument MOD histogram if a value is not a SSA name.
5077 2016-08-09  Martin Liska  <mliska@suse.cz>
5079         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5080         values.
5082 2016-08-09  Renlin Li  <renlin.li@arm.com>
5084         PR middle-end/64971
5085         * calls.c (prepare_call_address): Convert funexp to Pmode when
5086         necessary.
5087         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
5088         (sibcall_value): Likewise.
5090 2016-08-09  Marek Polacek  <polacek@redhat.com>
5092         PR c/7652
5093         * cselib.c (cselib_expand_value_rtx_1): Add return.
5094         * gengtype.c (dbgprint_count_type_at): Likewise.
5095         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
5096         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
5098 2016-08-09  Martin Jambor  <mjambor@suse.cz>
5100         PR ipa/71981
5101         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
5102         if instance is a MEM_REF.
5104 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
5106         PR target/72843
5107         * config/i386/i386.md (*movtf_internal): Use
5108         lra_in_progress || reload_completed instead of !can_create_pseudo_p
5109         in the insn constraint.
5110         (*movxf_internal): Ditto.
5111         (*movdf_internal): Ditto.
5112         (*movsf_internal): Ditto.
5114 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5116         PR tree-optimization/72772
5117         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5118         for expanded base.
5120 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5122         PR tree-optimization/72772
5123         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
5124         parameter STOP.
5125         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
5126         parameter STOP and update calls.  Move expand_simple_operations
5127         function call from here...
5128         (simplify_using_initial_conditions): ...to here.  Delete parameter
5129         STOP.
5130         (tree_simplify_using_condition): Delete parameter STOP.
5131         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
5132         simplify_using_initial_conditions.
5134 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
5136         PR c/65345
5137         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
5138         Use create_tmp_var_raw instead of create_tmp_var.
5140 2016-08-09  Richard Biener  <rguenther@suse.de>
5142         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
5143         Treat same SSA names related.
5145 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
5147         PR tree-optimization/72824
5148         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
5149         real_zerop is not negative.
5151 2016-08-09  Richard Biener  <rguenther@suse.de>
5153         PR tree-optimization/71802
5154         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
5155         all merge opportunities with the predecessor.
5157 2016-08-09  Richard Biener  <rguenther@suse.de>
5159         PR ipa/68273
5160         * ipa-prop.c (ipa_modify_formal_parameters): Build
5161         parameter types with natural alignment also for the
5162         over-aligned case.
5164 2016-08-08  Andi Kleen  <ak@linux.intel.com>
5166         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5168 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5170         PR c/64955
5171         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5172         do-nothing langhook.
5173         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5174         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5175         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5176         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5178 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5180         PR bootstrap/72844
5181         * input.c: Ensure that HAVE_ICONV is defined.
5183 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5185         PR middle-end/72781
5186         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5187         private vars for lastprivate and for linear iterator.
5189         PR middle-end/68762
5190         * omp-simd-clone.c: Include varasm.h.
5191         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5192         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5193         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
5194         update function name.
5196 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5198         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5199         (avr_diagnose_devicespecs_error): Remove.
5200         (avr_devicespecs_file): Remove composing absolute path for specfile
5201         and its verbose info. Remove conditions to check specs-file,
5203 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5205         PR rtl-optimization/72821
5206         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5207         just return false for them.
5209 2016-08-08  Alan Modra  <amodra@gmail.com>
5211         PR target/72771
5212         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5213         toc refs created during reload.  Update function comment.
5215 2016-08-08  Alan Modra  <amodra@gmail.com>
5217         PR target/72802
5218         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5219         alternatives.  Put loads first, then stores, and reg/reg moves
5220         within same class later.  Delete attr length.
5222 2016-08-08  Alan Modra  <amodra@gmail.com>
5224         PR target/72802
5225         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
5226         (mem_operand_ds_form): New predicate.
5227         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
5228         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
5229         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
5230         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
5231         (extendsfdf2_fpr): Replace o constraint with wY.
5233 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
5235         * tree-ssa-threadbackward.c: Include tree-inline.h
5236         (profitable_jump_thread_path): Use estimate_num_insns to estimate
5237         size of copied block; for cold paths reduce duplication.
5238         (find_jump_threads_backwards): Remove redundant tests.
5239         (pass_thread_jumps::gate): Enable for -Os.
5241 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
5243         PR c/72816
5244         * stor-layout.c (layout_decl): Fix up formatting.
5245         (relayout_decl): Allow DECL to be FIELD_DECL.
5247 2016-08-07  Alan Modra  <amodra@gmail.com>
5249         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
5251 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5253         * data-streamer-in.c (streamer_read_wide_int): New.
5254         (streamer_read_widest_int): Renamed function.
5255         * data-streamer-out.c (streamer_write_wide_int): New
5256         (streamer_write_widest_int): Renamed function.
5257         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
5258         data-stream-in.c.
5259         (input_cfg): Call renamed function.
5260         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
5261         data-stream-out.c.
5262         (output_cfg): Call renamed function.
5263         * data-streamer.h: Add declarations.
5265 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5267         * tree-ssa-ccp.c (extend_mask): New param sgn.
5268         Remove ORing with wi::mask.
5269         (get_default_value): Adjust call to extend_mask to pass sign.
5270         (evaluate_stmt): Likewise.
5272 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
5274         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
5275         INT64_MAX.
5277 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5279         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
5280         transform if operand's type is pointer to function or method.
5282 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5284         PR tree-optimization/18046
5285         * tree-ssa-threadedge.c: Include cfganal.h.
5286         (simplify_control_statement_condition): If simplifying a
5287         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
5288         with the dominating ASSERT_EXPR before handing it off to VRP.
5289         Mention that a CASE_LABEL_EXPR may be returned.
5290         (thread_around_empty_blocks): Adjust to handle
5291         simplify_control_statement_condition() returning a
5292         CASE_LABEL_EXPR.
5293         (thread_through_normal_block): Likewise.
5294         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
5295         a switch statement by trying to determine which case label
5296         will be taken.
5298 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
5300         PR rtl-optimization/69847
5301         * lra-constraints.c (process_invariant_for_inheritance): Save
5302         pattern instead of src.
5303         (remove_inheritance_pseudos): Use the pattern.  Add assert.
5305 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
5307         * input.c (string_concat::string_concat): New constructor.
5308         (string_concat_db::string_concat_db): New constructor.
5309         (string_concat_db::record_string_concatenation): New method.
5310         (string_concat_db::get_string_concatenation): New method.
5311         (string_concat_db::get_key_loc): New method.
5312         (class auto_cpp_string_vec): New class.
5313         (get_substring_ranges_for_loc): New function.
5314         (get_source_range_for_substring): New function.
5315         (get_num_source_ranges_for_substring): New function.
5316         (class selftest::lexer_test_options): New class.
5317         (struct selftest::lexer_test): New struct.
5318         (class selftest::ebcdic_execution_charset): New class.
5319         (selftest::ebcdic_execution_charset::s_singleton): New variable.
5320         (selftest::lexer_test::lexer_test): New constructor.
5321         (selftest::lexer_test::~lexer_test): New destructor.
5322         (selftest::lexer_test::get_token): New method.
5323         (selftest::assert_char_at_range): New function.
5324         (ASSERT_CHAR_AT_RANGE): New macro.
5325         (selftest::assert_num_substring_ranges): New function.
5326         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
5327         (selftest::assert_has_no_substring_ranges): New function.
5328         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
5329         (selftest::test_lexer_string_locations_simple): New function.
5330         (selftest::test_lexer_string_locations_ebcdic): New function.
5331         (selftest::test_lexer_string_locations_hex): New function.
5332         (selftest::test_lexer_string_locations_oct): New function.
5333         (selftest::test_lexer_string_locations_letter_escape_1): New function.
5334         (selftest::test_lexer_string_locations_letter_escape_2): New function.
5335         (selftest::test_lexer_string_locations_ucn4): New function.
5336         (selftest::test_lexer_string_locations_ucn8): New function.
5337         (selftest::uint32_from_big_endian): New function.
5338         (selftest::test_lexer_string_locations_wide_string): New function.
5339         (selftest::uint16_from_big_endian): New function.
5340         (selftest::test_lexer_string_locations_string16): New function.
5341         (selftest::test_lexer_string_locations_string32): New function.
5342         (selftest::test_lexer_string_locations_u8): New function.
5343         (selftest::test_lexer_string_locations_utf8_source): New function.
5344         (selftest::test_lexer_string_locations_concatenation_1): New
5345         function.
5346         (selftest::test_lexer_string_locations_concatenation_2): New
5347         function.
5348         (selftest::test_lexer_string_locations_concatenation_3): New
5349         function.
5350         (selftest::test_lexer_string_locations_macro): New function.
5351         (selftest::test_lexer_string_locations_stringified_macro_argument):
5352         New function.
5353         (selftest::test_lexer_string_locations_non_string): New function.
5354         (selftest::test_lexer_string_locations_long_line): New function.
5355         (selftest::test_lexer_char_constants): New function.
5356         (selftest::input_c_tests): Call the new test functions once per
5357         case within the line_table test matrix.
5358         * input.h (struct string_concat): New struct.
5359         (struct location_hash): New struct.
5360         (class string_concat_db): New class.
5361         * substring-locations.h: New header.
5363 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5365         PR tree-optimization/72810
5366         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
5367         the type of the case labels when truncating.
5369 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
5371         PR Target/72819
5372         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
5373         (aarch64_fp16_ptr_type_node): Likewise.
5374         * config/aarch64/aarch64-simd-builtins.c
5375         (aarch64_fp16_ptr_type_node): Define.
5376         (aarch64_init_fp16_types): New, refactored out of...
5377         (aarch64_init_builtins): ...here, update to call
5378         aarch64_init_fp16_types.
5379         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
5380         HFmode.
5381         (aapcs_vfp_sub_candidate): Likewise.
5383 2016-08-05  Martin Liska  <mliska@suse.cz>
5384             Joshua Cranmer  <Pidgeot18@gmail.com>
5386         * gcov.c (line_t::has_block): New function.
5387         (enum loop_type): New enum.
5388         (handle_cycle): New function.
5389         (unblock): Likewise.
5390         (circuit): Likewise.
5391         (get_cycles_count): Likewise.
5392         (accumulate_line_counts): Use new loop detection algorithm.
5394 2016-08-05  Martin Liska  <mliska@suse.cz>
5396         * gcov.c (output_intermediate_file): Rename
5397         function_info::line_next to next_file_fn.
5398         (process_file): Likewise.
5399         (read_graph_file): Likewise.
5400         (accumulate_line_counts): Likewise.
5401         (output_lines): Likewise.
5403 2016-08-05  Richard Biener  <rguenther@suse.de>
5405         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
5406         restriction on threading to a loop header.
5408 2016-08-05  Richard Biener  <rguenther@suse.de>
5410         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
5411         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
5412         adjust loop info accordingly.
5414 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
5416         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
5417         before folding call to __builtin_constant_p with parameters to false.
5419 2016-08-05  Alan Modra  <amodra@gmail.com>
5421         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
5422         code accidentally committed 2016-05-02 providing class when given
5423         NO_REGS.
5425 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5427         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
5428         the case label ranges that partially overlap with OP's value
5429         range.
5431 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
5433         PR target/72805
5434         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
5435         Cast builtin function result to __mmask16 instead of __mmask8.
5436         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5437         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
5438         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5440 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
5442         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
5443         (ASSERT_TRUE_AT): New macro.
5444         (ASSERT_FALSE): Reimplement in terms of...
5445         (ASSERT_FALSE_AT): New macro.
5446         (ASSERT_STREQ_AT): Fix typo in comment.
5448 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5450         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
5451         labels are exhaustive, designate the label with the widest
5452         range to be the default label.
5454 2016-08-04  Andrew Pinski  <apinski@cavium.com>
5456         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5457         (thunderx_tunings): Use thunderx_vector_cost instead of
5458         generic_vector_cost.
5460 2016-08-04  Martin Liska  <mliska@suse.cz>
5462         * gcov.c (main): Fix GNU coding style.
5463         (output_intermediate_file): Likewise.
5464         (process_file): Likewise.
5465         (generate_results): Likewise.
5466         (release_structures): Likewise.
5467         (create_file_names): Likewise.
5468         (find_source): Likewise.
5469         (read_graph_file): Likewise.
5470         (find_exception_blocks): Likewise.
5471         (canonicalize_name): Likewise.
5472         (make_gcov_file_name): Likewise.
5473         (mangle_name): Likewise.
5474         (accumulate_line_counts): Likewise.
5475         (output_branch_count): Likewise.
5476         (read_line): Likewise.
5478 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5480         PR rtl-optimization/71779
5481         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5482         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5483         or if it was truncated.
5485         PR rtl-optimization/70903
5486         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5488 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5490         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5491         accessing SSA_NAME_PTR_INFO.
5493 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5495         PR 70677
5496         * common/config/avr/avr-common.c (avr_option_optimization_table)
5497         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5499 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5501         PR 55181
5502         * config/avr/avr.md: New pattern to work around do_store_flag
5503         generating shift instructions for bit extractions.
5505 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5507         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5508         BITMAP_ALLOC.
5509         (add_equivalence): Likewise.
5510         (get_value_range): Allocate value range with vrp_value_range_pool.
5511         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5512         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5514 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5516         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5517         the default for the rs6000 port.
5519 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5521         PR middle-end/71876
5522         * calls.c (special_function_p): Remove special handling of
5523         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5524         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5525         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5527 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5529         PR middle-end/72778
5530         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5531         Don't stop on regular insns.
5533 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5535         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5536         size to DImode boundary.
5537         (nvptx_propagate): Likewise.
5539 2016-08-03  Alan Modra  <amodra@gmail.com>
5541         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5542         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5543         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5544         from -mefficient-unaligned-vector.  Note that this affects fp too.
5546 2016-08-03  Alan Modra  <amodra@gmail.com>
5548         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5549         cost more.
5551 2016-08-03  Alan Modra  <amodra@gmail.com>
5553         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5554         to a reg.  Localize vars.
5556 2016-08-03  Alan Modra  <amodra@gmail.com>
5558         * config/rs6000/rs6000.opt: Remove negatives from help strings
5559         and comments.
5561 2016-08-03  Alan Modra  <amodra@gmail.com>
5563         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5564         Delete duplicated code.
5566 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5568         PR middle-end/72778
5569         * lra-spills.c (regno_in_use_p): New.
5570         (lra_final_code_change): Use it.
5572 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5574         PR rtl-optimization/69847
5575         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5576         restore_regno.
5577         (lra_rtx_hash): New.
5578         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5579         of restore_regno.
5580         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5581         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5582         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5583         next insn is USE with the same reg as the current insn source.
5584         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5585         of restore_regno.
5586         (lra_constraints_init): Call initiate_invariants.
5587         (lra_constraints_finish): Call finish_invariants.
5588         (struct invariant, invariant_t, invariant_ptr_t): New.
5589         (const_invariant_ptr_t, invariants, invariants_pool): New.
5590         (invariant_table, invariant_hash, invariant_eq_p): New.
5591         (insert_invariant, initiate_invariants, finish_invariants): New.
5592         (clear_invariants, invalid_invariant_regs): New.
5593         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5594         instead of restore_regno.
5595         (invariant_p, process_invariant_for_inheritance): New.
5596         (inherit_in_ebb): Implement invariant inheritance.
5597         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5598         (remove_inheritance_pseudos): Implement undoing invariant
5599         inheritance.
5600         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5601         instead of restore_regno.
5602         * lra-assigns.c (regno_live_length): New.
5603         (reload_pseudo_compare_func): Use regno_live_length.
5604         (assign_by_spills): Use restore_rtx instead of restore_regno.
5605         (lra_assign): Ditto.  Initiate regno_live_length.
5607 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5609         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5610         __builtin_aarch64_fmindf.
5612 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5614         PR tree-optimization/34114
5615         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5616         information for more control IVs.
5618 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5620         PR tree-optimization/34114
5621         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5622         PLUS_EXPR case.  Handle SSA_NAME case.
5624 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5626         * config/aarch64/aarch64-simd-builtins.def
5627         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5628         (__builtin_aarch64_fmaxdf): Likewise.
5629         (__builtin_aarch64_smin_nandf): Likewise.
5630         (__builtin_aarch64_smax_nandf): Likewise.
5631         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5632         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5633         (<fmaxmin><mode>3): ...this.
5634         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5635         (vminnm_f64): Likewise.
5636         (vmin_f64): Likewise.
5637         (vmax_f64): Likewise.
5638         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5639         (FMAXMIN_UNS): ...this.
5640         (fmaxmin): Merged with
5641         (fmaxmin_op): ...this...
5642         (maxmin_uns_op): ...in to this.
5644 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5646         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5647         Add support for vec_extract on vector float, vector int, vector
5648         short, and vector char vector types.
5649         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5650         vector float, vector int, vector short, and vector char
5651         optimizations on 64-bit ISA 2.07 systems for both constant and
5652         variable element numbers.
5653         (rs6000_split_vec_extract_var): Likewise.
5654         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5655         Altivec registers on ISA 2.07 and above.
5656         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5657         which never was matched due to the split occuring before register
5658         allocation (and the code would not have worked on little endian
5659         systems if it did match).  Allow extracts to go to the Altivec
5660         registers if ISA 2.07 (power8).  Change from using "" around the
5661         C++ code to using {}'s.
5662         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5663         vec_extracts when the vector is in memory.
5664         (vsx_extract_v4sf_var): New insn to optimize vector float
5665         vec_extracts when the element number is variable on 64-bit ISA
5666         2.07 systems.
5667         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5668         for 64-bit ISA 2.07 as well as ISA 3.0.
5669         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5670         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5671         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5672         optimize vector int, vector short, and vector char vec_extracts
5673         when the vector is in memory.
5674         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5675         optimize vector int, vector short, and vector char vec_extracts
5676         when the element number is variable.
5678 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5680         PR target/71948
5681         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5682         does not overlap with other symbol flags.
5684 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5686         * config/aarch64/aarch64.h (aarch64_frame):
5687         Remove padding0 and hardfp_offset.  Add locals_offset,
5688         initial_adjust, callee_adjust, callee_offset and final_adjust.
5689         * config/aarch64/aarch64.c (aarch64_layout_frame):
5690         Remove unused padding0 and hardfp_offset initializations.
5691         Choose frame layout and set frame variables accordingly.
5692         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5693         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5694         (aarch64_pop_regs): Likewise.
5695         (aarch64_expand_prologue): Remove all decision code, just emit
5696         prolog according to frame variables.
5697         (aarch64_expand_epilogue): Remove all decision code, just emit
5698         epilog according to frame variables.
5699         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5701 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5703         PR target/72748
5704         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5705         fix_debug_reg_uses after changing source register mode to
5706         V1TImode if source register is undefined.
5708 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5710         PR tree-optimization/71818
5711         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5712         with non invariant evolutions
5714 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5716         PR target/72767
5717         * config/avr/avr.md (length) [branch]: Correct insn length
5718         attribute for forward branches.
5720 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5722         * doc/extend.texi (AVR Built-in Functions): Document
5723         __builtin_avr_nops.
5724         * config/avr/builtins.def (NOPS): New.
5725         * config/avr/avr.c (avr_expand_nops): New static function.
5726         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5728 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5730         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5731         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5732         addresses.
5734 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5736         * config/aarch64/aarch64.c (vulcan_tunings): Update
5737         vulcan L1 cache_line_size.
5739 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5741         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5742         function that takes a vector memory address, a hard register, an
5743         element number and a temporary base register, and recreates an
5744         address that points to the appropriate element within the vector.
5745         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5746         (rs6000_split_vec_extract_var): Add support for the target of a
5747         vec_extract with variable element number being a scalar memory
5748         location.
5749         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5750         swappable.
5751         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5752         vsx_extract_<mode>_load insn with a new insn that optimizes
5753         storing either element to a memory location, using scratch
5754         registers to pick apart the vector and reconstruct the address.
5755         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5756         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5757         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5758         store instruction.
5759         (vsx_extract_<mode>_var): Add support for extracting a variable
5760         element number from memory.
5762 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5764         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5765         when testing for compares against constants of the form 0xabab.
5767 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5769         PR tree-optimization/57558
5770         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5771         function.
5772         (vect_loop_versioning): Support versioning with niter assumptions.
5773         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5774         (vect_get_loop_niters): New parameter.  Reimplement to support
5775         assumptions in loop niter info.
5776         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5777         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5778         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5779         Support loop versioning for niters.
5780         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5781         (vect_free_loop_info_assumptions): New function.
5782         (vectorize_loops): Free loop niter info for loops with flag
5783         LOOP_F_ASSUMPTIONS set if vectorization failed.
5784         * tree-vectorizer.h (struct _loop_vec_info): New field
5785         num_iters_assumptions.
5786         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5787         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5788         (LOOP_REQUIRES_VERSIONING): New macro.
5789         (vect_free_loop_info_assumptions): New decl.
5791 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5793         * cfgloop.h (struct loop): New field constraints.
5794         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5795         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5796         functions.
5797         * cfgloop.c (alloc_loop): Initialize new field.
5798         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5799         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5800         Adjust niter analysis wrto loop constraints.
5801         * doc/loop.texi (@node Number of iterations): Add description for loop
5802         constraints.
5804 2016-07-29  Marek Polacek  <polacek@redhat.com>
5806         PR c/7652
5807         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5808         (ix86_expand_round_builtin): Likewise.
5810 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5811             Georg-Johann Lay  <avr@gjlay.de>
5813         PR rtl-optimization/71976
5814         * combine.c (get_last_value): Return 0 if the argument for which
5815         the function is called has a wider mode than the recorded value.
5817 2016-07-29  Marek Polacek  <polacek@redhat.com>
5819         PR c/7652
5820         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5821         (altivec_expand_st_builtin): Likewise.
5823 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5825         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5826         introduced in r238381.
5828 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5830         PR middle-end/68217
5831         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5832         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5834 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5836         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5837         New declaration.
5838         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5839         Add support for vec_extract of vector double or vector long having
5840         a variable element number on 64-bit ISA 2.07 systems or newer.
5841         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5842         Likewise.
5843         (rs6000_split_vec_extract_var): New function to split a
5844         vec_extract built-in function with variable element number.
5845         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5846         swappable.
5847         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5848         (UNSPEC_VSX_EXTRACT): Likewise.
5849         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5850         direct move instructions to be generated on 64-bit ISA 2.07
5851         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5852         instruction.
5853         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5854         arguments for vec_extract variable element.
5855         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5856         vec_extract with variable element on V2DFmode and V2DImode
5857         vectors.
5858         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5859         -mupper-regs-df requirement, since it isn't needed.
5860         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5861         do direct moves on 64-bit systems, which allows optimization of
5862         vec_extract on 64-bit ISA 2.07 systems and newer.
5864 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5865 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5867          * config/aarch64/aarch64.md
5868         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5869         statement and type.
5870         (<optab>qihi2_aarch64): Likewise, and split into two.
5871         (extendqihi2_aarch64): New.
5872         (zero_extendqihi2_aarch64): New.
5873         * config/aarch64/iterators.md (ldrxt): Remove.
5874         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5875         uxtb/uxth.
5877 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5879         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5881 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5883         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5884         (aarch64_push_reg): New function to push 1 or 2 registers.
5885         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5886         (aarch64_expand_prologue): Use aarch64_push_regs.
5887         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5889 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5891         PR tree-optimization/71734
5892         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5893         attribute instead of REF_LOOP and use it.
5894         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5895         set it for Loops having non-zero safelen attribute.
5896         (ref_indep_loop_p): Pass zero as initial value for safelen.
5898 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5900         PR middle-end/72657
5901         PR target/72683
5902         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5903         call using chkp_gimple_call_builtin_p.
5904         (chkp_copy_bounds_for_assign): Likewise.
5906 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5908         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5909         * config/arm/arm-protos.h (struct tune_params): Likewise.
5910         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5911         (cortex_a9_sched_adjust_cost): Likewise.
5912         (fa726te_sched_adjust_cost): Likewise.
5913         (arm_adjust_cost): Likewise.
5914         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5915         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5916         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5917         * config/i386/i386.c (ix86_adjust_cost): Likewise.
5918         * config/ia64/ia64.c: Likewise.
5919         * config/m68k/m68k.c: Likewise.
5920         * config/mep/mep.c (mep_adjust_cost): Likewise.
5921         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5922         * Likewise.
5923         * config/mips/mips.c (mips_adjust_cost): Likewise.
5924         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5925         * Likewise.
5926         * config/pa/pa.c (pa_adjust_cost): Likewise.
5927         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5928         (rs6000_debug_adjust_cost): Likewise.
5929         * config/sh/sh.c (sh_adjust_cost): Likewise.
5930         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5931         (hypersparc_adjust_cost): Likewise.
5932         (sparc_adjust_cost): Likewise.
5933         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5934         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5935         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5936         * Likewise.
5937         * config/visium/visium.c (visium_adjust_cost): Likewise.
5938         * doc/tm.texi: Regenerate.
5939         * haifa-sched.c (dep_cost_1): Adjust.
5940         * target.def: Merge adjust_cost and adjust_cost_2.
5942 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5944         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5946 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5948         * store-motion.c (struct st_expr): Make pattern_regs a vector.
5949         (extract_mentioned_regs): Append to a vector instead of
5950         returning a rtx_expr_list.
5951         (st_expr_entry): Adjust.
5952         (free_st_expr_entry): Likewise.
5953         (store_ops_ok): Likewise.
5954         (store_killed_in_insn): Likewise.
5955         (find_moveable_store): Likewise.
5957 2016-07-28  Martin Liska  <mliska@suse.cz>
5959         PR gcov-profile/68025
5960         * tree-profile.c (tree_profiling): Respect
5961         no_profile_instrument_function attribute.
5962         * doc/extend.texi: Document no_profile_instrument_function
5963         attribute.
5965 2016-07-28  Martin Liska  <mliska@suse.cz>
5967         PR rtl-optimization/70944
5968         * combine.c (make_compound_operation):
5969         Do not allow make_compound_operation for vector mode
5971 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
5973         PR middle-end/71994
5974         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5975          before calling get_ops.
5977 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5979         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5980         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5981         (BITS_PER_UNIT_LOG): Remove.
5982         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5983         * expr.c (expand_assignment): Likewise.
5984         * stor-layout.c (initialize_sizetypes): Likewise.
5986 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5988         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5989         signature of rs6000_expand_vector_extract so that the element
5990         number is a RTX instead of a constant integer.
5991         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5992         Likewise.
5993         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5994         (altivec_expand_vec_ext_builtin): Likewise.
5995         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5996         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5997         MFVSRLD instruction.
5999 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6001         * input.c (get_pure_location): Move here from tree.c.
6002         (make_location): Likewise.  Add header comment.
6003         (selftest::test_accessing_ordinary_linemaps): Verify
6004         pure_location_p, make_location, get_location_from_adhoc_loc and
6005         get_range_from_loc.
6006         * input.h (get_pure_location): Move declaration here from tree.h.
6007         (get_finish): Likewise for inline function.
6008         (make_location): Likewise for declaration.
6009         * tree.c (get_pure_location): Move to input.c.
6010         (make_location): Likewise.
6011         * tree.h (get_pure_location): Move declaration to tree.h.
6012         (get_finish): Likewise for inline function.
6013         (make_location): Likewise for declaration.
6015 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6017         PR middle-end/71078
6018         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6020 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6022         * system.h (STATIC_ASSERT): Use static_assert if building
6023         with C++11 onwards.
6025 2016-07-27  Richard Biener  <rguenther@suse.de>
6027         PR tree-optimization/72517
6028         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6029         Revert change to not compute read-read dependences.
6031 2016-07-27  Richard Biener  <rguenther@suse.de>
6033         * predict.c (set_even_probabilities): Make nedges unsigned.
6035 2016-07-27  Martin Liska  <mliska@suse.cz>
6037         * predict.c (set_even_probabilities): Handle unlikely edges.
6038         (combine_predictions_for_bb): Likewise.
6040 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6042         PR target/71869
6043         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6044         __float128 support when we don't have hardware support, so that
6045         the IEEE built-in functions like isgreater, first call __unordkf3
6046         to make sure neither operand is a NaN, and if both operands are
6047         ordered, do the normal comparison.
6049 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6051         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6052         name.
6053         (extract_code_and_val_from_cond_with_ops): Verify that name is
6054         either cond_op0 or cond_op1.
6056 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6058         PR tree-optimization/18046
6059         * genmodes.c (emit_mode_size_inline): Emit an assert that
6060         verifies that mode is a valid array index.
6061         (emit_mode_nuinits_inline): Likewise.
6062         (emit_mode_inner_inline): Likewise.
6063         (emit_mode_unit_size_inline): Likewise.
6064         (emit_mode_unit_precision_inline): Likewise.
6065         * tree-vrp.c: Include params.h.
6066         (find_switch_asserts): Register edge assertions for the default
6067         label which correspond to the anti-ranges of each case label.
6068         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6069         * doc/invoke.texi: Document it.
6071 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6073         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6074         and unnecessary call to gimple_bb.
6076 2016-07-26  Richard Biener  <rguenther@suse.de>
6078         PR rtl-optimization/71984
6079         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6080         for VOIDmode.
6082 2016-07-26  Richard Biener  <rguenther@suse.de>
6084         PR middle-end/72517
6085         * expmed.c (extract_bit_field_1): Constrain the vector mode
6086         with element size matching the extraction mode size when
6087         choosing a better vector mode to do the extraction from.
6089 2016-07-26  Richard Biener  <rguenther@suse.de>
6090             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6092         PR middle-end/70920
6093         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
6094         pattern.
6096 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6098         * tree-ssa-structalias.c (struct scc_info): Change types of
6099         members to auto_sbitmap and auto_vec.
6100         (scc_info::scc_info): New constructor.
6101         (scc_info::~scc_info): New destructor.
6102         (init_scc_info): Remove.
6103         (free_scc_info): Remove.
6104         (find_indirect_cycles): Adjust.
6105         (perform_var_substitution): Likewise.
6106         (free_var_substitution_info): Likewise.
6108 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6110         * tree-outof-ssa.c (struct elim_graph): Change type of members
6111         to auto_vec and auto_sbitmap.
6112         (elim_graph::elim_graph): New constructor.
6113         (delete_elim_graph): Remove.
6114         (expand_phi_nodes): Adjust.
6116 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6118         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
6119         (new_elim_graph): Adjust.
6120         (clear_elim_graph): Likewise.
6121         (delete_elim_graph): Likewise.
6122         (elim_graph_size): Likewise.
6123         (elim_graph_add_node): Likewise.
6124         (elim_graph_add_edge): Likewise.
6125         (elim_graph_remove_succ_edge): Likewise.
6126         (eliminate_name): Likewise.
6127         (eliminate_build): Likewise.
6128         (elim_forward): Likewise.
6129         (elim_unvisited_predecessor): Likewise.
6130         (elim_backward): Likewise.
6131         (elim_create): Likewise.
6132         (eliminate_phi): Likewise.
6133         (expand_phi_nodes): Likewise.
6135 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6137         * bt-load.c (compute_out): Use auto_sbitmap class.
6138         (link_btr_uses): Likewise.
6139         * cfganal.c (mark_dfs_back_edges): Likewise.
6140         (post_order_compute): Likewise.
6141         (inverted_post_order_compute): Likewise.
6142         (pre_and_rev_post_order_compute_fn): Likewise.
6143         (single_pred_before_succ_order): Likewise.
6144         * cfgexpand.c (pass_expand::execute): Likewise.
6145         * cfgloop.c (verify_loop_structure): Likewise.
6146         * cfgloopmanip.c (fix_bb_placements): Likewise.
6147         (remove_path): Likewise.
6148         (update_dominators_in_loop): Likewise.
6149         * cfgrtl.c (break_superblocks): Likewise.
6150         * ddg.c (check_sccs): Likewise.
6151         (create_ddg_all_sccs): Likewise.
6152         * df-core.c (df_worklist_dataflow): Likewise.
6153         * dse.c (dse_step3): Likewise.
6154         * except.c (eh_region_outermost): Likewise.
6155         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6156         * gcse.c (prune_expressions): Likewise.
6157         (prune_insertions_deletions): Likewise.
6158         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
6159         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6160         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
6161         * lcm.c (compute_earliest): Likewise.
6162         (compute_farthest): Likewise.
6163         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6164         (unroll_loop_runtime_iterations): Likewise.
6165         (unroll_loop_stupid): Likewise.
6166         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6167         * lra-lives.c: Likewise.
6168         * lra.c (lra): Likewise.
6169         * modulo-sched.c (schedule_reg_moves): Likewise.
6170         (optimize_sc): Likewise.
6171         (get_sched_window): Likewise.
6172         (sms_schedule_by_order): Likewise.
6173         (check_nodes_order): Likewise.
6174         (order_nodes_of_sccs): Likewise.
6175         (order_nodes_in_scc): Likewise.
6176         * recog.c (split_all_insns): Likewise.
6177         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6178         * reload1.c (reload): Likewise.
6179         * sched-rgn.c (haifa_find_rgns): Likewise.
6180         (split_edges): Likewise.
6181         (compute_trg_info): Likewise.
6182         * sel-sched.c (init_seqno): Likewise.
6183         * store-motion.c (remove_reachable_equiv_notes): Likewise.
6184         * tree-into-ssa.c (update_ssa): Likewise.
6185         * tree-ssa-live.c (live_worklist): Likewise.
6186         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6187         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6188         * Likewise.
6189         (try_peel_loop): Likewise.
6190         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6191         * Likewise.
6192         * tree-ssa-pre.c (compute_antic): Likewise.
6193         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6194         * tree-stdarg.c (reachable_at_most_once): Likewise.
6195         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6196         * var-tracking.c (vt_find_locations): Likewise.
6198 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6200         * sbitmap.h (auto_sbitmap): New class.
6202 2016-07-26  Alan Modra  <amodra@gmail.com>
6204         PR target/72103
6205         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6206         sri->t_icode.
6208 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
6210         * input.c (selftest::temp_source_file::temp_source_file): Fix
6211         missing "%s" in fprintf.
6213 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
6215         PR middle-end/71732
6216         * cselib.c (cselib_process_insn): Invalidate argument slots for
6217         const/pure calls.
6219 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6221         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6222         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6223         vmulxh_lane_f16, vmulxh_laneq_f16): New.
6225 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6227         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6228         * config/aarch64/aarch64.md (fma, fnma): Support HF.
6229         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
6231 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6233         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6234         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
6235         New.
6236         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
6237         (add<mode>3): Likewise.
6238         (sub<mode>3): Likewise.
6239         (mul<mode>3): Likewise.
6240         (div<mode>3): Likewise.
6241         (*div<mode>3): Likewise.
6242         (<fmaxmin><mode>3): Extend to HF.
6243         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
6244         (fabd<mode>3): Likewise.
6245         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
6246         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
6247         (aarch64_fmulx<mode>): Likewise.
6248         (aarch64_fac<optab><mode>): Likewise.
6249         (aarch64_frecps<mode>): Likewise.
6250         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
6251         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
6252         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
6253         (VSDQ_HSDI): Support HI.
6254         (fcvt_target, FCVT_TARGET): Likewise.
6255         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
6256         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
6257         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
6258         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
6259         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
6260         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
6261         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
6262         vrsqrtsh_f16): New.
6264 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6266         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
6267         * config/aarch64/aarch64-builtins.c (hi_UP): New.
6268         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6269         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
6270         mode.
6271         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
6272         (aarch64_cm<optab><mode>): Likewise.
6273         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
6274         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
6275         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6276         (sqrt<mode>2): Likewise.
6277         (*sqrt<mode>2): Likewise.
6278         (abs<mode>2): Likewise.
6279         (<optab><mode>hf2): New pattern for HF mode.
6280         (<optab>hihf2): Likewise.
6281         * config/aarch64/arm_neon.h: Include arm_fp16.h.
6282         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
6283         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
6284         Support HF mode.
6285         * config/aarch64/arm_fp16.h: New file.
6286         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
6287         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
6288         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
6289         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
6290         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
6291         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
6292         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
6293         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
6294         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
6295         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
6296         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
6297         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
6298         vsqrth_f16): New.
6300 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6302         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
6303         reduc_smin_scal_): Use VDQIF_F16.
6304         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
6305         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
6306         Use VHSDF.
6307         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
6308         * config/aarch64/iterators.md (VDQIF_F16): New.
6309         (vp): Support HF modes.
6310         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
6311         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
6313 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6315         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
6316         "*aarch64_mulx_elt_from_dup<mode>".
6317         (*aarch64_mul3_elt<mode>): Update schedule type.
6318         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
6319         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
6320         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6321         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
6322         (f, fp): Support HF modes.
6323         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
6324         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
6325         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
6326         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
6327         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
6328         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
6330 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6332         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6333         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
6334         modes.
6335         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
6336         vfmsq_f16): New.
6338 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6340         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6341         * config/aarch64/aarch64-simd.md
6342         (aarch64_rsqrts<mode>): Extend to HF modes.
6343         (fabd<mode>3): Likewise.
6344         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
6345         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
6346         (aarch64_<maxmin_uns>p<mode>): Likewise.
6347         (<su><maxmin><mode>3): Likewise.
6348         (<maxmin_uns><mode>3): Likewise.
6349         (<fmaxmin><mode>3): Likewise.
6350         (aarch64_faddp<mode>): Likewise.
6351         (aarch64_fmulx<mode>): Likewise.
6352         (aarch64_frecps<mode>): Likewise.
6353         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
6354         (add<mode>3): Extend to HF modes.
6355         (sub<mode>3): Likewise.
6356         (mul<mode>3): Likewise.
6357         (div<mode>3): Likewise.
6358         (*div<mode>3): Likewise.
6359         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
6360         HF, V4HF and V8HF.
6361         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
6362         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
6363         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
6364         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
6365         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
6366         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
6367         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
6368         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
6369         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
6370         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
6371         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
6372         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
6373         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
6374         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
6376 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6378         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
6379         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6380         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
6381         (neg<mode>2): Likewise.
6382         (abs<mode>2): Likewise.
6383         (<frint_pattern><mode>2): Likewise.
6384         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
6385         (<optab><VDQF:mode><fcvt_target>2): Likewise.
6386         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
6387         (ftrunc<VDQF:mode>2): Likewise.
6388         (<optab><fcvt_target><VDQF:mode>2): Likewise.
6389         (sqrt<mode>2): Likewise.
6390         (*sqrt<mode>2): Likewise.
6391         (aarch64_frecpe<mode>): Likewise.
6392         (aarch64_cm<optab><mode>): Likewise.
6393         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
6394         HF, V4HF and V8HF.
6395         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
6396         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
6397         (stype): New.
6398         * config/aarch64/arm_neon.h (vdup_n_f16): New.
6399         (vdupq_n_f16): Likewise.
6400         (vld1_dup_f16): Use vdup_n_f16.
6401         (vld1q_dup_f16): Use vdupq_n_f16.
6402         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
6403         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
6404         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
6405         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
6406         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
6407         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
6408         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
6409         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
6410         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
6411         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
6412         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
6413         vsqrt_f16, vsqrtq_f16): New.
6415 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6417         * config/aarch64/aarch64-simd.md
6418         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
6419         (aarch64_ext<mode>): Likewise.
6420         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
6421         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
6422         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
6423         and V8HFmode.
6424         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
6425         float16x8_t.
6426         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
6427         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
6428         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
6429         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
6430         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
6431         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
6432         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
6433         New.
6434         (vmov_n_f16): Reimplement using vdup_n_f16.
6435         (vmovq_n_f16): Reimplement using vdupq_n_f16..
6437 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6439         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
6440         "frame_related_p".  Generate CFA annotation when it's necessary.
6441         (aarch64_expand_prologue): Use aarch64_add_constant.
6442         (aarch64_expand_epilogue): Likewise.
6443         (aarch64_output_mi_thunk): Pass "false" when calling
6444         aarch64_add_constant.
6446 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6448         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
6449         sequences.
6451 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6453         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6454         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6455         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6456         (aarch64_build_constant): Delete.
6458 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
6460         Revert
6461         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6463         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6464         flag_toplevel_reorder.
6466 2016-07-25  Richard Biener  <rguenther@suse.de>
6468         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6469         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6470         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6471         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6472         (streamer_get_builtin_tree): Likewise.
6473         (streamer_write_builtin): Likewise.
6474         * lto-streamer.h (LTO_builtin_decl): Remove.
6475         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6476         (lto_input_scc): Remove LTO_builtin_decl handling.
6477         (lto_input_tree_1): Liekwise.
6478         * lto-streamer-out.c (lto_output_tree_1): Remove special
6479         handling of builtins.
6480         (DFS::DFS): Likewise.
6481         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6482         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6483         assert.
6484         (streamer_write_builtin): Remove.
6486 2016-07-25  Martin Liska  <mliska@suse.cz>
6488         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6489         if flag_auto_profile is set to true.
6491 2016-07-25  Martin Liska  <mliska@suse.cz>
6493         PR gcov-profile/71868
6494         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6495         have a function with multiple latches, count them all.
6497 2016-07-25  Martin Liska  <mliska@suse.cz>
6499         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6501 2016-07-25  Martin Liska  <mliska@suse.cz>
6503         PR tree-optimization/71987
6504         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6505         just for SSA_NAMEs. Fix GNU coding style.
6507 2016-07-25  Martin Liska  <mliska@suse.cz>
6509         PR gcov-profile/64874
6510         * gcov-io.h: Update command about file format.
6511         * gcov-iov.c (main): Adapt the numbering scheme.
6513 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6515         PR middle-end/66726
6516         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6517         whose result is used in PHI.
6518         (final_range_test_p): Likewise.
6519         (maybe_optimize_range_tests): Likewise.
6521 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6523         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6524         Reformat two multi-line strings.
6526 2016-07-22  Martin Sebor  <msebor@redhat.com>
6528         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6530 2016-07-22  Martin Sebor  <msebor@redhat.com>
6532         PR c/71560
6533         * doc/extend.texi (Compound Literals): Correct and clarify.
6534         (Cast to Union): Same.
6536 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6538         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6539         comments to explain why certain error messages make mention of
6540         undocumented options.
6541         (rs6000_invalid_builtin): Change error messages to replace mention
6542         of undocumented options with mention of the -mcpu=power9 option
6543         that enables those undocumented options.
6544         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6545         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6546         definition of this macro to correct an existing error.
6547         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6548         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6549         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6550         descriptions of built-in functions so that they depend on
6551         -mcpu=power9 instead of on the corresponding undocumented flags.
6552         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6553         undocumented flags.
6554         (IBM RS/6000 and PowerPC Options): Likewise.
6555         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6556         mention of newly undocumented flags.
6558 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6560         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6561         when target_clones attribute is set.
6563 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6565         * common.opt (funsafe-loop-optimizations): Mark ignore.
6566         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6567         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6568         related code.
6569         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6570         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6572 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6574         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6575         Parameter.
6576         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6577         Parameter.
6578         (number_of_iterations_exit): Warn missed loop optimization for
6579         possible infinite loops.
6581 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6583         PR target/71216
6584         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6585         when to emit a ".machine" pseudo-op.
6587 2016-07-22  Martin Liska  <mliska@suse.cz>
6589         PR gcov-profile/69028
6590         PR gcov-profile/62047
6591         * coverage.c (coverage_compute_lineno_checksum): Do not
6592         calculate checksum for fns w/o xloc.file.
6593         (coverage_compute_profile_id): Likewise.
6595 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6597         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6598         (avr_secondary_reload): ...and implementation.
6599         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6600         * config/avr/avr.md (reload_in<mode>): Remove insns.
6601         (adjust_len) [lpm]: Remove insn attribute value.
6602         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6604 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6606         PR middle-end/71876
6607         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6608         attribute.
6609         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6610         * calls.c (special_function_p): Remove the special handling of the
6611         "__builtin_" prefix.
6613 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6615         PR middle-end/71876
6616         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6617         if STMT may be an alloca call.
6618         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6619         builtin alloca call.
6620         * calls.h (gimple_maybe_alloca_call_p): New function.
6621         * tree-inline.c (inline_forbidden_p_stmt): Use
6622         gimple_maybe_alloca_call_p here.
6624 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6626         * spellcheck-tree.c (best_macro_match::best_macro_match):
6627         Explictly specify the template arguments when invoking the base
6628         class constructor, to help older C++ compilers.
6630 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6632         PR sanitizer/71953
6633         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6634         before builtin_decl_implicit.
6636 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6638         * optabs.c (emit_condiitonal_move): Short circuit for identical
6639         sources.
6641 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6643         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6644         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6645         (noce_conversion_profitable_p): New.
6646         (noce_try_store_flag_constants): Use it.
6647         (noce_try_addcc): Likewise.
6648         (noce_try_store_flag_mask): Likewise.
6649         (noce_try_cmove): Likewise.
6650         (noce_try_cmove_arith): Likewise.
6651         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6652         overwriting it.
6653         (noce_convert_multiple_sets): Move cost model to here, from...
6654         (bb_ok_for_noce_convert_multiple_sets) ...here.
6655         (noce_process_if_block): Update calls for above changes.
6656         (noce_find_if_block): Record new noce_if_info parameters.
6658 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6660         * target.def (max_noce_ifcvt_seq_cost): New.
6661         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6662         * doc/tm.texi: Regenerate.
6663         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6664         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6665         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6666         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6667         * doc/invoke.texi: Document new params.
6669 2016-07-21  Richard Biener  <rguenther@suse.de>
6671         PR tree-optimization/71947
6672         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6673         ranges have useful limit_vr information.
6675 2016-07-21  Richard Biener  <rguenther@suse.de>
6677         * function-tests.c (build_trivial_generic_function): Set
6678         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6679         * omp-low.c (create_omp_child_function): Likewise.
6680         (grid_expand_target_grid_body): Likewise.
6681         * cgraphunit.c (init_lowered_empty_function): Likewise.
6682         (cgraph_node::expand_thunk): Likewise.
6683         * tree-parloops.c (create_loop_fn): Likewise.
6684         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6686 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6688         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6689         in comment.
6691 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6693         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6694         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6695         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6696         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6697         values for insn attribute.
6698         * config/avr/avr.c (avr_out_insert_notbit): New function.
6699         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6700         ADJUST_LEN_INSV_NOTBIT_0/_7.
6701         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6703 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6705         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6706         (chrec_convert_1, chrec_convert): Ditto.
6707         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6708         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6709         * tree-vrp.c (adjust_range_with_scev): Ditto.
6710         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6711         (scev_var_range_cant_overflow): New function.
6712         (scev_probably_wraps_p): New parameter.  Call above function.
6713         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6715 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6717         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6718         by removing computation of may_be_zero.
6720 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6722         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6724 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6726         Improving concepts performance and diagnostics.
6727         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6728         for constraint satisfaction and subsumption.
6729         * timevar.h (auto_timevar): New constructor that matches the push/pop
6730         pattern of usage in pt.c.
6732 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6734         * hwint.h (HOST_WIDE_INT_0): New define.
6735         (HOST_WIDE_INT_0U): Ditto.
6736         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6737         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6738         * simplify-rtx.c: Ditto.
6739         * tree-object-size.c: Ditto.
6741 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6743         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6744         check.
6746 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6748         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6749         * combine.c: Use HOST_WIDE_INT_M1U instead of
6750         ~(unsigned HOST_WIDE_INT) 0.
6751         * double-int.h: Ditto.
6752         * dse.c: Ditto.
6753         * dwarf2asm.c:Ditto.
6754         * expmed.c: Ditto.
6755         * genmodes.c: Ditto.
6756         * match.pd: Ditto.
6757         * read-rtl.c: Ditto.
6758         * tree-ssa-loop-ivopts.c: Ditto.
6759         * tree-ssa-loop-prefetch.c: Ditto.
6760         * tree-vect-generic.c: Ditto.
6761         * tree-vect-patterns.c: Ditto.
6762         * tree.c: Ditto.
6764 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6766         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6767         constant addresses outside [0,0xc0] into a register.
6768         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6769         cases where the base address register is unused after.
6770         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6771         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6772         (avr_out_store_psi_reg_disp_tiny): Same.
6774 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6776         Implement attribute progmem on reduced Tiny cores by adding
6777         flash offset 0x4000 to respective symbols.
6779         PR target/71948
6780         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6781         documentation how it works on reduced Tiny cores.
6782         (AVR Named Address Spaces): No support for reduced Tiny.
6783         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6784         (avr_address_tiny_pm_p): New static function.
6785         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6786         if the address is in progmem.
6787         (avr_assemble_integer): Same.
6788         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6789         for symbol_ref in progmem.
6790         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6791         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6792         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6794 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6796         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6797         * configure: Regenerate.
6798         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6799         (USE_THIN_ARCHIVES): New variable.
6800         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6801         this archive as a thin archive.
6803 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6805         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6806         same location as last time, don't skip if we have fix-it hints.
6807         Clarify the skipping logic by converting it from one "if" clause
6808         to repeated "if" clauses.
6809         * spellcheck-tree.c: Include "cpplib.h".
6810         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6811         (best_macro_match::best_macro_match): New constructor.
6812         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6813         Move here from c/c-decl.c.
6814         (class best_macro_match): Move here from c/c-decl.c, converting
6815         from a typedef to a subclass, gaining a ctor.
6817 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6819         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6820         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6821         define...
6822         (avr_addr_space_diagnose_usage): ...and implementation.
6823         (avr_addr_space_supported_p): New function.
6824         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6825         report bad address space usage if that space is supported.
6826         (avr_insert_attributes): Same.  No more complain about unsupported
6827         address spaces.
6828         * config/avr/avr-c.c (tm_p.h): Include it.
6829         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6830         macro if avr_addr_space_supported_p.
6832 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6834         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6835         flag_toplevel_reorder.
6837 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6839         * gcc-rich-location.c
6840         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6841         a const char *.
6842         * gcc-rich-location.h
6843         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6845 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6847         * target.def (addr_space): Add new diagnose_usage to hook vector.
6848         * targhooks.c (default_addr_space_diagnose_usage): Add default
6849         implementation and...
6850         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6851         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6852         is some address space, call targetm.addr_space.diagnose_usage.
6853         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6854         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6855         * doc/tm.texi: Regenerate.
6857 2016-07-20  Martin Liska  <mliska@suse.cz>
6859         PR middle-end/71898
6860         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6861         Properly handly PHI stmts.
6863 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6865         PR tree-optimization/71503
6866         PR tree-optimization/71683
6867         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6868         and break.
6870 2016-07-20  Martin Liska  <mliska@suse.cz>
6872         * doc/invoke.texi (-fipa-ra): Document when the option is
6873         disabled. Fix a typo.
6875 2016-07-20  Martin Liska  <mliska@suse.cz>
6877         * Makefile.in: Include fibonacci_heap.c
6878         * fibonacci_heap.c: New file.
6879         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6880         (fibonacci_heap::union_with): Fix deletion of the second heap.
6881         * selftest-run-tests.c (selftest::run_tests): Incorporate
6882         fibonacci heap tests.
6883         * selftest.h: Declare fibonacci_heap_c_tests.
6885 2016-07-20  Martin Liska  <mliska@suse.cz>
6887         * selftest-run-tests.c (selftest::run_tests): New function.
6888         * selftest.h (sreal_c_tests): Declare.
6889         * sreal.c (sreal_verify_basics): New function.
6890         (verify_aritmetics): Likewise.
6891         (sreal_verify_arithmetics): Likewise.
6892         (verify_shifting): Likewise.
6893         (sreal_verify_shifting): Likewise.
6894         (void sreal_c_tests): Likewise.
6896 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6898         PR rtl-optimization/71916
6899         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6900         bb which have a single succ fake edge.
6902 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
6904         PR debug/71855
6905         * dwarf2out.c (gen_subprogram_die): Only call
6906         gen_unspecified_parameters_die while dumping early dwarf.
6908 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6910         PR middle-end/71874
6911         * gimple-fold.c (fold_builtin_memory_op): Use
6912         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6914 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
6916         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6917         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6918         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6919         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6920         * combine.c: Ditto.
6921         * cse.c: Ditto.
6922         * dojump.c: Ditto.
6923         * double-int.c: Ditto.
6924         * dse.c: Ditto.
6925         * dwarf2out.c: Ditto.
6926         * expmed.c: Ditto.
6927         * expr.c: Ditto.
6928         * fold-const.c: Ditto.
6929         * function.c: Ditto.
6930         * fwprop.c: Ditto.
6931         * genmodes.c: Ditto.
6932         * hwint.c: Ditto.
6933         * hwint.h: Ditto.
6934         * ifcvt.c: Ditto.
6935         * loop-doloop.c: Ditto.
6936         * loop-invariant.c: Ditto.
6937         * loop-iv.c: Ditto.
6938         * match.pd: Ditto.
6939         * optabs.c: Ditto.
6940         * real.c: Ditto.
6941         * reload.c: Ditto.
6942         * rtlanal.c: Ditto.
6943         * simplify-rtx.c: Ditto.
6944         * stor-layout.c: Ditto.
6945         * toplev.c: Ditto.
6946         * tree-ssa-loop-ivopts.c: Ditto.
6947         * tree-vect-generic.c: Ditto.
6948         * tree-vect-patterns.c: Ditto.
6949         * tree.c: Ditto.
6950         * tree.h: Ditto.
6951         * ubsan.c: Ditto.
6952         * varasm.c: Ditto.
6953         * wide-int-print.cc: Ditto.
6954         * wide-int.cc: Ditto.
6955         * wide-int.h: Ditto.
6957 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6959         * selftest.c (selftest::assert_streq): Handle NULL values of
6960         val_actual and val_expected.
6962 2016-07-19  Martin Jambor  <mjambor@suse.cz>
6964         PR fortran/71688
6965         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6966         rather than cgraph_create_node to get a call graph node.
6968 2016-07-19  Richard Biener  <rguenther@suse.de>
6970         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6971         handle all tcc_constant bases and valueize SSA names.
6972         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6973         tcc_constant bases.
6975 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6977         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6978         the flags of the exit block and bb2, not just the entry block.
6980 2016-07-19  Richard Biener  <rguenther@suse.de>
6982         PR tree-optimization/71901
6983         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6984         align member, group stuff with the bitfield.
6985         (vn_ref_op_align_unit): New inline.
6986         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6987         record element alignment and operand 3 unchanged.
6988         (ao_ref_init_from_vn_reference): Adjust.
6989         (valueize_refs_1): Likewise.
6990         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6992 2016-07-19  Richard Biener  <rguenther@suse.de>
6994         PR tree-optimization/71908
6995         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6996         symbolic constants in a more reliable way.
6998 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7000         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7001         comment.
7002         (vect_update_inits_of_drs): Likewise.
7003         (vect_create_cond_for_alias_checks): Likewise.
7004         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7006 2016-07-19  Richard Biener  <rguenther@suse.de>
7008         PR lto/71907
7009         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7010         with an abstract origin that is not an inlined function outer
7011         scope add a self-reference as abstract origin.
7012         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7014 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7016         PR target/71493
7017         * config/rs6000/rs6000.c (rs6000_function_value): Fix
7018         unintentional System V.4 structure return breakage for structures
7019         with a single floating point element.
7021 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
7023         PR tree-optimization/71734
7024         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7025         contains REF, use it to check safelen, assume that safelen value
7026         must be greater 1, fix style.
7027         (ref_indep_loop_p_2): Add REF_LOOP argument.
7028         (ref_indep_loop_p): Pass LOOP as additional argument to
7029         ref_indep_loop_p_2.
7031 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7033         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7034         allocation in the prologue.
7035         * explow.c (get_dynamic_stack_base): New function to return an address
7036         expression for the dynamic stack base.
7037         (get_dynamic_stack_size): New function to do the required dynamic stack
7038         space size calculations.
7039         (allocate_dynamic_stack_space): Use new functions.
7040         (align_dynamic_address): Move some code from
7041         allocate_dynamic_stack_space to new function.
7042         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7044 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7046         * config/s390/s390.c (s390_encode_section_info): Always set
7047         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7048         found.
7050 2016-07-18  Richard Biener  <rguenther@suse.de>
7052         PR tree-optimization/71893
7053         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7054         for sizetype cast added by array_ref_element_size.
7055         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7057 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
7059         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7060         register parameters.  Remove code to initialize argument pointer
7061         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
7062         using a pc-relative branch.  Cleanup conditional code.
7063         * config/pa/pa.md (call_mcount): New expander.
7064         (call_mcount_nonpic): New insn.
7065         (call_mcount_pic): New insn and split.
7066         (call_mcount_pic_post_reload): New insn.
7067         (call_mcount_64bit): New insn and split.
7068         (call_mcount_64bit_post_reload): New insn.
7070 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
7072         * config/avr/predicates.md (const_m255_to_m1_operand): New.
7073         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7074         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7075         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7076         (*usum_widenqihi3, *udiff_widenqihi3)
7077         (*addhi3_zero_extend.const): New combiner insns.
7078         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7079         just 1 bit is affected.
7080         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7081         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7083 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
7085         * omp-low.c (lower_omp_target): Mark data clauses with
7086         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
7087         zero-length subarrays.
7089 2016-07-15  Richard Biener  <rguenther@suse.de>
7091         PR tree-optimization/71881
7092         * tree-loop-distribution.c (destroy_loop): Remove blocks in
7093         reverse DOM order to make debug temp generation happy.
7095 2016-07-15  Richard Biener  <rguenther@suse.de>
7097         PR tree-optimization/71887
7098         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
7099         verify it is not zero for division / modulo handling.
7100         (value_replacement): Adjust.
7102 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
7103             Julian Brown  <julian@codesourcery.com>
7105         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
7106         * config/aarch64/aarch64-cost-tables.h
7107         (vulcan_extra_costs): New variable.
7108         * config/aarch64/aarch64.c
7109         (vulcan_addrcost_table): Likewise.
7110         (vulcan_regmove_cost): Likewise.
7111         (vulcan_vector_cost): Likewise.
7112         (vulcan_branch_cost): Likewise.
7113         (vulcan_tunings): Likewise.
7115 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
7117         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
7118         (output_in_order): Loop over undefined variables too.  Output them
7119         via assemble_undefined_decl.  Skip variables that correspond to hard
7120         registers or have value-exprs.
7121         * varpool.c (symbol_table::output_variables): Handle undefined
7122         variables together with defined ones.
7124 2016-07-15  Richard Biener  <rguenther@suse.de>
7126         * tree-ssa-pre.c (get_representative_for): Make sure to return
7127         the value number of SSA names.
7128         (phi_translate_1): get_representative_for cannot return NULL.
7129         (do_pre_regular_insertion): Remove redundant call to
7130         fully_constant_expression.
7131         (do_pre_partial_partial_insertion): Likewise.
7133 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
7135         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
7136         (derive_simple_iv_with_niters): New function.
7137         (simple_iv): Rewrite using simple_iv_with_niters.
7138         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7139         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7140         function.
7141         (number_of_iterations_exit): Rewrite using above function.
7142         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7143         Decl.
7145 2016-07-15  Richard Biener  <rguenther@suse.de>
7147         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
7148         vec_construct cost.
7150 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
7152         PR tree-optimization/71872
7153         * tree-data-ref.c (get_references_in_stmt): Ignore references
7154         with is_gimple_constant get_base_address.
7156 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7158         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
7159         (TARGET_HAVE_LDACQD): New macro.
7160         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
7161         than TARGET_HAVE_LDACQ.
7162         (arm_load_acquire_exclusivedi): Likewise.
7163         (arm_store_release_exclusivedi): Likewise.
7165 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7167         PR rtl-optimization/71878
7168         * lra-constraints.c (match_reload): Pass information about other
7169         output operands.  Create new unique register value if matching input
7170         operand shares same register value as output operand being considered.
7171         (curr_insn_transform): Record output operands already processed.
7173 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7175         PR target/65951
7176         PR tree-optimization/70923
7177         * tree-vect-patterns.c: Include mult-synthesis.h.
7178         (target_supports_mult_synth_alg): New function.
7179         (synth_lshift_by_additions): Likewise.
7180         (apply_binop_and_append_stmt): Likewise.
7181         (vect_synth_mult_by_constant): Likewise.
7182         (target_has_vecop_for_code): Likewise.
7183         (vect_recog_mult_pattern): Use above functions to synthesize vector
7184         multiplication by integer constants.
7186 2016-07-14  Alan Modra  <amodra@gmail.com>
7188         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7189         gpr alternatives.  Correct '*' placement on Y,r alternative.
7190         Add '*' on operand 1 of r,r alternative.
7192 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7194         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7195         * expmed.h: ... Here.
7197 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
7199         * gimple.h (stmt_can_terminate_bb_p): New function.
7200         * tree-cfg.c (need_fake_edge_p): Rename to ...
7201         (stmt_can_terminate_bb_p): ... this; return true if stmt can
7202         throw external; handle const and pure calls.
7203         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7205 2016-07-14  Richard Biener  <rguenther@suse.de>
7207         PR tree-optimization/71866
7208         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7209         (do_hoist_insertion): Avoid endless recursion when we
7210         didn't insert anything because we managed to simplify
7211         things down to a constant or SSA name.
7212         (fully_constant_expression): Re-write in terms of ...
7213         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
7214         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7215         vn_nary_build_or_lookup_1.
7216         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7217         (vn_nary_build_or_lookup): ... this which now wraps it.
7219 2016-07-14  Alan Modra  <amodra@gmail.com>
7221         PR target/71733
7222         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7223         with p9_vector override before power9-dform override.
7225 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7227         * value-prof.c (gimple_value_profile_transformations): Don't run
7228         when auto_profile is on.
7230 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7232         * auto-profile.c (update_inlined_ind_target,
7233         afdo_indirect_call): Print information to dump file.
7235 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7237         * genrecog.c (special_predicate_operand_p): New function.
7238         (predicate_name): Move function.
7239         (validate_pattern): Don't warn about missing mode for all
7240         define_special_predicate predicates.
7242 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
7244         * tree-vect-data-refs.c (vect_no_alias_p): New function.
7245         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
7246         resolve alias checks which are known at compilation time.
7247         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
7248         alias checks are resolved.  Move dump info for too many runtime
7249         alias checks to here...
7250         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
7252 2016-07-13  Richard Biener  <rguenther@suse.de>
7254         PR tree-optimization/24574
7255         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
7256         position and add shift, rotate, divison and modulo support
7257         for left zero.
7258         (value_replacement): Pass in argument position to absorbing_element_p.
7260 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7262         PR ipa/71633
7263         * ipa-inline-transform.c (inline_call): Support
7264         instrumented thunks.
7266 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7268         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
7269         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
7270         divide feature.
7271         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
7272         Baseline.  Make initial alternative TARGET_32BIT only.
7273         (udivsi3): Likewise.
7274         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
7275         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
7276         target.
7278 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7280         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
7281         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
7282         availability with TARGET_HAVE_MOVT.
7283         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
7284         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
7285         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
7286         UINTVAL.
7287         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
7288         extra instruction if MOVW is available.  Use a cost variable
7289         incremented by COSTS_N_INSNS (1) when the condition match rather than
7290         returning an arithmetic expression based on COSTS_N_INSNS.  Make
7291         constant with bottom half word zero cost 2 instruction if MOVW is
7292         available.
7293         * config/arm/arm.md (define_attr "arch"): Add v8mb.
7294         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
7295         target is ARMv8-M Baseline.
7296         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
7297         (arm_movtas_ze): Likewise.
7298         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
7299         alternative for constants satisfying j constraint.
7300         (thumb1_movsi_insn): Likewise.
7301         (movsi splitter for K alternative): Tighten condition to not trigger
7302         if movt is available and j constraint is satisfied.
7303         (Pe immediate splitter): Likewise.
7304         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
7305         constant fitting in an halfword to use MOVW.
7306         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
7307         effective target.
7309 2016-07-13  Richard Biener  <rguenther@suse.de>
7311         PR middle-end/71104
7312         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
7313         gimplifying the LHS.  Make sure to gimplify a returning twice
7314         call LHS without using SSA names.
7316 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7318         * tree-data-ref.c (find_data_references_in_stmt): Remove
7319         unnecessary call to vec::release.
7320         (graphite_find_data_references_in_stmt): Likewise.
7321         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
7322         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7324 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7326         * cfgexpand.c (expand_used_vars): Make the type of a local
7327         variable auto_vec.
7328         * genmatch.c (lower_for): Likewise.
7329         * haifa-sched.c (haifa_sched_init): Likewise.
7330         (add_to_speculative_block): Likewise.
7331         (create_check_block_twin): Likewise.
7332         * predict.c (handle_missing_profiles): Likewise.
7333         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
7334         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
7335         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7336         Likewise.
7337         (maybe_lower_iteration_bound): Likewise.
7338         * tree-ssa-sccvn.c (DFS): Likewise.
7339         * tree-stdarg.c (reachable_at_most_once): Likewise.
7340         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
7341         (vectorizable_store): Likewise.
7343 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7345         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
7346         (sccvn_dom_walker): make cond_stack an auto_vec.
7348 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7350         * ree.c (struct ext_state): Make type of members auto_vec.
7351         (find_and_remove_re): Adjust.
7353 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7355         * cfgexpand.c (struct stack_vars_data): Make type of fields
7356         auto_vec.
7357         (expand_used_vars): Adjust.
7359 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7361         * ipa.c (record_cdtor_fn): Adjust.
7362         (build_cdtor_fns): Likewise.
7363         (ipa_cdtor_merge): Make static_ctors and static_dtors local
7364         variables.
7366 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7368         * genextract.c (struct accum_extract): Add constructor and make
7369         members auto_vec.
7370         (gen_insn): Adjust.
7372 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7374         * tree.c (struct free_lang_data_d): Add constructor and change
7375         types of members to ones that automatically manage resources.
7376         (fld_worklist_push): Adjust.
7377         (find_decls_types): Likewise.
7378         (find_decls_types_in_eh_region): Likewise.
7379         (free_lang_data_in_cgraph): Stop manually creating and
7380         destroying members of free_lang_data_d.
7382 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
7384         PR rtl-optimization/68961
7385         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
7386         peephole variant.  Use sse_reg_operand predicates.
7388 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
7390         * config/i386/predicates.md (x86_64_immediate_operand)
7391         <case CONST_INT>: Remove unneeded truncation to DImode.
7392         <case CONST>: Ditto.
7393         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7395 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7397         PR target/71805
7398         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
7399         The xxperm and xxpermr instructions require that the 2nd input
7400         operand overlap with the output operand, and not the 1st.
7401         (altivec_vperm_v8hiv16qi): Likewise.
7402         (altivec_vperm_<mode>_uns_internal): Likewise.
7403         (altivec_vpermr_<mode>_internal): Likewise.
7404         (vperm_v8hiv4si): Likewise.
7405         (vperm_v16qiv8hi): Likewise.
7407 2016-07-12  Nathan Sidwell  <nathan@acm.org>
7409         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
7410         when -mno-pic-data-is-text-relative is in effect, by default.
7411         * doc/invoke.texi (mpic-data-is-text-relative): Document new
7412         behavior and clarify.
7414 2016-07-12  Martin Liska  <mliska@suse.cz>
7416         * params.def: Add avg-loop niter.
7417         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
7418         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
7419         * doc/invoke.texi: Document the new parameter.
7421 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7423         PR middle-end/71700
7424         * expr.c (store_constructor): Mask sign-extended bits when widening
7425         sub-word constructor element at the start of a word.
7427 2016-07-12  Martin Liska  <mliska@suse.cz>
7429         * Makefile.in: Append rule for params-options.h.
7430         * params-options.h: New file.
7432 2016-07-12  Martin Liska  <mliska@suse.cz>
7434         * ira-build.c (mark_loops_for_removal): Properly iterate
7435         loops.
7437 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
7438             Richard Biener  <rguenther@suse.de>
7440         PR tree-optimization/23286
7441         PR tree-optimization/70159
7442         * doc/invoke.texi: Document -fcode-hoisting.
7443         * common.opt (fcode-hoisting): New flag.
7444         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
7445         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
7446         (do_regular_insertion): Rename to ...
7447         (do_pre_regular_insertion): ... this and amend general comments
7448         on insertion strathegy.
7449         (do_partial_partial_insertion): Rename to ...
7450         (do_pre_partial_partial_insertion): ... this.
7451         (do_hoist_insertion): New function.
7452         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7453         and call do_hoist_insertion properly.
7454         (insert): Adjust.
7455         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7456         (pass_pre::execute): Register hoist_insert stats.
7458 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
7460         PR middle-end/71716
7461         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7462         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7463         is different from mode's bitsize.  Small cleanup.
7465 2016-07-12  Richard Biener  <rguenther@suse.de>
7467         PR rtl-optimization/68961
7468         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7469         to simplify to a non-constant.
7471 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7473         PR middle-end/71758
7474         * omp-low.c (expand_omp_target): Gimplify device.
7476         PR tree-optimization/71823
7477         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7478         to get vec_oprnds2 from op2.
7480 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7482         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7483         Hoist common subexpressions.
7484         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7486 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7488         PR target/71800
7489         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7490         prevent generation of 'stxsiwx' on pre Power8 hardware.
7492 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7494         * input.c: Include cpplib.h.
7495         (selftest::temp_source_file): New class.
7496         (selftest::temp_source_file::temp_source_file): New ctor.
7497         (selftest::temp_source_file::~temp_source_file): New dtor.
7498         (selftest::should_have_column_data_p): New function.
7499         (selftest::test_should_have_column_data_p): New function.
7500         (selftest::temp_line_table): New class.
7501         (selftest::temp_line_table::temp_line_table): New ctor.
7502         (selftest::temp_line_table::~temp_line_table): New dtor.
7503         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7504         it to create a temp_line_table.
7505         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7506         locations that are known to have column data.
7507         (selftest::line_table_case): New struct.
7508         (selftest::test_reading_source_line): Move tempfile handling
7509         to class temp_source_file.
7510         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7511         (selftest::assert_token_loc_eq): New function.
7512         (ASSERT_TOKEN_LOC_EQ): New macro.
7513         (selftest::test_lexer): New function.
7514         (selftest::boundary_locations): New array.
7515         (selftest::input_c_tests): Call test_should_have_column_data_p.
7516         Loop over a test matrix of interesting values of location and
7517         default_range_bits, calling test_lexer on each case in the matrix.
7518         Move call to test_accessing_ordinary_linemaps into the matrix.
7519         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7520         (ASSERT_EQ_AT): New macro.
7522 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7524         PR target/71801
7525         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7526         Don't convert TImode in debug insn.
7528 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7530         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7531         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7532         (tree_type_common::lang_flag_7): New.
7533         (tree_type_common::spare): Reduce size.
7534         * tree.h (TYPE_ALIGN_OK): Remove.
7535         (TYPE_LANG_FLAG_7): New.
7536         (get_inner_reference): Adjust header.
7537         * print-tree.c (print_node): Adjust.
7538         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7539         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7540         calls to get_inner_reference.
7541         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7542         handling of TYPE_ALIGN_OK.
7543         * builtins.c (get_object_alignment_2): Adjust call to
7544         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7545         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7546         TYPE_ALIGN_OK.
7547         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7548         * cfgexpand.c (expand_debug_expr): Likewise.
7549         * dbxout.c (dbxout_expand_expr): Likewise.
7550         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7551         loc_list_from_tree, fortran_common): Likewise.
7552         * fold-const.c (optimize_bit_field_compare,
7553         decode_field_reference, fold_unary_loc, fold_comparison,
7554         split_address_to_core_and_offset): Likewise.
7555         * gimple-laddress.c (execute): Likewise.
7556         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7557         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7558         * hsa-gen.c (gen_hsa_addr): Likewise.
7559         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7560         * tsan.c (instrument_expr): Likewise.
7561         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7562         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7563         * tree-affine.c (tree_to_aff_combination,
7564         get_inner_reference_aff): Adjust calls to get_inner_reference.
7565         * tree-data-ref.c (split_constant_offset_1,
7566         dr_analyze_innermost): Likewise.
7567         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7568         * tree-sra.c (ipa_sra_check_caller): Likewise.
7569         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7570         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7571         bswap_replace): Likewise.
7572         * tree-vect-data-refs.c (vect_check_gather,
7573         vect_analyze_data_refs): Likewise.
7574         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7575         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7576         TYPE_ALIGN_OK.
7578 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7580         * Makefile.in (selftest-valgrind): New phony target.
7581         * function-tests.c (selftest::build_cfg): Delete pass instances
7582         created by the test.
7583         (selftest::convert_to_ssa): Likewise.
7584         (selftest::test_expansion_to_rtl): Likewise.
7585         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7586         vectors.
7587         (selftest::test_diamond): Likewise.
7589 2016-07-11  Richard Biener  <rguenther@suse.de>
7591         PR tree-optimization/71816
7592         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7593         than replacing all of its operands.
7595 2016-07-11  Alan Modra  <amodra@gmail.com>
7597         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7598         (ctr<mode>): Add unspec.
7599         (ctr<mode>_internal*): Likewise.
7601 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7603         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7604         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7606 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7608         PR rtl-optimization/71621
7609         * lra-constraints.c (process_alt_operands): Check combination of
7610         reg class and mode.
7612 2016-07-08  Jason Merrill  <jason@redhat.com>
7613             Richard Biener  <rguenther@suse.de>
7615         P0145: Refining Expression Order for C++.
7616         * gimplify.c (initial_rhs_predicate_for): New.
7617         (gimplfy_modify_expr): Gimplify RHS before LHS.
7619 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7621         PR target/71297
7622         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7623         Allow standard error handling to take over when a wrong number
7624         of arguments is presented to __builtin_vec_ld () or
7625         __builtin_vec_st ().
7627 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7629         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7630         variants.
7631         (smin): Likewise.
7632         (fmax): New entry.
7633         (fmin): Likewise.
7634         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7635         __builtin_aarch64_fmaxv2sf.
7636         (vmaxnmq_f32): Likewise.
7637         (vmaxnmq_f64): Likewise.
7638         (vminnm_f32): Likewise.
7639         (vminnmq_f32): Likewise.
7640         (vminnmq_f64): Likewise.
7642 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7644         PR target/71806
7645         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7646         enable -mfloat128-hardware by default.
7647         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7648         that IEEE 128-bit hardware support needs.
7649         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7650         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7651         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7652         floating point requires.
7653         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7654         -mfloat128 and -mfloat128-hardware changes.
7656 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7658         PR tree-optimization/71667
7659         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7661 2016-07-08  Martin Liska  <mliska@suse.cz>
7663         PR middle-end/71606
7664         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7665         folding produces SAVE_EXPRs, thus return false for the type.
7667 2016-07-07  Martin Liska  <mliska@suse.cz>
7669         * file-find.c (remove_prefix): New function.
7670         * file-find.h (remove_prefix): Declare the function.
7671         * gcc-ar.c (main): Skip a folder of the wrapper if
7672         a wrapped binary would point to the same file.
7674 2016-07-07  Jan Hubicka  <jh@suse.cz>
7676         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7677         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7678         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7680 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7682         PR ipa/71624
7683         * ipa-inline-analysis.c (compute_inline_parameters): Set
7684         local.can_change_signature to false for intrumentation
7685         thunk callees.
7687 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7689         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7690         with TARGET_HAVE_MOVT.
7691         (TARGET_HAVE_MOVT): Define.
7692         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7693         availability with TARGET_HAVE_MOVT.
7694         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7695         availability.
7696         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7697         TARGET_THUMB2.
7698         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7699         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7700         * config/arm/constraints.md (define_constraint "j"): Use
7701         TARGET_HAVE_MOVT to check MOVT availability.
7703 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7705         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7707 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7709         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7710         (armv8-m.main): Likewise.
7711         (armv8-m.main+dsp): Likewise.
7712         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7713         (FL_FOR_ARCH8M_MAIN): Likewise.
7714         * config/arm/arm-tables.opt: Regenerate.
7715         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7716         armv8-m.main+dsp to BE8_LINK_SPEC.
7717         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7718         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7719         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7720         Baseline and Mainline.
7721         (arm_option_override_internal): Also disable arm_restrict_it when
7722         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7723         ARMv8-M Baseline.
7724         (arm_file_start): Increase buffer size for printing architecture name.
7725         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7726         and armv8-m.main+dsp.
7727         (mno-unaligned-access): Clarify that this is disabled by default for
7728         ARMv8-M Baseline architectures as well.
7730 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7732         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7733         decide whether to prevent some libgcc routines being included for some
7734         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7735         link between this condition and the one in
7736         libgcc/config/arm/lib1func.S.
7738 2016-07-07  Richard Biener  <rguenther@suse.de>
7740         * tree-ssa-pre.c: Include alias.h.
7741         (compute_avail): If we have multiple VN_REFERENCEs with the
7742         same hashtable entry adjust that to make it a valid replacement
7743         for all of them with respect to alignment and aliasing
7744         when doing insertion.
7745         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7746         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7748 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7750         PR target/70098
7751         PR target/71763
7752         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7753         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7754         constraint.
7756 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7758         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7759         (adjust_mems): Adjust.
7760         (adjust_insn): Likewise.
7761         (prepare_call_arguments): Likewise.
7763 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7765         * gcse.c (struct ls_expr): Make stores field a vector.
7766         (ldst_entry): Adjust.
7767         (free_ldst_entry): Likewise.
7768         (print_ldst_list): Likewise.
7769         (compute_ld_motion_mems): Likewise.
7770         (update_ld_motion_stores): Likewise.
7772 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7774         * gcse.c (struct ls_expr): Remove loads field.
7775         (ldst_entry): Adjust.
7776         (free_ldst_entry): Likewise.
7777         (print_ldst_list): Likewise.
7778         (compute_ld_motion_mems): Likewise.
7780 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7782         * store-motion.c (struct st_expr): Make antic_stores a vector.
7783         (st_expr_entry): Adjust.
7784         (free_st_expr_entry): Likewise.
7785         (print_store_motion_mems): Likewise.
7786         (find_moveable_store): Likewise.
7787         (compute_store_table): Likewise.
7788         (remove_reachable_equiv_notes): Likewise.
7789         (replace_store_insn): Likewise.
7790         (build_store_vectors): Likewise.
7792 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7794         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7795         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7797 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7799         PR tree-optimization/71518
7800         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7801         misalign also for outer loops with negative step.
7803 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7805         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7806         (cortex_a53_shift): Add mov_shift.
7807         (cortex_a53_shift_reg): Add new reservation for register shifts.
7808         (cortex_a53_alu): Remove bfm.
7809         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7810         (cortex_a53_alu_extr): Add new reservation for EXTR.
7811         (bypasses): Improve bypass modelling.
7813 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7815         PR target/50739
7816         * config/avr/avr.c (avr_asm_select_section): Strip off
7817         SECTION_DECLARED from flags when calling get_section.
7819 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7821         * tree-vectorizer.h (vect_memory_access_type): Add
7822         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7823         * tree-vect-stmts.c (compare_step_with_zero): New function.
7824         (perm_mask_for_reverse): Move further up file.
7825         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7826         step is negative.
7827         (get_negative_load_store_type): New function.
7828         (get_load_store_type): Call it.  Add an ncopies argument.
7829         (vectorizable_mask_load_store): Update call accordingly and
7830         remove tests for negative steps.
7831         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7832         memory_access_types.
7834 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7836         * tree-vectorizer.h (vect_memory_access_type): New enum.
7837         (_stmt_vec_info): Add a memory_access_type field.
7838         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7839         (vect_model_store_cost): Take an access type instead of a boolean.
7840         (vect_model_load_cost): Likewise.
7841         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7842         vect_model_store_cost and vect_model_load_cost.
7843         * tree-vect-stmts.c (vec_load_store_type): New enum.
7844         (vect_model_store_cost): Take an access type instead of a
7845         store_lanes_p boolean.  Simplify tests.
7846         (vect_model_load_cost): Likewise, but for load_lanes_p.
7847         (get_group_load_store_type, get_load_store_type): New functions.
7848         (vectorizable_store): Use get_load_store_type.  Record the access
7849         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7850         (vectorizable_load): Likewise.
7851         (vectorizable_mask_load_store): Likewise.  Replace is_store
7852         variable with vls_type.
7854 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7856         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7857         single_element_p parameter.
7858         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7859         Check the PR65518 case here rather than in vectorizable_load.
7860         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7861         * tree-vect-stmts.c (vectorizable_load): Likewise.
7863 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7865         * tree-vectorizer.h (gather_scatter_info): New structure.
7866         (vect_check_gather_scatter): Return a bool rather than a decl.
7867         Replace return-by-pointer arguments with a single
7868         gather_scatter_info *.
7869         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7870         (vect_analyze_data_refs): Update call accordingly.
7871         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7872         (vectorizable_mask_load_store): Likewise.  Also record the
7873         offset dt and vectype in the gather_scatter_info.
7874         (vectorizable_store): Likewise.
7875         (vectorizable_load): Likewise.
7877 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7879         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7880         strided groups, use the cost of N scalar accesses instead
7881         of ncopies vector accesses.
7882         (vect_model_load_cost): Likewise.
7884 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7886         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7887         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7888         variable to indicate when once-per-group costs are being used.
7889         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7891 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7893         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7894         peeling-for-gaps condition.
7896 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7898         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7899         element to register if it doesn't match general_operand.
7901 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7902             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7904         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7905         prototype.
7906         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7907         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7908         (SIGNBIT): New mode iterator.
7909         (Fsignbit): New mode attribute.
7910         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7911         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7912         when direct moves are available.
7913         (signbit<mode>2_dm): New define_insn_and_split).
7914         (signbit<mode>2_dm2): New define_insn.
7916 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7918         PR rtl-optimization/71594
7919         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7920         into subregs of appropriate mode before trying to emit a conditional
7921         move.
7923 2016-07-05  Jan Hubicka  <jh@suse.cz>
7925         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7926         (simple_iv): Use it.
7928 2016-07-05  Jan Hubicka  <jh@suse.cz>
7930         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7932 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
7934         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7935         "offmemok".
7937 2016-07-05  Jan Hubicka  <jh@suse.cz>
7939         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7940         IV can overflow.
7942 2016-07-05  Richard Biener  <rguenther@suse.de>
7944         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7945         Handle empty else block.
7946         (is_feasible_trace): Likewise.
7947         (split_paths): Likewise.
7949 2016-07-05  Richard Biener  <rguenther@suse.de>
7951         * tree-loop-distribution.c (distribute_loop): Fix issue with
7952         the cost model loop.
7954 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
7956         * config/arm/neon-testgen.ml: Delete.
7957         * config/arm/neon.ml: Delete.
7959 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
7961         PR c++/71739
7962         * tree.c (attribute_value_equal): Use get_attribute_name instead of
7963         directly using TREE_PURPOSE.
7965 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
7967         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7968         * config/aarch64/aarch64_neon.h: Likewise.
7969         * config/aarch64/arm_neon.h: Likewise.
7970         * config/aarch64/atomics.md: Likewise.
7971         * config/aarch64/aarch64-simd-builtins.def: Likewise.
7972         * doc/invoke.texi: Likewise.
7974 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7976         * config/s390/s390.md: Add "z13" cpu_facility.
7977         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7978         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7979         condition" type instructions.
7981 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7982             Jeff Law  <law@redhat.com>
7984         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7985         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7987 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
7989         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7990         permutation for TARGET_AVX512F.
7991         (ix86_expand_vec_one_operand_perm_avx512): New function.
7992         (expand_vec_perm_1): Invoke introduced function.
7993         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7994         it may be not valid after vectorization.
7996 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7998         PR target/63874
7999         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8000         typo in comment.  Only force to memory if it is a weak
8001         external reference.
8003 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
8004             Jiong Wang  <jiong.wang@arm.com>
8006         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8007         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8008         (AARCH64_FL_F16): New.
8009         (AARCH64_FL_FOR_ARCH8_2): New.
8010         (AARCH64_ISA_8_2): New.
8011         (AARCH64_ISA_F16): New.
8012         (TARGET_FP_F16INST): New.
8013         (TARGET_SIMD_F16INST): New.
8014         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8015         ("fp"): Disabling "fp" also disables "fp16".
8016         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8017         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8018         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8019         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8021 2016-07-04  Jan Beulich  <jbeulich@suse.com>
8023         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8025 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8027         PR target/71720
8028         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8029         the insns, use an insn form that does not adjust the offset on
8030         little endian systems.
8032 2016-07-01  Jan Beulich  <jbeulich@suse.com>
8034         * varasm.c (get_variable_section): Validate initializer in
8035         named .bss-like sections.
8037 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8039         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8040         Exchange the order of the second and third operands in the vpermr
8041         instruction tmeplate.
8043 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
8045         PR target/71698
8046         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8047         Disallow TDmode values.
8049 2016-07-01  Alan Modra  <amodra@gmail.com>
8051         PR rtl-optimization/71709
8052         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8053         being set, not referenced.
8055 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8057         PR tree-optimization/70729
8058         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8059         of loop since it can be not valid after transformation.
8061 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8063         * config/arm/arm.c (thumb_reload_in_hi): Delete.
8064         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8066 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8068         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8069         for NULL decl.
8071 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8073         PR target/71677
8074         * config/rs6000/constraints.md (wY constraint): New constraint to
8075         match the requirements for the LXSD and STXSD instructions.
8076         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8077         predicate to match the requirements for the LXSD and STXSD
8078         instructions.
8079         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8080         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8081         to make sure that the bottom 2 bits of offset are 0, the address
8082         form is offsettable, and no updating is done in the address mode.
8083         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8084         (movdi_internal32): Likewise
8085         (movdi_internal64): Likewise.
8087 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8089         PR tree-optimization/71707
8090         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
8091         strinfo even for ADDR_EXPR ptr.
8093 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8095         * config/rs6000/altivec.md (darn_32): Change the condition to
8096         TARGET_P9_MISC instead of TARGET_MODULO.
8097         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
8098         condition expression.
8099         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
8100         condition expression.
8101         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
8102         (DFP_TEST): New code iterator.
8103         (dfptstsfi_<code>_mode>): New define_expand.
8104         (*dfp_sgnfcnc_<mode>): New define_insn.
8105         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
8106         definition next to BU_P9_MISC_1 definition and change the MASK
8107         value to RS6000_BTM_P9_MISC.
8108         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
8109         (BU_P9_64BIT_MISC_0): Likewise.
8110         (BU_P9_DFP_MISC_0): New macro definition.
8111         (BU_P9_DFP_MISC_1): New macro definition.
8112         (BU_P9_DFP_MISC_2): New macro definition.
8113         (BU_P9_DFP_OVERLOAD_1): New macro definition.
8114         (BU_P9_DFP_OVERLOAD_2): New macro definition.
8115         (BU_P9_DFP_OVERLOAD_3): New macro definition.
8116         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
8117         (TSTSFI_LT_TD): Likewise.
8118         (TSTSFI_EQ_DD): Likewise.
8119         (TSTSFI_EQ_TD): Likewise.
8120         (TSTSFI_GT_DD): Likewise.
8121         (TSTSFI_GT_TD): Likewise.
8122         (TSTSFI_OV_DD): Likewise.
8123         (TSTSFI_OV_TD): Likewise.
8124         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
8125         (TSTSFI_LT_DD): Likewise.
8126         (TSTSFI_LT_TD): Likewise.
8127         (TSTSFI_EQ): Likewise.
8128         (TSTSFI_EQ_DD): Likewise.
8129         (TSTSFI_EQ_TD): Likewise.
8130         (TSTSFI_GT): Likewise.
8131         (TSTSFI_GT_DD): Likewise.
8132         (TSTSFI_GT_TD): Likewise.
8133         (TSTSFI_OV): Likewise.
8134         (TSTSFI_OV_DD): Likewise.
8135         (TSTSFI_OV_TD): Likewise.
8136         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8137         overloaded test significance functions.
8138         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8139         OPTION_MASK_P9_MISC into the representation of this mask.
8140         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
8141         of this mask.
8142         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
8143         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
8144         non-zero.
8145         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
8146         argument is a 6-bit unsigned literal value if the icode argument
8147         represents a DFP test significance built-in call.
8148         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
8149         flag used independently and in combination with the
8150         RS6000_BTM_64BIT flag.
8151         (rs6000_opt_masks): Add entry for power9-misc command-line option.
8152         (rs6000_builtin_mask_names): Add entry for power9-misc
8153         command-line option.
8154         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
8155         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
8156         RS6000_BTM_P9_MISC macros.
8157         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
8158         option and change the description of the -mpower9-vector option to
8159         enable only vector instructions, removing its erroneously claimed
8160         support for scalar instructions.
8161         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8162         the ISA 3.0 digital floating point test significance built-in
8163         functions.
8165 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
8167         * config/aarch64/aarch64.c (cortexa35_tunings):
8168         Enable AES fusion.  Use cortexa57_branch_cost.
8169         (cortexa53_tunings): Use cortexa57_branch_cost.
8170         (cortexa72_tunings): Use cortexa57_branch_cost.
8171         Use AUTOPREFETCHER_WEAK.
8172         (cortexa73_tunings): Use cortexa57_branch_cost.
8174 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8175             James Greenhalgh  <james.greenhalgh@arm.com>
8177         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8178         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8179         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8180         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8181         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8182         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8183         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8184         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8185         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8186         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8187         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8188         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8189         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8190         New intrinsics.
8192 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
8193             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8195         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8196         New define_insn.
8197         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8199 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
8201         PR driver/71651
8202         * gcc.c (driver::build_option_suggestions): Pass "option" to
8203         add_misspelling_candidates.
8204         * opts-common.c (add_misspelling_candidates): Add "option" param;
8205         use it to avoid adding negated forms for options marked with
8206         RejectNegative.
8207         * opts.h (add_misspelling_candidates): Add "option" param.
8209 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8211         PR middle-end/71693
8212         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8213         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8214         first when permuting bitwise operation with rotate.  Cast
8215         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8217 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
8219         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8220         for misspelled param names.
8221         * params.c: Include spellcheck.h.
8222         (find_param_fuzzy): New function.
8223         * params.h (find_param_fuzzy): New prototype.
8224         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
8225         * spellcheck.h (struct edit_distance_traits<const char *>):
8226         ...here.
8228 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8230         * config/rs6000/predicates.md (const_0_to_7_operand): New
8231         predicate, recognize 0..7.
8232         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8233         support for doing extracts from V16QImode, V8HImode, V4SImode
8234         under ISA 3.0.
8235         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
8236         vector extract support.
8237         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
8238         for ISA 3.0 vector extract.
8239         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
8240         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
8241         extracts of a constant element number from small integer vectors
8242         on 64-bit ISA 3.0 systems.
8243         (vsx_extract_<mode>_di): Likewise.
8244         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
8245         say when we can do ISA 3.0 vector extracts.
8246         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
8247         registers, using the stxsiwx instruction.
8249 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
8251         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
8252         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
8253         qdf24xx_regmove_cost, qdf24xx_tunings): New.
8254         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
8255         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
8256         * config/arm/arm.c (arm_qdf24xx_tune): New.
8258 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
8260         * config/aarch64/aarch64.c (cortexa53_tunings):
8261         Increase loop alignment to 8.  Set function alignment to 16.
8262         (cortexa35_tunings): Likewise.
8263         (cortexa57_tunings): Increase loop alignment to 8.
8264         (cortexa72_tunings): Likewise.
8265         (cortexa73_tunings): Likewise.
8267 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8269         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
8270         for arm_fp16_ok and arm_fp16_hw.
8271         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
8272         arm_fp16_alternative.
8274 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8276         PR tree-optimization/71655
8277         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
8278         types when swapping operands.
8280 2016-06-29  Martin Liska  <mliska@suse.cz>
8282         PR middle-end/71585
8283         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
8284         * ipa-inline-transform.c (inline_call): Remove unnecessary call
8285         of build_optimization_node.
8287 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
8289         PR tree-optimization/70729
8290         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
8291         independent in loops having positive safelen value.
8292         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8293         it may be not valid after vectorization.
8295 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
8297         PR tree-optimization/71625
8298         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
8299         is sorted by ascending list->offset.  If PTR is non-NULL and there is
8300         previous strinfo, call get_stridx_plus_constant.
8301         (get_stridx): Pass exp as second argument to get_addr_stridx.
8302         (addr_stridxptr): Add missing list = list->next, so that there can be
8303         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
8304         the list is sorted by ascending list->offset.
8305         (get_stridx_plus_constant): Adjust so that it can be also called with
8306         ADDR_EXPR instead of SSA_NAME as PTR.
8307         (handle_char_store): Pass NULL_TREE as second argument to
8308         get_addr_stridx.
8310 2016-06-29  Richard Biener  <rguenther@suse.de>
8312         PR rtl-optimization/68961
8313         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
8315 2016-06-29  Richard Biener  <rguenther@suse.de>
8317         PR middle-end/71002
8318         * alias.c (component_uses_parent_alias_set_from): Handle
8319         type punning through union accesses by using the union alias set.
8320         * gimple.c (gimple_get_alias_set): Remove union type punning case.
8322 2016-07-29  Richard Biener  <rguenther@suse.de>
8324         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
8325         precision not matching mode precision.
8327 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
8329         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
8330         pa_output_arg_descriptor.
8331         (call_val_symref_64bit_post_reload): Likewise.
8332         (call_val_powf_64bit_post_reload): Likewise.
8333         (sibcall_internal_symref_64bit): Likewise.
8334         (sibcall_value_internal_symref_64bit): Likewise.
8336 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8338         PR middle-end/71626
8339         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
8340         a constant, force its SUBREG_REG into memory or register instead
8341         of whole op1.
8343 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8345         PR target/58655
8346         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
8347         * doc/invoke.texi (AVR Options): Document it.
8349 2016-06-28  Walter Lee  <walt@tilera.com>
8351         * config/tilegx/linux.h: Do not include arch/icache.h
8352         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8353         * config/tilepro/linux.h: Do not include arch/icache.h
8354         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8356 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
8358         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
8359         for big-endian BIT_FIELD_REF.
8361 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
8363         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
8364         ('size' attribute): Add '128'.
8365         Include power9.md.
8366         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
8367         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
8368         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
8369         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
8370         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
8371         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
8372         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
8373         *trunc<mode>df2_odd): Set size attribute to '128'.
8374         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
8375         * config/rs6000/power6.md (power6-fp): Include dfp type.
8376         * config/rs6000/power7.md (power7-fp): Likewise.
8377         * config/rs6000/power8.md (power8-fp): Likewise.
8378         * config/rs6000/power9.md: New file.
8379         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
8380         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
8381         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
8382         htmsimple.
8383         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
8384         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8385         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
8386         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
8387         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
8388         dfp_dscri_<mode>): Change type attribute to dfp.
8389         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
8390         attribute to vecsimple.
8391         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
8392         and prefetch streams.
8393         (rs6000_option_override_internal): Remove temporary code setting
8394         tuning to power8.  Don't set rs6000_sched_groups for power9.
8395         (last_scheduled_insn): Change to rtx_insn *.
8396         (divide_cnt, vec_load_pendulum): New variables.
8397         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
8398         (rs6000_issue_rate): Set issue rate for Power9.
8399         (is_power9_pairable_vec_type): New.
8400         (power9_sched_reorder2): New.
8401         (rs6000_sched_reorder2): Call new function for Power9 specific
8402         reordering.
8403         (insn_must_be_first_in_group): Remove Power9.
8404         (insn_must_be_last_in_group): Likewise.
8405         (force_new_group): Likewise.
8406         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
8407         Initialize divide_cnt/vec_load_pendulum.
8408         (_rs6000_sched_context, rs6000_init_sched_context,
8409         rs6000_set_sched_context): Handle context save/restore of new
8410         variables.
8412 2016-06-28  Richard Biener  <rguenther@suse.de>
8414         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8415         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
8416         COMPONENT_REF operand.
8417         (nonoverlapping_component_refs_p): Likewise.
8418         * stor-layout.c (start_bitfield_representative): Mark
8419         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
8421 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8423         * Makefile.in: Don't cat ../stage_current if it does not exist.
8425         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
8426         last argument is a bit-field.
8428         PR rtl-optimization/71673
8429         * internal-fn.c (expand_arith_overflow_result_store): Use
8430         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
8431         expand_simple_binop.
8433         PR middle-end/66867
8434         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
8435         expand_ifn_atomic_compare_exchange): New functions.
8436         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
8437         * tree.h (build_call_expr_internal_loc): Rename to ...
8438         (build_call_expr_internal_loc_array): ... this.  Fix up type of
8439         last argument.
8440         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
8441         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
8442         ATOMIC_COMPARE_EXCHANGE result.
8443         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
8444         * gimple-fold.h (optimize_atomic_compare_exchange_p,
8445         fold_builtin_atomic_compare_exchange): New prototypes.
8446         * gimple-fold.c (optimize_atomic_compare_exchange_p,
8447         fold_builtin_atomic_compare_exchange): New functions..
8448         * tree-ssa.c (execute_update_addresses_taken): If
8449         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
8450         of call when finding addressable vars, and if such var becomes
8451         non-addressable, call fold_builtin_atomic_compare_exchange.
8453 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
8455         PR target/71670
8456         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8457         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8459 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
8461         * config/rs6000/rs6000.md ('type' attribute): Add
8462         veclogical,veccmpfx,vecexts,vecmove insn types.
8463         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8464         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8465         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8466         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8467         *nabs<mode>2_hw): Change type to vecmove.
8468         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8469         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8470         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8471         *ieee_128bit_vsx_abs<mode>2_internal,
8472         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8473         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8474         *ieee128_mtvsrd_32bit): Change type to veclogical.
8475         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8476         *movdi_internal32, *movdi_internal64): Update insn types.
8477         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8478         vsx_extract_<mode>): Change type to veclogical.
8479         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8480         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8481         *vsx_sign_extend_si_v2di): Change type to vecexts.
8482         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8483         type to veclogical.
8484         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8485         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8486         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8487         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8488         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8489         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8490         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8491         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8492         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8493         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8494         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8495         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8496         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8497         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8498         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8499         (ppc7450-vecsimple): Add veclogical, vecmove.
8500         (ppc7450-veccmp): Add veccmpfx.
8501         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8502         vecmove.
8503         (ppc8540_vector_compare): Add veccmpfx.
8504         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8505         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8506         (cell-vecsimple): Add veclogical, vecmove.
8507         (cell-veccmp): Add veccmpfx.
8508         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8509         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8510         veccmpfx.
8511         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8512         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8513         (power4-vecsimple): Add veclogical, vecmove.
8514         (power4-veccmp): Add veccmpfx.
8515         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8516         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8517         (power6-vecsimple): Add veclogical, vecmove.
8518         (power6-veccmp): Add veccmpfx.
8519         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8520         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8521         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8522         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8523         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8524         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8525         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8526         fpsimple.
8527         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8529 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8531         PR target/71656
8532         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8533         OPTION_MASK_P9_DFORM_VECTOR.
8534         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8535         disable -mpower9-dform-vector when using reload.
8536         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8537         New 'strict' argument.  Update all callers.  Add strict addressing
8538         support.
8539         (rs6000_legitimate_offset_address_p): Remove call to
8540         virtual_stack_registers_memory_p.
8541         (rs6000_legitimize_reload_address): Add quad address support.
8542         (rs6000_legitimate_address_p): Move call to quad_address_p above
8543         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8544         to account for new strict usage.
8545         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8546         for new strict usage.
8547         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8549 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8551         PR target/70902
8552         PR target/71453
8553         PR target/71555
8554         PR target/71596
8555         PR target/71657
8556         * config/i386/i386.c (ix86_spill_class): Disable condition to
8557         always return NO_REGS.
8559 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8561         * predict.c: Include gimple-pretty-print.h
8562         (predicted_by_loop_heuristics_p): Check also
8563         PRED_LOOP_EXIT_WITH_RECURSION
8564         (predict_loops): Find self recursive calls and use special purpose
8565         predictors for them; dump log about decisions.
8566         (pass_profile::execute): Dump info about #of iterations.
8567         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8568         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8570 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8572         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8573         output_asm_insn calls and shorten long lines.  Output .CALL
8574         argument descriptor using pa_output_arg_descriptor.  Add various
8575         inline $$dyncall and other optimizations.
8576         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8578 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8580         PR tree-optimization/71643
8581         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8582         EH preds.
8584         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8585         leak a bitmap if dep_bb is NULL.
8587         PR tree-optimization/71631
8588         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8589         to rewrite_expr_tree even if negate_result, move new_lhs var
8590         declaration and initialization earlier, for powi_result set afterwards
8591         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8592         if new_lhs != lhs, and don't shadow gsi var.
8594 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8596         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8597         Add in_loop parameter.
8598         (predict_loops): Add loop guard heuristics.
8599         * predict.def (PRED_LOOP_GUARD): New heuristics.
8601 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8603         * predict.c: Include ipa-utils.h
8604         (tree_bb_level_prediction): Predict recursive calls.
8605         (tree_estimate_probability_bb): Skip inexpensive calls for call
8606         predictor.
8607         * predict.def (PRED_RECURSIVE_CALL): New.
8609 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8611         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8612         (BU_FLOAT128_1): Likewise.
8613         (FABSQ): Likewise.
8614         (COPYSIGNQ): Likewise.
8615         (RS6000_BUILTIN_NANQ): Likewise.
8616         (RS6000_BUILTIN_NANSQ): Likewise.
8617         (RS6000_BUILTIN_INFQ): Likewise.
8618         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8619         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8620         (TARGET_FOLD_BUILTIN): New #define.
8621         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8622         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8623         (rs6000_fold_builtin): New target hook implementation, handling
8624         folding of 128-bit NaNs and infinities.
8625         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8626         entries are filled in to avoid problems during bootstrap
8627         self-test; define builtins for 128-bit NaNs and infinities.
8628         (rs6000_opt_mask): Add entry for float128.
8629         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8630         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8631         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8632         (const_str_type_node): New #define.
8633         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8634         to a define_expand that dispatches to either copysign<mode>3_soft
8635         or copysign<mode>3_hard.
8636         (copysign<mode>3_hard): Rename from copysign<mode>3.
8637         (copysign<mode>3_soft): New define_insn.
8638         * doc/extend.texi: Document new builtins.
8640 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8642         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8643         PRIu64 instead of lu.
8645 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8647         PR debug/71642
8648         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8649         copy the type name.
8651 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8653         PR tree-optimization/71647
8654         * omp-low.c (lower_rec_input_clauses): Convert
8655         omp_clause_aligned_alignment (c) to size_type_node for the
8656         last argument of __builtin_assume_aligned.
8658 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8660         * configure.ac (calling ___tls_get_addr via GOT): New
8661         assembler/linker check.
8662         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8663         assembler and linker supports calling ___tls_get_addr via GOT.
8664         Otherise, defined to 0.
8665         * config.in: Regenerated.
8666         * configure: Likewise.
8667         * config/i386/constraints.md (Yb): New constraint.
8668         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8669         (REG_CLASS_NAMES): Likewise.
8670         (REG_CLASS_CONTENTS): Likewise.
8671         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8672         the b constraint with the Yb constraint.  Call ___tls_get_addr
8673         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8674         is 1.
8675         (*tls_local_dynamic_base_32_gnu): Likewise.
8676         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8677         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8678         (*tls_local_dynamic_base_64_<mode>): Likewise.
8680 2016-06-24  Martin Liska  <mliska@suse.cz>
8682         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8683         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8684         few functions.
8685         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8686         argument to true if the expected number of iterations is
8687         loop-based.
8689 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8691         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8692         assemble for 32bit target.
8693         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8694         and $ld_ix86_gld_32_opt to link for 32bit target.
8695         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8696         * configure: Regenerate.
8698 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8700         * config/arm/arm.c (int_log2): Delete definition and prototype.
8701         (shift_op): Use exact_log2 instead of int_log2.
8702         (vfp3_const_double_for_fract_bits): Likewise.
8704 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8706         * internal-fn.c (expand_arith_set_overflow): New function.
8707         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8708         Use it.
8709         (expand_arith_overflow_result_store): Likewise.  Handle precision
8710         smaller than mode precision.
8711         * tree-vrp.c (extract_range_basic): For imag part, handle
8712         properly signed 1-bit precision result.
8713         * doc/extend.texi (__builtin_add_overflow): Document that last
8714         argument can't be pointer to enumerated or boolean type.
8715         (__builtin_add_overflow_p): Document that last argument can't
8716         have enumerated or boolean type.
8718 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8719             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8721         * config/rs6000/predicates.md (splat_input_operand): Rework.
8722         Don't allow constants, since the insns that use this predicate
8723         don't support constants.  Constants are handled by other insns
8724         that are created via combine.  During and after register
8725         allocation, only allow indexed or indirect addresses, and not
8726         general addresses.  Only allow modes supported by the hardware.
8727         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8728         comment.  Move check for using VSPLTIS<x> to a common location,
8729         instead of doing it in two different places.
8731 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8733         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8734         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8735         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8736         signature_CENTAUR_ebx.
8738 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8740         PR target/66232
8741         PR target/67400
8742         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8743         (as_ix86_gas_32_opt): This.
8744         (ld_ix86_tls_ldm_opt): Renamed to ...
8745         (ld_ix86_gld_32_opt): This.
8746         (R_386_TLS_LDM reloc): Updated.
8747         (R_386_GOT32X reloc): New assembler/linker check.
8748         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8749         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8750         defined to 0.
8751         * config.in: Regenerated.
8752         * configure: Likewise.
8753         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8754         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8755         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8756         if ix86_force_load_from_GOT_p returns true.
8757         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8758         ix86_force_load_from_GOT_p returns true.
8759         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8760         the external function address via the GOT slot.
8761         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8762         HAVE_AS_IX86_GOT32X before returning false.
8763         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8764         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8766 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8768         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8770 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8772         * Makefile.in: Regenerate.
8773         * doc/install.texi: Document autoprofiledbootstrap.
8775 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8777         * config/i386/gcc-auto-profile: New file.
8779 2016-06-23  Martin Liska  <mliska@suse.cz>
8781         PR middle-end/71619
8782         * predict.c (predict_loops): Revert the hunk that was removed
8783         in r237103.
8785 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8787         * config.gcc: Add support for arm*-*-phoenix* targets.
8788         * config/arm/t-phoenix: New.
8789         * config/phoenix.h: New.
8791 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8792             H.J. Lu  <hongjiu.lu@intel.com>
8794         PR target/67400
8795         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8796         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8797         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8798         ix86_force_load_from_GOT_p returns true.
8799         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8800         ix86_force_load_from_GOT_p returns true.
8801         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8802         ix86_force_load_from_GOT_p returns true.
8803         (ix86_expand_move): Load the external function address via the
8804         GOT slot if ix86_force_load_from_GOT_p returns true.
8805         * config/i386/predicates.md (x86_64_immediate_operand): Return
8806         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8807         (x86_64_zext_immediate_operand): Ditto.
8809 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8811         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8813 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8815         PR c/70339
8816         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8817         * diagnostic.c (pedwarn_at_rich_loc): New function.
8818         * spellcheck.h (best_match::best_match): Add a
8819         "best_distance_so_far" optional parameter.
8820         (best_match::set_best_so_far): New method.
8821         (best_match::get_best_distance): New accessor.
8822         (best_match::get_best_candidate_length): New accessor.
8824 2016-06-22  Nick Clifton  <nickc@redhat.com>
8826         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8827         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8828         modes are accepted as well.
8829         (ucompare_loc_descriptor): Likewise.
8830         (minmax_loc_descriptor): Likewise.
8831         (clz_loc_descriptor): Likewise.
8832         (popcount_loc_descriptor): Likewise.
8833         (bswap_loc_descriptor): Likewise.
8834         (rotate_loc_descriptor): Likewise.
8835         (mem_loc_descriptor): Likewise.
8836         (loc_descriptor): Likewise.
8838 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8840         * common.opt (fdiagnostics-parseable-fixits): New option.
8841         * diagnostic.c: Include "selftest.h".
8842         (print_escaped_string): New function.
8843         (print_parseable_fixits): New function.
8844         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8845         (selftest::assert_print_escaped_string): New function.
8846         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8847         (selftest::test_print_escaped_string): New function.
8848         (selftest::test_print_parseable_fixits_none): New function.
8849         (selftest::test_print_parseable_fixits_insert): New function.
8850         (selftest::test_print_parseable_fixits_remove): New function.
8851         (selftest::test_print_parseable_fixits_replace): New function.
8852         (selftest::diagnostic_c_tests): New function.
8853         * diagnostic.h (struct diagnostic_context): Add field
8854         "parseable_fixits_p".
8855         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8856         -fdiagnostics-parseable-fixits.
8857         (-fdiagnostics-parseable-fixits): New option.
8858         * opts.c (common_handle_option): Handle
8859         -fdiagnostics-parseable-fixits.
8860         * selftest-run-tests.c (selftest::run_tests): Call
8861         selftest::diagnostic_c_tests.
8862         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8864 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8866         PR tree-optimization/71488
8867         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8868         comparison of boolean vectors.
8869         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8870         of boolean vectors using bitwise operations.
8872 2016-06-22  Andreas Schwab  <schwab@suse.de>
8874         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8875         Remove declaration.
8877 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8879         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8881 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8883         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8884         print FLAGS_REG.
8886 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8888         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8889         * config/arm/arm-cores.def (cortex-a73): New entry.
8890         (cortex-a73.cortex-a35): Likewise.
8891         (cortex-a73.cortex-a53): Likewise.
8892         * config/arm/arm-tables.opt: Regenerate.
8893         * config/arm/arm-tune.md: Likewise.
8894         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8895         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8896         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8897         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8898         * doc/invoke.texi (ARM Options): Document cortex-a73,
8899         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8901 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8903         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8904         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8905         (cortex-a73.cortex-a35): Likewise.
8906         (cortex-a73.cortex-a53): Likewise.
8907         * config/aarch64/aarch64-tune.md: Regenerate.
8908         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8909         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8910         -mcpu and -mtune.
8912 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8914         * configure.ac (gcc_cv_as_compress_debug): Remove
8915         --compress-debug-sections as extra as switch.
8916         Handle gas --compress-debug-sections=type.
8917         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8918         Handle gld --compress-debug-sections=type.
8919         * configure: Regenerate.
8921 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8923         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8925 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8927         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8928         (do_rewrite): likewise.
8930 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8932         * common/config/mep/mep-common.c: Remove.
8933         * config.gcc: Remove mep-* support.
8934         * config/mep/constraints.md: Remove.
8935         * config/mep/default.h: Remove.
8936         * config/mep/intrinsics.h: Remove.
8937         * config/mep/intrinsics.md: Remove.
8938         * config/mep/ivc2-template.h: Remove.
8939         * config/mep/mep-c5.cpu: Remove.
8940         * config/mep/mep-core.cpu: Remove.
8941         * config/mep/mep-default.cpu: Remove.
8942         * config/mep/mep-ext-cop.cpu: Remove.
8943         * config/mep/mep-intrin.h: Remove.
8944         * config/mep/mep-ivc2.cpu: Remove.
8945         * config/mep/mep-pragma.c: Remove.
8946         * config/mep/mep-protos.h: Remove.
8947         * config/mep/mep.c: Remove.
8948         * config/mep/mep.cpu: Remove.
8949         * config/mep/mep.h: Remove.
8950         * config/mep/mep.md: Remove.
8951         * config/mep/mep.opt: Remove.
8952         * config/mep/predicates.md: Remove.
8953         * config/mep/t-mep: Remove.
8954         * doc/install.texi: Remove mep-* documentation.
8955         * doc/md.texi: Likewise.
8957 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8959         * config.gcc: Remove support for avr-rtems.
8960         * config/avr/gen-avr-mmcu-specs.c: Likewise.
8961         * config/avr/rtems.h: Remove.
8962         * config/avr/t-rtems: Remove.
8964 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8966         * config.gcc: Remove m32r-rtems support.
8967         * config/m32r/rtems.h: Remove.
8969 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8971         * config.gcc: Remove h8300-rtems support.
8972         * config/h8300/rtems.h: Remove.
8973         * config/h8300/t-rtems: Remove.
8975 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8977         * config.gcc: Remove support for knetbsd.
8978         * configure.ac: Likewise.
8979         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
8980         * config/knetbsd-gnu.h: Remove.
8981         * configure: Regenerate.
8983 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8985         * config.gcc: Remove support for openbsd 2 and 3.
8986         * config/openbsd-oldgas.h: Remove.
8988 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8990         * config.gcc: Remove interix support.
8991         * config/i386/i386-interix.h: Remove.
8992         * config/i386/interix.opt: Remove.
8993         * config/i386/t-interix: Remove.
8994         * configure: Regenerate.
8995         * configure.ac: Remove interix support.
8996         * doc/install.texi: Remove interix documentation.
8998 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9000         * config/rs6000/rs6000.h: Add conditional preprocessing directives
9001         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9002         not defined.
9004 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9006         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9007         they are both PLACEHOLDER_EXPRs.
9009 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9011         * stor-layout.c (layout_type): Move setting complex MODE to
9012         layout_type, instead of setting it ahead of time by the caller.
9013         * tree.c (build_complex_type): Likewise.
9015 2016-06-21  Martin Liska  <mliska@suse.cz>
9017         * predict.c (force_edge_cold): Replace imposisble with
9018         impossible.
9020 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9022         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9023         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9025 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9027         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9029 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9030             Ilya Enkovich  <ilya.enkovich@intel.com>
9032         PR target/71549
9033         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9034         New member function to convert V1TImode register to SUBREG
9035         TImode in debug insn.
9036         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9037         after changing register mode to V1TImode.
9039 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
9041         * config/aarch64/aarch64-cores.def (vulcan): New core.
9042         * config/aarch64/aarch64-tune.md: Regenerate.
9043         * doc/invoke.texi: Document vulcan as an available option.
9045 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9047         * cse.c (canon_asm_operands): New function extracted from...
9048         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
9049         either standalone or member of a PARALLEL.
9051 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9053         PR target/30417
9054         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9055         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9056         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9058 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9060         PR target/71103
9061         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9062         constant addresses if can_create_pseudo_p.
9064 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
9066         PR tree-optimization/71588
9067         * tree-ssa-strlen.c (valid_builtin_call): New function.
9068         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9069         it.
9071 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9073         PR middle-end/71581
9074         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9075         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9076         for conversion of scalar user var to complex type and use the
9077         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
9078         punt.
9080         PR rtl-optimization/71591
9081         * toplev.c (toplev::run_self_tests): If no_backend, complain and
9082         don't run any tests.
9084 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
9086         PR target/71571
9087         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
9088         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
9089         space for PIC with non-v32 and the common non-PIC "jump".
9091 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9093         PR target/71559
9094         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
9095         returned values and add UN*/LTGT/*ORDERED cases with values matching
9096         D operand modifier on vcmp for AVX.
9098 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9100         * config/aarch64/aarch64.opt
9101         (mpc-relative-literal-loads): Rename internal option name.
9102         * config/aarch64/aarch64.c
9103         (aarch64_nopcrelative_literal_loads): Rename to
9104         aarch64_pcrelative_literal_loads.
9105         (aarch64_expand_mov_immediate): Likewise.
9106         (aarch64_secondary_reload): Likewise.
9107         (aarch64_can_use_per_function_literal_pools_p): Likewise.
9108         (aarch64_override_options_after_change_1): Rename and simplify logic.
9109         (aarch64_classify_symbol): Merge large model checks into switch,
9110         remove pc-relative load check.
9112 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9114         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
9115         costs relative to the cost of a register move.
9117 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9119         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
9120         (vcvt_n_f64_u64): Likewise.
9121         (vcvt_n_s64_f64): Likewise.
9122         (vcvt_n_u64_f64): Likewise.
9123         (vcvt_f64_s64): Likewise.
9124         (vrecpe_f64): Likewise.
9125         (vcvt_f64_u64): Likewise.
9126         (vrecps_f64): Likewise.
9128 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9130         * config/aarch64/aarch64.md
9131         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
9132         iterators.
9133         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
9134         attributes.
9135         * config/aarch64/aarch64-builtins.c
9136         (aarch64_types_binop_uss_qualifiers): Delete.
9137         (TYPES_BINOP_USS): Likewise.
9138         (aarch64_types_binop_sus_qualifiers): Likewise.
9139         (TYPES_BINOP_SUS): Likewise.
9140         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
9141         (TYPES_FCVTIMM_SUS): Likewise.
9142         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
9143         rather than BINOP.
9144         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
9145         (fcvtzs): Use SHIFTIMM rather than BINOP.
9146         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
9148 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9150         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
9151         costs relative to the cost of a register move.
9153 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9155         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
9156         Allow scalar/single vector modes to be tieable.
9158 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9160         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
9162 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9164         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9165         "alignement".
9166         * tree.h (TYPE_ALIGN): Likewise.
9168 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9170         PR target/71103
9171         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9173 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9175         * config/avr/avr.c (avr_print_operand): Fix "format not a string
9176         literal" build warnings.
9177         (avr_print_operand_address): Dito.
9179 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
9181         PR target/71375
9182         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9183         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9185 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
9187         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9189 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9191         PR bootstrap/71435
9192         * reload1.c (reload): Pass 0 to finish_spills when called because
9193         update_eliminables_and_spill returns true and remove did_spill.
9194         (finish_spills): Adjust comment and document GLOBAL parameter.
9196 2016-06-17  DJ Delorie  <dj@redhat.com>
9198         PR target/71338
9199         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9200         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9201         (umulqihi3_virt): Likewise.
9202         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9203         (umulqihi3_real): Likewise.
9205 2016-06-17  Martin Liska  <mliska@suse.cz>
9207         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9209 2016-06-17  Martin Liska  <mliska@suse.cz>
9211         * predict.def: PRED_LOOP_EXIT from 92 to 85.
9213 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
9215         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9216         __FAST_MATH__.
9217         (vaddq_f32): Likewise.
9218         (vmul_f32): Likewise.
9219         (vmulq_f32): Likewise.
9220         (vsub_f32): Likewise.
9221         (vsubq_f32): Likewise.
9223 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9225         PR tree-optimization/71347
9226         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
9227         cost for all uses in group.
9229 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9231         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
9232         insert gimple seq if it's not empty.
9234 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9236         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
9237         member OFFSET.
9238         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
9239         rather than OFFSET.
9240         (comp_dr_with_seg_len_pair): Ditto.
9241         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
9242         struct dr_with_seg_len_pair against DR_OFFSET.
9243         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
9244         DR_OFFSET directly.
9246 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9248         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
9250 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
9252         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
9253         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
9254         (pa_output_millicode_call): Likewise.
9255         (pa_output_call): Likewise.
9256         (pa_output_indirect_call): Likewise.
9257         (pa_asm_output_mi_thunk): Likewise.
9259 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9261         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
9263 2016-06-16  Martin Liska  <mliska@suse.cz>
9265         * predict.c (combine_predictions_for_insn): When we find a first
9266         match predictor, we should consider just predictors with
9267         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
9268         DS theory predictor.
9269         (combine_predictions_for_bb): Likewise.
9271 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9273         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
9274         with base of reference to struct.
9276 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9278         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
9280 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9282         PR target/71151
9283         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
9284         progmem_swtable_section.
9285         (progmem_swtable_section): Remove.
9286         (avr_asm_function_rodata_section): Remove.
9287         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9288         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
9290 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
9292         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9293         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
9294         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
9295         signature_CENTAUR_ebx.
9296         * config/i386/i386.c (ix86_option_override_internal): Add
9297         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
9298         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
9299         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
9301 2016-06-16  Martin Liska  <mliska@suse.cz>
9303         * predict.def: Add fortran loop preheader predictor.
9304         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
9305         fold IFN_BUILTIN_EXPECT with a known constant argument.
9307 2016-06-16  Martin Liska  <mliska@suse.cz>
9309         * predict.def: Add 'Fortran' to display text of all
9310         PRED_FORTRAN_* predictors.
9312 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9314         PR target/71242
9315         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
9316         [IA64_BUILTIN_NANSQ]: Ditto.
9317         (ia64_fold_builtin): New function.
9318         (TARGET_FOLD_BUILTIN): New define.
9319         (ia64_init_builtins) Declare const_string_type node.
9320         Add __builtin_nanq and __builtin_nansq builtin functions.
9321         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
9323 2016-06-16  Nick Clifton  <nickc@redhat.com>
9325         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
9326         MSP430_HWMULT_ prefix to enum values.
9327         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
9328         * config/msp430/msp430.c: Update use of enum values.
9329         * config/msp430/msp430.md: Likewise.
9330         * config/msp430/msp430.opt: Likewise.
9332 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
9334         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
9335         of comparsions in the last iteration.
9337 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9338             Joern Rennecke  <joern.rennecke@embecosm.com>
9340         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
9341         addresses.
9342         (arc_needs_pcl_p): Add GOTOFFPC.
9343         (arc_legitimate_pic_addr_p): Likewise.
9344         (arc_output_pic_addr_const): Likewise.
9345         (arc_legitimize_pic_address): Generate a pc-relative address using
9346         GOTOFFPC.
9347         (arc_output_libcall): Use @pcl syntax.
9348         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
9349         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
9350         (*movsi_insn): Use @pcl syntax.
9351         (doloop_begin_i): Likewise.
9353 2016-06-16  Martin Liska  <mliska@suse.cz>
9355         * predict.def: Define a new predictor.
9357 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9359         * config/arc/arc.opt (mtp-regno): Update text.
9361 2016-06-16  Renlin Li  <renlin.li@arm.com>
9363         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
9365 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9367         PR target/71554
9368         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
9369         (setcc + and peephole2): Likewise.
9371         PR rtl-optimization/71532
9372         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
9373         memory slots.
9375 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9377         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
9378         DImode constants with XXSPLTIB in vector registers.
9379         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
9380         vsx_extract_<mode>_internal{1,2} into a single insn that handles
9381         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
9382         extraction of the element at the top of the register as a scalar
9383         value.
9384         (vsx_extract_<mode>_internal1): Likewise.
9385         (vsx_extract_<mode>_internal2): Likewise.
9386         * config/rs6000/constraints.md (wi constraint): Remove a comment
9387         about DImode not being allowed in Altivec registers.
9388         (wB constraint): New constraint for constants that can be
9389         generated in Altivec registers with VSPLTISW/VUPKHSW.
9390         * config/rs6000/predicates.md (xxspltib_constant_split): Update
9391         comments.
9392         (xxspltib_constant_nosplit): Likewise.
9393         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
9394         support for -mupper-regs-di to enable DImode to go into Altivec
9395         registers.
9396         (POWERPC_MASKS): Likewise.
9397         (power7 cpu): Likewise.
9398         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
9399         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
9400         for DImode being allowed in Altivec registers.  Update wi/wj
9401         constraints.  Set scalar_in_vmx_p flag.
9402         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
9403         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
9404         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
9405         (rs6000_opt_masks): Add -mupper-regs-di.
9406         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
9407         direct move to use wi and not wj.
9408         (lfiwzx): Likewise.
9409         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
9410         alternative.
9411         (floatunssi<mode>2_lfiwzx_mem): Likewise.
9412         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
9413         any VSX register, instead of just Altivec registers, to allow
9414         either operand to be an Altivec register or both.
9415         (fixuns_trunc<mode>di2_fctiduz): Likewise.
9416         (movdi_internal32): Add support for -mupper-regs-di.  Add support
9417         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
9418         the alternatives and attributes to be lined up to be easier to
9419         read.
9420         (movdi_internal64): Likewise.
9421         (64-bit DImode splitters): Change predicates to only split loading
9422         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
9423         load constants in ISA 3.0 or ISA 2.07 respectively.
9424         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9425         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
9426         mention -mcpu=power9 sets these options.
9427         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
9428         wB constraint.
9430 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9432         PR target/67353
9433         * config/avr/avr.c (avr_set_current_function): Warn misspelled
9434         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
9435         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
9436         by default to warn misspelled interrupt/ signal handler.
9437         * doc/invoke.texi (AVR Options): Document it. Update description
9438         for -nodevicelib option.
9440 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9442         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
9443         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
9444         (aarch64_<sur>shll2_n<mode>): Likewise.
9446 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
9448         PR middle-end/71529
9449         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
9450         DECL_CONTEXT for copied arguments.
9452 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9454         PR tree-optimization/71483
9455         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9456         for slp
9458 2016-06-15  Martin Liska  <mliska@suse.cz>
9460         * predict.c (tree_predict_by_opcode): Call predict_edge_def
9461         instead of predict_edge w/o a probability.
9463 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9465         PR tree-optimization/71439
9466         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9467         live PHIs.
9469 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9471         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9472         register subregs in SET_SRC.
9474 2016-06-15  Richard Biener  <rguenther@suse.de>
9476         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9477         store restrictions.
9479 2016-06-15  Richard Biener  <rguenther@suse.de>
9481         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9482         not consider dependences between accesses that belong to the
9483         same group.
9484         (vect_analyze_data_ref_dependences): Do not analyze read-read
9485         or self-dependences.
9487 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9489         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9490         spellcheck.h.
9491         (find_closest_identifier): Reimplement in terms of
9492         best_match<tree,tree>.
9493         * spellcheck-tree.h: New file.
9494         * spellcheck.c (struct edit_distance_traits<const char *>): New
9495         struct.
9496         (find_closest_string): Reimplement in terms of
9497         best_match<const char *, const char *>.
9498         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9499         overload to spellcheck-tree.h.
9500         (find_closest_identifier): Likewise.
9501         (struct edit_distance_traits<T>): New template.
9502         (class best_match): New class.
9504 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9506         * selftest-run-tests.c (selftest::run_tests): Call
9507         selftest::spellcheck_tree_c_tests.
9508         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9509         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9510         (selftest::test_find_closest_identifier): New function.
9511         (selftest::spellcheck_tree_c_tests): New function.
9512         * spellcheck.c (selftest::test_find_closest_string): Verify that
9513         the order of the vec does not affect the results for this case.
9514         (selftest::test_data): New array.
9515         (selftest::test_metric_conditions): New function.
9516         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9517         Call selftest::test_metric_conditions.
9519 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9521         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9522         (BU_P9_MISC_1): Likewise.
9523         (BU_P9_64BIT_MISC_0): Likewise.
9524         (BU_P9_MISC_0): Likewise.
9526 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9528         * gcc-rich-location.c
9529         (gcc_rich_location::add_fixit_misspelled_id): New method.
9530         * gcc-rich-location.h
9531         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9533 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9535         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9536         FreeBSD 11 and above.
9538 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9540         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9542 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9544         * expmed.h: Close parenthesis in "at your option" in copyright
9545         boilerplate.
9546         * lower-subreg.h: Likewise.
9548 2016-06-14  Richard Biener  <rguenther@suse.de>
9550         PR middle-end/71526
9551         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9552         if available.
9554 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9556         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9557         New function.
9558         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9559         mask+shift version.
9560         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9561         New prototype.
9562         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9563         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9565 2016-06-14  Richard Biener  <rguenther@suse.de>
9567         PR tree-optimization/71522
9568         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9569         copying into float copying.
9571 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9573         PR tree-optimization/71520
9574         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9575         (replace_block_by): Move user labels from bb1 to bb2.
9577 2016-06-14  Richard Biener  <rguenther@suse.de>
9579         PR middle-end/71310
9580         PR bootstrap/71510
9581         * expr.h (get_bit_range): Declare.
9582         * expr.c (get_bit_range): Export.
9583         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9584         word_mode again to constrain the bitfield access.
9586 2016-06-14  Richard Biener  <rguenther@suse.de>
9588         PR tree-optimization/71521
9589         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9590         division int_const_binop against zero divisor.
9592 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9594         * config/i386/i386.md (signbittf2): New expander.
9595         * config/i386/sse.md (ptesttf2): New insn pattern.
9597 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9599         PR bootstrap/71481
9600         * input.c (selftest::test_reading_source_line): Avoid reading from
9601         __FILE__ by creating a tempfile with known content and reading
9602         from that instead.
9604 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9606         * pretty-print.c (assert_pp_format_colored): Skip the test if
9607         GCC_COLORS is set.
9608         (test_pp_format): Remove comment about GCC_COLORS.
9610 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9612         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9613         * pretty-print.c (assert_pp_format_va): Add location param and use
9614         it with ASSERT_STREQ_AT.
9615         (assert_pp_format): Add location param and pass it to
9616         assert_pp_format_va.
9617         (assert_pp_format_colored): Likewise.
9618         (ASSERT_PP_FORMAT_1): New.
9619         (ASSERT_PP_FORMAT_2): New.
9620         (ASSERT_PP_FORMAT_3): New.
9621         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9622         explicitly, or implicitly via the above macros.
9623         * selftest.c (selftest::pass): Use a selftest::location rather
9624         than file and line.
9625         (selftest::fail): Likewise.  Print the function name.
9626         (selftest::fail_formatted): Likewise.
9627         (selftest::assert_streq): Use a selftest::location rather than
9628         file and line.
9629         * selftest.h (selftest::location): New struct.
9630         (SELFTEST_LOCATION): New macro.
9631         (selftest::pass): Accept a const location & rather than file
9632         and line.
9633         (selftest::fail): Likewise.
9634         (selftest::fail_formatted): Likewise.
9635         (selftest::assert_streq): Likewise.
9636         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9637         (ASSERT_FALSE): Likewise.
9638         (ASSERT_EQ): Likewise.
9639         (ASSERT_NE): Likewise.
9640         (ASSERT_STREQ): Likewise.
9641         (ASSERT_PRED1): Likewise.
9642         (ASSERT_STREQ_AT): New macro.
9644 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9646         * selftest.c (selftest::fail_formatted): New function.
9647         (selftest::assert_streq): New function.
9648         * selftest.h (selftests::fail_formatted): New decl.
9649         (selftest::assert_streq): New decl.
9650         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9652 2016-06-13  Jeff Law  <law@redhat.com>
9654         PR tree-optimization/71403
9655         * tree-ssa-threadbackward.c
9656         (convert_and_register_jump_thread_path): No longer accept reference
9657         to path.  Do not pop items off the path anymore.
9658         (fsm_find_control_statement_thread_paths): Do not allow threading
9659         to a deeper loop nest.  Pop the last item off the path here rather
9660         than in convert_and_register_jump_thread_path.
9662 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9663             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9665         [AArch64] Emit division using the Newton series
9667         * config/aarch64/aarch64-protos.h
9668         (cpu_approx_modes): Add new member "division".
9669         (aarch64_emit_approx_div): Declare new function.
9670         * config/aarch64/aarch64.c
9671         (generic_approx_modes): New member "division".
9672         (exynosm1_approx_modes): Likewise.
9673         (xgene1_approx_modes): Likewise.
9674         (aarch64_emit_approx_div): Define new function.
9675         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9676         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9677         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9678         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9680 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9681             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9683         [AArch64] Emit square root using the Newton series
9685         * config/aarch64/aarch64-protos.h
9686         (aarch64_emit_approx_rsqrt): Replace with new function
9687         "aarch64_emit_approx_sqrt".
9688         (cpu_approx_modes): New member "sqrt".
9689         * config/aarch64/aarch64.c
9690         (generic_approx_modes): New member "sqrt".
9691         (exynosm1_approx_modes): Likewise.
9692         (xgene1_approx_modes): Likewise.
9693         (aarch64_emit_approx_rsqrt): Replace with new function
9694         "aarch64_emit_approx_sqrt".
9695         (aarch64_override_options_after_change_1): Handle new option.
9696         * config/aarch64/aarch64-simd.md
9697         (rsqrt<mode>2): Use new function instead.
9698         (sqrt<mode>2): New expansion and insn definitions.
9699         * config/aarch64/aarch64.md: Likewise.
9700         * config/aarch64/aarch64.opt
9701         (mlow-precision-sqrt): Add new option description.
9702         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9704 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9706         [AArch64] Add more choices for the reciprocal square root approximation
9708         Allow a target to prefer such operation depending on the operation mode.
9710         * config/aarch64/aarch64-protos.h
9711         (AARCH64_APPROX_MODE): New macro.
9712         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9713         (cpu_approx_modes): New structure.
9714         (tune_params): New member "approx_modes".
9715         * config/aarch64/aarch64-tuning-flags.def
9716         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9717         * config/aarch64/aarch64.c
9718         (generic_approx_modes): New core "cpu_approx_modes" structure.
9719         (exynosm1_approx_modes): Likewise.
9720         (xgene1_approx_modes): Likewise.
9721         (generic_tunings): New member "approx_modes".
9722         (cortexa35_tunings): Likewise.
9723         (cortexa53_tunings): Likewise.
9724         (cortexa57_tunings): Likewise.
9725         (cortexa72_tunings): Likewise.
9726         (exynosm1_tunings): Likewise.
9727         (thunderx_tunings): Likewise.
9728         (xgene1_tunings): Likewise.
9729         (use_rsqrt_p): New argument for the mode and use new member from
9730         "tune_params".
9731         (aarch64_builtin_reciprocal): Devise mode from builtin.
9732         (aarch64_optab_supported_p): New argument for the mode.
9733         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9735 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9737         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9738         RS6000_BTM_MODULO flag into the set of flags that are considered
9739         to be part of the common configuration.
9741 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9743         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9744         difference unsigned.
9745         (vec_absdb): New macro for vector absolute difference unsigned
9746         byte.
9747         (vec_absdh): New macro for vector absolute difference unsigned
9748         half-word.
9749         (vec_absdw): New macro for vector absolute difference unsigned word.
9750         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9751         (vadu<mode>3): New insn.
9752         (*p9_vadu<mode>3): New insn.
9753         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9754         definition.
9755         (vaduh): New built-in definition.
9756         (vaduw): New built-in definition.
9757         (vadu): New overloaded built-in definition.
9758         (vadub): New overloaded built-in definition.
9759         (vaduh): New overloaded built-in definition.
9760         (vaduw): New overloaded built-in definition.
9761         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9762         overloaded vector absolute difference unsigned functions.
9763         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9764         the ISA 3.0 vector absolute difference unsigned built-in functions.
9766 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9768         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9769         update shared_lookup_references only once after changing operands.
9771 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9773         PR middle-end/71373
9774         * tree-nested.c (convert_nonlocal_omp_clauses)
9775         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9777         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9778         * tree.def (CASE_LABEL_EXPR): Likewise.
9780 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9782         PR bootstrap/71481
9783         * input.c (test_builtins): Fix an assertion.
9785 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9787         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9788         (paritysi2): Ditto.
9789         (isinfxf2): Ditto.
9790         (isinf<mode>2): Ditto.
9792 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9794         * ggc-tests.c (test_finalization): Only test need_finalization_p
9795         for GCC_VERSION >= 4003.
9797 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9799         * config/s390/vecintrin.h: Fix file description in comment.
9801 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9803         * config/s390/s390-builtin-types.def: Change builtin type naming
9804         scheme to match builtin-types.def.
9806 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9808         * fold-const.c (optimize_minmax_comparison): Remove.
9809         (fold_comparison): Remove call to the above.
9810         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9811         New transformations.
9813 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9815         PR tree-optimization/71416
9816         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9817         multiple entries
9819 2016-06-13  Martin Liska  <mliska@suse.cz>
9821         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9822         (combine_predictions_for_insn): Likewise.
9823         (prune_predictions_for_bb): Likewise.
9824         (combine_predictions_for_bb): Likewise.
9826 2016-06-13  Richard Biener  <rguenther@suse.de>
9828         PR tree-optimization/71505
9829         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9830         assert match comment.
9832 2016-06-13  Marek Polacek  <polacek@redhat.com>
9834         PR middle-end/71476
9835         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9836         gimplify_switch_expr.
9837         (warn_switch_unreachable_r): New function.
9839 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9841         PR target/71379
9842         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9843         one.
9845 2016-06-13  Richard Biener  <rguenther@suse.de>
9847         PR middle-end/64516
9848         * fold-const.c (fold_unary_loc): Preserve alignment when
9849         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9851 2016-06-13  Martin Liska  <mliska@suse.cz>
9853         PR sanitizer/71458
9854         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9855         w/ -fsanitize=bounds.
9857 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9859         * config/i386/i386.c (ix86_init_builtins): Calculate
9860         FLOAT128_FTYPE_CONST_STRING function type only once.
9861         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9862         built-in functions are available for x86-32 and x86-64 targets.
9864 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9866         PR target/71241
9867         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9868         New primitive type.
9869         (FLOAT128_FTYPE_CONST_STRING): New function type.
9870         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9871         [IX86_BUILTIN_NANSQ]: Ditto.
9872         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9873         (ix86_init_builtin_types): Declare const_string_type_node.
9874         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9875         builtin functions.
9876         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9877         * doc/extend.texi (x86 Built-in Functions): Document
9878         __builtin_nanq and __builtin_nansq.
9880 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9882         PR target/71061
9883         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9884         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9885         length for pop patterns.
9886         (arm_attr_length_push_multi): Update comments.
9887         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9888         attribute.
9889         (*pop_multiple_with_writeback_and_return): Likewise.
9890         (*pop_multiple_with_return): Likewise.
9892 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9894         PR middle-end/71310
9895         * fold-const.c (optimize_bit_field_compare): Don't try to use
9896         word_mode unconditionally for reading the bit field, look at
9897         DECL_BIT_FIELD_REPRESENTATIVE instead.
9899 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9901         PR middle-end/71478
9902         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9903         vector integer type.
9905 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
9907         PR middle-end/71494
9908         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9909         without LABEL_DECL, set *handled_ops_p to false instead of true.
9911 2016-06-10  Martin Sebor  <msebor@redhat.com>
9913         PR c/71392
9914         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9915         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9916         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9917         them.
9918         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9919         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9920         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9921         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9922         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9923         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9924         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9925         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9927 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9929         * config/arm/arm.h (pool_vector_label,
9930         return_used_this_function): Remove.
9932 2016-06-10  Jeff Law  <law@redhat.com>
9934         PR tree-optimization/71335
9935         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9936         zero length paths here.
9937         (convert_and_register_jump_thread_path): Remove hacks related to
9938         duplicated blocks in the jump thread path.
9939         (fsm_find_control_statement_thread_paths): Avoid putting the same
9940         block on the thread path twice, but ensure the thread path is
9941         unchanged from the caller's point of view.
9943 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9945         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9946         * predict.def (PRED_LOOP_BRANCH): Remove.
9948 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
9950         * Makefile.in (OBJS): Add ggc-tests.o.
9951         (GTFILES): Add ggc-tests.c.
9952         * ggc-tests.c: New file.
9953         * selftest-run-tests.c (selftest::run_tests): Call
9954         selftest::ggc_tests_c_tests.
9955         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9957 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
9959         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9961 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
9963         PR sanitizer/71480
9964         * varasm.c (place_block_symbol): Adjust alignment for asan protected
9965         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9967 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9969         * profile.c: Include cfgloop.h.
9970         (branch_prob): Compute estimated number of iterations.
9971         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9972         recompute estimate number of iterations from profile.
9974 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9976         PR inline-asm/68843
9977         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9978         must be grouped on top of stack.  Don't force early clobber
9979         on ordinary reg outputs.
9981 2016-06-10  Richard Biener  <rguenther@suse.de>
9983         * targhooks.c (default_builtin_vectorization_cost): Adjust
9984         vec_construct cost.
9986 2016-06-10  Richard Biener  <rguenther@suse.de>
9988         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9989         to fold the RHS to a constant if possible.
9991 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9993         PR middle-end/71373
9994         * tree-nested.c (convert_nonlocal_omp_clauses)
9995         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9996         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9997         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9999         * gimplify.c (gimplify_adjust_omp_clauses): Discard
10000         OMP_CLAUSE_TILE.
10001         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10003         * omp-low.c (scan_sharing_clauses): Don't expect
10004         OMP_CLAUSE__CACHE_.
10006 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
10008         PR tree-optimization/71407
10009         PR tree-optimization/71416
10010         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10011         BIT_FIELD_REF type.
10013 2016-06-10  Richard Biener  <rguenther@suse.de>
10015         PR middle-end/71477
10016         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10018 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10020         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10022 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
10023             Jiong Wang  <jiong.wang@arm.com>
10025         PR rtl-optimization/70751
10026         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10027         spilled into memory.
10029 2016-06-09  Jonathan Yong  <10walls@gmail.com>
10031         Revert:
10032         2015-09-21  Jonathan Yong  <10walls@gmail.com>
10034         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10035         sysroot/usr/lib/32api for additional win32 libraries,
10036         fixes failing Cygwin bootstrapping.
10038 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
10040         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10041         Delete.
10043 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
10045         PR bootstrap/71471
10046         * pretty-print.c (pp_indent): Specify that %p is printed in a
10047         host-dependent manner.
10048         (test_pp_format): Remove the test for %p.
10050 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
10052         * config/mips/mips.c (mips_output_jump): Fix formatting.
10054 2016-06-09  Richard Biener  <rguenther@suse.de>
10056         PR tree-optimization/71462
10057         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10058         removed blocks.
10060 2016-06-09  Martin Liska  <mliska@suse.cz>
10062         * predict.c (dump_prediction): Add new argument.
10063         (enum predictor_reason): New enum.
10064         (struct predictor_hash): New struct.
10065         (predictor_hash::hash): New function.
10066         (predictor_hash::equal): Likewise.
10067         (not_removed_prediction_p): New function.
10068         (prune_predictions_for_bb): Likewise.
10069         (combine_predictions_for_bb): Prune predictions.
10071 2016-06-09  Martin Liska  <mliska@suse.cz>
10073         * predict.c (filter_predictions): New function.
10074         (remove_predictions_associated_with_edge): Use the filter
10075         function.
10076         (equal_edge_p): New function.
10078 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
10080         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10081         Correct usage of @samp vs @option, add @samp where appropriate.
10082         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10083         Add armv6s-m and document it, as it is no official ARM name.
10085 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10087         * ifcvt.c (struct noce_if_info): Add transform_name field.
10088         (noce_try_move): Set if_info->transform_name to the function name.
10089         (noce_try_ifelse_collapse): Likewise.
10090         (noce_try_store_flag): Likewise.
10091         (noce_try_inverse_constants): Likewise.
10092         (noce_try_store_flag_constants): Likewise.
10093         (noce_try_addcc): Likewise.
10094         (noce_try_store_flag_mask): Likewise.
10095         (noce_try_cmove): Likewise.
10096         (noce_try_cmove_arith): Likewise.
10097         (noce_try_minmax): Likewise.
10098         (noce_try_abs): Likewise.
10099         (noce_try_sign_mask): Likewise.
10100         (noce_try_bitop): Likewise.
10101         (noce_convert_multiple_sets): Likewise.
10102         (noce_process_if_block): Print if_info->transform_name to
10103         dump_file if transformation succeeded.
10105 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10107         * config/arm/cortex-a57.md (cortex_a57_alu):
10108         Handle csel type.
10110 2016-06-08  Martin Sebor  <msebor@redhat.com>
10111             Jakub Jelinek  <jakub@redhat.com>
10113         PR c++/70507
10114         PR c/68120
10115         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
10116         BUILT_IN_MUL_OVERFLOW_P): New builtins.
10117         * builtins.c: Include gimple-fold.h.
10118         (fold_builtin_arith_overflow): Handle
10119         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
10120         (fold_builtin_3): Likewise.
10121         * doc/extend.texi (Integer Overflow Builtins): Document
10122         __builtin_{add,sub,mul}_overflow_p.
10124 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
10126         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
10127         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
10129 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
10131         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
10132         Rewrite, looking one level down for records and arrays.
10134 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
10136         * pretty-print.c: Include "selftest.h".
10137         (pp_format): Fix comment.
10138         (identifier_to_locale): Likewise.
10139         (selftest::test_basic_printing): New function.
10140         (selftest::assert_pp_format): New function.
10141         (selftest::test_pp_format): New function.
10142         (selftest::pretty_print_c_tests): New function.
10143         * selftest-run-tests.c (selftest::run_tests): Call
10144         selftest::pretty_print_c_tests.
10145         * selftest.h (pretty_print_c_tests): New declaration.
10147 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10149         * invoke.texi (max-loop-headers-insns): Document.
10150         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
10151         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
10152         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
10154 2016-06-08  Richard Biener  <rguenther@suse.de>
10156         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
10157         on strided SLP loads and fall back to scalar loads in case
10158         we can't chunk them.
10160 2016-06-08  Richard Biener  <rguenther@suse.de>
10162         PR tree-optimization/71452
10163         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10164         type used for the SSA rewrite has enough precision to cover
10165         the dynamic type of the location.
10167 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
10168             Richard Biener  <rguenther@suse.de>
10170         PR c++/71448
10171         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10172         the same as DECL_P (base0) for indirect_base0.  Use equality_code
10173         in one further place.
10175 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
10177         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10178         to one word if the field is known to overlap other words.
10179         (extract_bit_field_1): Likewise.
10180         (store_split_bit_field): Remove compensating code.
10181         (extract_split_bit_field): Likewise.
10183 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
10185         PR debug/71432
10186         PR ada/71413
10187         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10189 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10191         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10192         VDQF.
10193         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10194         (arch64_addpv4sf): Delete.
10195         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10196         "gen_aarch64_addpv4sf".
10197         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
10198         builtin.
10199         (vpadds_f32): Likewise.
10200         (vpaddq_f32): Likewise.
10201         (vpaddq_f64): Likewise.
10203 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10205         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10206         VALLF.
10207         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10208         to VALLF.  Rename to "fabd<mode>3".
10209         "*fabd_scalar<mode>3): Delete.
10210         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10211         Use builtin.
10212         (vabdd_f64): Likewise.
10213         (vabd_f32): Likewise.
10214         (vabd_f64): Likewise.
10215         (vabdq_f32): Likewise.
10216         (vabdq_f64): Likewise.
10218 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10220         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10221         VALLF.
10222         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10223         "aarch64_rsqrts<mode>".
10224         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
10225         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
10226         builtin.
10227         (vrsqrtsd_f64): Likewise.
10228         (vrsqrts_f32): Likewise.
10229         (vrsqrts_f64): Likewise.
10230         (vrsqrtsq_f32): Likewise.
10231         (vrsqrtsq_f64): Likewise.
10233 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10235         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
10236         VALLF.
10237         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
10238         "aarch64_rsqrte<mode>".
10239         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
10240         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
10241         builtin.
10242         (vrsqrted_f64): Likewise.
10243         (vrsqrte_f32): Likewise.
10244         (vrsqrte_f64): Likewise.
10245         (vrsqrteq_f32): Likewise.
10246         (vrsqrteq_f64): Likewise.
10248 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10250         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
10251         (ucvtf): Likewise.
10252         (fcvtzs): Likewise.
10253         (fcvtzu): Likewise.
10254         * config/aarch64/aarch64-simd.md
10255         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
10256         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
10257         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
10258         Use builtin.
10259         (vcvt_n_f32_u32): Likewise.
10260         (vcvt_n_s32_f32): Likewise.
10261         (vcvt_n_u32_f32): Likewise.
10262         (vcvtq_n_f32_s32): Likewise.
10263         (vcvtq_n_f32_u32): Likewise.
10264         (vcvtq_n_f64_s64): Likewise.
10265         (vcvtq_n_f64_u64): Likewise.
10266         (vcvtq_n_s32_f32): Likewise.
10267         (vcvtq_n_s64_f64): Likewise.
10268         (vcvtq_n_u32_f32): Likewise.
10269         (vcvtq_n_u64_f64): Likewise.
10270         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
10271         (VSDQ_SDI): Likewise.
10272         (fcvt_target): Support V4DI, V4SI and V2SI.
10273         (FCVT_TARGET): Likewise.
10275 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10277         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
10278         (TYPES_BINOP_SUS): Likewise.
10279         (aarch64_simd_builtin_data): Update include file name.
10280         (aarch64_builtins): Likewise.
10281         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
10282         for conversion between scalar float-point and fixed-point.
10283         (ucvtf): Likewise.
10284         (fcvtzs): Likewise.
10285         (fcvtzu): Likewise.
10286         * config/aarch64/aarch64.md
10287         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
10288         pattern for conversion between scalar float to fixed-pointer.
10289         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
10290         (UNSPEC_FCVTZS): New UNSPEC enumeration.
10291         (UNSPEC_FCVTZU): Likewise.
10292         (UNSPEC_SCVTF): Likewise.
10293         (UNSPEC_UCVTF): Likewise.
10294         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
10295         Use builtin.
10296         (vcvtd_n_f64_u64): Likewise.
10297         (vcvtd_n_s64_f64): Likewise.
10298         (vcvtd_n_u64_f64): Likewise.
10299         (vcvtd_n_f32_s32): Likewise.
10300         (vcvts_n_f32_u32): Likewise.
10301         (vcvtd_n_s32_f32): Likewise.
10302         (vcvts_n_u32_f32): Likewise.
10303         * config/aarch64/iterators.md (fcvt_target): Support integer to float
10304         mapping.
10305         (FCVT_TARGET): Likewise.
10306         (FCVT_FIXED2F): New iterator.
10307         (FCVT_F2FIXED): Likewise.
10308         (fcvt_fixed_insn): New define_int_attr.
10310 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10312         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
10313         some statements was removed.
10315 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
10317         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
10318         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
10319         (vect_can_advance_ivs_p): likewise.
10320         (vect_update_ivs_after_vectorizer): likewise.
10321         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
10322         (vect_analyze_scalar_cycles_1): likewise.
10323         (vect_analyze_loop_operations): likewise.
10324         (report_vect_op): likewise.
10325         (vect_is_slp_reduction): likewise.
10326         (vect_is_simple_reduction): likewise.
10327         (get_initial_def_for_induction): likewise.
10328         (vect_transform_loop): likewise.
10329         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
10330         (vect_recog_sad_pattern): likewise.
10331         (vect_recog_widen_sum_pattern): likewise.
10332         (vect_recog_widening_pattern): likewise.
10333         (vect_recog_divmod_pattern): likewise.
10334         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
10335         (vect_analyze_slp_instance): likewise.
10336         (vect_transform_slp_perm_load): likewise.
10337         (vect_schedule_slp_instance): likewise.
10339 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10341         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
10342         (return_prediction): PRED_CONST_RETURN predict return as not taken.
10343         * predict.def (PRED_CONTINUE): Change hitrate 50->67
10344         (PRED_LOOP_BRANCH): Document predictor as broken.
10345         (PRED_LOOP_EXIT): Change hitrate 91->92.
10346         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
10347         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
10348         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
10349         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
10350         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
10351         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
10352         (PRED_CALL): Chane hitrate 71->67.
10353         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
10354         (PRED_GOTO): Document as unused right now.
10355         (PRED_CONST_RETURN): Change hitrate 67->69
10356         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
10357         (PRED_NULL_RETURN): Change hitrate 91->90.
10358         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
10359         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
10360         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
10362 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
10364         * config/rs6000/altivec.h: Add __builtin_vec_mul.
10365         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
10366         special case Altivec builtin.
10367         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10368         VSX_BUILTIN_VEC_MUL (replaced with special case code).
10369         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10370         code for ALTIVEC_BUILTIN_VEC_MUL.
10371         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10372         for __builtin_vec_mul.
10374 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
10376         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
10377         -mno-htm.
10379 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
10381         * spellcheck.c (selftest::test_find_closest_string): New function.
10382         (spellcheck_c_tests): Call the above.
10384 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10386         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
10388 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
10390         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
10391         Yv=Yv,C alternatives.
10393 2016-06-07  Richard Biener  <rguenther@suse.de>
10395         PR c/61564
10396         * common.opt (ffast-math): Make Optimization.
10398 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
10399             Prachi Godbole  <prachi.godbole@imgtec.com>
10401         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
10402         `fabs' and `fneg' type attributes.
10403         (p5600_fpu_fabs): Add `fmove' to the comment.
10405 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10407         * gimple.c: Include builtins.h
10408         (gimple_inexpensive_call_p): New function.
10409         * gimple.h (gimple_inexpensive_call_p): Declare.
10410         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
10411         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
10412         fix formatting.
10414 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
10416         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
10417         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
10418         warning_at_rich_loc, warning_n, pedwarn, permerror,
10419         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
10420         sorry, fatal_error, internal_error, internal_error_no_backtrace):
10421         Use the above.
10423 2016-06-07  Richard Biener  <rguenther@suse.de>
10425         PR tree-optimization/71428
10426         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
10427         BIT_FIELD_REF op vs. load.
10429 2016-06-07  Richard Biener  <rguenther@suse.de>
10431         PR middle-end/71423
10432         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
10433         for signed ops.
10435 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10437         * config/pa/pa.md (call): Generate indirect long calls to non-local
10438         functions on TARGET_64BIT.
10439         (call_value): Likewise.
10441 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10443         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
10444         pattern and subsequent splitters.
10445         (call_val_reg_64bit_post_reload): Likewise.
10447 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10449         PR middle-end/71408
10450         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
10451         propagate_op_to_single_use.
10453 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10455         PR middle-end/71281
10456         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10458 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
10460         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10461         (enum x86_dirflag_state): New enum.
10462         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10463         (machine_function): Remove needs_cld.
10464         (ix86_current_function_needs_cld): Remove.
10465         * config/i386/i386.c (ix86_set_func_type): Set
10466         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10467         (ix86_expand_prologue): Do not emit CLD here.
10468         (ix86_dirflag_mode_needed): New function.
10469         (ix86_dirflag_mode_entry): Ditto.
10470         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10471         (ix86_mode_after): Ditto.
10472         (ix86_mode_entry): Ditto.
10473         (ix86_mode_exit): Ditto.
10474         (ix86_emit_mode_set): Ditto.
10475         * config/i386/i386.md (strmov_singleop): Set
10476         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10477         Do not set ix86_current_function_needs_cld.
10478         (rep_mov): Ditto.
10479         (strset_singleop): Ditto.
10480         (rep_stos): Ditto.
10481         (cmpstrnqi_nz_1): Ditto.
10482         (cmpstrnqi_1): Ditto.
10483         (strlenqi_1): Ditto.
10485 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10487         PR tree-optimization/71259
10488         * tree-vect-slp.c (vect_get_constant_vectors): For
10489         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10490         one for constant op, and use COND_EXPR for non-constant.
10492 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10494         * Makefile.in (OBJS): Add function-tests.o,
10495         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10496         selftest-run-tests.o.
10497         (OBJS-libcommon): Add selftest.o.
10498         (OBJS-libcommon-target): Add selftest.o.
10499         (all.internal): Add "selftest".
10500         (all.cross): Likewise.
10501         (selftest): New phony target.
10502         (s-selftest): New target.
10503         (selftest-gdb): New phony target.
10504         (COLLECT2_OBJS): Add selftest.o.
10505         * bitmap.c: Include "selftest.h".
10506         (selftest::test_gc_alloc): New function.
10507         (selftest::test_set_range): New function.
10508         (selftest::test_clear_bit_in_middle): New function.
10509         (selftest::test_copying): New function.
10510         (selftest::test_bitmap_single_bit_set_p): New function.
10511         (selftest::bitmap_c_tests): New function.
10512         * common.opt (fself-test): New.
10513         * diagnostic-show-locus.c: Include "selftest.h".
10514         (make_range): New function.
10515         (test_range_contains_point_for_single_point): New function.
10516         (test_range_contains_point_for_single_line): New function.
10517         (test_range_contains_point_for_multiple_lines): New function.
10518         (assert_eq): New function.
10519         (test_get_line_width_without_trailing_whitespace): New function.
10520         (selftest::diagnostic_show_locus_c_tests): New function.
10521         * et-forest.c: Include "selftest.h".
10522         (selftest::test_single_node): New function.
10523         (selftest::test_simple_tree): New function.
10524         (selftest::test_disconnected_nodes): New function.
10525         (selftest::et_forest_c_tests): New function.
10526         * fold-const.c: Include "selftest.h".
10527         (selftest::assert_binop_folds_to_const): New function.
10528         (selftest::assert_binop_folds_to_nonlvalue): New function.
10529         (selftest::test_arithmetic_folding): New function.
10530         (selftest::fold_const_c_tests): New function.
10531         * function-tests.c: New file.
10532         * gimple.c: Include "selftest.h".
10533         Include "gimple-pretty-print.h".
10534         (selftest::verify_gimple_pp): New function.
10535         (selftest::test_assign_single): New function.
10536         (selftest::test_assign_binop): New function.
10537         (selftest::test_nop_stmt): New function.
10538         (selftest::test_return_stmt): New function.
10539         (selftest::test_return_without_value): New function.
10540         (selftest::gimple_c_tests): New function.
10541         * hash-map-tests.c: New file.
10542         * hash-set-tests.c: New file.
10543         * input.c: Include "selftest.h".
10544         (selftest::assert_loceq): New function.
10545         (selftest::test_accessing_ordinary_linemaps): New function.
10546         (selftest::test_unknown_location): New function.
10547         (selftest::test_builtins): New function.
10548         (selftest::test_reading_source_line): New function.
10549         (selftest::input_c_tests): New function.
10550         * rtl-tests.c: New file.
10551         * selftest-run-tests.c: New file.
10552         * selftest.c: New file.
10553         * selftest.h: New file.
10554         * spellcheck.c: Include "selftest.h".
10555         (selftest::levenshtein_distance_unit_test_oneway): New function,
10556         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10557         (selftest::levenshtein_distance_unit_test): Likewise.
10558         (selftest::spellcheck_c_tests): Likewise.
10559         * toplev.c: Include selftest.h.
10560         (toplev::run_self_tests): New.
10561         (toplev::main): Handle -fself-test.
10562         * toplev.h (toplev::run_self_tests): New.
10563         * tree.c: Include "selftest.h".
10564         (selftest::test_integer_constants): New function.
10565         (selftest::test_identifiers): New function.
10566         (selftest::test_labels): New function.
10567         (selftest::tree_c_tests): New function.
10568         * tree-cfg.c: Include "selftest.h".
10569         (selftest::push_fndecl): New function.
10570         (selftest::test_linear_chain): New function.
10571         (selftest::test_diamond): New function.
10572         (selftest::test_fully_connected): New function.
10573         (selftest::tree_cfg_c_tests): New function.
10574         * vec.c: Include "selftest.h".
10575         (selftest::safe_push_range): New function.
10576         (selftest::test_quick_push): New function.
10577         (selftest::test_safe_push): New function.
10578         (selftest::test_truncate): New function.
10579         (selftest::test_safe_grow_cleared): New function.
10580         (selftest::test_pop): New function.
10581         (selftest::test_safe_insert): New function.
10582         (selftest::test_ordered_remove): New function.
10583         (selftest::test_unordered_remove): New function.
10584         (selftest::test_block_remove): New function.
10585         (selftest::reverse_cmp): New function.
10586         (selftest::test_qsort): New function.
10587         (selftest::vec_c_tests): New function.c.
10588         * wide-int.cc: Include selftest.h and wide-int-print.h.
10589         (selftest::from_int <wide_int>): New function.
10590         (selftest::from_int <offset_int>): New function.
10591         (selftest::from_int <widest_int>): New function.
10592         (selftest::assert_deceq): New function.
10593         (selftest::assert_hexeq): New function.
10594         (selftest::test_printing <VALUE_TYPE>): New function template.
10595         (selftest::test_ops <VALUE_TYPE>): New function template.
10596         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10597         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10598         template.
10599         (selftest::wide_int_cc_tests): New function.
10601 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10603         PR middle-end/37780
10604         * ifcvt.c (noce_try_ifelse_collapse): New function.
10605         Declare prototype.
10606         (noce_process_if_block): Call noce_try_ifelse_collapse.
10607         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10608         (simplify_ternary_operation): Use the above to simplify
10609         conditional CLZ/CTZ expressions.
10611 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10613         PR middle-end/37780
10614         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10615         define_insn_and_split.
10617 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10619         PR middle-end/37780
10620         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10622 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10624         PR c/24414
10625         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10626         Implicitly clobber memory for basic asm with non-empty assembler
10627         string.  Use targetm.md_asm_adjust also here.
10628         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10629         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10630         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10631         non-empty assembler string.
10632         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10633         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10634         (decode_asm_operands): Handle basic asm in PARALLEL block.
10635         (extract_insn): Handle basic asm in PARALLEL block.
10636         * doc/extend.texi: Mention new behavior of basic asm.
10637         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10638         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10639         branch_needs_nop_p): Use asm_noperands.
10641 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10643         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10644         Include the M7 SPARC DFA scheduler.
10645         New attribute v3pipe.
10646         Annotate insns with v3pipe where appropriate.
10647         Define cpu_feature vis4.
10648         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10649         Add (V8QI "8") to vbits.
10650         Add insns {add,sub}v8qi3
10651         Add insns ss{add,sub}v8qi3
10652         Add insns us{add,sub}{v8qi,v4hi}3
10653         Add insns {min,max}{v8qi,v4hi,v2si}3
10654         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10655         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10656         * config/sparc/niagara4.md: Add a comment explaining the
10657         discrepancy between the documented latenty numbers and the
10658         implemented ones.
10659         * config/sparc/niagara7.md: New file.
10660         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10661         supports SPARC5 and VIS 4.0 instructions.
10662         * configure: Regenerate.
10663         * config.in: Likewise.
10664         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10665         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10666         TARGET_CPU_niagara7.
10667         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10668         (CPP_CPU_SPEC): Handle niagara7.
10669         (ASM_CPU_SPEC): Likewise.
10670         * config/sparc/sparc-opts.h (processor_type): Add
10671         PROCESSOR_NIAGARA7.
10672         (mvis4): New option.
10673         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10674         (AS_NIAGARA7_FLAG): Define.
10675         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10676         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10677         (CPP_CPU_SPEC): Handle niagara7.
10678         (ASM_CPU_SPEC): Likewise.
10679         * config/sparc/sparc.c (niagara7_costs): Define.
10680         (sparc_option_override): Handle niagara7 and adjust cache-related
10681         parameters with better values for niagara cpus.  Also support VIS4.
10682         (sparc32_initialize_trampoline): Likewise.
10683         (sparc_use_sched_lookahead): Likewise.
10684         (sparc_issue_rate): Likewise.
10685         (sparc_register_move_cost): Likewise.
10686         (dump_target_flag_bits): Support VIS4.
10687         (sparc_vis_init_builtins): Likewise.
10688         (sparc_builtins): Likewise.
10689         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10690         VIS4 4.0.
10691         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10692         UltraSparc M7.
10693         * config/sparc/sparc.opt (sparc_processor_type): New value
10694         niagara7.
10695         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10696         VIS4 builtins.
10697         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10698         -mvis4.
10699         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10700         VIS4 builtins.
10702 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10704         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10706 2016-06-06  Richard Biener  <rguenther@suse.de>
10708         PR tree-optimization/71398
10709         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10710         remove edges.
10712 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10714         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10715         ft32_expand_prolog, ft32_expand_epilogue):
10716         Handle pretend_args.
10717         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10718         * config/ft32/ft32.md: Add pretend_returner.
10720 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10722         PR target/71389
10723         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10724         Copy op1 RTX to avoid invalid sharing.
10725         (ix86_expand_vector_move_misalign): Ditto.
10727 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10729         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10730         ATTRIBUTE_UNUSED.
10732 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10734         * predict.c (predicted_by_loop_heuristics_p): New function.
10735         (predict_iv_comparison): Use it.
10736         (predict_loops): Walk from innermost loops; do not predict edges
10737         leaving multiple loops multiple times; implement
10738         PRED_LOOP_ITERATIONS_MAX heuristics.
10739         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10741 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10743         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10744         only edges out of BB are EH edges.
10746 2016-06-04  Martin Sebor  <msebor@redhat.com>
10747             Marcin Baczyński  <marbacz@gmail.com>
10749         PR c/48116
10750         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10751         a void expression in a void function.
10753 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10755         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10756         aux; dump reasons of decisions.
10757         (should_duplicate_loop_header_p): Likewise.
10758         (do_while_loop_p): Likewise.
10759         (ch_base::copy_headers): Dump asi num insns duplicated.
10761 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10763         PR tree-optimization/71405
10764         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10765         incompatible type, build a new clobber with the right type instead
10766         of building a VIEW_CONVERT_EXPR around it.
10768 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10770         PR tree-optimization/52171
10771         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10772         by_pieces_ninsns instead of move_by_pieces_ninsns.
10774 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10776         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10777         for reg+reg addressing mode.
10779 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10781         * rs6000-c.c (c/c-tree.h): Add #include.
10782         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10783         in C++ when found in the base position of vec_ld or vec_st.
10785 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10787         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10788         use of profile unless profile status is PROFILE_READ.
10789         * profile.c (compute_branch_probabilities): Set profile status
10790         only after reporting predictor hitrates.
10792 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10794         PR target/71276
10795         PR target/71277
10796         * common.opt (ffp-int-builtin-inexact): New option.
10797         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10798         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10799         (ceil@var{m}2): Document dependence on this option.
10800         * ipa-inline-transform.c (inline_call): Handle
10801         flag_fp_int_builtin_inexact.
10802         * ipa-inline.c (can_inline_edge_p): Likewise.
10803         * config/i386/i386.md (rintxf2): Do not test
10804         flag_unsafe_math_optimizations.
10805         (rint<mode>2_frndint): New define_insn.
10806         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10807         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10808         for 387 instead of extending and truncating.
10809         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10810         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10811         Change to frndint<mode>2_<rounding>.
10812         (frndintxf2_<rounding>_i387): Likewise.  Change to
10813         frndint<mode>2_<rounding>_i387.
10814         (<rounding_insn>xf2): Likewise.
10815         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10816         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10817         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10818         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10819         SSE.  Use ROUND_NO_EXC in constant operand of
10820         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10821         for 387 instead of extending and truncating.
10823 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10824             Julia Koval  <julia.koval@intel.com>
10826         PR target/66960
10827         PR target/67630
10828         PR target/67634
10829         PR target/67841
10830         PR target/68037
10831         PR target/68618
10832         PR target/68661
10833         PR target/69575
10834         PR target/69596
10835         PR target/69734
10836         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10837         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10838         all registers, except for function return registers if there are
10839         no caller-saved registers.
10840         (ix86_set_func_type): New function.
10841         (ix86_set_current_function): Call ix86_set_func_type to set
10842         no_caller_saved_registers and func_type.  Call reinit_regs if
10843         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10844         nor x87 instructions in interrupt handler nor function with
10845         no_caller_saved_registers attribute.
10846         (ix86_function_ok_for_sibcall): Return false if there are no
10847         caller-saved registers.
10848         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10849         handler.
10850         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10851         (ix86_function_arg): Return special arguments in interrupt handler.
10852         (ix86_promote_function_mode): Promote pointer to word_mode only
10853         for normal functions.
10854         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10855         interrupt handler.
10856         (ix86_epilogue_uses): New function.
10857         (ix86_hard_regno_scratch_ok): Likewise.
10858         (ix86_save_reg): Preserve all registers in interrupt handler
10859         after reload.  Preserve all registers, except for function return
10860         registers, if there are no caller-saved registers after reload.
10861         (find_drap_reg): Always use callee-saved register if there are
10862         no caller-saved registers.
10863         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10864         for interrupt handler.
10865         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10866         Emit cld instruction if stringops are used in interrupt handler
10867         or interrupt handler isn't a leaf function.
10868         (ix86_expand_epilogue): Generate interrupt return for interrupt
10869         handler and pop the 'ERROR_CODE' off the stack before interrupt
10870         return in exception handler.
10871         (ix86_expand_call): Disallow calling interrupt handler directly.
10872         If there are no caller-saved registers, mark all registers that
10873         are clobbered by the call which returns as clobbered.
10874         (ix86_handle_no_caller_saved_registers_attribute): New function.
10875         (ix86_handle_interrupt_attribute): Likewise.
10876         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10877         attributes.
10878         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10879         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10880         accumulation in interrupt function if stack may be realigned to
10881         avoid DRAP.
10882         (EPILOGUE_USES): New.
10883         (function_type): New enum.
10884         (machine_function): Add func_type and no_caller_saved_registers.
10885         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10886         (interrupt_return): New pattern.
10887         * doc/extend.texi: Document x86 interrupt and
10888         no_caller_saved_registers attributes.
10890 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10892         PR tree-optimization/52171
10893         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10894         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10895         Look for constant strings.  Move some code to emit_block_cmp_hints
10896         and use it.
10897         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10898         * defaults.h (COMPARE_MAX_PIECES): New macro.
10899         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10900         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10901         (clear_by_pieces_1): Don't declare.  Move definition before use.
10902         (can_do_by_pieces): New static function.
10903         (can_move_by_pieces): Use it.  Return bool.
10904         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
10905         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
10906         (class pieces_addr); New.
10907         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10908         pieces_addr::adjust, pieces_addr::increment_address,
10909         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10910         functions for it.
10911         (class op_by_pieces_d): New.
10912         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10913         functions for it.
10914         (class move_by_pieces_d, class compare_by_pieces_d,
10915         class store_by_pieces_d): New subclasses of op_by_pieces_d.
10916         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10917         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10918         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10919         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10920         compare_by_pieces_d::finish_mode): New member functions.
10921         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10922         functions.
10923         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10924         (emit_block_cmp_hints): New function.
10925         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10926         use the newly defined classes.
10927         * expr.h (by_pieces_constfn): New typedef.
10928         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10929         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10930         (move_by_pieces_ninsns): Don't declare.
10931         (can_move_by_pieces): Change return value to bool.
10932         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10933         (compare_by_pieces_branch_ratio): New hook.
10934         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10935         (by_pieces_ninsns): Declare.
10936         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10937         COMPARE_BY_PIECES.
10938         (default_compare_by_pieces_branch_ratio): New function.
10939         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10940         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10941         * doc/tm.texi: Regenerate.
10942         * tree-ssa-strlen.c: Include "builtins.h".
10943         (handle_builtin_memcmp): New static function.
10944         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10945         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10947 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10949         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10950         relevant stmts which are simple and invariant.
10951         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10952         instead of simple and invariant
10954 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10956         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10957         (vectorizable_reduction): Check for new relevant state.
10958         (vectorizable_live_operation): vectorize live stmts using
10959         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
10960         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10961         (vect_stmt_relevant_p): Check for stmts which are only used live.
10962         (process_use): Use of a stmt does not inherit it's live value.
10963         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10964         (vect_analyze_stmt): Check for new relevant state.
10965         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10966         outside the loop, but not inside it.
10968 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10970         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10971         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10972         (vect_get_vec_def_for_operand): Split out code.
10974 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
10976         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10978 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10980         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10982 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10984         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10986 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
10988         PR middle-end/71387
10989         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10990         to noreturn e->callee->decl that has void return type and void
10991         arguments, adjust gimple_call_fntype and remove lhs even if it had
10992         previously addressable type.
10994 2016-06-02  Jeff Law  <law@redhat.com>
10996         PR tree-optimization/71328
10997         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10998         error when checking for a jump back onto the copied path.
11000 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
11002         * config/microblaze/microblaze.c (get_branch_target): Add return
11003         NULL_RTX for the non-CALL_P case.
11004         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11005         (insert_wic): Remove unused local "j".
11007 2016-06-02  Martin Liska  <mliska@suse.cz>
11009         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11011 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11012             Julia Koval  <julia.koval@intel.com>
11014         * function.c (assign_parm_setup_stack): Force source into a
11015         register if needed.
11016         * target.def (function_incoming_arg): Update documentation to
11017         allow arbitrary address computation based on hard register.
11018         * doc/tm.texi: Regenerated.
11020 2016-06-02  Martin Liska  <mliska@suse.cz>
11022         * predict.c (combine_predictions_for_bb): Fix first match in
11023         cases where a first predictor contains more than one occurence
11024         in list of predictors.  Take the best value in such case.
11026 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11028         PR rtl-optimization/71295
11029         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11030         offset would go over the size of the inner mode reject it.
11032 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
11034         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11035         x=x,x and v=v,m instead of x=x,m.
11037         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11038         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
11039         alternative to v=rm,C.
11041         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11042         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
11043         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
11044         instead of vex for the last two above mentioned alternatives.
11046 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11048         PR target/70830
11049         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11051 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
11053         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11055 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
11057         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11058         from int to unsigned.
11060 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11062         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11063         alternatives, eliminating preferred register class.  Add support
11064         for the MTVSRDD instruction in ISA 3.0.
11065         (vsx_splat_v4si_internal): Use splat_input_operand instead of
11066         reg_or_indexed_operand.
11067         (vsx_splat_v4sf_internal): Likewise.
11069 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11071         PR target/71186
11072         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11073         for loading up all 0's or all 1's.
11075 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11077         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11079 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
11081         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11082         extension.
11083         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11084         * gcc.c (set_source_date_epoch_envvar): New function, sets
11085         the SOURCE_DATE_EPOCH environment variable to the current time.
11087 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11089         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
11090         the factor for live Phi nodes.
11092 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11094         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
11095         * tree-parloops.c (parallelize_loops): likewise.
11096         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
11097         tree_unswitch_outer_loop): likewise.
11099 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
11101         PR middle-end/71371
11102         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
11103         around creation of the temporary.
11105 2016-06-01  Richard Biener  <rguenther@suse.de>
11107         PR tree-optimization/71366
11108         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
11109         (unloop_loops): Move removing edges here ...
11110         (try_unroll_loop_completely): ... from here.
11111         (try_peel_loop): ... and here.
11112         (tree_unroll_loops_completely_1): Track parent loops via
11113         bitmap of header BBs.
11114         (tree_unroll_loops_completely): Adjust for that.
11116 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11118         * config/rs6000/altivec.h (vec_slv): New macro.
11119         (vec_srv): New macro.
11120         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
11121         (UNSPEC_VSRV): New value.
11122         (vslv): New insn.
11123         (vsrv): New insn.
11124         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
11125         (vsrv): New builtin definition.
11126         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
11127         define argument types for new builtin.
11128         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
11129         new builtin.
11130         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
11131         functions.
11133 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
11134             Jocelyn Mayer  <l_indien@magic.fr>
11136         PR target/67310
11137         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
11138         detect processor family for signature_CENTAUR_ebx.
11139         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
11140         signature_CENTAUR_ebx.
11141         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
11142         <default>: Pass x86-64 for has_longmode.
11144 2016-06-01  Nathan Sidwell  <nathan@acm.org>
11146         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
11147         undefined weak.
11149 2016-06-01  Richard Biener  <rguenther@suse.de>
11151         PR tree-optimization/71261
11152         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
11153         of stmts successfully put in the bool pattern.  Remove
11154         single-use restriction.
11155         (adjust_bool_pattern_cast): Add cast at the use site via the
11156         pattern def sequence.
11157         (adjust_bool_pattern): Remove recursion, maintain a hash-map
11158         of patterned defs.  Use the pattern def seqence instead of
11159         multiple independent patterns.
11160         (sort_after_uid): New qsort compare function.
11161         (adjust_bool_stmts): New function to process stmts in the bool
11162         pattern in IL order.
11163         (vect_recog_bool_pattern): Adjust.
11164         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11165         (ifcvt_walk_pattern_tree): Likewise.
11166         (stmt_is_root_of_bool_pattern): Likewise.
11167         (ifcvt_repair_bool_pattern): Likewise.
11168         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11170 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11172         * loop-unroll.c (decide_unroll_constant_iterations,
11173         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11174         likely upper bounds.
11175         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11177 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
11179         * tree-core.h (enum omp_clause_code): Remove
11180         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
11182 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11184         * config/arm/sync.md (arm_store_exclusive<mode>):
11185         Use 'H' output modifier on operands[2] rather than creating a new
11186         entry in out-of-bounds memory of the operands array.
11187         (arm_store_release_exclusivedi): Likewise.
11189 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11191         * config/arm/arm.c (arm_fusion_enabled_p): New function.
11192         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11193         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11194         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11196 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11198         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11199         into account live statements for mask producers.
11201 2016-06-01  Richard Biener  <rguenther@suse.de>
11203         PR tree-optimization/71311
11204         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11205         restrict to non-INTEGER_CST @0.
11207 2016-06-01  Richard Biener  <rguenther@suse.de>
11209         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11210         (relational patterns): Use :c to avoid pattern duplications.
11212 2016-06-01  Richard Biener  <rguenther@suse.de>
11214         * genmatch.c (comparison_code_p): New predicate.
11215         (swap_tree_comparison): New function.
11216         (commutate): Add for_vec parameter to append new for entries.
11217         Support commutating relational operators by swapping it alongside
11218         operands.
11219         (lower_commutative): Adjust.
11220         (dt_simplify::gen): Do not pass artificial operators to gen
11221         functions.
11222         (decision_tree::gen): Do not add artificial operators as parameters.
11223         (parser::parse_expr): Verify operator commutativity when :c is
11224         applied.  Allow :C to override this.
11225         * match.pd: Adjust patterns to use :C instead of :c where required.
11227 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
11229         PR tree-optimization/71077
11230         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
11231         the combining step, use boolean_false_node and boolean_true_node
11232         as the designated false/true return values.
11234 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11236         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
11237         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
11238         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
11239         PRED_LOOP_EXIT.
11241 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11243         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
11244         of flags impliying the register renaming.
11245         * toplev.c (process_options): Do not imply flag_rename_registers with
11246         loop peeling.
11248 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11250         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
11251         default implementation.
11253 2016-05-31  Nathan Sidwell  <nathan@acm.org>
11255         * dwarf2out.c (cur_line_info_table): Add GTY marker.
11257 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11259         * config/sh/constraints.md (b): Remove constraint.
11260         * config/sh/predicates.md (arith_reg_operand): Remove
11261         TARGET_REGISTER_P.
11262         * config/sh/sh-modes.def (PDI): Remove.
11263         * config/sh/sh.c (sh_target_reg_class,
11264         sh_optimize_target_register_callee_saved): Remove functions.
11265         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
11266         (sh_expand_epilogue): Update comment.
11267         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
11268         sh_secondary_reload): Remove TARGET_REGS related code.
11269         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
11270         TARGET_REGISTER_P): Remove macros.
11271         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
11272         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
11273         TR1_REG, TR2_REG): Remove constants.
11274         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
11276 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11278         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
11279         define_expand patterns.
11280         (adddi3_compact): Rename to adddi3.
11281         (subdi3_compact): Rename to subdi3.
11282         (*negdi2): Rename to negdi2.
11283         (*abs<mode>2): Rename to abs<mode>2.
11285 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11287         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
11288         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
11289         (atomic_sub_fetchsi): ... this new pattern.
11290         (mvtc): Add CC_REG clobber.
11292 2016-05-31  Marek Polacek  <polacek@redhat.com>
11294         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
11296 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11298         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
11299         aarch64_fusion_enabled_p to check for fusion capabilities.
11301 2016-05-31  Richard Biener  <rguenther@suse.de>
11303         PR tree-optimization/71352
11304         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
11305         minus one and a negate.
11307 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11309         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
11310         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11311         Delete prototype.
11312         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
11313         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
11314         Remove use of aarch64_simd_attr_length_move, set length attribute
11315         directly.
11316         (*aarch64_be_movoi): Likewise.
11317         (*aarch64_be_movci): Likewise.
11318         (*aarch64_be_movxi): Likewise.
11320 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11322         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
11323         It no longer does that.
11324         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
11326 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
11328         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
11329         attribute __unused__.
11331 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11333         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
11334         * config/arm/arm.c (arm_arch_thumb1): Define.
11335         (arm_option_override): Initialize arm_arch_thumb1.
11336         * config/arm/arm.h (arm_arch_thumb1): Declare.
11337         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
11338         support Thumb-1 ISA.
11340 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11342         PR target/71346
11343         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
11344         `Yv' for scalar operand.
11346 2016-05-31  Tom de Vries  <tom@codesourcery.com>
11348         PR tree-optimization/69068
11349         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
11350         phis with more than two args.
11352 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
11354         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
11355         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
11356         target.
11358 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
11360         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
11361         tune_64.
11362         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11363         support on SPARC.
11364         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
11365         cpu_32, cpu_64, tune_32 and tune_64.
11366         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
11368 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
11370         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
11372 2016-05-30  Andi Kleen  <ak@linux.intel.com>
11374         * auto-profile.c (read_profile): Replace asserts with errors
11375         when file does not exist.
11376         * gcov-io.c (gcov_read_words): Dito.
11378 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11380         * tree-cfg.c (print_loop): Print likely upper bounds.
11382 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11384         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
11385         * opts.c (default_options): Enable peel loops at -O3.
11386         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
11387         (try_peel_loop): Do not re-peel already peeled loops;
11388         use likely upper bounds; fix profile updating.
11389         (pass_complete_unroll::execute): Initialize peeled_loops.
11391 2016-05-30  Martin Liska  <mliska@suse.cz>
11393         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
11394         computed costs by frequency of BB they belong to.
11395         (get_scaled_computation_cost_at): New function.
11397 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
11398             Marc Glisse  <marc.glisse@inria.fr>
11400         PR tree-optimization/71289
11401         * match.pd (-1 / B < A, A > -1 / B): New transformations.
11403 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11405         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
11407 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11409         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
11410         for peeled copies; avoid underflow when updating estimates; correctly
11411         scale loop profile.
11413 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11415         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
11416         r236875. Corrected oe3 to oe2 as obvious.
11418 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11420         PR middle-end/71269
11421         PR middle-end/71252
11422         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
11423         that inserted stmt will not dominate stmts that defines its operand.
11424         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
11425         (rewrite_expr_tree_parallel): Likewise.
11427 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11429         PR middle-end/71252
11430         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
11431         all fields including stmt_to_insert are swapped.
11433 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11435         * predict.h (force_edge_cold): Declare.
11436         * predict.c (force_edge_cold): New function.
11437         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
11438         updating.
11439         (canonicalize_loop_induction_variables): Fix formating.
11441 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11443         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
11444         (visium_expand_copysign): Use gen_int_mode directly.
11445         (visium_compute_frame_size): Minor tweaks.
11447 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11449         * tree-vect-loop.c (vect_analyze_loop_2): Use
11450         likely_max_stmt_executions_int.
11452 2016-05-30  Tom de Vries  <tom@codesourcery.com>
11454         PR tree-optimization/69067
11455         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11457 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
11459         PR target/71245
11460         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11461         New peepholes to remove unneeded fild/fistp pairs.
11462         (define_peephole2 atomic_loaddi_fpu): Ditto.
11464 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11466         * predict.c (maybe_hot_frequency_p): Avoid division.
11468 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11470         * doc/install.texi: Use https for shop.fsf.org.
11472 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11474         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11475         likely_max_stmt_executions_int.
11477 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11479         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11480         likely_max_stmt_executions_int.
11482 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11484         * profile.c (compute_branch_probabilities): Do not report hitrates
11485         here.
11486         (branch_prob): Report hitrates here.
11487         * predict.c (gimple_predict_edge): Do not assert profile status;
11488         fix formatting issues.
11490 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11492         * predict.c (edge_predicted_by_p): New function.
11493         (predict_paths_for_bb): Do not put multiple predictions of the same type
11494         on one edge.
11496 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11498         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11499         commit.
11501 2016-05-28  Alan Modra  <amodra@gmail.com>
11503         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11505 2016-05-28  Alan Modra  <amodra@gmail.com>
11507         PR rtl-optimization/71275
11508         * ira.c (ira): Free dominance info.
11510 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11512         * doc/sourcebuild.texi: New address for upstream Go repository.
11514 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11516         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11517         (TARGET_ARM_V7M): Likewise.
11519 2016-05-26  Jeff Law  <law@redhat.com>
11521         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11522         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11523         * passes.def: Add jump threading passes before DOM/VRP.
11524         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11525         argument to a basic block from an edge.  Remove tests which are
11526         handled elsewhere.
11527         (pass_data_thread_jumps, class pass_thread_jumps): New.
11528         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11529         (make_pass_thread_jumps): Likewise.
11530         * tree-pass.h (make_pass_thread_jumps): Declare.
11532 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11534         * config/visium/visium-protos.h (split_double_move): Rename into...
11535         (visium_split_double_move): ...this.
11536         (visium_split_double_add): Declare.
11537         * config/visium/visium.c (split_double_move): Rename into...
11538         (visium_split_double_move): ...this.
11539         (visium_split_double_add): New function.
11540         (visium_expand_copysign): Renumber operands for consistency.
11541         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11542         (DFmode move splitter): Likewise.
11543         (*addi3_insn): Split by means of visium_split_double_add.
11544         (*adddi3_insn_flags): Delete.
11545         (*plus_plus_sltu<subst_arith>): New insn.
11546         (*subdi3_insn): Split by means of visium_split_double_add.
11547         (subdi3_insn_flags): Delete.
11548         (*minus_minus_sltu<subst_arith>): New insn.
11549         (*negdi2_insn): Split by means of visium_split_double_add.
11550         (*negdi2_insn_flags): Delete.
11552 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11554         * configure.ac: Treat a --with-headers option without argument
11555         the same as the default (i.e. consult sys-include directory).
11556         * configure: Regenerate.
11558 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11560         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11561         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11562         prototype.
11563         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11564         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11566 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11568         PR target/63596
11569         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11570         tree-stdarg analysis results.
11571         (aarch64_setup_incoming_varargs): Likewise.
11573 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11575         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11576         va_list_gpr_counter_field and va_list_fpr_counter_field.
11578 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11580         PR67609
11581         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11582         * config/aarch64/aarch64.c
11583         (aarch64_cannot_change_mode_class): Remove function.
11584         * config/aarch64/aarch64-protos.h
11585         (aarch64_cannot_change_mode_class): Remove.
11587 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11589         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11590         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11591         get_likely_max_loop_iterations_int): New.
11592         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11593         any_likely_upper_bound.
11594         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11595         Declare.
11596         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11597         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11598         upper bound.
11599         (unroll_loop_constant_iterations): Likewise.
11600         (unroll_loop_runtime_iterations): Likewise.
11601         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11602         * lto-streamer-out.c (output_cfg): Likewise.
11603         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11604         bounds.
11605         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11606         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11607         (likely_max_loop_iterations): New.
11608         (likely_max_loop_iterations_int): New.
11609         (likely_max_stmt_executions): New.
11610         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11611         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11612         likely_max_stmt_executions): Declare.
11614 2016-05-27  Marek Polacek  <polacek@redhat.com>
11616         PR middle-end/71308
11617         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11619 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11621         * config/s390/s390.md (2x risbg splitters): Use
11622         reg_overlap_mentioned_p instead of rtx_equal_p.
11624 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11626         * combine.c (make_compound_operation): Take known zero bits into
11627         account when checking for possible zero_extend.
11629 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11631         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11632         Use const_int_operand for operand 2 predicate.  Simplify expand code
11633         as a result.
11635 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11637         PR middle-end/71279
11638         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11639         into comparison.
11641 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11643         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11644         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11645         that returns CC_SESWPmode and CC_ZESWPmode.
11646         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11647         and CC_SESWPmode.
11648         (aarch64_rtx_costs): Likewise.
11650 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11652         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11653         for ISA 3.0 min/max support.
11654         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11655         conditional move support.
11656         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11657         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11658         available.
11659         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11660         conditional moves where the comparison type is different from move
11661         type.
11662         (fp_minmax): New code iterator for smin/smax.
11663         (minmax): New code attributes for min/max.
11664         (SMINMAX): Likewise.
11665         (smax<mode>3): Combine min, max insns into one insn using the
11666         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11667         instructions that don't need -ffast-math.
11668         (s<minmax><mode>3): Likewise.
11669         (smax<mode>3_vsx): Likewise.
11670         (smin<mode>3): Likewise.
11671         (s<minmax><mode>3_vsx): Likewise.
11672         (smin<mode>3_vsx): Likewise.
11673         (pre-VSX min/max splitters): Likewise.
11674         (s<minmax><mode>3_fpr): Likewise.
11675         (movsfcc): Rewrite floating point conditional moves to combine
11676         SFmode/DFmode into a single insn.
11677         (mov<mode>cc): Likewise.
11678         (movdfcc): Likewise.
11679         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11680         SFDF2 iterators to handle all combinations.
11681         (fseldfsf4): Likewise.
11682         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11683         (fseldfdf4): Likewise.
11684         (fselsfdf4): Likewise.
11685         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11686         comparison instructions that set a 0/-1 mask, and use it for
11687         floating point conditional move via XXSEL.
11688         (fpmask<mode>): Likewise.
11689         (xxsel<mode>): Likewise.
11690         * config/rs6000/predicates.md (min_max_operator): Delete, no
11691         longer used.
11692         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11693         instructions that generate a 0/-1 mask for use with XXSEL.
11694         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11695         say whether floating point min/max is available, either through
11696         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11697         (TARGET_MINMAX_DF): Likewise.
11699 2016-05-27  Alan Modra  <amodra@gmail.com>
11701         PR rtl-optimization/71275
11702         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11703         for update_equiv_regs and combine_and_move_insns.
11705 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11707         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11708         if_then_else or cond RTXes to calculate attribute value.
11709         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11710         <attr "length_immediate>: Ditto.
11711         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11712         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11713         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11714         <attr "type">: Ditto.
11715         <attr "prefix_data16">: Ditto.
11716         <attr "prefix_extra">: Ditto.
11717         <attr "length_immediate">: Ditto.
11718         <attr "prefix">: Ditto.
11719         (vec_set<mode>_0) <attr "isa">: Ditto.
11720         <attr "prefix_extra">: Ditto.
11721         <attr "length_immediate">: Ditto.
11722         <attr "prefix">: Ditto.
11723         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11724         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11725         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11726         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11727         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11728         <attr "length_immediate">: Ditto.
11729         <attr "prefix">: Ditto.
11730         (sse2_movsd) <attr "length_immediate">: Ditto.
11731         <attr "prefix">: Ditto.
11732         (vec_concatv2df)  <attr "isa">: Ditto.
11733         <attr "prefix">: Ditto.
11734         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11735         (*vec_extractv2di_1) <attr "isa">: Ditto.
11736         <attr "type">: Ditto.
11737         <attr "length_immediate">: Ditto.
11738         <attr "prefix_rex">: Ditto.
11739         <attr "prefix_extra">: Ditto.
11740         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11741         <attr "prefix_extra">: Ditto.
11742         <attr "length_immediate">: Ditto.
11743         (vec_concatv2di) <attr "isa">: Ditto.
11744         <attr "prefix_extra">: Ditto.
11745         <attr "length_immediate">: Ditto.
11746         <attr "prefix">: Ditto.
11748 2016-05-26  Martin Liska  <mliska@suse.cz>
11750         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11751         function.
11752         (operator+): Likewise.
11753         (operator-): Likewise.
11754         (comp_cost::operator+=): Likewise.
11755         (comp_cost::operator-=): Likewise.
11756         (comp_cost::operator/=): Likewise.
11757         (comp_cost::operator*=): Likewise.
11758         (operator<): Likewise.
11759         (operator==): Likewise.
11760         (operator<=): Likewise.
11761         (new_cost): Remove.
11762         (infinite_cost_p): Likewise.
11763         (add_costs): Likewise.
11764         (sub_costs): Likewise.
11765         (compare_costs): Likewise.
11766         (set_group_iv_cost): Use the newly introduced functions.
11767         (get_address_cost): Likewise.
11768         (get_shiftadd_cost): Likewise.
11769         (force_expr_to_var_cost): Likewise.
11770         (split_address_cost): Likewise.
11771         (ptr_difference_cost): Likewise.
11772         (difference_cost): Likewise.
11773         (get_computation_cost_at): Likewise.
11774         (determine_group_iv_cost_generic): Likewise.
11775         (determine_group_iv_cost_address): Likewise.
11776         (determine_group_iv_cost_cond): Likewise.
11777         (autoinc_possible_for_pair): Likewise.
11778         (determine_group_iv_costs): Likewise.
11779         (cheaper_cost_pair): Likewise.
11780         (iv_ca_recount_cost): Likewise.
11781         (iv_ca_set_no_cp): Likewise.
11782         (iv_ca_set_cp): Likewise.
11783         (iv_ca_cost): Likewise.
11784         (iv_ca_new): Likewise.
11785         (iv_ca_dump): Likewise.
11786         (iv_ca_narrow): Likewise.
11787         (iv_ca_prune): Likewise.
11788         (iv_ca_replace): Likewise.
11789         (try_add_cand_for): Likewise.
11790         (try_improve_iv_set): Likewise.
11791         (find_optimal_iv_set): Likewise.
11793 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11795         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11796         that internal functions will clobber all caller-saved registers.
11798 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11800         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11801         Return a better case_values_threshold when optimizing.
11803 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11805         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11806         Add ? to integer variant.
11807         (aarch64_combinez_be): Likewise.
11809 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11811         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11812         instead of x constraint.
11813         (vcvtps2ph256<mask_name>): Likewise.
11815         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11816         alternative.  Formatting fix.
11818         * config/i386/sse.md
11819         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11820         to ...
11821         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11822         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11823         maybe_evex prefix instead of vex.
11824         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11825         EXT_REX_SSE_REG_P (op0) case in the splitter.
11827 2016-05-25  Jeff Law  <law@redhat.com>
11829         PR tree-optimization/71272
11830         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11831         Update comments.  Add test for empty path.
11833 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11835         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11836         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11837         special case builtin.
11838         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11839         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11840         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11841         for __builtin_vec_cmpne.
11843 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11845         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11846         redundant test and bail out if the type of the new operand is not
11847         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11849 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11851         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11852         (x_ix86_target_flags_explicit): Remove.
11853         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11854         x_ix86_target_flags_explicit.
11855         (ix86_function_specific_restore): Ditto.
11857 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11858             H.J. Lu  <hongjiu.lu@intel.com>
11860         PR target/70738
11861         * common/config/i386/i386-common.c
11862         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11863         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11864         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11865         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11866         (-mgeneral-regs-only): Add new option.
11867         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11868         x87 instructions if only general registers are allowed.
11869         (ix86_target_string): Add ix86_flags argument. Handle additional
11870         flags options through ix86_flags argument.  Update all callers.
11871         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11873 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11875         PR rtl-optimization/66940
11876         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11877         decrementing desired_val will not overflow before performing these
11878         operations.
11880 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11882         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11883         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11884         * config/i386/i386.c (enum ix86_builtins): Add
11885         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11886         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11887         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11888         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11889         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11890         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11891         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11892         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11893         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11894         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11895         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11896         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11897         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11898         __builtin_ia32_cvtps2dq512_mask.
11899         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11900         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11901         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11902         * config/i386/sse.md
11903         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11904         Rename to ...
11905         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11906         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11907         to ...
11908         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11909         (avx512f_vec_pack_sfix_v8df): New define_expand.
11910         (avx512f_roundpd512): Rename to ...
11911         (avx512f_round<castmode>512): ... this.  Change iterator.
11912         (avx512f_roundps512_sfix): New define_expand.
11913         (round<mode>2_sfix): Change iterator.
11915 2016-05-25  Nick Clifton  <nickc@redhat.com>
11917         * config/msp430/msp430.c (msp430_attr): Produce an error if a
11918         static interrupt handler is detected.
11919         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11920         default linker script.
11921         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11922         the low part of a symbolic pointer.
11924 2016-05-25  Richard Biener  <rguenther@suse.de>
11926         PR tree-optimization/71261
11927         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11928         interesting stmt instead of immediate uses when looking
11929         for the use operand to replace.
11931 2016-05-25  Martin Liska  <mliska@suse.cz>
11933         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11935 2016-05-25  Richard Biener  <rguenther@suse.de>
11937         PR tree-optimization/71264
11938         * tree-vect-stmts.c (vect_init_vector): Properly deal with
11939         vector type val.
11941 2016-05-25  Martin Liska  <mliska@suse.cz>
11943         PR tree-optimization/71239
11944         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11945         if DECL_SIZE is NULL.
11947 2016-05-25  Richard Biener  <rguenther@suse.de>
11949         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11950         * tree-if-conv.c (pass_data_if_conversion): Use it.
11952 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11954         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11955         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11956         * varpool.c (varpool_node::get_availability): Likewise.
11958 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11960         * config/rs6000/altivec.md (VNEG iterator): New iterator for
11961         VNEGW/VNEGD instructions.
11962         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11963         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11964         support for ISA 3.0 VNEGW/VNEGD instructions.
11966 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11968         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11969         pointers inside OACC_DATA regions.
11970         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11971         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11972         (gimplify_adjust_omp_clauses): Fix typo in comment.
11974 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11976         * config/rs6000/altivec.md (VParity): New mode iterator for vector
11977         parity built-in functions.
11978         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11979         zeros.
11980         (p9v_parity<mode>2): Likewise.
11981         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11982         parity.
11983         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11984         (parity<mode>2): ISA 3.0 expander for vector parity.
11985         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11986         power9 built-ins.
11987         (BU_P9_64BIT_MISC_0): Likewise.
11988         (BU_P9_MISC_0): Likewise.
11989         (BU_P9V_AV_1): Likewise.
11990         (BU_P9V_AV_2): Likewise.
11991         (BU_P9V_AV_3): Likewise.
11992         (BU_P9V_AV_P): Likewise.
11993         (BU_P9V_VSX_1): Likewise.
11994         (BU_P9V_OVERLOAD_1): Likewise.
11995         (BU_P9V_OVERLOAD_2): Likewise.
11996         (BU_P9V_OVERLOAD_3): Likewise.
11997         (VCTZB): Add vector count trailing zeros support.
11998         (VCTZH): Likewise.
11999         (VCTZW): Likewise.
12000         (VCTZD): Likewise.
12001         (VPRTYBD): Add vector parity support.
12002         (VPRTYBQ): Likewise.
12003         (VPRTYBW): Likewise.
12004         (VCTZ): Add overloaded vector count trailing zeros support.
12005         (VPRTYB): Add overloaded vector parity support.
12006         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12007         overloaded vector count trailing zeros and parity instructions.
12008         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12009         vector parity support.
12010         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12011         trailing zeros support.
12012         (vec_cntlz): Likewise.
12013         (vec_vctzb): Likewise.
12014         (vec_vctzd): Likewise.
12015         (vec_vctzh): Likewise.
12016         (vec_vctzw): Likewise.
12017         (vec_vprtyb): Add ISA 3.0 vector parity support.
12018         (vec_vprtybd): Likewise.
12019         (vec_vprtybw): Likewise.
12020         (vec_vprtybq): Likewise.
12021         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12022         the ISA 3.0 vector count trailing zeros and vector parity built-in
12023         functions.
12025 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12027         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12028         when there is stmt_to_insert.
12030 2016-05-24  Martin Sebor  <msebor@redhat.com>
12032         PR c++/71147
12033         * tree.h (complete_or_array_type_p): New inline function.
12035 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12037         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12038         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12039         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12041         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12042         Limit 1st alternative to noavx isa, split 2nd alternative into one
12043         noavx and one avx alternative, use *x and Bm in the former and
12044         x and m in the latter.
12046         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12047         of sse4 for the first alternative, drop %v from the template
12048         and d operand modifier.  Split second alternative into one sse4_noavx
12049         and one avx alternative, use *x instead of *v in the former and v
12050         instead of *v in the latter.
12051         (*sse4_1_extractps): Use noavx isa instead of * for the first
12052         alternative, drop %v from the template.  Split second alternative into
12053         one noavx and one avx alternative, use *x instead of *v in the
12054         former and v instead of *v in the latter.
12055         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12056         with noavx and the last one with avx.
12057         (sse4_1_phminposuw): Guard first alternative with noavx isa,
12058         split the second one into one noavx and one avx alternative,
12059         use *x and Bm in the former and x and m in the latter one.
12060         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12061         alternatives.
12063         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12064         first two alternatives to noavx, use *x instead of *v in the second
12065         one, add avx alternative without *.
12066         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12067         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12068         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12070 2016-05-24  Jeff Law  <law@redhat.com>
12072         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12073         New function, extracted from...
12074         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
12075         Allow simple copies and constant initializations in the SSA chain.
12077 2016-05-24  Marek Polacek  <polacek@redhat.com>
12079         PR c/71249
12080         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12081         scope.
12083 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12085         PR c++/71257
12086         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12087         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12088         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
12089         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
12090         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
12092 2016-05-24  Richard Biener  <rguenther@suse.de>
12094         PR tree-optimization/71240
12095         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
12096         has integral type.
12098 2016-05-24  Richard Biener  <rguenther@suse.de>
12100         PR tree-optimization/71230
12101         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
12103 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12105         * tree-vectorizer.h (vectorizable_comparison): Delete.
12106         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
12107         PURE_SLP_STMT check.
12108         * tree-vect-stmts.c (vectorizable_call): Likewise.
12109         (vectorizable_simd_clone_call): Likewise.
12110         (vectorizable_conversion): Likewise.
12111         (vectorizable_assignment): Likewise.
12112         (vectorizable_shift): Likewise.
12113         (vectorizable_operation): Likewise.
12114         (vectorizable_load): Likewise.
12115         (vectorizable_condition): Likewise.
12116         (vectorizable_store): Likewise.  Assert that we don't have
12117         hybrid SLP.
12118         (vectorizable_comparison): Make static.  Remove redundant
12119         PURE_SLP_STMT check.
12120         (vect_transform_stmt): Assert that we always have an slp_node
12121         if PURE_SLP_STMT.
12123 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12125         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
12126         operands[2] against 1 with comparison against CONST1_RTX.
12127         (<shift>di3_neon): Likewise.
12128         * config/arm/predicates.md (const0_operand): Replace with comparison
12129         against CONST0_RTX.
12131 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12133         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
12134         operands[2] against 1 with comparison against CONST1_RTX.
12135         (ashrdi3): Likewise.
12136         (lshrdi3): Likewise.
12137         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
12138         UINTVAL.
12139         (ashrsi3): Likewise.
12140         (lshrsi3): Likewise.
12141         (rotrsi3): Likewise.
12142         (define_split above *compareqi_eq0): Likewise.
12143         (define_split above "prologue"): Likewise.
12144         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
12145         * config/arm/predicates.md (shift_operator): Likewise.
12146         (shift_nomul_operator): Likewise.
12147         (sat_shift_operator): Likewise.
12148         (thumb1_cmp_operand): Likewise.
12149         (const_neon_scalar_shift_amount_operand): Replace manual range
12150         check with IN_RANGE.
12151         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
12152         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
12154 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12156         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
12157         with HOST_WIDE_INT_1.
12158         (insv): Likewise.
12159         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
12160         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
12161         (arm_canonicalize_comparison): Likewise.
12162         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12163         HOST_WIDE_INT_1.
12164         (thumb1_size_rtx_costs): Likewise.
12165         (vfp_const_double_index): Replace cast of 1 to unsigned
12166         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12167         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12168         HOST_WIDE_INT_1.
12169         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12170         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12171         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12172         HOST_WIDE_INT with HOST_WIDE_INT_1.
12174 2016-05-24  Marek Polacek  <polacek@redhat.com>
12176         * tree-cfg.h (should_remove_lhs_p): New predicate.
12177         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12178         * gimplify.c (gimplify_modify_expr): Likewise.
12179         * tree-cfg.c (verify_gimple_call): Likewise.
12180         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12181         * gimple-fold.c: Include "tree-cfg.h".
12182         (gimple_fold_call): Use should_remove_lhs_p.
12184 2016-05-24  Richard Biener  <rguenther@suse.de>
12186         PR tree-optimization/71253
12187         * cfganal.h (control_dependences): Make robust against edge
12188         and BB removal.
12189         (control_dependences::control_dependences): Remove edge_list argument.
12190         (control_dependences::get_edge): Remove.
12191         (control_dependences::get_edge_src): Add.
12192         (control_dependences::get_edge_dest): Likewise.
12193         (control_dependences::m_el): Make a vector of edge src/dest index.
12194         * cfganal.c (control_dependences::find_control_dependence): Adjust.
12195         (control_dependences::control_dependences): Likewise.
12196         (control_dependences::~control_dependence): Likewise.
12197         (control_dependences::get_edge): Remove.
12198         (control_dependences::get_edge_src): Add.
12199         (control_dependences::get_edge_dest): Likewise.
12200         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12201         get_edge_src.
12202         (perform_tree_ssa_dce): Adjust.
12203         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12204         get_edge_src.
12205         (pass_loop_distribution::execute): Adjust.  Do loop destroying
12206         conditional on changed.
12208 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12210         PR target/69857
12211         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12212         return.  Reindent transformation comment and mention the ARM state
12213         behavior.
12215 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12217         PR middle-end/71252
12218         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12219         after build_and_add_sum creates new use stmt.
12221 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12223         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12224         load_lanes/grouped_load classification comes first.  Don't check
12225         whether the vectorization factor is a multiple of the group size
12226         for load_lanes.
12228 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12230         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
12231         GROUP_GAP for single-element interleaving.
12232         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
12233         variable.
12235 2016-05-24  Richard Biener  <rguenther@suse.de>
12237         PR middle-end/70434
12238         PR c/69504
12239         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
12240         bases which are accessed with non-invariant indices.
12241         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
12242         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
12244 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12246         PR middle-end/71170
12247         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
12248         (add_to_ops_vec): Add stmt_to_insert.
12249         (add_repeat_to_ops_vec): Init stmt_to_insert.
12250         (insert_stmt_before_use): New.
12251         (transform_add_to_multiply): Remove mult_stmt insertion and add it
12252         to ops vector.
12253         (get_ops): Init stmt_to_insert.
12254         (maybe_optimize_range_tests): Likewise.
12255         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
12256         (rewrite_expr_tree_parallel): Likewise.
12257         (reassociate_bb): Likewise.
12259 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12261         PR target/71201
12262         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
12263         ISA 3.0 xxperm fusion alternative.
12264         (altivec_vperm_v8hiv16qi): Likewise.
12265         (altivec_vperm_<mode>_uns_internal): Likewise.
12266         (vperm_v8hiv4si): Likewise.
12267         (vperm_v16qiv8hi): Likewise.
12269 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12270             Kelvin Nilsen  <kelvin@gcc.gnu.org>
12272         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
12273         vpermr/xxpermr on ISA 3.0.
12274         (altivec_expand_vec_perm_le): Likewise.
12275         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
12276         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
12277         ISA 3.0.
12279 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
12281         * config/i386/i386.h (IS_STACK_MODE): Enable for
12282         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
12283         SSE_FLOAT_MODE_P macros.
12284         * config/i386/i386.c (ix86_preferred_reload_class): Use
12285         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
12286         Cleanup regclass processing for CONST_DOUBLE_P.
12287         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
12288         (ix86_rtx_costs): Remove redundant TARGET_80387 check
12289         with IS_STACK_MODE macro.
12290         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
12291         with TARGET_SSE2.
12292         (*movdf_internal): Use IS_STACK_MODE macro.
12293         (*movsf_internal): Ditto.
12295 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
12297         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
12298         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
12300 2016-05-23  Jeff Law  <law@redhat.com>
12302         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
12303         extracted from ...
12304         (fsm_find_control_statement_thread_paths): Call it.
12306 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12308         PR ipa/71234
12309         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
12310         from_global_constant if t is not NULL.
12312 2016-05-23  Marek Polacek  <polacek@redhat.com>
12314         PR c/49859
12315         * common.opt (Wswitch-unreachable): New option.
12316         * doc/invoke.texi: Document -Wswitch-unreachable.
12317         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
12318         warning.
12320 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
12322         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
12323         TMR_INDEX is non-NULL.
12325 2016-05-23  Richard Biener  <rguenther@suse.de>
12327         PR tree-optimization/71230
12328         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
12329         (try_special_add_to_ops): ... here.  Always test for single-use.
12331 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12333         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
12334         default block if a PHI node in the original one would be resized.
12336 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12338         PR tree-optimization/58135
12339         * tree-vect-slp.c: When group size is not multiple
12340         of vector size, allow splitting of store group at
12341         vector boundary.
12343 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
12345         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
12347 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
12349         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12350         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
12351         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
12352         of 64x2.
12354         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
12355         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
12356         v constraint instead of x and vinserti32x4 insn.
12358         * config/i386/sse.md (i128vldq): New mode iterator.
12359         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
12360         avx512dq and avx512vl alternatives.
12362         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
12363         constraint, use maybe_evex prefix instead of vex.
12364         (vec_dupv4sf): Use v constraint instead of x for output
12365         operand except for noavx alternative, use Yv constraint
12366         instead of x for input.  Use maybe_evex prefix instead of vex.
12367         (*vec_dupv4si): Likewise.
12368         (*vec_dupv2di): Likewise.
12370 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12372         PR middle-end/40921
12373         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
12374         (linearize_expr_tree): Call try_special_add_to_ops.
12375         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
12377 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12379         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
12380         to computed stack_usage.
12382 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12384         PR target/71103
12385         * config/avr/avr.md (define_expand "mov<mode>"): If the source
12386         operand is subreg (symbol_ref) then move the symbol ref to register.
12388 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
12390         * tree.c (array_at_struct_end_p): Look through MEM_REF.
12392 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
12394         PR middle-end/71179
12395         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
12396         VECTOR type.
12398 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12400         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
12401         ranges by calling get_single_symbol and tidy up.  Look more closely
12402         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
12404 2016-05-20  Jeff Law  <law@redhat.com>
12406         * bitmap.c (bitmap_find_bit): Remove useless test.
12408 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12410         * function.c (thread_prologue_and_epilogue_insns): Commit the
12411         insertion of the epilogue.
12413 2016-05-20  Martin Jambor  <mjambor@suse.cz>
12415         PR tree-optimization/70884
12416         * tree-sra.c (initialize_constant_pool_replacements): Do not check
12417         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
12418         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
12419         of constant pool data as a reason for scalarization.
12421 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12423         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
12424         for naked functions.
12425         (thumb1_expand_prologue): Likewise.
12427 2016-05-20  Nathan Sidwell  <nathan@acm.org>
12429         * config/nvptx/nptx.c (nvptx_option_override): Only set
12430         flag_toplevel_reorder, if not explicitly specified.  Set
12431         flag_no_common, unless explicitly specified.
12433 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12435         * calls.c (can_implement_as_sibling_call_p): Mark param
12436         reg_parm_stack_space with ATTRIBUTE_UNUSED.
12438 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
12440         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
12441         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
12442         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
12443         constants.
12444         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
12445         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
12446         and CASE_CONST_ANY.
12448 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
12450         * config/nvptx/nvptx.md (sincossf3): New pattern.
12452 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12454         * calls.c (maybe_complain_about_tail_call): New function.
12455         (initialize_argument_information): Call
12456         maybe_complain_about_tail_call when clearing *may_tailcall.
12457         (can_implement_as_sibling_call_p): Call
12458         maybe_complain_about_tail_call when returning false.
12459         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12460         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
12461         if tail-call optimization fails.
12462         * cfgexpand.c (expand_call_stmt): Initialize
12463         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12464         * gimple-pretty-print.c (dump_gimple_call): Dump
12465         gimple_call_must_tail_p.
12466         * gimple.c (gimple_build_call_from_tree): Call
12467         gimple_call_set_must_tail with the value of
12468         CALL_EXPR_MUST_TAIL_CALL.
12469         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12470         (gimple_call_set_must_tail): New function.
12471         (gimple_call_must_tail_p): New function.
12472         * print-tree.c (print_node): Update printing of TREE_STATIC
12473         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12474         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12475         trailing comment listing applicable flags.
12476         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12478 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12480         * calls.c (expand_call): Move "Rest of purposes for tail call
12481         optimizations to fail" to...
12482         (can_implement_as_sibling_call_p): ...this new function, and
12483         split into multiple "if" statements.
12485 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12487         * cfgloop.h (expected_loop_iterations_unbounded,
12488         expected_loop_iterations): Unconstify.
12489         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12490         profile with known upper bound; return 3 when profile is absent.
12491         (expected_loop_iterations): Update.
12493 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12495         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12496         and get_max_loop_iterations_int.
12498 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12500         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12501         realistic upper bounds here.
12503 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12505         PR c++/71210
12506         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12507         calls if the LHS is variable length or has addressable type.
12508         If targets[0]->decl is a noreturn call with void return type and
12509         zero arguments, adjust fntype and remove lhs in that case.
12511 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12513         PR tree-optimization/71079
12514         PR tree-optimization/71206
12515         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12517 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12519         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12520         (get_vec_alignment_for_array_decl): Likewise.
12521         (get_vec_alignment_for_record_decl): Likewise.
12522         (increase_alignment::execute): Move code to find alignment to
12523         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12524         (type_align_map): New hash_map.
12526 2016-05-20  Richard Guenther  <rguenther@suse.de>
12528         PR tree-optimization/29756
12529         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12530         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12531         * fold-const.c (operand_equal_p): Likewise.
12532         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12533         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12534         * tree-inline.c (estimate_operator_cost): Likewise.
12535         * tree-pretty-print.c (dump_generic_node): Likewise.
12536         * tree-ssa-operands.c (get_expr_operands): Likewise.
12537         * cfgexpand.c (expand_debug_expr): Likewise.
12538         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12539         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12540         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12541         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12542         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12543         (execute_update_addresses_taken): Do it.
12545 2016-05-20  Richard Biener  <rguenther@suse.de>
12547         PR tree-optimization/71185
12548         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12549         register operations.
12551 2016-05-20  Richard Biener  <rguenther@suse.de>
12553         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12554         gimple_seq_add_seq_without_update.
12555         (release_bb_predicate): Assert we have no operands to free.
12556         (if_convertible_loop_p_1): Calculate post dominators later.
12557         Do not free BB predicates here.
12558         (combine_blocks): Do not recompute BB predicates.
12559         (version_loop_for_if_conversion): Save BB predicates around
12560         loop versioning.
12562 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12564         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12565         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12566         code.  Ignore sibcalls on EDGE_IGNORE edges.
12567         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12568         on edges for sibcalls that run without prologue.  The rest of the
12569         function is combined from...
12570         (fix_fake_fallthrough_edge): ... this, and ...
12571         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12572         function argument, make it a local variable.
12574 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12576         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12577         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12578         for 32-bit mode and SEH for 64-bit.
12579         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12580         TARGET_64BIT_DEFAULT.
12582 2016-05-19  Ryan Burn  <contact@rnburn.com>
12584         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12585         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12587 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12589         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12590         force pending loads from memory.
12592 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12594         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12595         (UNSPEC_DARN_32): New unspec constant.
12596         (UNSPEC_DARN_RAW): New unspec constant.
12597         (darn_32): New instruction.
12598         (darn_raw): New instruction.
12599         (darn): New instruction.
12600         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12601         support and documentation for this macro.
12602         (BU_P9_MISC_1): New macro definition.
12603         (BU_P9_64BIT_MISC_0): New macro definition.
12604         (BU_P9_MISC_0): New macro definition.
12605         (darn_32): New builtin definition.
12606         (darn_raw): New builtin definition.
12607         (darn): New builtin definition.
12608         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12609         RS6000_BUILTIN_0 directives to surround each occurrence of
12610         #include "rs6000-builtin.def".
12611         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12612         RS6000_BTM_64BIT flags to the returned mask, depending on
12613         configuration.
12614         (def_builtin): Correct an error in the assignments made to the
12615         debugging variable attr_string.
12616         (rs6000_expand_builtin): Add support for no-operand built-in
12617         functions.
12618         (builtin_function_type): Remove fatal_error assertion that is no
12619         longer valid.
12620         (rs6000_common_init_builtins): Add support for no-operand built-in
12621         functions.
12622         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12623         definition.
12624         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12625         definition.
12626         (RS6000_BTM_64BIT): New macro definition.
12627         * doc/extend.texi: Document __builtin_darn (void),
12628         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12629         functions.
12631 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12633         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12634         max_loop_iterations_int.
12636 2016-05-19  Marek Polacek  <polacek@redhat.com>
12638         PR tree-optimization/71031
12639         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12640         condition and adjust the code a bit.
12642 2016-05-19  Martin Liska  <mliska@suse.cz>
12644         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12645         auto_vec instead of vec.
12647 2016-05-19  Martin Liska  <mliska@suse.cz>
12649         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12651 2016-05-19  Martin Liska  <mliska@suse.cz>
12653         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12655 2016-05-19  Martin Liska  <mliska@suse.cz>
12657         * ipa-pure-const.c (set_function_state): Remove an existing
12658         funct_state.
12659         (remove_node_data): Do not free it as it's released
12660         in set_function_state.
12662 2016-05-19  Martin Liska  <mliska@suse.cz>
12664         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12665         bitmap.
12667 2016-05-19  Martin Liska  <mliska@suse.cz>
12669         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12671 2016-05-19  Martin Liska  <mliska@suse.cz>
12673         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12674         an auto_vec instead of re-creating it.
12676 2016-05-19  Martin Liska  <mliska@suse.cz>
12678         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12679         auto_vec instead of vec.
12681 2016-05-19  Martin Liska  <mliska@suse.cz>
12683         * lto-section-in.c (lto_get_section_data): Call
12684         lto_check_version with additional argument.
12685         * lto-streamer.c (lto_check_version): Add new argument.
12686         * lto-streamer.h (lto_check_version): Likewise.
12688 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12690         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12691         Don't add cost of inner memory when handling sign-extended loads.
12693 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12695         PR rtl-optimization/71148
12696         * cse.c (cse_main): Free dominance info.
12697         (rest_of_handle_cse): Don't free dominance info.
12698         (rest_of_handle_cse2): Likewise.
12699         (rest_of_handle_cse_after_global_opts): Likewise.
12701 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12703         PR target/71056
12704         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12705         NULL_TREE early if NEON is not available.  Remove now redundant check
12706         in ARM_CHECK_BUILTIN_MODE.
12708 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12710         PR sanitizer/64354
12711         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12712         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12713         * doc/cpp.texi: Document new macros.
12715 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12717         PR tree-optimization/69848
12718         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12719         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12721 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12723         * function.c (thread_prologue_and_epilogue_insn): Move the
12724         "goto epilogue_done" one block later.
12726 2016-05-19  Richard Biener  <rguenther@suse.de>
12728         PR tree-optimization/70729
12729         * passes.def: Move LIM pass before PRE.  Remove no longer
12730         required copyprop and move first DCE out of the loop pipeline.
12732 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12734         PR driver/69265
12735         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12736         (OBJS-libcommon-target): ...here.
12737         * opts-common.c: Include spellcheck.h.
12738         (cmdline_handle_error): Build a vec of valid options and use it
12739         to suggest provide hints for misspelled arguments.
12741 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12743         PR c++/71100
12744         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12745         lhs if it has TREE_ADDRESSABLE type.
12747 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12749         PR target/71145
12750         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12751         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12753 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12755         PR ipa/69708
12756         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12757         input for NOP_EXPR pass-through functions.
12758         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12759         aggregate global constant VAR_DECLs in constant jump functions.
12761 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12763         PR ipa/69708
12764         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12765         from TREE_READONLY parameters.
12767 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12769         PR ipa/69708
12770         * cgraph.h (cgraph_indirect_call_info): New field
12771         guaranteed_unmodified.
12772         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12773         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12774         appropriate.
12775         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12776         pass the parameter value to ipa_find_agg_cst_for_param.
12777         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12778         guaranteed_unmodified, store AA results there instead of bailing out
12779         if present.
12780         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12781         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12782         (find_constructor_constant_at_offset): New function.
12783         (ipa_find_agg_cst_from_init): Likewise.
12784         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12785         static initializers of contants, report back through a new paameter
12786         from_global_constant if that was the case.
12787         (try_make_edge_direct_simple_call): Also pass parameter value to
12788         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12789         appropriate.
12790         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12791         (ipa_read_indirect_edge_info): Likewise.
12792         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12793         (ipa_load_from_parm_agg): Likewise.
12795 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12797         PR rtl-optimization/71150
12798         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12799         check.
12801 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12803         PR target/70915
12804         * config/rs6000/constraints.md (wE constraint): New constraint
12805         for a vector constant that can be loaded with XXSPLTIB.
12806         (wM constraint): New constraint for a vector constant of a 1's.
12807         (wS constraint): New constraint for a vector constant that can be
12808         loaded with XXSPLTIB and a vector sign extend instruction.
12809         * config/rs6000/predicates.md (xxspltib_constant_split): New
12810         predicates for wE/wS constraints.
12811         (xxspltib_constant_nosplit): Likewise.
12812         (easy_vector_constant): Add support for constants that can be
12813         loaded via XXSPLTIB.
12814         (all_ones_constant): New predicate for vector constant with all
12815         1's set.
12816         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12817         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12818         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12819         instruction and possibly with a sign extension.
12820         (output_vec_const_move): Add support for XXSPLTIB. If we are
12821         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12822         instead of XXLXOR/XXLORC.
12823         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12824         operations.
12825         (rs6000_legitimize_reload_address): Likewise.
12826         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12827         constants.
12828         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12829         combine VSX_M and VSX_M2 into one iterator.
12830         (VSX_M2): Likewise.
12831         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12832         (VSINT_842): Likewise.
12833         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12834         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12835         XXSPLTIB instruction.
12836         (xxspltib_<mode>_nosplit): Likewise.
12837         (xxspltib_<mode>_split): New insn to load up constants with
12838         XXSPLTIB and a sign extend instruction.
12839         (vsx_mov<mode>): Replace single move that handled all vector types
12840         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12841         moves (when -mvsx-timode is in effect) into the main vector
12842         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12843         preferred register class (<VSr>) is listed first, and the
12844         secondary register class (<VSa>) is listed second with a '?' to
12845         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12846         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12847         that if the register was involved in a slow operation, the
12848         clear/set operation does not wait for the slow operation to
12849         finish.  Adjust the length attributes for 32-bit mode.  Use
12850         rs6000_output_move_128bit and drop the use of the string
12851         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12852         spacing so that the alternatives and attributes don't generate
12853         long lines, and put things in columns, so that it is easier to
12854         match up the operands and attributes with the insn alternatives.
12855         (vsx_mov<mode>_64bit): Likewise.
12856         (vsx_mov<mode>_32bit): Likewise.
12857         (vsx_movti_64bit): Fold movti into normal vector moves.
12858         (vsx_movti_32bit): Likewise.
12859         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12860         splat instructions.
12861         (vsx_splat_v4si_internal): Likewise.
12862         (vsx_splat_v4sf_internal): Likewise.
12863         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12864         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12865         extend vector elements.
12866         (vsx_sign_extend_hi_<mode>): Likewise.
12867         (vsx_sign_extend_si_v2di): Likewise.
12868         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12869         declaration.
12870         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12871         constraints.  Add trailing period to wL documentation.
12873 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12875         PR middle-end/71020
12876         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12877         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12878         * tree-call-cdce.c: Include tree-dfa.h.
12879         (can_guard_call_p): New function, extracted from...
12880         (can_use_internal_fn): ...here.
12881         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12882         and return void.
12883         (shrink_wrap_one_built_in_call): Likewise.
12884         (use_internal_fn): Likewise.
12885         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12886         and return void.  Call replace_abnormal_ssa_names.
12887         (pass_call_cdce::execute): Check can_guard_call_p during the
12888         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12889         will always change something.
12891 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12893         PR ipa/70646
12894         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12895         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12897 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12899         PR ipa/70646
12900         * ipa-inline.h (condition): New field size.
12901         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12902         for comaprison and store it into the new condition.
12903         (evaluate_conditions_for_known_args): Use condition size to check
12904         access sizes for all but CHANGED conditions.
12905         (unmodified_parm_1): New parameter size_p, store access size into it.
12906         (unmodified_parm): Likewise.
12907         (unmodified_parm_or_parm_agg_item): Likewise.
12908         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12909         (set_cond_stmt_execution_predicate): Extract access sizes and store
12910         them to conditions.
12911         (set_switch_stmt_execution_predicate): Likewise.
12912         (will_be_nonconstant_expr_predicate): Likewise.
12913         (will_be_nonconstant_predicate): Likewise.
12914         (inline_read_section): Stream condition size.
12915         (inline_write_summary): Likewise.
12917 2016-05-18  Richard Biener  <rguenther@suse.de>
12919         * tree-ssa-loop-im.c (determine_max_movement): Properly add
12920         condition cost to PHI cost instead of total_cost.
12922 2016-05-18  Martin Liska  <mliska@suse.cz>
12924         PR fortran/70856
12925         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12926         merged variables.
12928 2016-05-18  Richard Biener  <rguenther@suse.de>
12930         * lto-streamer.h (LTO_major_version): Bump to 6.
12932 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12934         * function.c (make_split_prologue_seq, make_prologue_seq,
12935         make_epilogue_seq): New functions, factored out from...
12936         (thread_prologue_and_epilogue_insns): Here.
12938 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12940         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12941         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12942         of before.  Add a comment.
12944 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
12946         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12947         expression pointer, not pointer to the pointer.
12949 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12951         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12952         (avx2_pbroadcast<mode>): Add another alternative with v instead
12953         of x constraints in it, using <pbroadcast_evex_isa> isa.
12954         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12956         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12957         constraint x instead of v in second alternative, add avx512bw
12958         alternative.
12960         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12961         constraint x instead of v in second alternative, add avx512bw
12962         alternative.
12964         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12965         constraint x instead of v in second alternative, add avx512bw
12966         alternative.
12968         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12969         avx512bw alternative.
12971 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12973         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12974         array to 128 chars.
12975         (define_insn "*andnottf3"): Ditto.
12976         (define_insn "*<code><mode>3"/any_logic): Ditto.
12977         (define_insn "*<code>tf3"/any_logic): Ditto.
12978         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12979         operand to block AVX-512VL insn variant emit when it is not enabled.
12981 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12983         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12984         constraint fot SF mode.
12986 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
12987             Kirill Yukhin  <kirill.yukhin@intel.com>
12989         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12990         modifiers.
12991         (define_insn "rsqrt14<mode>"): Ditto.
12992         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12993         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12994         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12995         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12996         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12997         Ditto.
12998         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12999         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13000         * config/i386/i386.c (ix86_print_operand): Expand check for size
13001         override codes for Intel syntax.
13003 2016-05-18  Richard Biener  <rguenther@suse.de>
13005         PR tree-optimization/71168
13006         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13007         initialization earlier.
13009 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
13011         * config/aarch64/aarch64-simd.md
13012         (aarch64_reduc_plus_internal<mode>): Rename to...
13013         (reduc_plus_scal): ...This, and remove previous implementation.
13015 2016-05-18  Richard Biener  <rguenther@suse.de>
13017         * passes.def: Put late dse and cd_dce in canonical order.
13019 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
13021         * ipa-inline-transform.c (preserve_function_body_p): Look for
13022         first non-thunk clone.
13023         (save_function_body): Save into first non-thunk.
13024         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13025         up call stmt id.
13026         (lto_output_node): Inline thunks don't need body in every
13027         partition.
13028         * lto-streamer-in.c: Do not fixup thunk clones.
13029         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13030         thunks.
13031         * tree-inline.c (copy_bb): Be prepared for target node to be new after
13032         folding suceeds.
13034 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13036         PR middle-end/63586
13037         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13038         (reassociate_bb): Call transform_add_to_multiply.
13040 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13042         * config/aarch64/aarch64.c (all_extensions): Removed unused
13043         static variable.
13045 2016-05-17  Nathan Sidwell  <nathan@acm.org>
13047         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13048         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13050 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
13052         PR tree-optimization/54579
13053         PR middle-end/55299
13054         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13056 2016-05-17  Marek Polacek  <polacek@redhat.com>
13058         PR ipa/71146
13059         * tree-inline.c (expand_call_inline): Call
13060         maybe_remove_unused_call_args.
13062 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
13064         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13065         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13066         * doc/md.texi (fmin@var{m}3): Likewise.
13068 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13070         * match.pd (X & C): New transformation.
13072 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13074         * match.pd (~X & Y): New transformation.
13076 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13078         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13079         information for new SSA_NAME.
13080         (simplify_conversion_using_ranges): Get range through get_range_info
13081         instead of get_value_range.
13083 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13085         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
13086         Remove inline assembly.
13087         (vmvn_s16): Likewise.
13088         (vmvn_s32): Likewise.
13089         (vmvn_u8): Likewise.
13090         (vmvn_u16): Likewise.
13091         (vmvn_u32): Likewise.
13092         (vmvnq_s8): Likewise.
13093         (vmvnq_s16): Likewise.
13094         (vmvnq_s32): Likewise.
13095         (vmvnq_u8): Likewise.
13096         (vmvnq_u16): Likewise.
13097         (vmvnq_u32): Likewise.
13098         (vmvn_p8): Likewise.
13099         (vmvnq_p16): Likewise.
13101 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13103         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
13104         Use builtin.
13105         (vmul_n_s16): Likewise.
13106         (vmul_n_s32): Likewise.
13107         (vmul_n_u16): Likewise.
13108         (vmul_n_u32): Likewise.
13109         (vmulq_n_f32): Likewise.
13110         (vmulq_n_f64): Likewise.
13111         (vmulq_n_s16): Likewise.
13112         (vmulq_n_s32): Likewise.
13113         (vmulq_n_u16): Likewise.
13114         (vmulq_n_u32): Likewise.
13116 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13118         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
13119         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
13121 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13123         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
13124         to *aarch64_fma4_elt_from_dup<mode>.
13125         (*aarch64_fnma4_elt_to_128df): Rename to
13126         *aarch64_fnma4_elt_from_dup<mode>.
13127         * config/aarch64/arm_neon.h (vfma_n_f64): New.
13128         (vfms_n_f32): Likewise.
13129         (vfms_n_f64): Likewise.
13130         (vfmsq_n_f32): Likewise.
13131         (vfmsq_n_f64): Likewise.
13133 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
13135         * wide-int.h: Change fixed_wide_int_storage from class to struct.
13137 2016-05-17  Richard Biener  <rguenther@suse.de>
13139         PR tree-optimization/71132
13140         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
13141         Only add control dependences for blocks in the loop.
13142         (build_rdg): Adjust.
13143         (generate_code_for_partition): Return whether loop should
13144         be destroyed and delay that.
13145         (distribute_loop): Likewise.
13146         (pass_loop_distribution::execute): Record loops to be destroyed
13147         and perform delayed destroying of loops.
13149 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13151         PR target/70809
13152         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
13154 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13156         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
13158 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
13160         PR target/71114
13161         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
13162         insertion point for instructions generated by validize_mem.
13164 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13166         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13167         in brackets.
13169 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13171         * config/aarch64/aarch64.c
13172         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13173         rather than a macro.
13175 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13177         * doc/invoke.texi (AArch64 Options): Various updates.
13179 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13181         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13182         into instrumentation thunks.
13183         * cif-code.def (CIF_CHKP): New.
13185 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
13187         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13189 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13191         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13192         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13194 2016-05-16  Marek Polacek  <polacek@redhat.com>
13196         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13197         commentary.
13199 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13201         PR hsa/70857
13202         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13203         the outlined kernel function.
13205 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13207         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13208         (ISA_HAS_DLSA): Ditto.
13210 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13212         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13214 2016-05-16  Nathan Sidwell  <nathan@acm.org>
13216         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13217         (nvptx_name_replacement): Restore.  Add comment.
13218         (write_fn_proto, write_fn_proto_from_insn,
13219         nvptx_output_call_insn): Restore
13220         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13222 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13224         * config/aarch64/aarch64.md
13225         (add<mode>3_compareC_cconly_imm): Remove use of %w.
13226         (add<mode>3_compareC_imm): Likewise.
13227         (<optab>si3_uxtw): Split into register and immediate variants.
13228         (andsi3_compare0_uxtw): Likewise.
13229         (and<mode>3_compare0): Likewise.
13230         (and<mode>3nr_compare0): Likewise.
13231         (stack_protect_test_<mode>): Don't use %x for memory operands.
13233 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13235         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
13237 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13239         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13240         Split integer shifts into shift_reg and bfm.
13241         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13242         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13243         (ror<mode>3_insn): Likewise.
13244         (<optab>si3_insn_uxtw): Likewise.
13245         (<optab><mode>3_insn): Change to rotate_imm.
13246         (extr<mode>5_insn_alt): Likewise.
13247         (extrsi5_insn_uxtw): Likewise.
13248         (extrsi5_insn_uxtw_alt): Likewise.
13250 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13252         * doc/tm.texi: Regenerate.
13253         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
13254         (TARGET_INVALID_RETURN_TYPE): Remove.
13255         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
13256         TARGET_INVALID_RETURN_TYPE.
13257         * target.def (invalid_parameter_type): Remove.
13258         (invalid_return_type): Remove.
13260 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13262         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
13263         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
13264         calls from thunk.
13265         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
13266         gimple body.
13267         (preserve_function_body_p): No need to preserve function body
13268         * cif-codes.def (CIF_THUNK): Remove.
13269         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
13271 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13273         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
13275 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13277         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
13278         for thunks.
13280 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13282         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
13283         (inline_small_functions): Do not look for function symbol when
13284         resetting caches.
13286 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13288         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
13289         of inline thunks
13291 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13292             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13293             Jiong Wang  <jiong.wang@arm.com>
13295         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
13296         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
13297         Define __ARM_FP16_ARGS when appropriate.
13298         * config/arm/arm.c (arm_invalid_parameter_type): Remove
13299         declaration.
13300         (arm_invalid_return_type): Likewise.
13301         (TARGET_INVALID_PARAMETER_TYPE): Remove.
13302         (TARGET_INVALID_RETURN_TYPE): Remove.
13303         (aapcs_vfp_sub_candidate): Allow HFmode.
13304         (aapcs_vfp_allocate): Add comment.  Support HFmode.
13305         (aapcs_vfp_allocate_return_reg): Likewise.
13306         (struct aapcs_cp_arg_layout): Slightly reword comments for
13307         is_return_candidate and allocate_return_reg.
13308         (output_mov_vfp): Update assert.
13309         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
13310         condition.
13311         (arm_invalid_parameter_type): Remove.
13312         (amr_invalid_return_type): Remove.
13313         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
13314         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
13315         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
13317 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13319         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13320         * config/aarch64/arch64-protos.h
13321         (aarch64_legitimize_reload_address): Remove.
13322         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
13323         Remove.
13325 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13327         * configure.ac: Add ACX_NONCANONICAL_HOST.
13328         * configure: Regenerate.
13329         * Makefile.in: Set host_noncanonical.
13331 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
13333         PR target/71097
13334         * config/i386/i386.md (*movtf_internal): Before register allocation,
13335         do not allow FP constants for CM_MEDIUM memory model, allow only
13336         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
13337         (*movxf_internal): Ditto.
13338         (*movdf_internal): Ditto.
13339         (*movsf_internal): Ditto.
13341 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13343         PR rtl-optimization/67483
13344         * combine.c (make_compound_operation): Don't call extract_left_shift
13345         with negative shift amounts.
13347 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
13349         PR bootstrap/71071
13350         * fold-const.c (fold_checksum_tree): Allow modification
13351         of TYPE_ALIAS_SET during folding.
13353         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
13354         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
13355         (ix86_split_to_parts): Likewise.  Fix up formatting.
13357 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13359         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
13360         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
13361         printf format.
13363 2016-05-13  Nathan Sidwell  <nathan@acm.org>
13365         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
13366         (nvptx_name_replacement): Delete.
13367         (write_fn_proto, write_fn_proto_from_insn,
13368         nvptx_output_call_insn): Remove nvptx_name_replacement call.
13369         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
13370         * langhooks.c (add_builtin_funcction_common): Call
13371         targetm.mangle_decl_assembler_name.
13373         * config/nvptx/nvptx.c (write_fn_proto): Handle
13374         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
13376 2016-05-13  Martin Liska  <mliska@suse.cz>
13378         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
13379         and PRIu64 in printf format.
13381 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13383         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
13384         comment.
13386 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13388         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13389         Change --param max-completely-peeled-times to
13390         --param max-completely-peel-times in dump file printing.
13392 2016-05-13  Richard Biener  <rguenther@suse.de>
13394         PR tree-optimization/42587
13395         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
13396         (find_bswap_or_nop_1): Likewise.
13397         (bswap_replace): Likewise.
13399 2016-05-13  Martin Liska  <mliska@suse.cz>
13401         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
13402         Initialize a variable with default value.
13404 2016-05-13  Martin Liska  <mliska@suse.cz>
13406         * doc/invoke.texi: Enhance explanation of error recovery
13407         of sanitizers.
13409 2016-05-13  Martin Liska  <mliska@suse.cz>
13411         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
13412         (struct cost_pair): Change inv_expr_id (int) to inv_expr
13413         (iv_inv_expr_ent *).
13414         (struct iv_inv_expr_ent): Comment struct fields.
13415         (sort_iv_inv_expr_ent): New function.
13416         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
13417         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
13418         a hash_map between iv_inv_expr_ent and number of usages.
13419         (niter_for_exit): Fix coding style.
13420         (tree_ssa_iv_optimize_init): Use renamed variable.
13421         (determine_base_object): Fix coding style.
13422         (alloc_iv): Likewise.
13423         (find_interesting_uses_outside): Likewise.
13424         (add_candidate_1): Likewise.
13425         (add_standard_iv_candidates): Likewise.
13426         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
13427         (prepare_decl_rtl): Fix coding style.
13428         (get_address_cost): Likewise.
13429         (get_shiftadd_cost): Likewise.
13430         (force_expr_to_var_cost): Likewise.
13431         (compare_aff_trees): Likewise.
13432         (get_expr_id): Restructure the function.
13433         (get_loop_invariant_expr_id): Renamed to
13434         get_loop_invariant_expr.
13435         (get_computation_cost_at): Replace usage of inv_expr_id with
13436         inv_expr.
13437         (get_computation_cost): Likewise.
13438         (determine_group_iv_cost_generic): Likewise.
13439         (determine_group_iv_cost_address): Likewise.
13440         (iv_period): Fix coding style.
13441         (iv_elimination_compare_lt): Likewise.
13442         (may_eliminate_iv): Likewise.
13443         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
13444         inv_expr.
13445         (determine_group_iv_costs): Dump invariant expressions.
13446         (iv_ca_recount_cost): Use the newly added hash_map.
13447         (iv_ca_set_remove_invariants): Fix coding style.
13448         (iv_ca_set_add_invariants): Fix coding style.
13449         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
13450         invariants.
13451         (iv_ca_set_cp): Likewise.
13452         (iv_ca_new): Initialize the newly added hash_map and remove
13453         initialization of fields.
13454         (iv_ca_free): Delete the hash_map.
13455         (iv_ca_dump): Dump invariant expressions.
13456         (iv_ca_extend): Fix coding style.
13457         (try_add_cand_for): Likewise.
13458         (create_new_ivs): Dump information about # of avg iterations and
13459         # of used invariant expressions.
13460         (rewrite_use_compare): Fix coding style.
13461         (free_loop_data): Set default value for max_inv_expr_id.
13463 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13465         * cse.c (rest_of_handle_cse): Use cleanup_cfg
13466         returned value cse_cfg_altered computation.
13467         (rest_of_handle_cse2): Likewise.
13468         (rest_of_handle_cse_after_global_opts): Likewise.
13470 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13472         PR target/53440
13473         * config/arm/arm.c (arm32_output_mi_thunk): New.
13474         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13475         to split Thumb1 vs TARGET_32BIT functionality.
13476         (arm_thumb1_mi_thunk): New.
13478 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13480         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13481         to true.
13483 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13485         PR target/71080
13486         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13488 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13490         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13491         (expand_builtin_trap): Emit a regular call.
13492         (set_builtin_user_assembler_name): Remove obsolete cases.
13493         * dse.c (scan_insn): Adjust.
13494         * except.c: Include calls.h.
13495         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13496         emit a regular call to setjmp.
13497         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13498         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13499         (emit_block_move_via_libcall): Delete.
13500         (block_move_fn): Delete.
13501         (init_block_move_fn): Likewise.
13502         (emit_block_move_libcall_fn): Likewise.
13503         (emit_block_op_via_libcall): New function.
13504         (set_storage_via_libcall): Tidy up and use memset builtin.
13505         (block_clear_fn): Delete.
13506         (init_block_clear_fn): Likewise.
13507         (clear_storage_libcall_fn): Likewise.
13508         (expand_assignment): Call emit_block_move_via_libcall.
13509         Do not include gt-expr.h.
13510         * expr.h (emit_block_op_via_libcall): Declare.
13511         (emit_block_copy_via_libcall): New inline function.
13512         (emit_block_move_via_libcall): Likewise.
13513         (emit_block_comp_via_libcall): Likewise.
13514         (block_clear_fn): Delete.
13515         (init_block_move_fn): Likewise.
13516         (init_block_clear_fn): Likewise.
13517         (emit_block_move_via_libcall): Likewise.
13518         (set_storage_via_libcall): Add default parameter value.
13519         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13520         (abort_libfunc): Delete.
13521         (memcpy_libfunc): Likewise.
13522         (memmove_libfunc): Likewise.
13523         (memcmp_libfunc): Likewise.
13524         (memset_libfunc): Likewise.
13525         (setbits_libfunc): Likewise.
13526         (setjmp_libfunc): Likewise.
13527         (longjmp_libfunc): Likewise.
13528         (profile_function_entry_libfunc): Likewise.
13529         (profile_function_exit_libfunc): Likewise.
13530         (gcov_flush_libfunc): Likewise.
13531         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13532         and DECL_VISIBILITY on the declaration.
13533         (init_optabs): Do not initialize obsolete libfuncs.
13534         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13535         * tree-core.h (ECF_RET1): Define.
13536         (ECF_TM_PURE): Adjust.
13537         (ECF_TM_BUILTIN): Likewise.
13538         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13539         (build_common_builtin_nodes): Initialize abort builtin.
13540         Add ECF_RET1 on memcpy, memmove and memset builtins.
13541         Pass final flags for alloca and alloca_with_align builtins.
13542         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13543         obsolete builtins.
13544         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13545         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13546         set_storage_via_libcall and call emit_block_copy_via_libcall.
13548 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13550         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13551         DImode before it is passed to ix86_output_call_operand.
13552         (*call_value_got_x32): Ditto for operand 1.
13554 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13556         PR rtl-optimization/70904
13557         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13558         reload for wide mode.
13560 2016-05-12  Marek Polacek  <polacek@redhat.com>
13562         PR c/70756
13563         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13564         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13565         * langhooks.h (incomplete_type_error): Likewise.
13566         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13567         parameter, pass it down to incomplete_type_error.
13568         * tree.h (size_in_bytes): New inline overload.
13569         (size_in_bytes_loc): Renamed from size_in_bytes.
13571 2016-05-12  Richard Biener  <rguenther@suse.de>
13573         PR tree-optimization/71059
13574         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13575         nary before looking up or entering the expression into the VN
13576         hashes.
13577         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13578         Make sure to re-use NARYs without result as inserted by
13579         phi-translation.
13581 2016-05-12  Richard Biener  <rguenther@suse.de>
13583         PR tree-optimization/71062
13584         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13585         field.
13586         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13587         vars_contains_restrict if the var is a restrict tag.
13588         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13589         do not disambiguate pointers against it.
13590         (dump_points_to_solution): Re-structure and adjust for new
13591         vars_contains_restrict flag.
13592         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13594 2016-05-12  Martin Liska  <mliska@suse.cz>
13596         * doc/invoke.texi: Explain connection between
13597         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13599 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13601         PR tree-optimization/71006
13602         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13603         consider COND_EXPR as a mask producer.
13605 2016-05-12  Marek Polacek  <polacek@redhat.com>
13607         PR driver/71063
13608         * opts.c (common_handle_option): Detect missing argument for --help^.
13610 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13612         PR target/70830
13613         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13614         when popping the PC and within an interrupt handler routine.
13615         Add missing tab to output of "ldmfd".
13616         (output_return_instruction): Output LDMFD with SP update rather
13617         than POP when returning from interrupt handler.
13619 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13621         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13622         TARGET_64BIT && TARGET_AVX512DQ.
13623         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13624         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13625         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13626         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13627         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13628         (*vec_extractv4si_zext): Add avx512dq alternative.
13629         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13630         use v instead of x constraint in other alternatives where possible.
13632         * config/i386/sse.md (sse2_loadld): Use v instead of x
13633         constraint in alternatives 0,1,4.
13635         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13636         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13637         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13639         PR target/71019
13640         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13641         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13642         is not emitted unless TARGET_AVX512BW.
13643         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13644         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13645         for the result operand.
13647         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13648         constraint instead of x in avx alternatives.  Use maybe_evex instead
13649         of vex prefix.
13651         * config/i386/constraints.md (Yv): New constraint.
13652         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13653         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13654         * config/i386/i386.md (avx512fvecmode): New mode attr.
13655         (*pushtf): Use v constraint instead of x.
13656         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13657         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13658         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13659         (*absnegtf2_sse): Likewise.
13660         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13661         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13662         avx512f alternatives.
13663         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13665 2016-05-12  Richard Biener  <rguenther@suse.de>
13667         PR tree-optimization/71060
13668         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13669         require exact match of DR_BASE_OBJECT but only matching address and
13670         type.
13672 2016-05-12  Richard Biener  <rguenther@suse.de>
13674         PR tree-optimization/70986
13675         * cfganal.c: Include cfgloop.h.
13676         (dfs_find_deadend): Prefer to take edges exiting loops.
13678 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13680         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13681         compile and run time.
13683 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13685         PR c/43651
13686         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13688 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13690         * config/i386/i386.c (legitimize_pic_address): Use
13691         copy_to_suggested_reg instead of gen_movsi.
13693 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13695         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13696         the code into quad_address_p and call it to share code with
13697         vsx_quad_dform_memory_operand.
13698         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13699         d-form support.
13700         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13701         bit instead of being a separate word.  Split -mpower9-dform into
13702         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13703         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13704         for the register class supporting 128-bit quad word memory offsets.
13705         (mode_supports_vsx_dform_quad): Helper function to return if the
13706         register class uses quad word memory offsets.
13707         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13708         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13709         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13710         instructions are enabled, set up the appropriate addr_masks for
13711         128-bit types.
13712         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13713         -mpower9-dform-scalar, instead of -mpower9-dform.
13714         (rs6000_option_override_internal): Split -mpower9-dform into two
13715         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13716         -mpower9-dform switch sets or clears both.  If we are not using
13717         the LRA register allocator, do not enable -mpower9-dform-vector by
13718         default.  If we are using LRA, enable -mpower9-dform-vector and
13719         -mvsx-timode if it is appropriate.  Issue a warning if either
13720         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13721         enabling LRA.
13722         (quad_address_offset_p): New helper function to return if the
13723         offset is legal for quad word memory instructions.
13724         (quad_address_p): New function to determin if GPR or vector
13725         register quad word memory addresses are legal.
13726         (mem_operand_gpr): Validate quad word address offsets.
13727         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13728         d-form (register + offset) instructions.
13729         (offsettable_ok_by_alignment): Likewise.
13730         (rs6000_legitimate_offset_address_p): Likewise.
13731         (legitimate_lo_sum_address_p): Likewise.
13732         (rs6000_legitimize_address): Likewise.
13733         (rs6000_legitimize_reload_address): Add more debug statements for
13734         -mdebug=addr.
13735         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13736         d-form instructions.
13737         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13738         d-form instructions.  Distinguish different cases in debug
13739         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13740         d-form instructions.
13741         (rs6000_preferred_reload_class): Likewise.
13742         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13743         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13744         of the ISA 2.06 indexed memory instructions.
13745         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13746         use them to save/restore the saved vector registers instead of
13747         using Altivec instructions.
13748         (rs6000_emit_epilogue): Likewise.
13749         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13750         (rs6000_opt_masks): Split -mpower9-dform into
13751         -mpower9-dform-scalar and -mpower9-dform-vector.
13752         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13753         was not selected.
13754         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13755         ISA 3.0 vector indexed memory instructions, and fold the code into
13756         the normal mov<mode> patterns.
13757         (p9_vecstore_<mode>): Likewise.
13758         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13759         instructions.
13760         (vsx_movti_64bit): Likewise.
13761         (vsx_movti_32bit): Likewise.
13762         * config/rs6000/constraints.md (wO constraint): New constraint for
13763         ISA 3.0 vector d-form support.
13764         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13765         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13766         include -mpower9-dform-vector until we switch over to LRA.
13767         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13768         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13769         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13770         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13771         for -mpower9-dform and -mlra.
13772         * doc/md.texi (wO constraint): Document wO constraint.
13774 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13776         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13777         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13778         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13779         Move handling of non-insn arguments inline into the sole user:
13780         (output_trans_func): ...here.
13781         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13782         in emitted function prototype.
13783         (output_internal_insn_latency_func): Ditto.  Simplify.
13784         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13785         always-unused argument.
13786         (output_insn_latency_func): Ditto.
13787         (output_maximal_insn_latency_func): Ditto.
13789 2016-05-11  Richard Biener  <rguenther@suse.de>
13791         PR tree-optimization/71055
13792         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13793         sth with precision not equal to access size verify we don't chop
13794         off bits.
13796 2016-05-11  Richard Biener  <rguenther@suse.de>
13798         PR debug/71057
13799         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13800         (dwarf2out_finish): Move retry_incomplete_types call ...
13801         (dwarf2out_early_finish): ... here.
13803 2016-05-11  Richard Biener  <rguenther@suse.de>
13805         PR middle-end/71002
13806         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13807         if the langhook insists on it.
13808         * fold-const.c (make_bit_field_ref): Add arg for the original
13809         reference and preserve its alias-set.
13810         (decode_field_reference): Take exp by reference and adjust it
13811         to the original memory reference.
13812         (optimize_bit_field_compare): Adjust callers.
13813         (fold_truth_andor_1): Likewise.
13814         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13816 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13818         PR middle-end/70807
13819         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13820         * cfgrtl.c (delete_insn_and_edges): Likewise.
13821         * config/i386/i386.c (convert_scalars_to_vector): Remove
13822         redundant code.
13823         * cse.c (cse_insn): Compute cse_cfg_altered.
13824         (delete_trivially_dead_insns): Likewise.
13825         (cse_cc_succs): Likewise.
13826         (rest_of_handle_cse): Free dominance info if required.
13827         (rest_of_handle_cse2): Likewise.
13828         (rest_of_handle_cse_after_global_opts): Likewise.
13830 2016-05-11  Alan Modra  <amodra@gmail.com>
13832         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13833         abi_v4_pass_in_fpr): New functions.
13834         (rs6000_function_arg_boundary): Exclude complex IBM long double
13835         from 64-bit alignment when ABI_V4.
13836         (rs6000_function_arg, rs6000_function_arg_advance_1,
13837         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13839 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13841         PR rtl-optimization/71028
13842         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13843         jump with just a return in the fallthrough block if the branch
13844         block contains just a return as well.
13846 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13848         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13849         * match.pd ((X & Y) ^ Y): ... this.
13850         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13851         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13853 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13855         * read-md.c (require_char_ws): New function.
13856         (read_string): Simplify using require_char_ws.
13857         (handle_constants): Likewise.
13858         (handle_enum): Likewise.
13859         (handle_file): Likewise.
13860         * read-md.h (require_char_ws): New declaration.
13861         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13862         (read_mapping): Likewise.
13863         (read_rtx_code): Likewise.
13864         (read_nested_rtx): Likewise.
13866 2016-05-10  James Norris  <jnorris@codesourcery.com>
13868         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13869         if offloading is enabled and -fopenacc or -fopenmp is specified.
13870         (CRTOFFLOADEND): Likewise.
13871         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13872         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13874 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13876         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13877         gotoff_operand code paths.  Use copy_to_suggested_regs and
13878         expand_simple_binop where appropriate.  Cleanup.
13880 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13882         PR target/70799
13883         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13884         integer constants.
13885         (dimode_scalar_chain::vector_const_cost): New.
13886         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13887         (dimode_scalar_chain::convert_op): Likewise.
13888         (dimode_scalar_chain::convert_insn): Likewise.
13890 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13892         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13893         unary operation, not a binary one.
13895 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13897         PR middle-end/70877
13898         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13899         calls with type casted fndecl.
13901 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13903         PR tree-optimization/70786
13904         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13905         * calls.c (initialize_argument_information): Bind bounds
13906         with corresponding args passed by reference.
13908 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
13910         PR target/70927
13911         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13912         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13913         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13914         accordingly.
13916 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13918         PR target/70963
13919         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13920         code for a zero scale factor.
13921         (vsx_xvcvdpuxds_scale): Likewise.
13923 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13925         * diagnostic-show-locus.c (layout::layout): Call show_ruler
13926         if show_ruler_p was set on the context.
13927         (layout::show_ruler): New method.
13928         * diagnostic.h (struct diagnostic_context): Add field
13929         "show_ruler_p".
13931 2016-05-10  Richard Biener  <rguenther@suse.de>
13933         PR tree-optimization/71039
13934         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13935         (chk_uses): New function.
13936         (propagate_with_phi): Verify we can safely replicate the lhs of an
13937         aggregate assignment on all incoming edges.
13939 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
13941         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13942         Forward declare.
13943         (rx_atomic_sequence): New class.
13944         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13945         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13946         non-inline.
13947         (rx_atomic_sequence::rx_atomic_sequence,
13948         rx_atomic_sequence::~rx_atomic_sequence): New functions.
13949         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13950         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13951         CTRLREG_INTB): New constants.
13952         (FETCHOP): New code iterator.
13953         (fethcop_name, fetchop_name2): New iterator code attributes.
13954         (QIHI): New mode iterator.
13955         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13956         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13957         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13959 2016-05-10  Martin Liska  <mliska@suse.cz>
13961         * tree-inline.c (remap_dependence_clique): Do not remap
13962         debugging statements.
13964 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13966         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13967         ("*fixuns_truncdfdi2_z13")
13968         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13969         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13970         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13972 2016-05-10  Richard Biener  <rguenther@suse.de>
13974         PR tree-optimization/70497
13975         PR tree-optimization/28367
13976         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13977         split out from ...
13978         (visit_reference_op_load): ... here.
13979         (vn_reference_lookup_3): Use it to handle subreg-like accesses
13980         with simplified BIT_FIELD_REFs.
13981         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13982         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13983         correctly.
13985 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13987         * dwarf2out.c (add_abstract_origin_attribute): Adjust
13988         documentation comment.  For BLOCK nodes, add a
13989         DW_AT_abstract_origin attribute that points to the DIE generated
13990         for the origin BLOCK.
13991         (gen_lexical_block_die): Call add_abstract_origin_attribute for
13992         blocks from inlined functions.
13994 2016-05-10  Alan Modra  <amodra@gmail.com>
13996         PR target/70947
13997         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13998         regrename modifying insns saving lr before __morestack call.
13999         * config/rs6000/rs6000.md (split_stack_return): Similarly for
14000         insns restoring lr after __morestack call.
14002 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
14004         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14005         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14006         expanders.
14007         * config/i386/sse.md (vec_interleave_high<mode>,
14008         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14009         <avx512>_vpermt2var<mode>3_maskz): Likewise.
14011 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14013         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14014         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14015         parallel reassociation for power8 and forward.
14017 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
14019         * config/i386/i386.md (absneg splitters with general regs): Use
14020         general_reg_operand predicate.
14021         (btsq peephole2): Use x86_64_immediate_operand to check if new
14022         value is suitable for immediate operand.  Generate emitted insn
14023         using RTL expressions.
14024         (btcq peephole2): Ditto.
14025         (btrq peephole2): Ditto.  Generate correct immediate operand
14026         for AND masking.
14028 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14030         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14031         bitpos.
14033 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14035         * tree-affine.c (wide_int_constant_multiple_p): Add missing
14036         pointer dereference.
14038 2016-05-09  Richard Biener  <rguenther@suse.de>
14040         PR tree-optimization/70985
14041         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14042         op0 isn't a gimple register.
14044 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
14046         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14047         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14048         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14049         (i6400_fpu_mult): New cpu units.
14050         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14051         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14052         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14053         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14054         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14055         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14056         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14057         (i6400_msa_long_float4, i6400_msa_long_float5)
14058         (i6400_msa_long_float8, i6400_msa_fdiv_df)
14059         (i6400_msa_fdiv_sf): New reservations.
14060         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14061         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14062         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14063         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14064         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14065         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14066         (msa_short_cmp, msa_short_float2, msa_short_logic3)
14067         (msa_short_store4, msa_long_load, msa_short_store)
14068         (msa_long_logic, msa_long_float2, msa_long_float4)
14069         (msa_long_float5, msa_long_float8, msa_long_mult)
14070         (msa_long_fdiv, msa_long_div): New reservations.
14072 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
14073             Sameera Deshpande  <sameera.deshpande@imgtec.com>
14074             Matthew Fortune  <matthew.fortune@imgtec.com>
14075             Graham Stott  <graham.stott@imgtec.com>
14076             Chao-ying Fu  <chao-ying.fu@imgtec.com>
14078         * config.gcc: Add MSA header file for mips*-*-* target.
14079         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14080         (Ubv8i, Urv8):  New constraints.
14081         * config/mips/mips-ftypes.def: Add function types for MSA
14082         builtins.
14083         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14084         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
14085         * config/mips/mips-msa.md: New file.
14086         * config/mips/mips-protos.h
14087         (mips_split_128bit_const_insns): New prototype.
14088         (mips_msa_idiv_insns): Likewise.
14089         (mips_split_128bit_move): Likewise.
14090         (mips_split_128bit_move_p): Likewise.
14091         (mips_split_msa_copy_d): Likewise.
14092         (mips_split_msa_insert_d): Likewise.
14093         (mips_split_msa_fill_d): Likewise.
14094         (mips_expand_msa_branch): Likewise.
14095         (mips_const_vector_same_val_p): Likewise.
14096         (mips_const_vector_same_bytes_p): Likewise.
14097         (mips_const_vector_same_int_p): Likewise.
14098         (mips_const_vector_shuffle_set_p): Likewise.
14099         (mips_const_vector_bitimm_set_p): Likewise.
14100         (mips_const_vector_bitimm_clr_p): Likewise.
14101         (mips_msa_vec_parallel_const_half): Likewise.
14102         (mips_msa_output_division): Likewise.
14103         (mips_ldst_scaled_shift): Likewise.
14104         (mips_expand_vec_cond_expr): Likewise.
14105         * config/mips/mips.c (enum mips_builtin_type): Add
14106         MIPS_BUILTIN_MSA_TEST_BRANCH.
14107         (mips_gen_const_int_vector_shuffle): New prototype.
14108         (mips_const_vector_bitimm_set_p): New function.
14109         (mips_const_vector_bitimm_clr_p): Likewise.
14110         (mips_const_vector_same_val_p): Likewise.
14111         (mips_const_vector_same_bytes_p): Likewise.
14112         (mips_const_vector_same_int_p): Likewise.
14113         (mips_const_vector_shuffle_set_p): Likewise.
14114         (mips_symbol_insns): Forbid loading symbols via immediate for
14115         MSA.
14116         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
14117         stores.
14118         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
14119         MSA.
14120         (mips_lx_address_p): Add support load indexed address for MSA.
14121         (mips_address_insns): Add calculation of instructions needed for
14122         stores and loads for MSA.
14123         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
14124         CONST_VECTOR for MSA and let it fall through.
14125         (mips_ldst_scaled_shift): New function.
14126         (mips_subword_at_byte): Likewise.
14127         (mips_msa_idiv_insns): Likewise.
14128         (mips_legitimize_move): Validate MSA moves.
14129         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
14130         calculation of costs for MSA division.
14131         (mips_split_move_p): Check if MSA moves need splitting.
14132         (mips_split_move): Split MSA moves if necessary.
14133         (mips_split_128bit_move_p): New function.
14134         (mips_split_128bit_move): Likewise.
14135         (mips_split_msa_copy_d): Likewise.
14136         (mips_split_msa_insert_d): Likewise.
14137         (mips_split_msa_fill_d): Likewise.
14138         (mips_output_move): Handle MSA moves.
14139         (mips_expand_msa_branch): New function.
14140         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
14141         Reinstate 'y' modifier.
14142         (mips_file_start): Add MSA .gnu_attribute.
14143         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
14144         FPRs.
14145         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
14146         (mips_class_max_nregs): Add register size for MSA supported mode.
14147         (mips_cannot_change_mode_class): Allow conversion between MSA
14148         vector modes and TImode.
14149         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
14150         instruction.
14151         (mips_secondary_reload_class): Force MSA loads/stores via memory.
14152         (mips_preferred_simd_mode): Add preffered modes for MSA.
14153         (mips_vector_mode_supported_p): Add MSA supported modes.
14154         (mips_autovectorize_vector_sizes): New function.
14155         (mips_msa_output_division): Likewise.
14156         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
14157         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
14158         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
14159         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
14160         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
14161         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
14162         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14163         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14164         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14165         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14166         (CODE_FOR_msa_bseli_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_clti_u_b)
14170         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14171         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14172         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14173         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14174         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14175         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14176         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14177         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14178         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14179         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14180         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14181         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14182         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14183         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14184         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14185         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14186         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14187         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14188         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14189         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14190         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14191         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14192         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14193         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14194         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14195         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14196         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14197         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14198         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14199         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14200         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14201         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14202         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14203         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14204         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14205         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14206         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14207         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14208         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14209         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14210         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14211         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14212         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14213         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14214         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14215         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14216         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14217         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14218         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14219         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14220         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14221         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14222         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14223         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14224         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
14225         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
14226         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
14227         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
14228         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
14229         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
14230         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
14231         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
14232         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
14233         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
14234         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
14235         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
14236         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
14237         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
14238         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
14239         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
14240         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
14241         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
14242         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
14243         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
14244         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
14245         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
14246         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
14247         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
14248         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
14249         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
14250         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
14251         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
14252         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
14253         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
14254         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
14255         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
14256         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
14257         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
14258         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
14259         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
14260         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
14261         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
14262         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
14263         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
14264         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
14265         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
14266         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
14267         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
14268         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
14269         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
14270         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
14271         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
14272         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
14273         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
14274         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
14275         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
14276         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
14277         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
14278         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
14279         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
14280         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
14281         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
14282         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
14283         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
14284         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
14285         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
14286         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
14287         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
14288         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
14289         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
14290         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
14291         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
14292         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
14293         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
14294         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
14295         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
14296         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
14297         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
14298         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
14299         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
14300         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
14301         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
14302         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
14303         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
14304         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
14305         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
14306         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
14307         move_v builtins.
14308         (mips_get_builtin_decl_index): New array.
14309         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
14310         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
14311         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
14312         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
14313         (mips_init_builtins): Initialize mips_get_builtin_decl_index
14314         array.
14315         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14316         hook.
14317         (mips_expand_builtin_insn): Prepare operands for
14318         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
14319         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
14320         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
14321         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
14322         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
14323         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
14324         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
14325         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
14326         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
14327         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
14328         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
14329         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
14330         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
14331         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
14332         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
14333         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
14334         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
14335         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
14336         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
14337         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
14338         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
14339         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
14340         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
14341         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
14342         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
14343         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
14344         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
14345         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
14346         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
14347         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
14348         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
14349         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
14350         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
14351         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
14352         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
14353         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
14354         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
14355         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
14356         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
14357         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
14358         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
14359         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
14360         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
14361         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
14362         These are set implicitly and an error is reported if overridden.
14363         (mips_expand_builtin_msa_test_branch): New function.
14364         (mips_expand_msa_shuffle): Likewise.
14365         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
14366         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
14367         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
14368         (mips_expand_vec_unpack): Add support for MSA.
14369         (mips_expand_vector_init): Likewise.
14370         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
14371         instead of const0_rtx.
14372         (mips_msa_vec_parallel_const_half): New function.
14373         (mips_gen_const_int_vector): Likewise.
14374         (mips_gen_const_int_vector_shuffle): Likewise.
14375         (mips_expand_msa_cmp): Likewise.
14376         (mips_expand_vec_cond_expr): Likewise.
14377         * config/mips/mips.h
14378         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
14379         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
14380         specified.
14381         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
14382         (ISA_HAS_MSA): New macro.
14383         (UNITS_PER_MSA_REG): Likewise.
14384         (BITS_PER_MSA_REG): Likewise.
14385         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
14386         (MSA_REG_FIRST): New macro.
14387         (MSA_REG_LAST): Likewise.
14388         (MSA_REG_NUM): Likewise.
14389         (MSA_REG_P): Likewise.
14390         (MSA_REG_RTX_P): Likewise.
14391         (MSA_SUPPORTED_MODE_P): Likewise.
14392         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
14393         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
14394         * config/mips/mips.md: Include mips-msa.md.
14395         (alu_type): Add simd_add.
14396         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
14397         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
14398         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
14399         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
14400         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
14401         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
14402         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
14403         simd_move, simd_load, simd_store.  Choose "multi" for moves
14404         for "qword_mode".
14405         (qword_mode): New attribute.
14406         (insn_count): Add instruction count for quad moves.
14407         Increase the count for MIPS SIMD division.
14408         (UNITMODE): Add UNITMODEs for vector types.
14409         (addsub): New code iterator.
14410         * config/mips/mips.opt (mmsa): New option.
14411         * config/mips/msa.h: New file.
14412         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
14413         specified.
14414         * config/mips/mti-linux.h: Likewise.
14415         * config/mips/predicates.md
14416         (const_msa_branch_operand): New constraint.
14417         (const_uimm3_operand): Likewise.
14418         (const_uimm4_operand): Likewise.
14419         (const_uimm5_operand): Likewise.
14420         (const_uimm8_operand): Likewise.
14421         (const_imm5_operand): Likewise.
14422         (aq10b_operand): Likewise.
14423         (aq10h_operand): Likewise.
14424         (aq10w_operand): Likewise.
14425         (aq10d_operand): Likewise.
14426         (const_m1_operand): Likewise.
14427         (reg_or_m1_operand): Likewise.
14428         (const_exp_2_operand): Likewise.
14429         (const_exp_4_operand): Likewise.
14430         (const_exp_8_operand): Likewise.
14431         (const_exp_16_operand): Likewise.
14432         (const_vector_same_val_operand): Likewise.
14433         (const_vector_same_simm5_operand): Likewise.
14434         (const_vector_same_uimm5_operand): Likewise.
14435         (const_vector_same_uimm6_operand): Likewise.
14436         (const_vector_same_uimm8_operand): Likewise.
14437         (par_const_vector_shf_set_operand): Likewise.
14438         (reg_or_vector_same_val_operand): Likewise.
14439         (reg_or_vector_same_simm5_operand): Likewise.
14440         (reg_or_vector_same_uimm6_operand): Likewise.
14441         * doc/extend.texi (MIPS SIMD Architecture Functions): New
14442         section.
14443         * doc/invoke.texi (-mmsa): Document new option.
14445 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14447         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
14448         * configure: Regenerate.
14449         * config.in: Regenerate.
14450         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
14451         on -fvtable-verify.
14452         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14453         (ENDFILE_VTV_SPEC): Define.
14455 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
14457         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14458         registers in all interrupt handlers if necessary.
14459         (rl78_option_override): Add warning.
14460         (MUST_SAVE_MDUC_REGISTERS): New macro.
14461         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14462         * config/rl78/rl78.c (check_mduc_usage): New function.
14463         (mduc_regs): New structure to hold MDUC register data.
14464         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14465         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14466         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14467         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14468         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14469         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14471 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14473         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14474         (tree-ssa-loop-niter.h): Ditto.
14475         (idx_within_array_bound, ref_within_array_bound): New functions.
14476         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14477         Factor out check on writable base object to ...
14478         (base_object_writable): ... here.
14480 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14482         * config/arm/arm.md (probe_stack): Add modes to set source
14483         and destination.
14485 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14487         * regrename.c (base_reg_class_for_rename): New static function.
14488         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14490 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14492         * cgraph.c (thunk_adjust): Export.
14493         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14494         * cgraphunit.c (thunk_adjust): Export.
14495         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14496         thunks.
14497         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14498         inlinable.
14499         * tree-inline.c (expand_call_inline): Expand thunks inline.
14501 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14503         PR target/70998
14504         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14505         (*sse2_vd_cvtss2sd): Ditto.
14506         * config/i386/i386.md
14507         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14508         Generate *sse2_vd_cvtsd2ss pattern.
14509         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14510         Generate *sse2_vd_cvtss2sd pattern.
14512 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14514         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14515         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14516         users.
14518 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14520         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14521         * config/sh/sh.c: Define and declare variables on first use throughout
14522         the file.
14523         (current_function_interrupt): Change to bool type.
14524         (frame_insn): Rename to emit_frame_insn and update users.
14525         (push_regs): Use bool for 'interrupt_handler' argument.
14526         (save_schedule_s): Remove.
14527         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14528         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14529         targetm.asm_out.unaligned_op.di.
14530         (gen_far_branch): Remove redundant forward declaration.
14531         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14532         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14533         (sh_set_return_address, sh_function_ok_for_sibcall,
14534         scavenge_reg): Update comments.
14535         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14536         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14537         (sh_attr_renesas_p): Remove unnecessary parentheses.
14538         (branch_dest): Simplify.
14539         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14540         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14541         (CUMULATIVE_ARGS): Change macro to typedef.
14542         (current_function_interrupt): Change to bool type.
14543         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14544         Surround with __cplusplus ifdef.
14545         (sh_compare_op0, sh_compare_op1): Remove.
14546         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14548 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14550         * config/arm/arm.md: (arch): Add neon.
14551         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14552         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14553         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14554         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14555         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14556         (thumb2_movdf_vfp): Likewise.
14558 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14560         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14561         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14562         (*andqi_1): Add preferred_for_speed attribute to disparage
14563         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14564         (*<code>qi_1): Ditto.
14565         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14566         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14567         (*ashlqi3_1): Ditto.
14568         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14569         Add preferred_for_size attribute to disparage alternative 0 and
14570         preferred_for_speed attribute to disparage alternative 1 for
14571         TARGET_PARTIAL_REG_STALL targets.
14573 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14575         PR tree-optimization/70956
14576         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14577         def.
14579 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14581         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14582         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14583         * config/sh/sh.md (branch_zero): Remove define_attr.
14584         (define_delay): Disable delay slot if branch distance is one insn.
14586 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14588         * config/i386/i386.md (LEAMODE): New mode attribute.
14589         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14590         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14591         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14592         operand 2 predicate.
14593         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14594         (*lea<mode>_general_3): Ditto.
14595         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14597 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14599         * genmddump.c (main): Convert argv from char ** to const char **.
14601 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14603         * coretypes.h (OVERRIDE): New macro.
14604         (FINAL): New macro.
14606 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14608         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14609         allow coalescing if the types are compatible.
14611 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14613         * pass_manager.h (pass_manager::register_pass_name): New method.
14614         (pass_manager::get_pass_by_name): New method.
14615         (pass_manager::create_pass_tab): New method.
14616         (pass_manager::m_name_to_pass_map): New field.
14617         * passes.c (name_to_pass_map): Delete global in favor of field
14618         "m_name_to_pass_map" of pass_manager.
14619         (register_pass_name): Rename from a function to...
14620         (pass_manager::register_pass_name): ...this method, updating
14621         for renaming of global "name_to_pass_map" to field
14622         "m_name_to_pass_map".
14623         (create_pass_tab): Rename from a function to...
14624         (pass_manager::create_pass_tab): ...this method, updating
14625         for renaming of global "name_to_pass_map" to field.
14626         (get_pass_by_name): Rename from a function to...
14627         (pass_manager::get_pass_by_name): ...this method.
14628         (enable_disable_pass): Convert use of get_pass_by_name to
14629         a method call, locating the pass_manager singleton.
14631 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14633         * genattr-common.c (main): Convert argv from char ** to const char **.
14634         * genattr.c (main): Likewise.
14635         * genattrtab.c (main): Likewise.
14636         * genautomata.c (initiate_automaton_gen): Likewise.
14637         (main): Likewise.
14638         * gencodes.c (main): Likewise.
14639         * genconditions.c (main): Likewise.
14640         * genconfig.c (main): Likewise.
14641         * genconstants.c (main): Likewise.
14642         * genemit.c (main): Likewise.
14643         * genenums.c (main): Likewise.
14644         * genextract.c (main): Likewise.
14645         * genflags.c (main): Likewise.
14646         * genmddeps.c (main): Likewise.
14647         * genopinit.c (main): Likewise.
14648         * genoutput.c (main): Likewise.
14649         * genpeep.c (main): Likewise.
14650         * genpreds.c (main): Likewise.
14651         * genrecog.c (main): Likewise.
14652         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14653         (init_rtx_reader_args): Likewise.
14654         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14655         (init_rtx_reader_args): Likewise.
14656         * gentarget-def.c (main): Likewise.
14657         * read-md.c (read_md_files): Likewise.
14658         * read-md.h (read_md_files): Likewise.
14660 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14662         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14663         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14664         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14665         Remove unused predicate.
14666         (register_and_not_fp_reg_operand): Ditto.
14668 2016-05-06  Martin Liska  <mliska@suse.cz>
14670         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14671         instead of vec as the vector is local to the function.
14673 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14675         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14676         avx512bw alternative.
14678         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14679         before the ashr<mode>3 pattern.
14681         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14682         v instead of x in vex or maybe_vex alternatives, use
14683         maybe_evex instead of vex in prefix.
14685         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14686         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14687         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14688         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14689         in prefix.
14691         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14692         v instead of x in vex or maybe_vex alternatives, use
14693         maybe_evex instead of vex in prefix.
14695         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14696         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14697         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14698         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14699         alternatives, use maybe_evex instead of vex in prefix.
14701         * config/i386/sse.md (vec_interleave_lowv4sf,
14702         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14703         v instead of x in vex or maybe_vex alternatives, use
14704         maybe_evex instead of vex in prefix.
14706         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14707         v instead of x in vex or maybe_vex alternatives, use
14708         maybe_evex instead of vex in prefix.
14710         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14711         v constraint instead of x.
14713 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14715         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14716         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14717         equality first.
14719 2016-05-06  Richard Biener  <rguenther@suse.de>
14721         PR tree-optimization/70948
14722         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14723         Properly clobber all fields of va_list for __builtin_va_start.
14725 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14727         PR debug/70935
14728         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14729         loop latch destination.
14731 2016-05-06  Martin Liska  <mliska@suse.cz>
14733         * tree-ssa-uninit.c: Apply manual changes
14734         to the GNU coding style.
14735         (prune_uninit_phi_opnds): Rename from
14736         prune_uninit_phi_opnds_in_unrealizable_paths.
14738 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14740         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14741         mspace): Remove deprecated options.
14742         * doc/invoke.texi (SH options): Remove -mspace.
14744 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14746         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14748 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14750         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14751         corresponding combine split pattern.
14753 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14755         PR target/58219
14756         * config/sh/predicates.md (long_displacement_mem_operand): New.
14757         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14758         Add movi20, movi20s alternatives.  Adjust length attribute for
14759         alternatives.
14760         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14761         alternatives.
14762         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14763         attribute for alternatives.
14764         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14765         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14766         length attribute for alternatives.
14768 2016-05-06  Richard Biener  <rguenther@suse.de>
14770         PR tree-optimization/70960
14771         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14773 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14775         PR target/52933
14776         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14777         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14779 2016-05-06  Marek Polacek  <polacek@redhat.com>
14781         PR sanitizer/70875
14782         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14784 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14786         PR target/54089
14787         * config/sh/sh.md (*rotcr): Add another variant.
14789 2016-05-06  Richard Biener  <rguenther@suse.de>
14791         PR middle-end/70931
14792         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14794 2016-05-06  Richard Biener  <rguenther@suse.de>
14796         PR middle-end/70941
14797         * fold-const.c (split_tree): Always convert to the original type
14798         before negating.
14800 2016-05-06  Richard Biener  <rguenther@suse.de>
14802         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14803         (fwprop_addr): Likewise.
14805 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14807         PR target/70873
14808         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14809         New prototype.
14810         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14811         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14812         the splitter condition.
14813         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14814         the splitter condition.
14815         (FP float_extend load splitter): Ditto.
14817 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14819         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14820         to REGNO in all peephole2 patterns.
14821         (post-reload splitters): Change true_regnum to REGNO in
14822         post-reload splitters.
14823         (zero_extend splitters): Use general_reg_operand and
14824         nonimmediate_gr_operand predicates.
14826 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14828         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14829         v constraint instead of x.
14831 2016-05-05  Alan Modra  <amodra@gmail.com>
14833         PR target/68662
14834         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14835         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14836         TARGET_NO_FP_IN_TOC for -mrelocatable.
14837         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14838         TARGET_RELOCATABLE test.
14839         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14840         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14841         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14842         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14843         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14844         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14845         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14846         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14847         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14848         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14849         Likewise.
14850         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14851         (rs6000_stack_info): Likewise.
14852         (rs6000_elf_asm_out_constructor): Likewise.
14853         (rs6000_elf_asm_out_destructor): Likewise.
14854         (rs6000_elf_declare_function_name): Likewise.
14855         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14856         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14857         Don't define.
14859 2016-05-05  Alan Modra  <amodra@gmail.com>
14861         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14863 2016-05-05  Alan Modra  <amodra@gmail.com>
14865         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14866         out-of-line gpr restore for one or two regs if that would add
14867         a save of lr.
14869 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14871         PR target/70873
14872         * config/i386/i386.md
14873         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14874         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14875         as operand 0 predicate.
14876         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14877         Ditto.
14878         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14879         Ditto.  Emit the pattern using RTX.
14881         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14882         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14883         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14884         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14885         Ditto.
14886         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14887         sse_reg_operand as operand 0 predicate.
14889         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14890         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14891         instead of gen_rtx_REG.
14892         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14893         Ditto.
14895 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14897         * function.c (emit_use_return_register_into_block): Delete.
14898         (gen_return_pattern): Delete.
14899         (emit_return_into_block): Delete.
14900         (active_insn_between): Delete.
14901         (convert_jumps_to_returns): Delete.
14902         (emit_return_for_exit): Delete.
14903         (thread_prologue_and_epilogue_insns): Delete all code dealing with
14904         simple_return for shrink-wrapped blocks.
14905         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14906         end of blocks that need one.
14907         (get_unconverted_simple_return): Delete.
14908         (convert_to_simple_return): Delete.
14909         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14910         (convert_to_simple_return): Ditto.
14912 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14914         * cfgcleanup.c (bb_is_just_return): New function.
14915         (try_optimize_cfg): Simplify jumps to return, branches to return,
14916         and branches around return.
14918 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14920         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14921         branch to a return.
14923 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14925         PR c++/70906
14926         PR c++/70933
14927         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14928         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14929         assert flags & OEP_HASH_CHECK, instead of asserting it
14930         never happens.  Handle TARGET_EXPR.
14931         * fold-const.c (operand_equal_p): For hash verification,
14932         or in OEP_HASH_CHECK into flags.
14934 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14936         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14937         comment.
14938         (compute_samebase_partition_bases): Fix typo.
14940 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14942         * config/i386/sse.md (vec_interleave_highv8sf,
14943         vec_interleave_lowv8sf, vec_interleave_highv4df,
14944         vec_interleave_lowv4df): Remove constraints from expanders.
14946         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14948 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14950         * tree-inline.c (expand_call_inline): Fix path dealing with
14951         making lhs of call statement undefined.
14953 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14955         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14956         Check availability on NODE, too.
14957         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14958         (cgraph_node::call_for_symbol_and_aliases): Likewise.
14959         (varpool_node::call_for_symbol_and_aliase): Likewise.
14960         * ipa-pure-const.c (add_new_function): Analyze all bodies.
14961         (propagate_pure_const): Propagate across interposable functions, too.
14962         (skip_function_for_local_pure_const): Do not skip interposable bodies
14963         with aliases.
14964         (pass_local_pure_const::execute): Update.
14966 2016-05-04  Marek Polacek  <polacek@redhat.com>
14968         * doc/invoke.texi: Document -Wdangling-else.
14970 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14972         * config.gcc: Error out when conflicting multilib is detected.  Do not
14973         loop over multilibs since no combination is legal.
14975 2016-05-04  Alan Modra  <amodra@gmail.com>
14977         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14978         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14979         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14980         Align .toc.
14982 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14984         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14985         Clean up p5600 comments.
14987 2016-05-04  Richard Biener  <rguenther@suse.de>
14989         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14990         constructor simplifications.
14991         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14993 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
14995         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14996         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14997         result.set_rtx is null instead of aborting.
14998         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14999         Always enable.
15000         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15001         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15002         *mov<mode>_store_postinc): New patterns.
15004 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
15006         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
15007         as commutative.  Check both conversions are NOP.
15008         ((A & B) OP (C & B)): Remove.
15010 2016-05-04  Alan Modra  <amodra@gmail.com>
15012         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15014 2016-05-04  Alan Modra  <amodra@gmail.com>
15016         PR target/70866
15017         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15018         when cr2,3,4 are all fixed regs.
15020 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
15022         PR rtl-optimization/57193
15023         * opts.c (default_options_table): Revert OPT_frename_registers change.
15024         * doc/invoke.texi (-frename-registers, -O2): Likewise.
15026 2016-05-03  Martin Sebor  <msebor@redhat.com>
15028         PR c++/66561
15029         * builtins.c (fold_builtin_FILE): New function.
15030         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15031         (fold_builtin_0): Call them.
15032         * gimplify.c (gimplify_call_expr): Remove the handling of
15033         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15035         PR c++/66561
15036         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15037         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15038         constants.
15040         PR c++/66639
15041         * doc/extend.texi (Function Names as Strings): Update __func__,
15042         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15043         constants.
15045 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15046             Richard Biener  <rguenther@suse.de>
15048         PR tree-optimization/70916
15049         * tree-if-conv.c: Include cfganal.h.
15050         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15051         and remove_fake_exit_edges around the optimization pass.
15053 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
15055         * cgraph.c (symbol_table::create_edge): Set inline_failed.
15056         (cgraph_edge::make_direct): Likewise.
15057         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15058         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15059         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15060         (CIF_THUNK): New code.
15061         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15062         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15063         (compute_inline_parameters): Set inline_failed for thunks.
15064         (inline_analyze_function): Cleanup.
15065         * ipa-inline.c (can_inline_edge_p): Do not deal with
15066         call_stmt_cannot_inline_p.
15067         (can_early_inline_edge_p): Likewise.
15068         (early_inliner): Initialize inline_failed.
15069         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15071 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
15073         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15074         from nonimm_ssenomem_operand.
15075         (nonimm_ssenomem_operand): New predicate.
15076         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15077         as operand 0 predicate.
15078         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15079         Disable unsupported alternatives using "enabled" attribute.
15080         Use register_ssemem_operand as operand 0 predicate.
15081         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15083 2016-05-03  Marek Polacek  <polacek@redhat.com>
15085         PR c/70859
15086         * input.c (expansion_point_location): New function.
15087         * input.h (expansion_point_location): Declare.
15089 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
15091         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
15092         occurence with frame_offset_ ones.
15094 2016-05-03  Alan Modra  <amodra@gmail.com>
15096         PR rtl-optimization/70890
15097         * ira.c (combine_and_move_insns): When moving def_insn, remove
15098         equivs on use_insn.
15100 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15102         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
15103         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
15104         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
15105         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
15107 2016-05-03  Alan Modra  <amodra@gmail.com>
15109         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
15110         for SAVE_MULTIPLE/STORE_MULTIPLE.
15112 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15114         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
15115         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
15117 2016-05-03  Richard Biener  <rguenther@suse.de>
15119         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
15120         default true.
15121         (gimplify_arg): Likewise.
15122         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
15123         re-writing the result to a decl if required.
15124         (internal_get_tmp_var): Add allow_ssa parameter
15125         and override into_ssa with it.
15126         (get_formal_tmp_var): Adjust.
15127         (get_initialized_tmp_var): Add allow_ssa parameter.
15128         (gimplify_arg): Add allow_ssa parameter and avoid generating
15129         SSA names for the result false.
15130         (gimplify_call_expr): If the call may return twice do not
15131         gimplify parameters into SSA.
15132         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
15133         (gimplify_modify_expr): Adjust assert.  For noreturn calls
15134         with a SSA name LHS adjust its def.
15135         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
15136         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
15137         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
15138         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
15139         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
15140         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
15141         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
15142         (optimize_target_teams): Do not allow SSA names for clause operands.
15143         (gimplify_expr): Likewise for where we mark the result addressable.
15144         * passes.def (pass_init_datastructures): Remove.
15145         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
15146         (rewrite_stmt): Likewise.
15147         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
15148         (replace_locals_op): Replace SSA names.
15149         (copy_gimple_seq_and_replace_locals): Init src_cfun.
15150         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
15151         * cgraph.c (release_function_body): Free CFG annotations only
15152         when we have a CFG.  Simplify.
15153         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15154         force_gimple_operand instead of get_initialized_tmp_var.
15155         * tree-pass.h (make_pass_init_datastructures): Remove.
15156         * tree-ssa.c (execute_init_datastructures): Remove.
15157         (pass_data_init_datastructures): Likewise.
15158         (class pass_init_datastructures): Likewise.
15159         (make_pass_init_datastructures): Likewise.
15160         * omp-low.c (create_omp_child_function): Init SSA data structures.
15161         (grid_expand_target_grid_body): Likewise.
15162         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15163         name before adding it to names_to_release.
15164         (remove_bb): Always release SSA defs.
15165         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15166         before dereferencing it.
15167         * cgraphunit.c (init_lowered_empty_function): Always
15168         int SSA data structures.
15169         * tree-ssanames.c (release_defs): Remove assert that we are in
15170         SSA form.
15171         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15173 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15174             Uros Bizjak  <ubizjak@gmail.com>
15176         PR rtl-optimization/70467
15177         * config/i386/predicates.md (x86_64_hilo_int_operand,
15178         x86_64_hilo_general_operand): New predicates.
15179         * config/i386/constraints.md (Wd): New constraint.
15180         * config/i386/i386.md (mode attr di): Use Wd instead of e.
15181         (general_hilo_operand): New mode attr.
15182         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15183         instead of <general_operand>.
15184         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15185         x86_64_hilo_general_operand instead of <general_operand>.
15187 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15189         PR tree-optimization/70916
15190         * tree-if-conv.c (constant_or_ssa_name): Removed.
15191         (fold_build_cond_expr): Use is_gimple_val instead of
15192         constant_or_ssa_name.
15194         PR tree-optimization/70916
15195         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15196         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15198         PR target/49244
15199         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15200         (optimize_atomic_bit_test_and): New function.
15201         (pass_fold_builtins::execute): Use it.
15202         * optabs.def (atomic_bit_test_and_set_optab,
15203         atomic_bit_test_and_complement_optab,
15204         atomic_bit_test_and_reset_optab): New optabs.
15205         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15206         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15207         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15208         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15209         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15210         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15211         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15212         * doc/md.texi (atomic_bit_test_and_set@var{mode},
15213         atomic_bit_test_and_complement@var{mode},
15214         atomic_bit_test_and_reset@var{mode}): Document.
15215         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15216         atomic_bit_test_and_complement<mode>,
15217         atomic_bit_test_and_reset<mode>): New expanders.
15218         (atomic_bit_test_and_set<mode>_1,
15219         atomic_bit_test_and_complement<mode>_1,
15220         atomic_bit_test_and_reset<mode>_1): New insns.
15222 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
15224         PR rtl-optimization/70687
15225         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
15226         instead of unsigned HOST_WIDE_INT.
15228 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
15230         PR rtl-optimization/44281
15231         * hard-reg-set.h (struct target_hard_regs): New field
15232         x_fixed_nonglobal_reg_set.
15233         (fixed_nonglobal_reg_set): New macro.
15234         * reginfo.c (init_reg_sets_1): Initialize it.
15235         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
15236         of fixed_reg_set.
15237         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
15239 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15241         PR tree-optimization/56541
15242         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
15243         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
15244         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
15245         (any_complicated_phi): new static variable.
15246         (aggressive_if_conv): delete.
15247         (if_convertible_phi_p): support phis with more than two arguments.
15248         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
15249         critical pred edges.
15250         (ifcvt_split_critical_edges): support phis with more than two
15251         arguments by checking new parameter.  only split critical edges
15252         if needed.
15253         (tree_if_conversion): handle simd pragma marked loop using new
15254         local variable aggressive_if_conv.  check any_complicated_phi.
15256 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15258         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
15259         before using it.
15261 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15263         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
15264         cbase.
15266 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
15268         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
15269         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
15270         define_insn_and_split.
15271         (mulsi3_i): New define_insn_and_split.
15272         (mulsi3_call): Convert to define_insn.
15273         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
15274         Remove constraints.
15276 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15278         * machmode.h (mode_complex): Add support to give the complex mode
15279         for a given mode.
15280         (GET_MODE_COMPLEX_MODE): Likewise.
15281         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
15282         stored by build_complex_type and gfc_build_complex_type instead of
15283         trying to figure out the appropriate mode based on the size. Raise
15284         an assertion error, if the type was not set.
15285         * genmodes.c (struct mode_data): Add field for the complex type of
15286         the given type.
15287         (blank_mode): Likewise.
15288         (make_complex_modes): Remember the complex mode created in the
15289         base type.
15290         (emit_mode_complex): Write out the mode_complex array to map a
15291         type mode to the complex version.
15292         (emit_insn_modes_c): Likewise.
15293         * tree.c (build_complex_type): Set the complex type to use before
15294         calling layout_type.
15295         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
15296         support for __float128 complex datatypes.
15297         (rs6000_hard_regno_mode_ok): Likewise.
15298         (rs6000_setup_reg_addr_masks): Likewise.
15299         (rs6000_complex_function_value): Likewise.
15300         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
15301         __float128 and __ibm128 complex.
15302         (FLOAT128_IBM_P): Likewise.
15303         (ALTIVEC_ARG_MAX_RETURN): Likewise.
15304         * doc/extend.texi (Additional Floating Types): Document that
15305         -mfloat128 must be used to enable __float128.  Document complex
15306         __float128 and __ibm128 support.
15308 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15310         PR target/49244
15311         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
15312         char/short arguments promoted to int because of promote_prototypes.
15314 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15316         * config/i386/predicates.md (register_ssemem_operand): New predicate.
15317         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
15318         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
15319         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
15320         alternatives using "enabled" attribute.  Use register_ssemem_operand
15321         as operand 1 predicate.
15322         (*cmpi<unord>xf_i387): Split XFmode pattern from
15323         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
15324         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
15325         *absneg<mode>2_i387.  Disable unsupported alternatives using
15326         "enabled" attribute.
15327         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
15329 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15331         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
15332         marker.
15333         (oacc_loop_process): Check mask for loop termination.
15335 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15337         * cif-code.def (CIF_THUNK): Add.
15338         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
15339         accidental change.
15341 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15343         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
15344         (dump_inline_summary): Dump it.
15345         (fp_expression_p): New predicate.
15346         (estimate_function_body_sizes): Use it.
15347         (inline_merge_summary): Merge fp_expressions.
15348         (inline_read_section): Read fp_expressions.
15349         (inline_write_summary): Write fp_expressions.
15350         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
15351         codegen boundary if either caller or callee is !fp_expressions.
15352         * ipa-inline.h (inline_summary): Add fp_expressions.
15353         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
15354         to fp_expressions be sure the fp generation flags are updated.
15356 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15358         PR rtl-optimization/70467
15359         * cse.c (cse_insn): Handle no-op MEM moves after folding.
15361         PR rtl-optimization/70467
15362         * ipa-pure-const.c (check_call): Handle internal calls even in
15363         ipa mode like in local mode.
15365 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15367         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
15369 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15371         * match.pd (X u< X, X u> X): New transformations.
15373 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15375         * flag-types.h (enum warn_strict_overflow_code): Move ...
15376         * coretypes.h: ... here.
15377         * fold-const.h (fold_overflow_warning): Declare.
15378         * fold-const.c (fold_overflow_warning): Make non-static.
15379         (fold_comparison): Move the transformation of X +- C1 CMP C2
15380         into X CMP C2 -+ C1 ...
15381         * match.pd: ... here.
15382         * gimple-fold.c (fold_stmt_1): Protect with
15383         fold_defer_overflow_warnings.
15385 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15387         * omp-low.c (struct oacc_loop): Add 'inner' field.
15388         (new_oacc_loop_raw): Initialize it to zero.
15389         (oacc_loop_fixed_partitions): Initialize it.
15390         (oacc_loop_auto_partitions): Partition outermost loop to outermost
15391         available partitioning.
15393 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15395         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
15396         register_operand.
15397         (umulsidi3): Likewise.
15398         (indirect_jump): Fix jump instruction assembly patterns.
15400 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
15402         PR target/70860
15403         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
15404         (nvptx_function_value): Assert non-NULL cfun.
15406 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
15408         PR rtl-optimization/70886
15409         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
15411         * cselib.h (rtx_equal_for_cselib_1): Declare.
15412         (rtx_equal_for_cselib_p: New inline function.
15413         * cselib.c (rtx_equal_for_cselib_p): Delete.
15414         (rtx_equal_for_cselib_1): Make public.
15416 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15418         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
15419         (register_mixssei387nonimm_operand): Remove predicate.
15420         * config/i386/i386.md (*fop_<mode>_comm): Merge from
15421         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
15422         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
15423         for TARGET_MIX_SSE_I387 alternatives.
15424         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
15425         Disable unsupported alternatives using "enabled" attribute.  Use
15426         nonimm_ssenomem_operand as operand 1 predicate.  Also check
15427         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
15429 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15431         * tree.c (cst_and_fits_in_hwi): Simplify.
15433 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15435         * tree.h (wi::to_wide): New function.
15436         * expr.c (expand_expr_real_1): Use wi::to_wide.
15437         * fold-const.c (int_const_binop_1): Likewise.
15438         (extract_muldiv_1): Likewise.
15440 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15442         * wide-int.h: Update offset_int and widest_int documentation.
15443         (WI_SIGNED_SHIFT_RESULT): New macro.
15444         (wi::binary_shift): Define signed_shift_result_type for
15445         shifts on offset_int- and widest_int-like types.
15446         (generic_wide_int): Support <<= and >>= if << and >> are supported.
15447         * tree.h (int_bit_position): Use shift operators instead of wi::
15448          shifts.
15449         * alias.c (adjust_offset_for_component_ref): Likewise.
15450         * expr.c (get_inner_reference): Likewise.
15451         * fold-const.c (fold_comparison): Likewise.
15452         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15453         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15454         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15455         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15456         (stmt_kills_ref_p): Likewise.
15457         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15458         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15459         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15460         (ao_ref_init_from_vn_reference): Likewise.
15462 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15464         * wide-int.h: Update offset_int and widest_int documentation.
15465         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15466         (wi::binary_traits): Allow ordered comparisons between offset_int and
15467         offset_int, between widest_int and widest_int, and between either
15468         of these types and basic C types.
15469         (operator <, <=, >, >=): Define for the same combinations.
15470         * tree.h (tree_int_cst_lt): Use comparison operators instead
15471         of wi:: comparisons.
15472         (tree_int_cst_le): Likewise.
15473         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15474         (fold_nonarray_ctor_reference): Likewise.
15475         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15476         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15477         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15478         * tree-sra.c (completely_scalarize): Likewise.
15479         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15480         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15481         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15482         (check_for_binary_op_overflow): Likewise.
15483         (search_for_addr_array): Likewise.
15484         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15486 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15488         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15489         (arc_save_restore): Likewise.
15490         (arc_dwarf_register_span): Likewise.
15491         (arc_output_pic_addr_const): Initialize suffix variable.
15493 2016-05-02  Martin Liska  <mliska@suse.cz>
15495         * symbol-summary.h (function_summary::function_summary):
15496         Remove checking assert for all cgraph nodes.
15497         (function_summary::get): Check summary_uid.
15498         (symtab_insertion): Check summary_uid.
15500 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15502         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15503         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15504         bmaskn instruction.
15505         (arc_dwarf_register_span): Remove enum keyword.
15506         (compact_memory_operand_p): New function.
15507         * config/arc/arc.h (reg_class): Add code density register classes.
15508         (REG_CLASS_NAMES): Likewise.
15509         (REG_CLASS_CONTENTS): Likewise.
15510         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15511         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15512         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15513         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15514         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15515         constraints.
15516         (h, Rcd, Rsd, Rzd): New register constraints.
15517         (T): Use compact_memory_operand_p function.
15518         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15520 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15522         * config/sh/sh.md (*negnegt, *movtt): Remove.
15524 2016-05-02  Marek Polacek  <polacek@redhat.com>
15525             Tom de Vries  <tom@codesourcery.com>
15527         PR tree-optimization/70700
15528         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15529         bigger than FIRST_REF_NODE.
15531 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15533         PR target/52898
15534         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15535         TARGET_CMPEQDI_T.
15536         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15537         function is used when pseudos can be created.
15538         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15539         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15540         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15541         define_expand.  Allow it only when pseudos can be created.
15542         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15544 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15546         * config/i386/constraints.md (BC): Only allow -1 operands.
15547         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15548         Add "enabled" attribute.  Update XI mode attribute calculation.
15549         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15550         (*movoi_internal_avx): Update XI mode attribute calculation.
15551         (*movti_internal): Ditto.
15553 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15555         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15556         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15558 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15560         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15561         statement on instruction code.  Remove trailing spaces.
15562         (altivec_expand_stv_builtin): Likewise.
15564 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15566         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15567         (TARGET_FPU_DOUBLE): Simplify.
15568         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15569         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15570         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15571         with 'TARGET_FPU_DOUBLE'.
15572         * config/sh/sh.md: Likewise.
15574 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15576         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15577         SH_DIV_STR_FOR_SIZE): Remove.
15578         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15579         SH_DIV_STR_FOR_SIZE): Remove.
15581 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15583         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15584         logical_reg_operand): Delete.
15585         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15586         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15587         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15588         match_operand and match_test.
15589         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15590         variables on their first use.  Return bool values.
15591         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15592         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15593         arith_reg_operand for input operand.  Remove empty constraints.
15594         (xorsi3): Delete.
15595         (*xorsi3_compact): Rename to xorsi3.
15596         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15597         (*zero_extend<mode>si2_disp_mem): Update comment.
15598         (mov_nop): Delete.
15600 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15602         * config/sh/t-sh: Remove SH5 support.
15603         * config.gcc: Likewise.
15604         * configure: Likewise.
15606 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15608         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15610 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15612         * config/sh/sh.c (register_sh_passes, sh_option_override,
15613         sh_print_operand, prepare_move_operands,
15614         sh_can_follow_jump): Remove TARGET_SH1 checks.
15615         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15616         PROMOTE_MODE): Likewise.
15617         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15618         movdi): Likewise.
15620 2016-04-30  Alan Modra  <amodra@gmail.com>
15622         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15623         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15624         Check for user regs later to avoid unnecessary looping over regs.
15625         Merge user reg check with non-saved reg check.  Don't force
15626         inline VR restore when static chain used.
15627         (rs6000_frame_related): Omit eh_frame info for user regs when
15628         saving.
15629         (fixed_regs_p): Delete.
15631 2016-04-30  Alan Modra  <amodra@gmail.com>
15633         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15634         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15635         Update all uses.
15637 2016-04-30  Alan Modra  <amodra@gmail.com>
15639         PR target/69645
15640         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15641         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15642         Update all uses.
15644 2016-04-30  Alan Modra  <amodra@gmail.com>
15646         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15647         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15648         flag_pic test for Darwin.
15650 2016-04-30  Alan Modra  <amodra@gmail.com>
15652         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15653         throw_calls_crossed.
15654         (REG_FREQ_CALLS_CROSSED): Delete.
15655         (REG_N_THROWING_CALLS_CROSSED): Delete.
15656         * regstat.c (regstat_bb_compute_ri): Don't calculate
15657         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15658         (dump_reg_info): Don't print call cross frequency.
15659         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15660         and REG_N_THROWING_CALLS_CROSSED.
15662 2016-04-30  Alan Modra  <amodra@gmail.com>
15664         * regs.h (struct reg_info_t): Delete live_length.
15665         (REG_LIVE_LENGTH): Delete macro.
15666         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15667         local_live, local_processed and local_live_last_luid params.
15668         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15669         Formatting fixes.
15670         (regstat_compute_ri): Adjust for above.  Don't set
15671         REG_LIVE_LENGTH.
15672         (dump_reg_info): Don't print live length.
15673         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15674         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15675         Localize loop_depth var.
15677 2016-04-30  Alan Modra  <amodra@gmail.com>
15679         * ira.c (enum valid_equiv): New.
15680         (validate_equiv_mem): Return enum.
15681         (update_equiv_mem): Create replacement in more cases.
15682         (add_store_equivs): Update validate_equiv_mem call.
15684 2016-04-30  Alan Modra  <amodra@gmail.com>
15686         * ira.c (combine_and_move_insns): Rather than scanning insns,
15687         use DF infrastucture to find use and def insns.
15689 2016-04-30  Alan Modra  <amodra@gmail.com>
15691         ira.c (combine_and_move_insns): Move invariant conditions..
15692         (ira.c): ..to here.  Call combine_and_move_insns before
15693         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15694         req_equiv later using max_reg_num() rather than global max_regno.
15695         (contains_replace_regs): Delete.
15696         (add_store_equivs): Remove contains_replace_regs test.
15698 2016-04-30  Alan Modra  <amodra@gmail.com>
15700         * ira.c (struct equiv_mem_data): New.
15701         (equiv_mem, equiv_mem_modified): Delete static vars.
15702         (validate_equiv_mem_from_store): Use "data" param to communicate..
15703         (validate_equiv_mem): ..from here.
15705 2016-04-30  Alan Modra  <amodra@gmail.com>
15707         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15708         split out from..
15709         (update_reg_equivs): ..here.  Move allocation and freeing of
15710         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15711         end_alias_analysis to..
15712         (ira): ..here.
15714 2016-04-30  Alan Modra  <amodra@gmail.com>
15716         * ira.c (pdx_subregs): Delete.
15717         (struct equivalence): Add pdx_subregs field.
15718         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15719         pdx_subregs access.
15720         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15721         pdx_subregs access.
15723 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15725         * config/rs6000/altivec.h: Change definitions of vec_xl and
15726         vec_xst.
15727         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15728         (LD_ELEMREV_V2DI): New.
15729         (LD_ELEMREV_V4SF): New.
15730         (LD_ELEMREV_V4SI): New.
15731         (LD_ELEMREV_V8HI): New.
15732         (LD_ELEMREV_V16QI): New.
15733         (ST_ELEMREV_V2DF): New.
15734         (ST_ELEMREV_V2DI): New.
15735         (ST_ELEMREV_V4SF): New.
15736         (ST_ELEMREV_V4SI): New.
15737         (ST_ELEMREV_V8HI): New.
15738         (ST_ELEMREV_V16QI): New.
15739         (XL): New.
15740         (XST): New.
15741         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15742         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15743         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15744         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15745         (altivec_expand_builtin): Add handling for
15746         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15747         (rs6000_invalid_builtin): Add error-checking for
15748         RS6000_BTM_P9_VECTOR.
15749         (altivec_init_builtins): Define builtins used to implement vec_xl
15750         and vec_xst.
15751         (rs6000_builtin_mask_names): Define power9-vector.
15752         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15753         (RS6000_BTM_P9_VECTOR): Define.
15754         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15755         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15756         (vsx_ld_elemrev_v2df): Likewise.
15757         (vsx_ld_elemrev_v4sf): Likewise.
15758         (vsx_ld_elemrev_v4si): Likewise.
15759         (vsx_ld_elemrev_v8hi): Likewise.
15760         (vsx_ld_elemrev_v16qi): Likewise.
15761         (vsx_st_elemrev_v2df): Likewise.
15762         (vsx_st_elemrev_v2di): Likewise.
15763         (vsx_st_elemrev_v4sf): Likewise.
15764         (vsx_st_elemrev_v4si): Likewise.
15765         (vsx_st_elemrev_v8hi): Likewise.
15766         (vsx_st_elemrev_v16qi): Likewise.
15767         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15768         grammar.
15770 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15772         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15773         out into ...
15774         (simplify_control_stmt_condition_1): ... here.  Recurse into
15775         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15777 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15779         PR target/69810
15780         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15781         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15782         define_insn_and_split to define_insn.
15783         (zero_extendqi<mode>2_dot2): Same.
15784         (extendqi<mode>2_dot): Same.
15785         (extendqi<mode>2_dot2): Same.
15787 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15789         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15790         (probe_stack): New expander.
15791         (probe_stack_<mode>): New insn pattern.
15793 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15795         * config/i386/i386.md
15796         (operations with memory inputs setting flags peephole2):
15797         Remove uneeded REG_P checks.  Cleanup pattern generation.
15799 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15801         * tree-vect-loop.c (vect_transform_loop): Fix
15802         nb_iterations_upper_bound computation for vectorized loop.
15804 2016-04-29  Marek Polacek  <polacek@redhat.com>
15805             Jakub Jelinek  <jakub@redhat.com>
15807         PR sanitizer/70342
15808         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15809         TARGET_EXPR_SLOT as a base.
15811 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15813         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15814         with 'rCm2' constraints to limit possible immediate size.
15815         (*load_zeroextendqisi_update): Likewise.
15816         (*load_signextendqisi_update): Likewise.
15817         (*loadhi_update): Likewise.
15818         (*load_zeroextendhisi_update): Likewise.
15819         (*load_signextendhisi_update): Likewise.
15820         (*loadsi_update): Likewise.
15821         (*loadsf_update): Likewise.
15823 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15825         * config/i386/predicates.md (constm1_operand): Fix comparison.
15827 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15829         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15831 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15833         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15834         remaining SH5 related settings.
15835         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15836         shmedia_prepare_call_address): Delete.
15837         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15838         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15839         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15840         UNSUPPORTED_SH2A): Remove m5 checks.
15841         (sh_divide_strategy_e): Remove SH5 division strategies.
15842         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15843         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15845 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15847         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15849 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15851         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15852         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15853         Change lder to ldr.
15854         * config/s390/vector.md ("mov<mode>"): Likewise.
15856 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15858         * config/s390/constraints.md ("U", "W"): Invoke
15859         s390_mem_constraint with "ZR" and "ZT".
15860         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15861         addresses when using LRA.  Accept also short displacements for S
15862         and T constraints.  Do not check for long displacement target for
15863         S and T constraints.
15864         (s390_mem_constraint): Remove handling of U and W constraints.
15865         * config/s390/s390.md (various patterns): Remove the short
15866         displacement constraints (Q and R) if a long displacement
15867         constraint is present.  Add longdisp as required CPU capability.
15868         * config/s390/vector.md: Likewise.
15869         * config/s390/vx-builtins.md: Likewise.
15871 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15873         PR target/60040
15874         * reload1.c (reload): Call finish_spills before
15875         restarting reload loop. Skip select_reload_regs
15876         if update_eliminables_and_spill returns true.
15878 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15880         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15881         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15882         (umulhisi3_imm): Update predicates and constraint letters.
15883         (umulhisi3_reg): Declare instruction as commutative.
15884         * config/arc/constraints.md (J12, J16): New constraints.
15885         * config/arc/predicates.md (short_unsigned_const_operand): New
15886         predicate.
15887         (arc_short_operand): Likewise.
15888         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15890 2016-04-29  Richard Biener  <rguenther@suse.de>
15892         PR tree-optimization/13962
15893         PR tree-optimization/65686
15894         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15895         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15896         using PTA to compare pointers.
15897         * match.pd: Add pattern for pointer equality compare simplification
15898         using ptrs_compare_unequal.
15900 2016-04-29  Richard Biener  <rguenther@suse.de>
15902         * stor-layout.c (layout_type): Do not build a pointer-to-element
15903         type for arrays.
15905 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15907         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15908         Use SWI mode iterator.  Use general_reg_operand predicate.
15909         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15910         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
15911         predicates.
15913 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
15915         PR middle-end/70843
15916         * fold-const.c (operand_equal_p): Don't verify hash value equality
15917         if arg0 == arg1.
15918         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
15919         and OMP_CLAUSE.
15921 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15923         PR target/70858
15924         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15925         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15926         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15927         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15928         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15930 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15932         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15933         to info.  Don't initialize separate fields to 0.  Clean up
15934         formatting a bit.
15936 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15938         * config/i386/i386.md (peephole2s for operations with memory inputs):
15939         Use SWI mode iterator.
15940         (peephole2s for operations with memory outputs): Ditto.
15941         Do not check for stack checking probe.
15943         (probe_stack): Remove expander.
15945 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15946             Andrew Burgess  <andrew.burgess@embecosm.com>
15948         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15949         operands as 32-bits.
15951 2016-04-28  Jason Merrill  <jason@redhat.com>
15953         * gdbinit.in: Skip line-map.h.
15955 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15956             Andrew Burgess  <andrew.burgess@embecosm.com>
15958         * config/arc/arc.c (arc_conditional_register_usage): Take
15959         TARGET_RRQ_CLASS into account.
15960         (arc_print_operand): Support printing 'p' and 's' operands.
15961         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15962         as 0.
15963         (TARGET_RRQ_CLASS): Define.
15964         (IS_POWEROF2_OR_0_P): Define.
15965         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15966         alternatives.
15967         (*tst_movb): New define_insn.
15968         (*tst): Avoid recognition if it could prevent '*tst_movb'
15969         combination; replace c/CnL with c/Chs alternative.
15970         (*tst_bitfield_tst): New define_insn.
15971         (*tst_bitfield_asr): New define_insn.
15972         (*tst_bitfield): New define_insn.
15973         (andsi3_i): Add Rrq variant.
15974         (extzv): New define_expand.
15975         (insv): New define_expand.
15976         (*insv_i): New define_insn.
15977         (*movb): New define_insn.
15978         (*movb_signed): New define_insn.
15979         (*movb_high): New define_insn.
15980         (*movb_high_signed): New define_insn.
15981         (*movb_high_signed + 1): New define_split pattern.
15982         (*mrgb): New define_insn.
15983         (*mrgb + 1): New define_peephole2 pattern.
15984         (*mrgb + 2): New define_peephole2 pattern.
15985         * config/arc/arc.opt (mbitops): New option for nps400, uses
15986         TARGET_NPS_BITOPS_DEFAULT.
15987         * config/arc/constraints.md (q): Make register class conditional.
15988         (Rrq): New register constraint.
15989         (Chs): New constraint.
15990         (Clo): New constraint.
15991         (Chi): New constraint.
15992         (Cbf): New constraint.
15993         (Cbn): New constraint.
15994         (C18): New constraint.
15995         (Cbi): New constraint.
15997 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15999         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16000         dst->popcount.
16001         (bitmap_intersection_of_preds): Ditto.
16002         (bitmap_union_of_succs): Ditto.
16003         (bitmap_union_of_preds): Ditto.
16004         * sbitmap.c (do_popcount): Delete.
16005         (BITMAP_DEBUGGING): Delete.
16006         (sbitmap_verify_popcount): Delete.
16007         (sbitmap_alloc): Don't initialize the popcount field.
16008         (sbitmap_alloc_with_popcount): Delete.
16009         (sbitmap_resize): Don't resize the popcount array.
16010         (sbitmap_vector_alloc): Don't initialize the popcount field.
16011         (bitmap_copy): Don't copy the popcount array.
16012         (bitmap_clear): Don't clear the popcount array.
16013         (bitmap_clear): Delete the popcount array handling.
16014         (bitmap_ior_and_compl): Delete the popcount assert.
16015         (bitmap_not): Ditto.
16016         (bitmap_and_compl): Ditto.
16017         (bitmap_and): Delete the popcount array handling.
16018         (bitmap_xor): Ditto.
16019         (bitmap_ior): Ditto.
16020         (bitmap_or_and): Delete the popcount assert.
16021         (bitmap_and_or): Ditto.
16022         (popcount_table): Delete.
16023         (sbitmap_elt_popcount): Delete.
16024         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16025         (bitmap_set_bit): Delete the popcount assert.
16026         (bitmap_clear_bit): Ditto.
16027         (sbitmap_free): Don't free the popcount array.
16028         (sbitmap_alloc_with_popcount): Delete declaration.
16029         (sbitmap_popcount): Ditto.
16031 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16032             Andrew Burgess  <andrew.burgess@embecosm.com>
16034         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16035         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16036         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16037         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16038         * config/arc/arc.opt (mcmem): New option.
16039         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16040         supply length for r/m alternative.
16041         (*extendqisi2_ac): Likewise.
16042         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16043         r/Uex alternative.
16044         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16045         (movhi_insn): Likewise.
16046         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16047         (*zero_extendqihi2_i): Add r/Ucm alternative.
16048         (*zero_extendqisi2_ac): Likewise.
16049         (*zero_extendhisi2_i): Likewise.
16050         * config/arc/constraints.md (Uex): New memory constraint.
16051         (Ucm): New define_constraint.
16052         * config/arc/predicates.md (long_immediate_loadstore_operand):
16053         Return 0 for MEM with cmem_address address.
16054         (cmem_address_0): New predicates.
16055         (cmem_address_1): Likewise.
16056         (cmem_address_2): Likewise.
16057         (cmem_address): Likewise.
16059 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16061         * config/rs6000/rs6000.c (machine_function): Rename
16062         insn_chain_scanned_p to spe_insn_chain_scanned_p.
16063         (rs6000_stack_info): Adjust.
16065 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16066             Andrew Burgess  <andrew.burgess@embecosm.com>
16068         * config/arc/constraints.md (Usd): Convert to define_constraint.
16069         (Us<): Likewise.
16070         (Us>): Likewise.
16072 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16074         PR target/70821
16075         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16076         Add new peephole2 where the first insn is *mov<mode>_or instead of
16077         *mov<mode>_internal.
16079 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
16081         * tracer.c (bb_seen): Make static.
16083 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
16085         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
16086         support, setup defaults.
16087         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
16088         * config/arc/arc.c (arc_init): Add NPS400 support.
16089         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
16090         (TARGET_ARC700): NPS400 is also an ARC700.
16091         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
16093 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16095         PR target/70668
16096         * config/nds32/nds32.md (casesi): Don't access the operands array
16097         out of bounds.
16099 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16101         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
16102         (or $-1,reg peephole2): Ditto.
16103         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
16105 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
16107         * doc/extend.texi (Common Function Attributes) [optimize]:
16108         Discourage use of the optimize attribute.
16110 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
16112         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
16113         special case builtin.
16114         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16115         ALTIVEC_BUILTIN_VEC_ADDE.
16116         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16117         support for ALTIVEC_BUILTIN_VEC_ADDE.
16118         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
16119         for __builtin_vec_adde.
16121 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16123         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
16124         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
16126 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16128         PR testsuite/70595
16129         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16130         attributes): Document cilkplus_runtime.
16132 2016-04-28  Martin Jambor  <mjambor@suse.cz>
16134         * tree-cfg.c (verify_expr): Verify that local declarations belong to
16135         this function.  Call verify_expr on MEM_REFs and bases of other
16136         handled_components.
16138 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16140         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
16141         for WORD_REGISTER_OPERATIONS to runtime check.
16143 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16145         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
16147 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16149         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
16150         big-endian compilation.
16151         * config/arc/arc.md (addf3): Likewise.
16152         (subdf3): Likewise.
16153         (muldf3): Likewise.
16155 2016-04-28  Richard Biener  <rguenther@suse.de>
16157         PR tree-optimization/70840
16158         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
16159         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
16160         Mark x * pow(x,c) -> pow(x,c+1) commutative.
16161         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16163 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16165         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16166         and explain why in a comment.
16168 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16170         * config/arc/arc.md (cpu_facility): Add fpx variant.
16171         (subdf3): Prohibit use reverse sub when assist operations option
16172         is enabled.
16173         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16174         instructions only when FPX is enabled.
16175         * testsuite/gcc.target/arc/trsub.c: New test.
16177 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16179         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16180         mult_operator when calculating "type" attribute.
16181         (*fop_<mode>_1_i387): Ditto.
16182         (*fop_xf_1_i387): Ditto.
16183         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16184         Use std::swap to swap operands.  Use RTL expressions to generate
16185         converted pattern.
16187 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16188             Joern Rennecke  <joern.rennecke@embecosm.com>
16190         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16191         declaration.
16192         (emit_pic_move): Remove.
16193         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16194         * config/arc/arc.c (emit_pic_move): Removed.
16195         (TARGET_HAVE_TLS): Define.
16196         (arc_conditional_register_usage): Test for arc_tp_regno.
16197         (arc_print_operand, arc_print_operand_address): Handle TLS
16198         unspecs.
16199         (arc_needs_pcl_p): New function.
16200         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16201         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16202         (arc_raw_symbolic_reference_mentioned_p): Likewise.
16203         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16204         (arc_legitimize_tls_address): Likewise.
16205         (DTPOFF_ZERO_SYM): Define.
16206         (arc_legitimize_pic_address): Make it static, handle TLS cases.
16207         (arc_output_pic_addr_const): Print TLS unspecs.
16208         (prepare_pic_move): New function, replaces emit_pic_move.
16209         (arc_legitimate_constant_p): Handle TLS unspecs.
16210         (arc_legitimate_address_p): Likewise.
16211         (arc_rewrite_small_data_p): Use assert for TLS constants.
16212         (prepare_move_operands): Use prepare_pic_move.
16213         (arc_legitimize_address): Legitimize tls addresses.
16214         (arc_epilogue_uses): Check for arc_tp_regno.
16215         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16216         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16217         Define.
16218         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16219         Likewise.
16220         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16221         %(arc_tls_extra_start_spec).
16222         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16223         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16224         (EH_USES): Define.
16225         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
16226         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
16227         (UNSPEC_TLS_OFF): Add.
16228         (R10_REG): Define.
16229         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
16230         (get_thread_pointersi): New patterns.
16231         * config/arc/arc.opt (mtp-regno): New option.
16232         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
16233         (move_dest_operand): Likewise.
16234         * configure: Regenerate.
16235         * configure.ac: Add arc*-*-* case to test for tls.
16236         * doc/invoke.texi (ARC options): Document mtp-regno.
16238 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16240         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
16241         the new ARC HS SIMD instructions.
16242         (arc_preferred_simd_mode): New function.
16243         (arc_autovectorize_vector_sizes): Likewise.
16244         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16245         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16246         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
16247         (arc_init_builtins): Add new SIMD builtin types.
16248         (arc_split_move): Handle 64 bit vector moves.
16249         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
16250         (TARGET_PLUS_QMACW): Define.
16251         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
16252         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
16253         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
16254         (VSUBADD4H): New builtins.
16255         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
16256         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
16258 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
16259             Matthias Klose  <doko@debian.org>
16261         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
16263 2016-04-28  Richard Biener  <rguenther@suse.de>
16265         PR middle-end/70777
16266         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
16267         canonicalization.
16269 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
16271         * common/config/sh/sh-common.c: Remove SH5 support.
16272         * config/sh/constraints.md: Likewise.
16273         * config/sh/config/sh/elf.h: Likewise.
16274         * config/sh/linux.h: Likewise.
16275         * config/sh/netbsd-elf.h: Likewise.
16276         * config/sh/predicates.md: Likewise.
16277         * config/sh/sh-c.c: Likewise.
16278         * config/sh/sh-protos.h: Likewise.
16279         * config/sh/sh.c: Likewise.
16280         * config/sh/sh.h: Likewise.
16281         * config/sh/sh.md: Likewise.
16282         * config/sh/sh.opt: Likewise.
16283         * config/sh/sync.md: Likewise.
16284         * config/sh/sh64.h: Delete.
16285         * config/sh/shmedia.h: Likewise.
16286         * config/sh/shmedia.md: Likewise.
16287         * config/sh/sshmedia.h: Likewise.
16288         * config/sh/t-netbsd-sh5-64: Likewise.
16289         * config/sh/t-sh64: Likewise.
16290         * config/sh/ushmedia.h: Likewise.
16292 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16294         * config/i386/i386.md (sign_extend to memory peephole2s): Use
16295         general_reg_operand instead of register_operand predicate.
16297 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16299         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
16301 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
16303         * match.pd (A - B > A, A + B < A): New transformations.
16305 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
16307         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
16308         which defaults to true.  Emit an outer pair of parentheses only if
16309         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
16310         don't emit parentheses for the right-hand operand.
16312 2016-04-27  Jeff Law  <law@redhat.com>
16314         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
16316 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16318         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
16319         (altivec_lvx_<mode>_internal): Document.
16320         (altivec_lvx_<mode>_2op): New define_insn.
16321         (altivec_lvx_<mode>_1op): Likewise.
16322         (altivec_lvx_<mode>_2op_si): Likewise.
16323         (altivec_lvx_<mode>_1op_si): Likewise.
16324         (altivec_stvx_<mode>): Remove.
16325         (altivec_stvx_<mode>_internal): Document.
16326         (altivec_stvx_<mode>_2op): New define_insn.
16327         (altivec_stvx_<mode>_1op): Likewise.
16328         (altivec_stvx_<mode>_2op_si): Likewise.
16329         (altivec_stvx_<mode>_1op_si): Likewise.
16330         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16331         Expand vec_ld and vec_st during parsing.
16332         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
16333         changes.
16334         (altivec_expand_stvx_be): Likewise.
16335         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
16336         address-masking behavior in RTL.
16337         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
16338         address-masking behavior in RTL.
16339         (altivec_expand_builtin): Change builtin code arguments for calls
16340         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
16341         (insn_is_swappable_p): Avoid incorrect swap optimization in the
16342         presence of lvx/stvx patterns.
16343         (alignment_with_canonical_addr): New function.
16344         (alignment_mask): Likewise.
16345         (find_alignment_op): Likewise.
16346         (recombine_lvx_pattern): Likewise.
16347         (recombine_stvx_pattern): Likewise.
16348         (recombine_lvx_stvx_patterns): Likewise.
16349         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
16350         stvx patterns from expand.
16351         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
16352         expansions.
16353         (vector_altivec_store_<mode>): Likewise.
16355 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
16357         * config/aarch64/aarch64.md
16358         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
16359         remove the "fp" attributes.
16360         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
16361         add the "simd" attributes.
16362         (*movdf_aarch64): Likewise.
16363         (*movtf_aarch64): Remove the "fp" attributes.
16364         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
16365         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
16367 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16369         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
16370         rtx to rtx_code_label *.
16371         * rtl.h (maybe_set_first_label_num): Likewise.
16373 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16375         * df-core.c (df_add_problem): Make the problem param be const.
16376         (df_remove_problem): Make local "problem" be const.
16377         * df-problems.c (problem_RD): Make const.
16378         (problem_LR): Likewise.
16379         (problem_LIVE): Likewise.
16380         (problem_MIR): Likewise.
16381         (problem_CHAIN): Likewise.
16382         (problem_WORD_LR): Likewise.
16383         (problem_NOTE): Likewise.
16384         (problem_MD): Likewise.
16385         * df-scan.c (problem_SCAN): Likewise.
16386         * df.h (struct df_problem): Make field "dependent_problem" be
16387         const.
16388         (struct dataflow): Likewise for field "problem".
16389         (df_add_problem): Make param const.
16391 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16393         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
16394         inter-unit moves to/from vector registers are enabled.  Do not disable
16395         for TARGET_MMX.
16397 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16399         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
16400         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
16401         #define to...
16402         (enum df_problem_id): ...this new enum.
16403         (struct df_problem): Convert field "id" from "int" to
16404         enum df_problem_id.
16406 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16408         * rtl.def: Update comment for "things in the instruction chain" to
16409         reflect the removal of the leading "i" field for INSN_UID in
16410         r210360.  Fix bogus apostrophe.
16412 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16414         * config/i386/i386.md
16415         (lea arith with mem operand + setcc peephole2): Set operator mode.
16417 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
16419         PR target/70155
16420         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
16421         (dimode_scalar_to_vector_candidate_p): This.
16422         (timode_scalar_to_vector_candidate_p): New function.
16423         (scalar_to_vector_candidate_p): Likewise.
16424         (timode_check_non_convertible_regs): Likewise.
16425         (timode_remove_non_convertible_regs): Likewise.
16426         (remove_non_convertible_regs): Likewise.
16427         (remove_non_convertible_regs): Renamed to ...
16428         (dimode_remove_non_convertible_regs): This.
16429         (scalar_chain::~scalar_chain): Make it virtual.
16430         (scalar_chain::compute_convert_gain): Make it pure virtual.
16431         (scalar_chain::mark_dual_mode_def): Likewise.
16432         (scalar_chain::convert_insn): Likewise.
16433         (scalar_chain::convert_registers): Likewise.
16434         (scalar_chain::add_to_queue): Make it protected.
16435         (scalar_chain::emit_conversion_insns): Likewise.
16436         (scalar_chain::replace_with_subreg): Likewise.
16437         (scalar_chain::replace_with_subreg_in_insn): Likewise.
16438         (scalar_chain::convert_op): Likewise.
16439         (scalar_chain::convert_reg): Likewise.
16440         (scalar_chain::make_vector_copies): Likewise.
16441         (scalar_chain::convert_registers): New pure virtual function.
16442         (class dimode_scalar_chain): New class.
16443         (class timode_scalar_chain): Likewise.
16444         (scalar_chain::mark_dual_mode_def): Renamed to ...
16445         (dimode_scalar_chain::mark_dual_mode_def): This.
16446         (timode_scalar_chain::mark_dual_mode_def): New function.
16447         (timode_scalar_chain::convert_insn): Likewise.
16448         (dimode_scalar_chain::convert_registers): Likewise.
16449         (scalar_chain::compute_convert_gain): Renamed to ...
16450         (dimode_scalar_chain::compute_convert_gain): This.
16451         (scalar_chain::replace_with_subreg): Renamed to ...
16452         (dimode_scalar_chain::replace_with_subreg): This.
16453         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16454         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16455         (scalar_chain::make_vector_copies): Renamed to ...
16456         (dimode_scalar_chain::make_vector_copies): This.
16457         (scalar_chain::convert_reg): Renamed to ...
16458         (dimode_scalar_chain::convert_reg ): This.
16459         (scalar_chain::convert_op): Renamed to ...
16460         (dimode_scalar_chain::convert_op): This.
16461         (scalar_chain::convert_insn): Renamed to ...
16462         (dimode_scalar_chain::convert_insn): This.
16463         (scalar_chain::convert): Call convert_registers.
16464         (convert_scalars_to_vector): Change to scalar_chain pointer to
16465         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16466         in 32-bit mode.  Delete scalar_chain pointer.  Call
16467         free_dominance_info in 64-bit mode.
16468         (pass_stv::gate): Remove TARGET_64BIT check.
16469         (ix86_option_override): Put the 64-bit STV pass before the CSE
16470         pass.
16472 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16474         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16475         dw_loc_frame_offset field.
16476         * dwarf2out.c (new_loc_descr): Likewise.
16477         (resolve_args_picking_1): Turn the VISITED hash set into a
16478         FRAME_OFFSET hash map. Use it to associate a frame offset to
16479         visited nodes. Remove uses of the CHECKING_P macro.
16480         (resolve_args_picking): Update call to resolve_args_picking_1.
16482 2016-04-27  Martin Liska  <mliska@suse.cz>
16484         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16485         (free_loop_data): Release vuses of groups.
16487 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16489         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16490         instead of redundant use_id and boolean have_use_for.
16491         (struct iv_use): Change sub_id into group_id.  Remove field next.
16492         Move fields: related_cands, n_map_members, cost_map and selected
16493         to ...
16494         (struct iv_group): ... here.  New structure.
16495         (struct iv_common_cand): Use structure declaration directly.
16496         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16497         (MAX_CONSIDERED_USES): Rename macro to ...
16498         (MAX_CONSIDERED_GROUPS): ... here.
16499         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16500         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16501         (dump_uses): Rename to ...
16502         (dump_groups): ... here.  Update all uses.
16503         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16504         (find_induction_variables): Refactor format of dump information.
16505         (record_sub_use): Delete.
16506         (record_use): Update all uses.
16507         (record_group): New function.
16508         (record_group_use, find_interesting_uses_op): Call above functions.
16509         Update all uses.
16510         (find_interesting_uses_cond): Ditto.
16511         (group_compare_offset): New function.
16512         (split_all_small_groups): Rename to ...
16513         (split_small_address_groups_p): ... here.  Update all uses.
16514         (split_address_groups):  Update all uses.
16515         (find_interesting_uses): Refactor format of dump information.
16516         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16517         base and step.
16518         (add_candidate, record_common_cand): Remove redundant assert.
16519         (add_iv_candidate_for_biv): Update use.
16520         (add_iv_candidate_derived_from_uses): Update all uses.
16521         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16522         (alloc_use_cost_map): Ditto.
16523         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16524         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16525         (determine_use_iv_cost_generic): Ditto.
16526         (determine_group_iv_cost_generic): Ditto.
16527         (determine_use_iv_cost_address): Ditto.
16528         (determine_group_iv_cost_address): Ditto.
16529         (determine_use_iv_cost_condition): Ditto.
16530         (determine_group_iv_cost_cond): Ditto.
16531         (determine_use_iv_cost): Ditto.
16532         (determine_group_iv_cost): Ditto.
16533         (set_autoinc_for_original_candidates): Update all uses.
16534         (find_iv_candidates): Update all uses.  Refactor dump information.
16535         (determine_use_iv_costs): Ditto.
16536         (determine_iv_costs): Ditto.
16537         (iv_ca_cand_for_use): Rename to ...
16538         (iv_ca_cand_for_group): ... here.  Update all uses.
16539         (iv_ca_add_use, iv_ca_add_group): Ditto.
16540         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16541         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16542         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16543         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16544         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16545         (create_new_iv, adjust_iv_update_pos): Ditto.
16546         (rewrite_use_address): Delete.
16547         (rewrite_use_address_1): Rename to ...
16548         (rewrite_use_address): ... here.
16549         (rewrite_use_compare): Update all uses.
16550         (rewrite_use): Delete.
16551         (rewrite_uses): Rename to ...
16552         (rewrite_groups): ... here.  Update all uses.
16553         (remove_unused_ivs, free_loop_data): Update all uses.
16554         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16556 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16558         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16559         for WORD_REGISTER_OPERATIONS to runtime check.
16561 2016-04-27  Richard Biener  <rguenther@suse.de>
16563         PR ipa/70760
16564         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16565         aggregate_value_p to determine if a function result is
16566         returned by reference.
16567         (ipa_pta_execute): Functions having their address taken are
16568         not automatically nonlocal.
16570 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16572         PR sanitizer/70683
16573         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16574         * fold-const.c (operand_equal_p): If flag_checking and
16575         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16576         and if it returns non-zero, assert iterative_hash_expr on both
16577         args is the same.
16579 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16581         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16583 2016-04-27  Nick Clifton  <nickc@redhat.com>
16585         PR middle-end/49889
16586         * varasm.c (merge_weak): Generate an error if an attempt is made
16587         to convert a non-weak static function into a weak, public function.
16589 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16591         * params.def (MAX_PARTITION_SIZE): New param.
16592         * doc/invoke.texi: Document lto-max-partition.
16594 2016-04-27  Richard Biener  <rguenther@suse.de>
16596         PR ipa/70785
16597         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16598         function cummulating used_from_other_partition, externally_visible
16599         and force_output from aliases.
16600         (refered_from_nonlocal_var): Likewise.
16601         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16602         node flags properly.
16604 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16606         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16607         (-Wmemset-elt-size): New item.
16609 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16611         PR ada/70759
16612         * stor-layout.h (internal_reference_types): Delete.
16613         * stor-layout.c (reference_types_internal): Likewise.
16614         (internal_reference_types): Likewise.
16615         (layout_type) <REFERENCE_TYPE>: Adjust.
16617 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16619         PR sanitizer/70683
16620         * tree.h (inchash::add_expr): Add FLAGS argument.
16621         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16622         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16623         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16624         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16625         if swap_tree_comparison (code) is smaller than code, hash that
16626         and arguments in the other order.  Hash CONVERT_EXPR the same
16627         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16628         of ADDR_EXPR of decl as the decl itself.  Add or remove
16629         OEP_ADDRESS_OF from recursive flags as needed.  For
16630         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16631         operands commutatively and only the third one normally.
16632         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16634 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16636         * config/rtems.h (LIB_SPEC): Add -latomic.
16638 2016-04-27  Joel Sherrill  <joel@rtems.org>
16640         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16641         xilink.ld and flags not relevant to RTEMS.
16643 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16645         * toplev.c (backend_init_target): Avoid calling init_reload when using
16646         LRA.
16648 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16650         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16651         for loops rather than one for the whole function.
16653 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16655         * match.pd (X + CST CMP X): New transformation.
16657 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16659         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16660         * fold-const.c (fold_binary_loc): Remove 2 transformations
16661         superseded by match.pd.
16662         * match.pd (x+x -> x*2): Generalize to integers.
16664 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16666         * config/i386/i386.md (operation on memory peephole): Duplicate an
16667         existing peephole and adapt it to match lea rather than an operation
16668         that clobbers CC.
16670         PR rtl-optimization/57193
16671         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16672         and above.
16673         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16675 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16677         * tree-if-conv.c (any_pred_load_store): New static variable.
16678         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16679         any_pred_load_store instead of and_mask_load_store.
16680         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16681         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16682         (combine_blocks, tree_if_conversion): Ditto.
16684 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16686         PR tree-optimization/70771
16687         PR tree-optimization/70775
16688         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16689         virtual PHI nodes.  Delete parameter.
16690         (if_convertible_loop_p_1): Delete argument to above function.
16691         (predicate_all_scalar_phis): Delete code handling single-argument
16692         PHIs.
16693         (tree_if_conversion): Mark and update virtual SSA.
16695 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16697         PR target/61821
16698         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16699         (x86_elf_aligned_common): Rename to ...
16700         (x86_elf_aligned_decl_common): ... this.
16701         Add decl arg.  Switch to .lbss for largecomm object.  Use
16702         LARGECOMM_SECTION_ASM_OP.
16703         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16704         renaming.
16705         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16706         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16707         Pass new decl arg.
16708         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16709         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16711 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16713         PR target/59407
16714         * config/i386/i386.c (SECTION_LARGE): Define.
16715         (x86_64_elf_select_section): Set it for large data/bss sections.
16716         Only clear SECTION_WRITE for .lrodata.
16717         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16718         data/bss sections.
16719         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16720         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16721         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16722         SECTION_MACH_DEP.
16723         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16724         * doc/tm.texi: Regenerate.
16726 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16728         PR bootstrap/70704
16729         * configure.ac (--enable-checking): Document extra flag, for
16730         non-release builds default to --enable-checking=yes,extra.
16731         If misc checking and extra checking, define CHECKING_P to 2 instead
16732         of 1.
16733         * common.opt (fchecking=): Add.
16734         * doc/invoke.texi (-fchecking=): Document.
16735         * doc/install.texi: Document --enable-checking changes.
16736         * configure: Regenerated.
16737         * config.in: Regenerated.
16739 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16741         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16742         attribute instead of which_alternative.
16743         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16744         Use EXT_REX_SSE_REG_P where appropriate.
16746 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16748         * config/i386/predicates.md (const0_operand): Do not match
16749         const_wide_int code.
16750         (const1_operand): Ditto.
16752 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16754         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16755         for SSE constm1 operands and TARGET_AVX512VL.
16756         (*movti_internal): Ditto.
16757         (*mov<mode>_or): Use constm1_operand predicate.
16758         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16759         for SSE vector_all_ones operands and TARGET_AVX512VL.
16760         * config/i386/predicates.md (constm1_operand): New predicate.
16761         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16762         emission of constant -1 load.
16764 2016-04-25  Jason Merrill  <jason@redhat.com>
16766         * gdbinit.in: Skip is-a.h.
16768         * attribs.c (register_scoped_attributes): Fix logic.
16769         * attribs.h: Declare register_scoped_attributes.
16771 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16773         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16774         stxvd2x and stxvw4x built-in functions.
16776 2016-04-25  DJ Delorie  <dj@redhat.com>
16778         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16779         (ashrhi3): Likewise.
16780         (lshrhi3): Likewise.
16782 2016-04-25  Richard Biener  <rguenther@suse.de>
16784         PR tree-optimization/70780
16785         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16786         wasn't visited yet.
16787         (compute_antic): Mark blocks with abnormal preds as visited as
16788         they have a final empty antic-in solution already.
16790 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16792         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16794 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16796         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16797         mode is VQI to improve mixed mode vectorization.
16798         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16799         define_insn to match low half of signed vaddw.
16800         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16801         define_insn to match high half of signed vaddw.
16802         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16803         define_insn to match low half of unsigned vaddw.
16804         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16805         define_insn to match high half of unsigned vaddw.
16806         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16807         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16808         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16809         for new function.
16810         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16811         * config/arm/predicates.md (vect_par_constant_high): Support
16812         big endian and simplify by calling
16813         arm_simd_check_vect_par_cnst_half
16814         (vect_par_constant_low): Likewise.
16816 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16818         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16819         predicate for operand 2.
16821 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16822             H.J. Lu  <hongjiu.lu@intel.com>
16824         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16825         machine_mode argument.
16826         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16827         constm1_rtx operands.  For VOIDmode constants, get mode from
16828         pred_mode.  Check mode size if the mode is supported by ABI.
16829         (standard_sse_constant_opcode): Do not use standard_constant_p.
16830         Strictly check ABI support for all-ones operands.
16831         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16832         immediates. Update calls to standard_sse_constant_p.
16833         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16834         (ix86_rtx_costs): Ditto.
16835         * config/i386/i386.md (*movxi_internal_avx512f): Use
16836         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16837         Use (v,BC) alternative instead of (v,C). Use register_operand
16838         checks instead of MEM_P.
16839         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16840         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16841         isa attribute.  Use register_operand checks instead of MEM_P.
16842         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16843         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16844         alternative and corresponding sse2 isa attribute.
16845         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16846         to standard_sse_constant_p.
16847         (FP constant splitters): Ditto.
16848         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16849         (C): Ditto.
16850         * config/i386/predicates.md (constm1_operand): Remove.
16851         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16852         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16853         vector_all_ones_operand instead of constm1_operand.
16855 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16857         * print-rtl.c (print_rtx_insn_vec): New function.
16858         * print-rtl.h: New prototype.
16859         * store-motion.c (struct st_expr): Make avail_stores a vector.
16860         (st_expr_entry): Adjust.
16861         (free_st_expr_entry): Likewise.
16862         (print_store_motion_mems): Likewise.
16863         (find_moveable_store): Likewise.
16864         (compute_store_table): Likewise.
16865         (delete_store): Likewise.
16866         (build_store_vectors): Likewise.
16868 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16870         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16872 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16874         * vec.h (vec_safe_contains): New function.
16875         (vec::contains): Likewise.
16876         (vec::begin): Likewise.
16877         (vec::end): Likewise.
16879 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16881         PR sanitizer/70712
16882         * cfgexpand.c (expand_stack_vars): Fix typo.
16884 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16886         * system.h (list, map, set, vector): Include conditionally.
16887         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16888         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16889         * ipa-icf.c (INCLUDE_LIST): Define.
16890         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16891         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16892         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16893         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16894         * cp/logic.cc (INCLUDE_LIST): Define.
16895         * fortran/trans-common.c (INCLUDE_MAP): Define.
16897 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16899         * auto-profile.c: Remove <string.h> include.
16900         * ipa-icf-gimple.c: Remove <list> include.
16901         * diagnostic.c: Remove <new> include.
16902         * genmatch.c: Likewise.
16903         * pretty-print.c: Likewise.
16904         * toplev.c: Likewise
16905         * c/c-objc-common.c: Likewise.
16906         * cp/error.c: Likewise.
16907         * fortran/error.c: Likewise.
16909 2016-04-22  Richard Biener  <rguenther@suse.de>
16911         * lto-streamer-in.c (input_ssa_names): Do not allocate
16912         GIMPLE_NOP for all SSA names.
16913         * lto-streamer-out.c (output_ssa_names): Do not output
16914         SSA names that should have been released.
16916 2016-04-22  Richard Biener  <rguenther@suse.de>
16918         PR tree-optimization/70740
16919         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16920         VDEF.
16922 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
16924         PR target/70750
16925         * config/i386/predicates.md (call_insn_operand): Replace
16926         sibcall_memory_operand with memory_operand.
16928 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
16930         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16931         has_single_use() tests.
16932         (register_edge_assert_for_1): Likewise.
16933         (find_assert_locations_1): Check the liveness bitmap instead of
16934         checking has_single_use().
16936 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16938         PR target/70728
16939         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16940         Extract AVX-512BW constraint from AVX.
16942 2016-04-21  Richard Biener  <rguenther@suse.de>
16944         PR tree-optimization/70725
16945         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16946         for phi_convertible_by_degenerating_args.
16947         (predicate_all_scalar_phis): Handle single-argument PHIs.
16949 2016-04-21  Richard Biener  <rguenther@suse.de>
16951         PR middle-end/70747
16952         * fold-const.c (fold_comparison): Return properly typed
16953         constant boolean.
16955 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
16957         PR tree-optimization/70715
16958         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16959         after expanding BASE using expand_simple_operations.
16961 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16963         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16964         New transformations.
16966 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16968         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16970 2016-04-20  Jan Hubicka  <jh@suse.cz>
16972         * ipa-inline.c (can_inline_edge_p): Pass caller info to
16973         ultiimate_alias_target.
16974         (update_callee_keys): Likewise.
16975         (lookup_recursive_calls): Likewise.
16976         (speculation_useful_p): Likewise.
16978 2016-04-20  Jan Hubicka  <jh@suse.cz>
16980         PR ipa/70018
16981         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16982         (set_nothrow_flag_1): ... this; handle interposition correctly;
16983         recurse on aliases and thunks.
16984         (cgraph_node::set_nothrow_flag): New.
16985         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16986         functions compiled with non-call exceptions that binds to current
16987         def.
16988         (propagate_nothrow): Be safe WRT interposition.
16989         * cgraph.h (set_nothrow_flag): Update prototype.
16991 2016-04-18  Jan Hubicka  <jh@suse.cz>
16993         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16994         max_loop_iterations_int.
16995         (tree_unswitch_outer_loop): Likewise.
16997 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16999         PR tree-optimization/69489
17000         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17001         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17002         Revise dump message.
17003         (if_convertible_bb_p): Remove check on edge count of basic block's
17004         predecessors.
17006 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17008         PR tree-optimization/56625
17009         PR tree-optimization/69489
17010         * tree-data-ref.h (DR_INNERMOST): New macro.
17011         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17012         hashing struct innermost_loop_behavior.
17013         (ref_DR_map): Remove.
17014         (innermost_DR_map): New map.
17015         (baseref_DR_map): Revise comment.
17016         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17017         to innermost_DR_map accroding to its innermost loop behavior.
17018         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17019         to its innermost loop behavior.
17020         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17021         Add initialization for innermost_DR_map.  Record memory reference
17022         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17023         have innermost loop behavior.
17024         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
17025         innermost_DR_map.
17027 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
17029         * config/i386/i386.md (*lea<mode>_general_1): Rename from
17030         *lea_general_1.  Use explicit SWI12 mode interator.
17031         (*lea<mode>_general_2): Rename from *lea_general_2.
17032         Use explicit SWI12 mode interator.
17033         (*lea<mode>_general_3): Rename from *lea_general_3.
17034         Use explicit SWI12 mode interator.
17035         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17036         Use explicit SWI12 mode interator.
17037         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17038         Use explicit SWI48 mode interator.
17040 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17042         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17043         Short-cut unaligned load and store cases.  Handle all integer
17044         vector modes.
17045         (ix86_expand_vector_move_misalign): Short-cut unaligned load
17046         and store cases.  Call ix86_avx256_split_vector_move_misalign
17047         directly without checking mode class.
17049 2016-04-20  Andrew Pinski  <apinski@cavium.com>
17050             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17052         PR target/64971
17053         * config/aarch64/aarch64.md (sibcall): Force call
17054         address to be DImode for ILP32.
17055         (sibcall_value): Likewise.
17057 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17059         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17061 2016-04-20  Richard Biener  <rguenther@suse.de>
17063         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17064         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17065         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17066         (maybe_push_res_to_seq): Adjust.
17067         * gimple-fold.c (maybe_build_generic_op): Likewise.
17069 2016-04-20  Marek Polacek  <polacek@redhat.com>
17071         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17072         rather than true.
17074 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
17076         * config/i386/sse.md (vec_unpacks_lo_hi): Always
17077         use kmovw to support AVX512F target.
17079 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17081         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17083 2016-04-20  Marek Polacek  <polacek@redhat.com>
17085         PR tree-optimization/70725
17086         * tree-if-conv.c (is_false_predicate): New function.
17087         (predicate_mem_writes): Use it.
17089 2016-04-20  Richard Biener  <rguenther@suse.de>
17091         PR tree-optimization/70726
17092         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
17093         shift amounts from a pattern stmt operand.
17095 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17097         PR target/70674
17098         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
17099         stack_restore_from_fpr pattern when restoring r15.
17100         (s390_optimize_prologue): Strip away the memory barrier in the
17101         parallel when trying to get rid of restore insns.
17102         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
17103         definition for loading the stack pointer from an FPR.  Compared to
17104         the normal move insn this pattern includes a full memory barrier.
17106 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
17108         PR middle-end/70680
17109         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
17110         implicitly linear or lastprivate iterator on the outer context.
17112 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17114         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
17115         alignment check.
17116         * config/i386/i386.md (ssememalign): Removed.
17117         * config/i386/sse.md: Remove ssememalign attribute from patterns.
17119 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17121         PR target/69201
17122         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
17123         const short * to __builtin_ia32_loaddquhi512_mask.
17124         (_mm512_maskz_loadu_epi16): Likewise.
17125         (_mm512_mask_storeu_epi16): Pass short * to
17126         __builtin_ia32_storedquhi512_mask.
17127         (_mm512_mask_loadu_epi8): Pass const char * to
17128         __builtin_ia32_loaddquqi512_mask.
17129         (_mm512_maskz_loadu_epi8): Likewise.
17130         (_mm512_mask_storeu_epi8): Pass char * to
17131         __builtin_ia32_storedquqi512_mask.
17132         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
17133         const double * to __builtin_ia32_loadupd512_mask.
17134         (_mm512_mask_loadu_pd): Likewise.
17135         (_mm512_maskz_loadu_pd): Likewise.
17136         (_mm512_storeu_pd): Pass double * to
17137         __builtin_ia32_storeupd512_mask.
17138         (_mm512_mask_storeu_pd): Likewise.
17139         (_mm512_loadu_ps): Pass const float * to
17140         __builtin_ia32_loadups512_mask.
17141         (_mm512_mask_loadu_ps): Likewise.
17142         (_mm512_maskz_loadu_ps): Likewise.
17143         (_mm512_storeu_ps): Pass float * to
17144         __builtin_ia32_storeups512_mask.
17145         (_mm512_mask_storeu_ps): Likewise.
17146         (_mm512_mask_loadu_epi64): Pass const long long * to
17147         __builtin_ia32_loaddqudi512_mask.
17148         (_mm512_maskz_loadu_epi64): Likewise.
17149         (_mm512_mask_storeu_epi64): Pass long long *
17150         to __builtin_ia32_storedqudi512_mask.
17151         (_mm512_loadu_si512): Pass const int * to
17152         __builtin_ia32_loaddqusi512_mask.
17153         (_mm512_mask_loadu_epi32): Likewise.
17154         (_mm512_maskz_loadu_epi32): Likewise.
17155         (_mm512_storeu_si512): Pass int * to
17156         __builtin_ia32_storedqusi512_mask.
17157         (_mm512_mask_storeu_epi32): Likewise.
17158         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
17159         char * to __builtin_ia32_storedquqi256_mask.
17160         (_mm_mask_storeu_epi8): Likewise.
17161         (_mm256_mask_loadu_epi16): Pass const short * to
17162         __builtin_ia32_loaddquhi256_mask.
17163         (_mm256_maskz_loadu_epi16): Likewise.
17164         (_mm_mask_loadu_epi16): Pass const short * to
17165         __builtin_ia32_loaddquhi128_mask.
17166         (_mm_maskz_loadu_epi16): Likewise.
17167         (_mm256_mask_loadu_epi8): Pass const char * to
17168         __builtin_ia32_loaddquqi256_mask.
17169         (_mm256_maskz_loadu_epi8): Likewise.
17170         (_mm_mask_loadu_epi8): Pass const char * to
17171         __builtin_ia32_loaddquqi128_mask.
17172         (_mm_maskz_loadu_epi8): Likewise.
17173         (_mm256_mask_storeu_epi16): Pass short * to.
17174         __builtin_ia32_storedquhi256_mask.
17175         (_mm_mask_storeu_epi16): Pass short * to.
17176         __builtin_ia32_storedquhi128_mask.
17177         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17178         const double * to __builtin_ia32_loadupd256_mask.
17179         (_mm256_maskz_loadu_pd): Likewise.
17180         (_mm_mask_loadu_pd): Pass onst double * to
17181         __builtin_ia32_loadupd128_mask.
17182         (_mm_maskz_loadu_pd): Likewise.
17183         (_mm256_mask_storeu_pd): Pass double * to
17184         __builtin_ia32_storeupd256_mask.
17185         (_mm_mask_storeu_pd): Pass double * to
17186         __builtin_ia32_storeupd128_mask.
17187         (_mm256_mask_loadu_ps): Pass const float * to
17188         __builtin_ia32_loadups256_mask.
17189         (_mm256_maskz_loadu_ps): Likewise.
17190         (_mm_mask_loadu_ps): Pass const float * to
17191         __builtin_ia32_loadups128_mask.
17192         (_mm_maskz_loadu_ps): Likewise.
17193         (_mm256_mask_storeu_ps): Pass float * to
17194         __builtin_ia32_storeups256_mask.
17195         (_mm_mask_storeu_ps): ass float * to
17196         __builtin_ia32_storeups128_mask.
17197         (_mm256_mask_loadu_epi64): Pass const long long * to
17198         __builtin_ia32_loaddqudi256_mask.
17199         (_mm256_maskz_loadu_epi64): Likewise.
17200         (_mm_mask_loadu_epi64): Pass const long long * to
17201         __builtin_ia32_loaddqudi128_mask.
17202         (_mm_maskz_loadu_epi64): Likewise.
17203         (_mm256_mask_storeu_epi64): Pass long long * to
17204         __builtin_ia32_storedqudi256_mask.
17205         (_mm_mask_storeu_epi64): Pass long long * to
17206         __builtin_ia32_storedqudi128_mask.
17207         (_mm256_mask_loadu_epi32): Pass const int * to
17208         __builtin_ia32_loaddqusi256_mask.
17209         (_mm256_maskz_loadu_epi32): Likewise.
17210         (_mm_mask_loadu_epi32): Pass const int * to
17211         __builtin_ia32_loaddqusi128_mask.
17212         (_mm_maskz_loadu_epi32): Likewise.
17213         (_mm256_mask_storeu_epi32): Pass int * to
17214         __builtin_ia32_storedqusi256_mask.
17215         (_mm_mask_storeu_epi32): Pass int * to
17216         __builtin_ia32_storedqusi128_mask.
17217         * config/i386/i386-builtin-types.def (PCSHORT): New.
17218         (PINT64): Likewise.
17219         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17220         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17221         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17222         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17223         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17224         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
17225         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
17226         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
17227         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
17228         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
17229         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
17230         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
17231         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
17232         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
17233         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
17234         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
17235         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
17236         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
17237         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
17238         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
17239         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
17240         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
17241         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
17242         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
17243         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
17244         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
17245         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
17246         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
17247         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
17248         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
17249         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
17250         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
17251         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
17252         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
17253         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
17254         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
17255         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
17256         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
17257         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
17258         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
17259         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
17260         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
17261         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
17262         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
17263         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
17264         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
17265         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
17266         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
17267         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
17268         use UNSPEC_STOREU.
17269         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
17270         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
17271         load nor store.
17272         (ix86_expand_vector_move_misalign): Likewise.
17273         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
17274         to scalar function prototype for unaligned load/store builtins.
17275         (ix86_expand_special_args_builtin): Updated.
17276         * config/i386/sse.md (UNSPEC_LOADU): Removed.
17277         (UNSPEC_STOREU): Likewise.
17278         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
17279         (VI_ULOADSTORE_F_AVX512VL): Likewise.
17280         (ssescalarsize): Handle V4TI, V2TI and V1TI.
17281         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17282         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17283         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
17284         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
17285         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
17286         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
17287         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
17288         (<avx512>_storedqu<mode>_mask): Likewise.
17289         (*sse4_2_pcmpestr_unaligned): Likewise.
17290         (*sse4_2_pcmpistr_unaligned): Likewise.
17291         (*mov<mode>_internal): Renamed to ...
17292         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
17293         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
17294         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
17295         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
17297 2016-04-19  Richard Biener  <rguenther@suse.de>
17299         PR tree-optimization/70171
17300         * tree-ssa-phiprop.c: Include stor-layout.h.
17301         (phiprop_insert_phi): Handle the aggregate copy case.
17302         (propagate_with_phi): Likewise.
17304 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
17306         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
17307         instead of simplify_gen_subreg (... , 0).
17308         (ix86_delegitimize_address): Ditto.
17309         (ix86_split_divmod): Ditto.
17310         (ix86_split_copysign_const): Ditto.
17311         (ix86_split_copysign_var): Ditto.
17312         (ix86_expand_args_builtin): Ditto.
17313         (ix86_expand_round_builtin): Ditto.
17314         (ix86_expand_special_args_builtin): Ditto.
17315         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
17316         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
17317         (udivmodqi4): Ditto.
17318         (absneg splitters): Ditto.
17319         (*jcc_bt<mode>_1): Ditto.
17321 2016-04-19  Richard Biener  <rguenther@suse.de>
17323         PR tree-optimization/70724
17324         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
17325         restoring out from ...
17326         (free_scc_vn): ... here.
17327         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
17328         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
17329         tail merging.
17330         (pass_fre::execute): Restore SSA info.
17332 2016-04-19  Richard Biener  <rguenther@suse.de>
17334         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
17335         * gimple-walk.c (walk_gimple_op): Initialize it.
17336         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
17337         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
17338         remapping SSA names of defs.
17339         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
17340         adjustment.
17342 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
17344         PR middle-end/70689
17345         * lra-constraints.c (equiv_substition_p): New.
17346         (process_alt_operands): Use it.
17347         (swap_operands): Swap it.
17348         (curr_insn_transform): Update it.
17350 2016-04-18  Michael Matz  <matz@suse.de>
17352         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
17353         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
17354         * tree-core.h (tree_type_common.align): Use bit-field.
17355         (tree_type_common.spare): New.
17356         (tree_decl_common.off_align): Make smaller.
17357         (tree_decl_common.align): Use bit-field.
17359         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
17360         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
17361         (scan_sharing_clauses): Ditto.
17362         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17363         (omp_finish_file): Ditto.
17364         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
17365         (layout_decl): Ditto.
17366         (relayout_decl): Ditto.
17367         (finalize_record_size): Use SET_TYPE_ALIGN.
17368         (finalize_type_size): Ditto.
17369         (finish_builtin_struct): Ditto.
17370         (layout_type): Ditto.
17371         (initialize_sizetypes): Ditto.
17372         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
17373         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
17374         (lookup_field_for_decl): Use SET_DECL_ALIGN.
17375         (get_chain_field): Ditto.
17376         (get_trampoline_type): Ditto.
17377         (get_nl_goto_field): Ditto.
17378         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17379         SET_DECL_ALIGN.
17380         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
17381         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
17382         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17383         (build_qualified_type): Use SET_TYPE_ALIGN.
17384         (build_aligned_type, build_range_type_1): Ditto.
17385         (build_atomic_base): Ditto.
17386         (build_common_tree_nodes): Ditto.
17387         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
17388         (expand_one_stack_var_at): Ditto.
17389         * coverage.c (build_var): Use SET_DECL_ALIGN.
17390         * except.c (init_eh): Ditto.
17391         * function.c (assign_parm_setup_block): Ditto.
17392         * symtab.c (increase_alignment_1): Ditto.
17393         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
17394         * tree-vect-stmts.c (ensure_base_align): Ditto.
17395         * varasm.c (align_variable): Ditto.
17396         (assemble_variable): Ditto.
17397         (build_constant_desc): Ditto.
17398         (output_constant_def_contents): Ditto.
17400         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
17401         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
17402         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
17403         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
17404         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
17406 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
17408         PR target/70708
17409         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
17410         replace %vmovsd with "%vmovq".
17411         (vec_concatv2df): Likewise.
17413 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
17415         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
17416         (*vec_extractv2si_0): Ditto.
17417         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
17418         (zero_extended_scalar_load_operand splitters): Ditto.
17419         (vec_extract splitters): Ditto.
17420         (*vec_extractv4si_0_zext): Ditto.
17421         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
17422         and lowpart_subreg.
17423         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
17424         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
17425         (*sse4_1_extractps): Use lowpart_subreg.
17426         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
17428 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17430         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
17431         gld requirements.
17432         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
17433         Mention Solaris 11 packaging changes.
17434         Update gas and gld requirements.
17435         Remove reference to pre-Solaris 10 bug.
17436         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
17437         systems and bugs.
17438         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
17439         with cc.
17441 2016-04-17  Jan Hubicka  <jh@suse.cz>
17443         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
17444         max_loop_iterations_int.
17446 2016-04-18  Richard Biener  <rguenther@suse.de>
17448         PR tree-optimization/43434
17449         * tree-ssa-structalias.c (struct vls_data): New.
17450         (visit_loadstore): Handle all pointer-based accesses.
17451         (compute_dependence_clique): Compute a bitmap of restrict tags
17452         assigned bases and pass it to visit_loadstore.
17454 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
17456         PR target/70711
17457         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17458         armv8.1-a and armv8.1-a+crc.
17460 2016-04-18  Richard Biener  <rguenther@suse.de>
17462         PR tree-optimization/70701
17463         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17464         references after translating through a memcpy.
17466 2016-04-18  Richard Biener  <rguenther@suse.de>
17468         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17469         (compute_antic): ... here.  For partial antic use regular
17470         postorder and scrap iteration.
17471         (compute_partial_antic_aux): Remove unused return value.
17472         (init_pre): Do not allocate postorder.
17473         (fini_pre): Do not free postorder.
17475 2016-04-18  Richard Biener  <rguenther@suse.de>
17477         PR middle-end/37870
17478         * expmed.c (extract_bit_field_1): Remove broken case
17479         using a wider MODE_INT mode.
17481 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17483         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17484         unless compiling with at least GCC-4.8.
17486 2016-04-17  Jan Hubicka  <jh@suse.cz>
17488         PR bootstrap/70706
17489         * graphite.c (graphite_finalize): Update call to
17490         tree_estimate_probability.
17491         * predict.h (tree_estimate_probability): Update prototype.
17493 2016-04-17  Jan Hubicka  <jh@suse.cz>
17495         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17496         (tree_estimate_probability): Likewise.
17497         (pass_profile::execute): Update.
17498         (report_predictor_hitrates): New function.
17499         * profile.c (compute_branch_probabilities): Use it.
17500         * predict.h (report_predictor_hitrates): Declare.
17502 2016-04-17  Jan Hubicka  <jh@suse.cz>
17504         PR ipa/70018
17505         * cgraph.h (cgraph_node::set_const_flag,
17506         cgraph_node::set_pure_flag): Update prototype to return bool;
17507         update comment.
17508         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17509         of interposable symbol are interposable, too.
17510         (cgraph_set_const_flag_1): Rename to ...
17511         (set_const_flag_1): ... this one; change to self recursive function
17512         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17513         clearnig the flag in all variants and also virtual thunks of const
17514         functions are pure; track if any change was done.
17515         (cgraph_node::set_const_flag): Update.
17516         (struct set_pure_flag_info): New struct.
17517         (cgraph_set_pure_flag_1): Rename to ...
17518         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17519         rather than pointer encoded flags; track if any changes was done;
17520         handle correctly clearning flag and setting flag of aliases already
17521         declared const.
17522         (cgraph_node::set_pure_flag): Update.
17523         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17525 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17527         PR other/70433
17528         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17529         backslash in label.
17531 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17533         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17534         '{}<> ' as escape-for-record.
17536 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17538         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17539         structure.
17541 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17543         PR other/70185
17544         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17545         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17546         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17547         * passes.c (finish_optimization_passes): Only call
17548         finish_graph_dump_file if dfi->graph_dump_initialized.
17549         (execute_function_dump, pass_init_dump_file): Use
17550         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17552 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17554         PR tree-optimization/70256
17555         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17556         (debug_varmap): New function.
17558 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17560         PR other/70183
17561         * passes.c (pass_manager::register_pass): Propagate pflags.
17563 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17565         PR other/68875
17566         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17567         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17568         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17569         check if it's equal to p_start.
17570         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17572 2016-04-15  Jan Hubicka  <jh@suse.cz>
17574         PR ipa/70018
17575         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17576         function does not bind to current def.
17577         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17578         handle conservatively calls to functions that does not need to bind
17579         to current def.
17580         (check_call): Update call of worse_state.
17581         (ignore_edge_for_nothrow): Update.
17582         (ignore_edge_for_pure_const): Likewise.
17583         (propagate_pure_const): Update calls to worse_state.
17584         (skip_function_for_local_pure_const): Reformat comments.
17586 2016-04-15  Jan Hubicka  <jh@suse.cz>
17588         PR ipa/70018
17589         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17590         (cgraph_node::function_symbol): Likewise.
17591         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17592         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17593         (symtab_node::ultimate_alias_target): Add REF parameter.
17594         (symtab_node::binds_to_current_def_p): Declare.
17595         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17596         (cgraph_node::function_symbol): Likewise.
17597         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17598         (cgraph_node::get_availability): Likewise.
17599         (cgraph_edge::binds_to_current_def_p): New inline function.
17600         (varpool_node::get_availability): Add REF parameter.
17601         (varpool_node::ultimate_alias_target): Likewise.
17602         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17603         (symtab_node::binds_to_current_def_p): Likewise.
17604         * varpool.c (varpool_node::get_availability): Likewise.
17606 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17608         PR target/70662
17609         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17610         Fix mode size check.
17612 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17614         * BASE-VER: Set to 7.0.0.
17616 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17618         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17620 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17622         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17623         architecture revisions.
17625 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17627         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17628         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17629         * config/i386/i386.md (stack decrement to push peepholes): Guard
17630         with !x86_using_red_zone ().
17632 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17634         PR c++/70675
17635         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17636         to dump_generic_node.
17637         (NIY): Pass also flags to do_niy.
17639 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17641         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17642         (simd_clone_vector_of_formal_parm_types)
17643         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17644         (simd_clone_mangle, simd_clone_create)
17645         (simd_clone_adjust_return_type, create_tmp_simd_array)
17646         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17647         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17648         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17649         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17650         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17651         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17652         * omp-simd-clone.c: ... this new file.
17653         (simd_clone_vector_of_formal_parm_types): Make it static.
17654         * Makefile.in (OBJS): Add omp-simd-clone.o.
17656 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17658         PR target/70662
17659         * config/i386/sse.md: Use proper memory operand modifiers.
17662 2016-04-15  Richard Biener  <rguenther@suse.de>
17663         Alan Modra  <amodra@gmail.com>
17665         PR tree-optimization/70130
17666         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17667         when alignment stays not the same and no not use the realign
17668         scheme then.
17670 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17672         PR target/70669
17673         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17674         direct move handlers for KFmode. Change TFmode handlers test from
17675         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17677 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17679         PR c++/70594
17680         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17681         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17682         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17683         * tree-ssa-live.c (remove_unused_scope_block_p): When
17684         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17685         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17686         block_ultimate_origin is FUNCTION_DECL.
17687         (remove_unused_locals): If current_function_decl is
17688         polymorphic_ctor_dtor_p, pass initial true to
17689         remove_unused_scope_block_p' is_ctor_dtor_block.
17691 2016-04-14  Martin Sebor  <msebor@redhat.com>
17693         PR c++/69517
17694         PR c++/70019
17695         PR c++/70588
17696         * doc/extend.texi (Variable Length): Revert.
17698 2016-04-14  Marek Polacek  <polacek@redhat.com>
17699             Jan Hubicka  <hubicka@ucw.cz>
17701         PR c++/70029
17702         * tree.c (verify_type): Disable the canonical type of main variant
17703         check.
17705 2016-04-14  Jason Merrill  <jason@redhat.com>
17707         * cfgexpand.c, expr.c: Revert previous change.
17709 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17711         PR middle-end/70643
17712         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17713         when building a mem ref for the incoming reduction variable.
17715 2016-04-14  Richard Biener  <rguenther@suse.de>
17717         PR tree-optimization/70614
17718         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17719         loop if the evolution dropped to chrec_dont_know.
17720         (interpret_condition_phi): Likewise.
17722 2016-04-14  Richard Biener  <rguenther@suse.de>
17724         PR tree-optimization/70623
17725         * tree-ssa-pre.c (changed_blocks): Make global ...
17726         (compute_antic): ... local here.  Move and fix worklist
17727         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17728         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17729         worklist handling, dump when ANTIC_IN changed.
17730         (compute_partial_antic_aux): Remove worklist handling.
17731         (init_pre): Do not compute post dominators.  Add a comment about
17732         the CFG order chosen.
17733         (fini_pre): Do not free post dominators.
17735 2016-04-13  Martin Sebor  <msebor@redhat.com>
17737         PR c++/69517
17738         PR c++/70019
17739         PR c++/70588
17740         * doc/extend.texi (Variable Length): Document C++ specifics.
17742 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17744         PR c++/70641
17745         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17746         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17747         eh edges have been purged.
17749         PR c++/70594
17750         * tree-sra.c (create_access_replacement,
17751         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17752         gets fancy name.
17753         * tree-pretty-print.c (dump_fancy_name): New function.
17754         (dump_decl_name, dump_generic_node): Use it.
17756 2016-04-13  Jason Merrill  <jason@redhat.com>
17758         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17759         * expr.c (expand_expr_real_1): Likewise.
17761 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17763         * config/i386/i386.md (kunpckhi): Swap operands.
17764         (kunpcksi): Likewise.
17765         (kunpckdi): Likewise.
17766         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17767         (vec_pack_trunc_<mode>): Likewise.
17769 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17771         PR debug/70628
17772         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17774         PR middle-end/70633
17775         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17776         gimplification turns some element into non-constant.
17778         PR debug/70628
17779         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17780         * explow.c (convert_memory_address_addr_space_1): No longer static,
17781         add NO_EMIT argument and don't call convert_modes if true, pass
17782         it down recursively, remove break after return.
17783         (convert_memory_address_addr_space): Adjust caller.
17784         * simplify-rtx.c (simplify_unary_operation_1): Call
17785         convert_memory_address_addr_space_1 instead of convert_memory_address,
17786         if it returns NULL, don't simplify.
17788 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17790         PR target/70630
17791         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17793 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17795         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17796         Bump the upper SIMDLEN limits, so that if the return type or
17797         characteristic type if the return type is void can be passed in
17798         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17799         allowed.
17801 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17803         PR target/70640
17804         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17805         Do not use "=" constraint on an input constraint.
17806         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17807         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17808         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17809         generates (neg (abs ...)) instead of (abs ...).
17811 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17813         PR rtl-optimization/70596
17814         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17815         just invalidate LRA data and reset them.  Adjust dump wording.
17817 2016-04-12  Martin Liska  <mliska@suse.cz>
17819         Revert
17820         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17822         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17823         estimates here.
17824         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17825         max_loop_iterations_int.
17826         (tree_unswitch_outer_loop): Likewise.
17827         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17828         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17830 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17832         PR tree-optimization/68756
17833         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17834         instead of new_name.
17836 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17838         PR tree-optimization/70602
17839         * tree-sra.c (generate_subtree_copies): Don't write anything into
17840         constant pool decls.
17842         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17843         regardless whether there are depend clauses or not.
17845 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17847         PR target/70381
17848         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17849         target attribute and pragma from changing the -mfloat128
17850         and -mfloat128-hardware options.
17852         * doc/extend.texi (Additional Floating Types): Document PowerPC
17853         __float128 restrictions.
17855 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17857         PR target/70133
17858         * config/aarch64/driver-aarch64.c
17859         (aarch64_get_extension_string_for_isa_flags): New.
17860         (arch_extension): Rename to...
17861         (aarch64_arch_extension): ...This.
17862         (ext_to_feat_string): Rename to...
17863         (aarch64_extensions): ...This.
17864         (aarch64_core_data): Keep track of architecture extension flags.
17865         (cpu_data): Rename to...
17866         (aarch64_cpu_data): ...This.
17867         (aarch64_arch_driver_info): Keep track of architecture extension
17868         flags.
17869         (get_arch_name_from_id): Rename to...
17870         (get_arch_from_id): ...This, change return type.
17871         (host_detect_local_cpu): Update and reformat for renames, handle
17872         extensions through common infrastructure.
17874 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17876         PR target/70133
17877         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17878         track of a canonical flag name.
17879         (all_extensions): Likewise.
17880         (arch_to_arch_name): Also track extension flags enabled by the arch.
17881         (all_architectures): Likewise.
17882         (aarch64_parse_extension): Move to here.
17883         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17884         rework.
17885         (aarch64_rewrite_selected_cpu): Update for above change.
17886         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17887         are handled, such that the single explicit value enabled by an
17888         extension is kept seperate from the implicit values it also enables.
17889         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17890         to here.
17891         (aarch64_parse_extension): New.
17892         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17893         here to config/aarch64/aarch64-protos.h.
17894         (aarch64_parse_extension): Move from here to
17895         common/config/aarch64/aarch64-common.c.
17896         (aarch64_option_print): Update.
17897         (aarch64_declare_function_name): Likewise.
17898         (aarch64_start_file): Likewise.
17899         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17900         the canonical flag for extensions.
17901         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17902         flags.
17904 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17906         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17907         AARCH64_FL_CRC.
17909 2016-04-09  Tom de Vries  <tom@codesourcery.com>
17911         PR tree-optimization/68953
17912         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17913         first to last subscript.
17915 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
17917         PR tree-optimization/70586
17918         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17919         for any calls.
17921 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
17923         PR lto/70289
17924         PR ipa/70348
17925         PR tree-optimization/70373
17926         PR middle-end/70533
17927         PR middle-end/70534
17928         PR middle-end/70535
17929         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17930         clauses for acc parallel reductions as necessary.  Error on those
17931         that are private.
17932         * omp-low.c (scan_sharing_clauses): Don't install variables which
17933         are used in acc parallel reductions.
17934         (lower_rec_input_clauses): Remove dead code.
17935         (lower_oacc_reductions): Add support for reference reductions.
17936         (lower_reduction_clauses): Remove dead code.
17937         (lower_omp_target): Don't remap variables appearing in acc parallel
17938         reductions.
17939         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17941 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
17943         PR middle-end/70593
17944         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17945         with multiple SSA_NAME defs, force the outputs other than first
17946         to be live before calling live_track_process_def on each output.
17948         PR rtl-optimization/70574
17949         * fwprop.c (forward_propagate_and_simplify): Don't add
17950         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17951         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17952         paradoxical subregs within *loc.
17954 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
17956         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17957         -ftree-parallelize-loops={0,1}.
17958         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17959         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17960         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17961         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17962         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17964 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
17966         PR sanitizer/70541
17967         * asan.c (instrument_derefs): If we get unknown location, extract it
17968         with EXPR_LOCATION.
17969         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17971 2016-04-08  Tom de Vries  <tom@codesourcery.com>
17973         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17974         implicit firstprivate clause.
17976 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17978         PR target/70566
17979         * config/arm/thumb2.md (tst + branch-> lsls + branch
17980         peephole below *orsi_not_shiftsi_si): Require that condition
17981         register is dead after the peephole.
17982         (second peephole after the above): Likewise.
17984 2016-04-08  Alan Modra  <amodra@gmail.com>
17986         PR target/70117
17987         * builtins.c (fold_builtin_classify): For IBM extended precision,
17988         look at just the high-order double to test for NaN.
17989         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
17990         test just the high double for Inf but both doubles for subnormal
17991         limit.
17993 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
17995         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17996         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17997         node->simdclone->mask_mode != VOIDmode masks.
17998         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
17999         earlier, use it instead of node->simdclone.
18000         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18001         Set clonei->mask_mode.
18003 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18005         PR c/70436
18006         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18007         Pass it through to cp_parser_already_scoped_statement.
18008         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
18009         it through to cp_parser_statement.
18010         (cp_parser_statement): Pass IF_P through to
18011         cp_parser_iteration_statement.
18012         (cp_parser_pragma): Adjust call to
18013         cp_parser_iteration_statement.
18015 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18017         PR c/70436
18018         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18019         resolve a future -Wparentheses warning.
18020         * omp-low.c (scan_sharing_clauses): Likewise.
18021         * tree-parloops.c (eliminate_local_variables): Likewise.
18023 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
18025         PR rtl-optimization/70398
18026         * lra-constraints.c (process_address_1): Check zero scale and code
18027         for reloading with zero scale.
18029 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
18031         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18032         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18034 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
18036         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18037         Add support for AVX512F clones, include them by default for
18038         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
18039         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18040         up to 128.
18042         PR middle-end/70550
18043         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18044         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18045         firstprivate clauses.
18046         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18047         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18048         (lower_omp_target): Set TREE_NO_WARNING for
18049         non-addressable possibly uninitialized vars which are copied into
18050         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18052 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
18054         * config/pa/predicates.md (integer_store_memory_operand): Accept
18055         REG+D operands with a large offset when reload_in_progress is true.
18056         (floating_point_store_memory_operand): Likewise.
18058 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18060         PR c++/70336
18061         * match.pd (nested int casts): Limit to GIMPLE.
18063 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
18065         PR ipa/66223
18066         * ipa-devirt.c (maybe_record_node): Fix comment; use
18067         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18069 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18071         PR rtl-optimization/70542
18072         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18073         if there are any uses other than insn or debug insns.
18075 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
18076             Jakub Jelinek  <jakub@redhat.com>
18078         PR tree-optimization/70509
18079         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18080         Shift HOST_WIDE_INT_1U instead of 1.
18082 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
18084         PR tree-optimization/70509
18085         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
18086         of the vector base type for index.
18088 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
18090         PR target/70510
18091         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
18093 2016-04-05  Richard Biener  <rguenther@suse.de>
18095         PR tree-optimization/70526
18096         * tree-sra.c (build_ref_for_offset): Use prev_base to
18097         extract the alias pointer type.
18099 2016-04-05  Richard Biener  <rguenther@suse.de>
18101         * dse.c (struct store_info): Remove alias_set member.
18102         (struct read_info_type): Likewise.
18103         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
18104         spill_deleted, clear_alias_set_lookup): Remove.
18105         (get_group_info): Remove dead base == NULL_RTX case.
18106         (dse_step0): Remove initialization of removed variables.
18107         (delete_dead_store_insn): Reomve alias set dumping.
18108         (free_read_records): Remove alias_set handling.
18109         (canon_address): Remove alias_set_out parameter.
18110         (record_store): Remove spill_alias_set, it's always zero.
18111         (check_mem_read_rtx): Likewise.
18112         (dse_step2): Rename from ...
18113         (dse_step2_nospill): ... this.  Adjust.
18114         (scan_stores): Rename from ...
18115         (scan_stores_nospill): ... this.
18116         (scan_reads): Rename from ...
18117         (scan_reads_nospill): ... this.
18118         (scan_stores_spill, scan_reads_spill): Remove.
18119         (dse_step3_scan): Remove for_spills argument which is always false.
18120         (dse_step3): Likewise.
18121         (dse_step5): Rename from ...
18122         (dse_step5_nospill): ... this.  Remove alias_set handling.
18123         (rest_of_handle_dse): Adjust.
18125 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18127         PR target/70525
18128         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
18129         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
18130         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
18131         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
18133 2016-04-05  Richard Biener  <rguenther@suse.de>
18135         PR middle-end/70499
18136         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
18137         non-register type temporaries into SSA.
18139 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
18141         PR ipa/66223
18142         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
18143         calls when sanitizing.
18144         (possible_polymorphic_call_target_p): Fix formatting.
18146 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18147             Jakub Jelinek  <jakub@redhat.com>
18149         PR middle-end/70457
18150         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
18151         to ensure a call statement is compatible with a built-in's
18152         prototype.
18153         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
18154         Likewise.
18156 2016-04-04  Richard Biener  <rguenther@suse.de>
18158         PR rtl-optimization/70484
18159         * rtl.h (canon_output_dependence): Declare.
18160         * alias.c (canon_output_dependence): New function.
18161         * dse.c (record_store): Use canon_output_dependence rather
18162         than canon_true_dependence.
18164 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18166         PR ipa/68881
18167         * cgraph.h (symtab_node::copy_visibility_from): New function.
18168         * symtab.c (symtab_node::copy_visibility_from): New function.
18169         * ipa-visibility.c (optimize_weakref): New function.
18170         (function_and_variable_visibility): Use it.
18172 2016-04-04  Martin Liska  <mliska@suse.cz>
18174         PR hsa/70402
18175         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18176         value that is really in range handled by SBR instruction.
18177         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18178         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18179         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18181 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
18183         PR target/70416
18184         PR target/67391
18185         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18186         set, but not for SP_REG operands.
18188 2016-04-02  Martin Sebor  <msebor@redhat.com>
18190         PR c++/67376
18191         * fold-const.c (maybe_nonzero_address): New function.
18192         (fold_comparison): Call it.  Fold equality and relational
18193         expressions involving null pointers.
18194         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18196 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
18198         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18199         the "Y" constraint (scalar FP 0.0 immediate).
18201         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18202         Add the "const_double" to the list of operand constraints.
18204 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
18206         PR rtl-optimization/70467
18207         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18208         If low word of the last operand is 0, just emit addition/subtraction
18209         for the high word.
18211 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18213         PR target/70404
18214         * config/s390/s390.c (s390_expand_insv): Check for everything
18215         constant instead of just VOIDmode stuff.
18217 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18219         PR target/70496
18220         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18222 2016-04-01  Nathan Sidwell  <nathan@acm.org>
18224         * tree.def (TRY_CATCH_EXPR): Correct documentation.
18226 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
18228         PR rtl-optimization/70461
18229         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
18230         is necessary.
18232 2016-03-31  Martin Liska  <mliska@suse.cz>
18234         PR hsa/70399
18235         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
18236         a tree value or an immediate integer value to a buffer
18237         that is eventually copied to a BRIG section.
18238         (emit_immediate_operand): Call the function here.
18239         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
18240         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
18241         of class' fields that are removed.
18242         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
18243         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
18244         m_brig_repr_size fields.
18246 2016-03-31  Martin Liska  <mliska@suse.cz>
18248         PR hsa/70391
18249         * hsa-gen.c (hsa_function_representation::update_dominance): New
18250         function.
18251         (convert_addr_to_flat_segment): Likewise.
18252         (gen_hsa_memory_set): New alignment argument.
18253         (gen_hsa_ctor_assignment): Likewise.
18254         (gen_hsa_insns_for_single_assignment): Provide alignment
18255         to gen_hsa_ctor_assignment.
18256         (gen_hsa_insns_for_direct_call): Add new argument.
18257         (expand_lhs_of_string_op): New function.
18258         (expand_string_operation_builtin): Likewise.
18259         (expand_memory_copy): New function.
18260         (expand_memory_set): New function.
18261         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
18262         (convert_switch_statements): Change signature.
18263         (generate_hsa): Use a return value of the function.
18264         (pass_gen_hsail::execute): Do not call
18265         convert_switch_statements here.
18266         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
18267         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
18268         (hsa_function_representation::update_dominance): New function.
18270 2016-03-31  Martin Liska  <mliska@suse.cz>
18272         PR hsa/70391
18273         * hsa-brig.c (emit_directive_variable): Emit alignment
18274         according to hsa_symbol::m_align.
18275         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
18276         (dump_hsa_symbol): Dump alignment of HSA symbols.
18277         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
18278         (gen_hsa_addr_with_align): New function.
18279         (hsa_bitmemref_alignment): Use newly added function.
18280         (gen_hsa_insns_for_load): Likewise.
18281         (gen_hsa_insns_for_store): Likewise.
18282         (gen_hsa_memory_copy): New argument added.
18283         (gen_hsa_insns_for_single_assignment): Respect
18284         alignment for assignments processed via gen_hsa_memory_copy.
18285         (gen_hsa_insns_for_direct_call): Likewise.
18286         (gen_hsa_insns_for_return): Likewise.
18287         (gen_function_def_parameters): Set default alignment.
18288         * hsa.c (hsa_object_alignment): New function.
18289         (hsa_byte_alignment): Pasted function.
18290         * hsa.h (hsa_symbol::m_align): New field.
18292 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18294         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
18295         scratch field for goto case.
18297 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
18299         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
18301 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
18303         PR target/70442
18304         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
18305         (scalar_chain::convert_insn): Call convert_op for reg
18306         moves to handle undefined registers.
18308 2016-03-31  Nathan Sidwell  <nathan@acm.org>
18310         PR c++/70393
18311         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
18312         Assert we don't want to move backwards.
18314 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18316         PR target/70453
18317         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
18319 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
18321         PR rtl-optimization/70460
18322         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
18323         with operand from REG_LABEL_OPERAND, instead substitute
18324         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
18325         Don't do anything for REG_NON_LOCAL_GOTO jumps.
18327 2016-03-31  Martin Liska  <mliska@suse.cz>
18329         * passes.c (execute_one_pass): Do not call
18330         todo_after for a discarded function.
18332 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18334         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
18335         (no_cost, infinite_cost): Initialize the new field.
18336         (get_computation_cost_at): Record setup cost.
18337         (determine_use_iv_cost_address): Skip cost computation for sub
18338         uses if we can estimate it without losing accuracy.
18340 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18342         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18343         estimates here.
18344         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18345         max_loop_iterations_int.
18346         (tree_unswitch_outer_loop): Likewise.
18347         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18348         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18350 2016-03-30  Richard Biener  <rguenther@suse.de>
18352         PR middle-end/70450
18353         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
18355 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
18357         PR target/70421
18358         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
18359         in gen_blendm expander.
18361 2016-03-30  Nick Clifton  <nickc@redhat.com>
18363         PR target/62254
18364         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
18365         case where we are already provided with an SImode SUBREG.
18367 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18369         PR target/70439
18370         * config/i386/i386.c (ix86_expand_epilogue): Properly check
18371         conflict between DRAP register and __builtin_eh_return.
18373 2016-03-30  Michael Matz  <matz@suse.de>
18374             Richard Biener  <rguenther@suse.de>
18376         PR ipa/12392
18377         * ipa-polymorphic-call.c (struct type_change_info): Change
18378         speculative to an unsigned allowing to limit the work we do.
18379         (csftc_abort_walking_p): New inline function..
18380         (check_stmt_for_type_change): Limit the number of may-defs
18381         skipped for speculative devirtualization to
18382         max-speculative-devirt-maydefs.
18383         * params.def (max-speculative-devirt-maydefs): New param.
18384         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
18386 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
18388         PR target/63890
18389         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
18390         and TARGET_MACHO.
18392 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
18394         PR tree-optimization/59124
18395         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
18396         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
18398 2016-03-29  Jeff Law  <law@redhat.com>
18400         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
18402 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18404         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
18405         to HOST_WIDE_INT.
18407 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
18409         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
18410         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
18411         gcrt0.o if linking dynamically.
18413 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18415         PR ipa/70283
18416         * ipa-devirt.c (methods_equal_p): New function.
18417         (compare_virtual_tables): Use it.
18418         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
18419         * cgraphclones.c (clone_function_name_1): Use
18420         symbol_table::symbol_suffix_separator.
18421         * coverage.c (build_var): Likewise.
18422         * symtab.c (symbol_table::symbol_suffix_separator): New.
18424 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
18426         PR rtl-optimization/70429
18427         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
18428         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
18429         mode != result_mode.
18431         PR c++/70353
18432         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
18434         PR tree-optimization/70405
18435         * ssa-iterators.h (num_imm_uses): Add missing braces.
18437 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18439         PR rtl-optimization/68695
18440         * ira-color.c (allocno_copy_cost_saving): New.
18441         (improve_allocation): Use it.
18443 2016-03-29  Richard Henderson  <rth@redhat.com>
18445         PR middle-end/70355
18446         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
18448 2016-03-29  Richard Biener  <rguenther@suse.de>
18450         PR middle-end/70424
18451         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18452         use alignment returned by get_pointer_alignment_1 if it is
18453         bigger than BITS_PER_UNIT.
18454         * builtins.c (get_pointer_alignment_1): Do not return true
18455         for alignment extracted from SSA info.
18457 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
18459         * config/ft32/ft32.opt (mnodiv): New.
18460         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18461         * doc/invoke.texi (FT32 Options -mnodiv): New.
18463 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
18465         PR target/70406
18466         * config/i386/i386.md (define_split, andn): Fix modes.
18468 2016-03-26  Richard Biener  <rguenther@suse.de>
18469             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18471         PR ipa/70366
18472         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18473         instead of
18474         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18475         as 2nd argument to cl_optimization_restore().
18477 2016-03-25  Richard Henderson  <rth@redhat.com>
18479         PR target/70120
18480         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18481         * config/aarch64/aarch64-protos.h: Declare it.
18482         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18484 2016-03-25  Alan Modra  <amodra@gmail.com>
18486         PR target/70052
18487         * config/rs6000/constraints.md (j): Simplify.
18488         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18489         decimal float 0.D.
18490         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18491         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18492          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18493         in all constraint alternatives.
18494         (movtd_64bit_nodm): Delete "j" constraint alternative.
18496 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18498         * tree-ssa-propagate.c: Enhance docs for
18499         SSA_PROP_NOT_INTERESTING.
18501 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18503         * doc/extend.texi: Fix typo in documentation to pure attribute.
18505 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18507         PR target/70319
18508         * config/pa/pa.md (bswapdi2): Use a scratch register.
18510 2016-03-24  Richard Henderson  <rth@redhat.com>
18512         PR middle-end/69845
18513         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18514         overflow.
18516 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18518         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18519         using ix86_expand_binary_operator instead of gen_andsi3.
18521 2016-03-24  Richard Biener  <rguenther@suse.de>
18523         PR tree-optimization/70396
18524         * tree-vect-stmts.c (vectorizable_comparison): Use
18525         get_vectype_for_scalar_type.
18527 2016-03-24  Richard Biener  <rguenther@suse.de>
18529         PR middle-end/70370
18530         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18531         with register bases.
18533 2016-03-24  Richard Biener  <rguenther@suse.de>
18535         PR tree-optimization/70372
18536         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18537         build_all_ones_cst to also handle vector types correctly.
18539 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18541         PR target/70381
18542         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18543         -mfloat128 here.
18545 2016-03-23  Marek Polacek  <polacek@redhat.com>
18547         PR c++/69884
18548         * doc/invoke.texi: Document -Wignored-attributes.
18550 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18552         PR tree-optimization/69042
18553         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18554         parameter from 30 to 40.
18556 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18558         PR tree-optimization/69042
18559         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18560         for use with constant offset stripped in base.
18562 2016-03-23  Richard Biener  <rguenther@suse.de>
18564         PR middle-end/70251
18565         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18566         mode compatibility check.
18567         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18569 2016-03-23  Jeff Law  <law@redhat.com>
18571         PR tree-optimization/64058
18572         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18573         CONFLICT_COUNT.
18574         (struct ssa_conflicts): Move up earlier in the file.
18575         (conflicts_, var_map_): New static variables.
18576         (initialize_conflict_count): New function to initialize the
18577         CONFLICT_COUNT field for each conflict pair.
18578         (compare_pairs): Lazily initialize the conflict count and use it
18579         as the first tie-breaker.
18580         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18581         and wipe conflicts_ and map_ around the call to qsort.  Remove
18582         special case for 2 coalesce pairs.
18583         * bitmap.c (bitmap_count_unique_bits): New function.
18584         (bitmap_count_bits_in_word): New function, extracted from
18585         bitmap_count_bits.
18586         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18587         * bitmap.h (bitmap_count_unique_bits): Declare it.
18589 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18591         PR target/69917
18592         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18593         transparent alias chain for decl assembler name.
18594         * config/sol2.c (solaris_assemble_visibility): Likewise.
18596 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18598         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18599         duration.
18600         (v10_fdivs): Likewise.
18601         (v10_fdivd): Likewise.
18603 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18605         PR driver/70132
18606         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18607         to not call fclose twice on file.
18609 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18611         PR tree-optimization/70354
18612         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18613         oprnd0 is wider than oprnd1 and there is a cast from the wider
18614         type to oprnd1, mask it with the mask of the narrower type.
18616         PR target/70321
18617         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18618         Optimize TARGET_STV splitters, if high or low word of last argument
18619         is 0 or -1.
18621 2016-03-22  Jeff Law  <law@redhat.com>
18623         PR target/70232
18624         tree-ssa-threadbackward.c
18625         (fsm_find_control_statement_thread_paths): Correctly distinguish
18626         between old style jump threads vs FSM jump threads.
18628 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18630         PR target/70302
18631         * config/i386/i386.c (scalar_chain::convert_op): Support
18632         uninitialized register usage case.
18634 2016-03-22  Richard Biener  <rguenther@suse.de>
18636         PR middle-end/70251
18637         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18638         int...
18639         (capture::gen_transform): ... to change behavior when substituting
18640         a condition into cond or not-cond expr context.
18641         (dt_simplify::gen_1): Adjust.
18642         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18643         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18644         last change and instead change to
18645         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18646         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18648 2016-03-22  Anthony Green  <green@moxielogic.com>
18650         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18651         issue for moxiebox targets.
18652         (CC1PLUS_SPEC): Ditto.
18654 2016-03-22  Richard Biener  <rguenther@suse.de>
18656         PR middle-end/70333
18657         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18658         in the wide type.
18660 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18662         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18664 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18666         PR target/70325
18667         * config/i386/i386.c (def_builtin): Handle
18668         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18669         bits.
18670         (const struct builtin_description bdesc_special_args[]):
18671         Remove duplicate ISA bits.
18673 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18675         PR target/70329
18676         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18677         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18678         in a way that works also for AVX512BW.
18680         PR target/70300
18681         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18682         instead of source if operands[1] is xmm16 and above and
18683         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18684         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18686         PR c++/70295
18687         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18688         on assign if (*from_p) is a comparison, set it to
18689         TREE_NO_WARNING (*from_p).
18691 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18693         PR middle-end/70326
18694         * lra.c (restore_scratches): Ignore deleted insns.
18696 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18697             Jakub Jelinek  <jakub@redhat.com>
18699         PR tree-optimization/70317
18700         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18701         to HONOR_NANS.
18703 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18705         PR target/70327
18706         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18707         of ix86_expand_move.
18708         (movoi): Ditto.
18709         (movti): Use general_operand for operand 1 predicate.
18711 2016-03-21  Martin Liska  <mliska@suse.cz>
18713         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18714         insns.
18715         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18717 2016-03-21  Martin Liska  <mliska@suse.cz>
18719         PR ipa/70306
18720         * ipa-icf.c (sem_function::parse): Skip static
18721         constructors and destructors.
18723 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18725         PR target/70296
18726         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18727         function-like macro, peek following token(s) if it is followed
18728         by CPP_OPEN_PAREN token with optional padding in between, and
18729         if not, don't treat it like a macro.
18731 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18732             Alexander Monakov  <amonakov@ispras.ru>
18734         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18735         for the stabs debug format.
18737 2016-03-21  Richard Biener  <rguenther@suse.de>
18739         PR tree-optimization/70310
18740         * tree-vect-generic.c (expand_vector_condition): Fold the built
18741         condition.
18743 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18745         PR target/70293
18746         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18747         Block third alternative for AVX-512VL target,
18749 2016-03-21  Martin Liska  <mliska@suse.cz>
18751         PR hsa/70234
18752         * hsa-brig.c (emit_function_directives): Mark unemitted
18753         global variables for emission.
18754         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18755         (get_symbol_for_decl): Likewise.
18756         * hsa.h (struct hsa_symbol): New flag.
18758 2016-03-21  Richard Biener  <rguenther@suse.de>
18760         PR tree-optimization/70288
18761         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18762         we do not estimate unsimplified all-constant conditionals or
18763         switches as optimized away.
18765 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18767         PR rtl-optimization/69102
18768         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18769         when we have a readonly dependency context.
18771 2016-03-18  Jeff Law  <law@redhat.com>
18773         PR rtl-optimization/70263
18774         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18775         (update_equiv_regs): When trying to move a store to after the insn
18776         that sets the source of the store, make sure the store occurs after
18777         the insn that sets the source of the store.  When successful note
18778         the REG_EQUIV note created in the dump file.
18780 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18781             Bernd Schmidt  <bschmidt@redhat.com>
18783         * doc/extend.texi: Document more potential problems with basic asms.
18785 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18787         PR rtl-optimization/70278
18788         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18789         VOIDmode.
18791 2016-03-18  Jason Merrill  <jason@redhat.com>
18793         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18795 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18797         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18798         values to 128b regs.
18800 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18802         PR tree-optimization/70252
18803         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18804         boolean vector has a proper number of elements.
18805         (supportable_narrowing_operation): Likewise.
18807 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18809         PR ipa/70269
18810         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18812 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18814         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18815         instead of replace_rtx for DEBUG_INSNs.
18817 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18819         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18820         load type reservations.
18822 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18824         PR target/70188
18825         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18826         define_constraint for "Q" and "T" constraints.
18828 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18830         Tweak the pipeline model for Exynos M1
18832         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18833         model.
18835 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18837         PR c/70264
18838         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18839         where one or both locations aren't within a line_map.
18841 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18843         PR driver/70192
18844         * opts.c (finish_options): Don't set flag_pie to the default if
18845         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18846         if it is -1.
18848 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18850         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18851         true as ALL_REGS argument to replace_rtx.
18853 2016-03-17  Richard Biener  <rguenther@suse.de>
18855         PR debug/70271
18856         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18857         last.
18859 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18861         PR target/70245
18862         * rtl.h (replace_rtx): Add ALL_REGS argument.
18863         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18864         equality and assert mode is the same, instead of just rtx pointer
18865         equality.
18866         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18867         true as ALL_REGS argument to replace_rtx.
18869 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18871         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18872         for boolean vector with vector mode only.
18873         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18875 2016-03-17  Nick Clifton  <nickc@redhat.com>
18877         PR target/70162
18878         * config/rx/rx.c (rx_print_integer): Print negative constants in
18879         decimal.
18881 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18883         PR target/70261
18884         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18886 2016-03-16  Richard Henderson  <rth@redhat.com>
18887             Richard Biener  <rguenth@suse.de>
18889         PR middle-end/70240
18890         PR middle-end/68215
18891         PR tree-opt/68714
18892         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18893         first operand as is_gimple_condexpr.
18895         PR middle-end/70240
18896         PR middle-end/68215
18897         Revert r231575
18898         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18899         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18900         Do not gimplify the result.
18901         (do_unop): Adjust call to tree_vec_extract.
18902         (do_binop): Likewise.
18903         (do_compare): Likewise.
18904         (do_plus_minus): Likewise.
18905         (do_negate): Likewise.
18906         (expand_vector_condition): Likewise.
18907         (do_cond): Likewise.
18909 2016-03-16  Richard Henderson  <rth@redhat.com>
18911         PR target/70048
18912         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18913         (aarch64_classify_address): Use it.
18914         (aarch64_legitimize_address): Force all subexpressions of PLUS
18915         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
18917 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
18918             Richard Biener  <rguenth@suse.de>
18920         PR target/70245
18921         * rtlanal.c (replace_rtx): For REG, if from is a REG,
18922         return to even if only REGNO is equal, and assert
18923         mode is the same.
18925 2016-03-11  Jeff Law  <law@redhat.com>
18927         PR rtl-optimization/70224
18928         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18930 2016-03-16  Richard Henderson  <rth@redhat.com>
18932         PR middle-end/70199
18933         * function.h (struct function): Add has_forced_label_in_static.
18934         * gimplify.c (force_labels_r): Set it.
18935         * lto-streamer-in.c (input_struct_function_base): Read it.
18936         * lto-streamer-out.c (output_struct_function_base): Write it.
18937         * tree-inline.c (has_label_address_in_static_1): Remove.
18938         (copy_forbidden): Remove fndecl parameter; test
18939         has_forced_label_in_static.
18940         (inline_forbidden_p): Update call to copy_forbidden.
18941         (tree_versionable_function_p): Likewise.
18942         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18943         (chkp_versioning): Likewise.
18944         * tree-inline.h (copy_forbidden): Update decl.
18946 2016-03-16  Marek Polacek  <polacek@redhat.com>
18948         PR c/70093
18949         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18950         function being thunked if the result type doesn't have fixed size.
18951         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18952         doesn't have fixed size.
18954 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
18956         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18957         reporting malformed loop nest.
18959 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18961         PR lto/70187
18962         * ipa-devirt.c (possible_polymorphic_call_targets): Move
18963         nodes.length () == 1 test to before first nodes[0] access.
18965 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18967         PR tree-optimization/68715
18968         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18969         single_pred_p test.
18971 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18973         PR tree-optimization/68809
18974         * graphite-scop-detection.c (same_close_phi_node): Test if result types
18975         are the same.
18977 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
18978             Sandra Loosemore  <sandra@codesourcery.com>
18980         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18981         on leaf attribute. Mention ELF interposition problems.
18983 2016-03-16  Alan Modra  <amodra@gmail.com>
18985         PR rtl-optimization/69195
18986         PR rtl-optimization/47992
18987         * ira.c (indirect_jump_optimize): Ignore artificial defs.
18988         Add comments.
18990 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18992         PR bootstrap/69513
18993         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18995 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18997         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18999 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
19001         PR rtl-optimization/70222
19002         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19003         optimization if mode is different from result_mode, queue up masking
19004         of the result in outer_op.  Formatting fix.
19006         PR middle-end/70239
19007         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19008         of safe_grow.
19010 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19012         PR rtl-optimization/69032
19013         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19014         looping backwards over basic block insns.
19016 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19018         PR target/66660
19019         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19020         to non-speculative when propagating trap bits.
19022 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19024         PR rtl-optimization/63384
19025         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19026         DEBUG_INSN_P insns.
19028 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19030         PR target/64411
19031         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19032         factored out from ...
19033         (sched_analyze_insn): ... here.
19034         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19035         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19036         get_implicit_reg_pending_clobbers in it.
19037         (setup_id_reg_sets): Use setup_id_implicit_regs.
19038         (deps_init_id): Ditto.
19040 2016-03-15  Tom de Vries  <tom@codesourcery.com>
19042         PR ipa/70161
19043         * cgraph.c (cgraph_node::get_body): Save, reset and restore
19044         dump_file_name.
19045         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19046         execute_function_dump.
19047         (execute_one_pass): Don't dump function if it will be dumped after ipa
19048         transform.
19050 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
19052         * genrecog.c (match_pattern_2): If pred is NULL don't call
19053         safe_predicate_mode on it.
19055 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
19057         PR middle-end/70219
19058         * lra-constraints.c (delete_move_and_clobber): Change assertion
19059         to also allow dregno == 0.
19061 2016-03-14  Richard Henderson  <rth@redhat.com>
19063         PR tree-opt/68714
19064         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19065         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19066         (reassociate_bb): Use optimize_vec_cond_expr; avoid
19067         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19068         on vectors.
19070 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
19072         PR target/70083
19073         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19074         regs.
19075         (lra_create_live_ranges_1): initialize hard register biggest_mode to
19076         VOIDmode.
19077         * lra-constraints.c (split_reg): For hard regs, try to find the
19078         biggest single-register mode used in the function.
19080 2016-03-14  Richard Biener  <rguenther@suse.de>
19082         PR tree-optimization/56365
19083         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19084         constants to compare against.
19086 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
19088         PR target/70098
19089         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
19090         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
19091         (define_split for the GPR case): Use int_reg_operand instead of
19092         gpc_reg_operand for the output.
19094 2016-03-14  Tom de Vries  <tom@codesourcery.com>
19096         PR tree-optimization/70045
19097         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
19098         create_empty_if_region_on_edge argument.
19100 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
19102         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
19103         (STACK_CHECK_PROTECT): Likewise.
19104         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19105         (STACK_CHECK_PROTECT): Likewise.
19106         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19107         (STACK_CHECK_PROTECT): Likewise.
19108         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
19109         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19110         (STACK_CHECK_PROTECT): Likewise.
19112 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
19114         PR rtl-optimization/69307
19115         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
19116         registers in modes that span more than one register.
19118 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
19120         PR target/69614
19121         * lra-constraints.c (delete_move_and_clobber): New.
19122         (remove_inheritance_pseudos): Use it.
19124 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
19126         PR ada/70017
19127         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
19128         the libcall is LCT_THROW.
19129         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
19130         for the checking routine.
19132 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19134         PR target/70131
19135         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
19136         optimization if we have direct move.
19137         (roundu32<mode>2_fprs): Likewise.
19139 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
19141         PR target/70123
19142         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
19143         be rematerialized.
19144         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
19145         Arguments swapped.  All callers changed.  Take reg_renumber into
19146         account, and Calculate and compare register ranges for hard regs.
19148 2016-03-11  Jeff Law  <law@redhat.com>
19150         PR tree-optimization/70190
19151         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19152         Handle cases where we can not extract the taken edge, even though we
19153         found a constant value.
19155         PR tree-optimization/64058
19156         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
19157         (num_coalesce_pairs): Move up earlier in file.
19158         (find_coalesce_pair): Initialize the INDEX field for each pair
19159         discovered.
19160         (compare_pairs): No longer sort on the elements in each pair.
19161         Instead break ties with the index of the coalesce pair.
19163 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19165         PR target/70002
19166         * config/aarch64/aarch64-protos.h
19167         (aarch64_save_restore_target_globals): New prototype.
19168         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19169         Call the above when popping pragma.
19170         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19171         New function.
19172         (aarch64_set_current_function): Rewrite using the above.
19174 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19176         PR tree-optimization/70177
19177         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19178         (extract_ops_from_tree): ... this.  In the 2 argument
19179         overload remove _1 suffix.
19180         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19181         (extract_ops_from_tree): ... this.
19182         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19183         Adjust callers.
19184         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19185         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19186         extract_ops_from_tree instead of 2 operand one.
19188 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
19190         PR tree-optimization/70013
19191         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19192         for constant-pool entries.
19194 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19196         PR rtl-optimization/70174
19197         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19198         followed by gen_lowpart on force_reg instead of just gen_lowpart.
19200         PR tree-optimization/70169
19201         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19202         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
19203         for unknown codes.
19205 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19206             Jakub Jelinek  <jakub@redhat.com>
19208         PR target/70160
19209         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19210         of uninitialized values.
19212 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19214         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19215         define_expand.
19216         ("*trunctddd2"): New pattern definition.
19217         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19218         TD->DD truncation.
19220 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19222         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19223         definitions for BFP and DFP rounding modes.
19224         ("fixuns_truncdddi2", "fixuns_trunctddi2")
19225         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
19226         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
19227         ("fix_trunctf<mode>2"): Use the new constants instead of magic
19228         numbers.
19230 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19232         * config/s390/constraints.md: Adjust comment.
19233         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
19234         s390_decompose_addrstyle_without_index.
19235         * config/s390/predicates.md (shift_count_or_setmem_operand):
19236         Rename to setmem_operand.
19237         * config/s390/s390-protos.h
19238         (s390_decompose_shift_count): Rename to
19239         s390_decompose_addrstyle_without_index.
19240         * config/s390/s390.c (s390_decompose_shift_count)
19241         (s390_mem_constraint, print_shift_count_operand)
19242         (print_operand_address, print_operand): Rename
19243         s390_decompose_shift_count to
19244         s390_decompose_addrstyle_without_index and rename
19245         print_shift_count_operand to print_addrstyle_operand troughout the
19246         file.
19247         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
19248         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
19249         Rename shift_count_or_setmem_operand to setmem_operand.
19250         * config/s390/vx-builtins.md ("vec_insert<mode>")
19251         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
19252         nonmemory_operand.
19254 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19256         PR target/70168
19257         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19258         Handle overlapping retval and newval.
19260 2016-03-10  Nick Clifton  <nickc@redhat.com>
19262         PR target/7044
19263         * config/aarch64/aarch64.c
19264         (aarch64_override_options_after_change_1): When forcing
19265         flag_omit_frame_pointer to be true, use a special value that can
19266         be detected if this function is called again, thus preventing
19267         flag_omit_leaf_frame_pointer from being forced to be false.
19269 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19271         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19272         Set x_flag_omit_leaf_frame_pointer when handling
19273         -momit-leaf-frame-pointer.
19275 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19277         PR lto/69589
19278         * cgraph.c (cgraph_node::dump): Dump split_part and
19279         indirect_call_target.
19280         * cgraph.h (cgraph_node): Add indirect_call_target flag.
19281         * ipa.c (has_addr_references_p): Cleanup.
19282         (is_indirect_call_target_p): New.
19283         (walk_polymorphic_call_targets): Do not mark virtuals that may be
19284         called indirectly as local.
19285         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
19287 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19289         PR ipa/69630
19290         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19291         on cxa_pure_virtual.
19293 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19295         PR lto/69589
19296         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
19298 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19300         PR lto/69589
19301         * tree.c (need_assembler_name_p): Only record main variant type names.
19303 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19305         PR target/70113.
19306         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
19307         Always define to 0 or 1.
19308         (TARGET_FIX_ERR_A53_843419): New macro.
19309         * config/aarch64/aarch64-elf-raw.h
19310         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
19311         * config/aarch64/aarch64-linux.h: Likewise.
19312         * config/aarch64/aarch64.c
19313         (aarch64_override_options_after_change_1): Do not default
19314         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
19315         843419 is on.
19316         (aarch64_attributes): Handle fix-cortex-a53-843419.
19317         (aarch64_can_inline_p): Likewise.
19318         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
19320 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
19321             Jakub Jelinek  <jakub@redhat.com>
19323         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
19324         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
19325         DECL_COMMONS if flag_unconstrained_commons is set.
19326         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19327         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
19328         (funconstrained-commons): Document.
19330 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19332         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
19333         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
19335 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
19337         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
19338         has a proper number of elements.
19340 2016-03-10  Alan Modra  <amodra@gmail.com>
19342         PR rtl-optimization/69195
19343         PR rtl-optimization/47992
19344         * ira.c (recorded_label_ref): Delete.
19345         (update_equiv_regs): Return void.
19346         (indirect_jump_optimize): New function.
19347         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
19348         before regstat_compute_ri.  Don't rebuild_jump_labels here.
19349         Delete update_regstat.
19351 2016-03-10  Richard Biener  <rguenther@suse.de>
19353         PR tree-optimization/70128
19354         * tree-ssa-structalias.c (set_uids_in_ptset): Set
19355         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
19357 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19359         PR tree-optimization/70152
19360         * tree-sra.c (replace_removed_params_ssa_names): Copy over
19361         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
19363         PR target/70086
19364         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
19365         instead of gen_sse2_loadlpd.
19366         * config/i386/sse.md (*vec_concatv2df): Rename to...
19367         (vec_concatv2df): ... this.
19369         PR tree-optimization/70127
19370         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
19372 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19374         PR c/68473
19375         PR c++/70105
19376         * diagnostic-show-locus.c (compatible_locations_p): New function.
19377         (layout::layout): Sanitize ranges using compatible_locations_p.
19379 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19381         PR c/68473
19382         PR c++/70105
19383         * diagnostic-show-locus.c (layout_range::layout_range): Replace
19384         location_range param with three const expanded_locations * and a
19385         bool.
19386         (layout::layout): Replace call to
19387         rich_location::lazily_expand_location with get_expanded_location.
19388         Extract the range and perform location expansion here, passing
19389         the results to the layout_range ctor.
19390         * diagnostic.c (source_range::debug): Delete.
19391         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
19392         of rich_location::get_expanded_location.
19393         * gcc-rich-location.c (get_range_for_expr): Delete.
19394         (gcc_rich_location::add_expr): Reimplement to avoid the
19395         rich_location::add_range overload that took a location_range,
19396         passing a location_t instead.
19398 2016-03-09  Richard Biener  <rguenther@suse.de>
19399         Jakub Jelinek  <jakub@redhat.com>
19401         PR tree-optimization/70138
19402         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19403         Also skip vect_double_reduction_def.
19405 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19407         PR target/70049
19408         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
19409         if the operand is "m".
19411 2016-03-09  Nathan Sidwell  <nathan@acm.org>
19413         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
19415 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19417         * config/i386/i386.c (processor_target_table): Fix cost table
19418         intialization order for znver1.
19420 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19422         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
19423         - becuase -> because.
19424         * ipa-reference.c (ignore_module_statics): Likewise.
19425         * cgraph.c (cgraph_node::get_body): Likewise.
19426         * ipa-inline.c (early_inliner): Likewise.
19427         * ipa-devirt.c (types_same_for_odr): Likewise.
19428         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
19429         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
19431 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19433         * tree-ssa-math-opts.c: Fix typo in comment.
19435 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19437         PR target/70110
19438         * config/i386/i386.c (scalar_chain::make_vector_copies,
19439         scalar_chain::convert_reg): Call end_sequence in between
19440         get_insns and emit_conversion_insns rather than after both
19441         calls.
19443 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
19445         PR target/70064
19446         * config/i386/i386.h (machine_function): Add
19447         pc_thunk_call_expanded flag.
19448         (ix86_pc_thunk_call_expanded): New define.
19449         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
19450         (*set_got): Rename insn pattern from set_got.
19451         (*set_got_labelled): Rename inst pattern from set_got_labelled.
19452         * config/i386/i386.c (ix86_compute_frame_layout): Use
19453         ix86_pc_thunk_call_expanded to prevent red-zone.
19455 2016-03-07  Martin Jambor  <mjambor@suse.cz>
19457         * hsa.h (hsa_get_ctor_statements): Declare.
19458         (hsa_get_dtor_statements): Likewise.
19459         (hsa_get_kernel_dispatch_type): Likewise.
19460         * hsa.c (hsa_get_ctor_statements): New function.
19461         (hsa_get_dtor_statements): Likewise.
19462         (hsa_get_kernel_dispatch_type): Likewise.
19463         * hsa-brig.c (hsa_cdtor_statements): Removed.
19464         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19465         hsa_get_dtor_statements.
19466         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19467         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19469 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19471         * config/arm/arm-cores.def (cortex-r8): New.
19472         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19473         * config/arm/arm-tune.md: Likewise.
19474         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19476 2016-03-07  Martin Sebor  <msebor@redhat.com>
19478         PR rtl-optimization/19705
19479         * doc/invoke.texi (Options That Control Optimization): Clarify
19480         -fno-branch-count-reg.
19482 2016-02-26  Richard Biener  <rguenther@suse.de>
19483             Jeff Law  <law@redhat.com>
19485         PR tree-optimization/69740
19486         * cfghooks.c (remove_edge): Request loop fixups if we delete
19487         an edge that might turn an irreducible loop into a natural
19488         loop.
19489         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19490         Move after definition of loops_state_clear.
19492 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19494         PR rtl-optimization/69052
19495         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19496         to CONST_WIDE_INT.
19498 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19500         PR tree-optimization/70116
19501         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19502         is_tm_ending stmts and ubsan/asan internal functions.
19503         (find_duplicate): Use it.  Don't test is_tm_ending here.
19505 2016-03-07  Richard Biener  <rguenther@suse.de>
19507         PR tree-optimization/70115
19508         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19509         (propagate_constants_for_unrolling): Use replace_uses_by.
19511 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19513         PR middle-end/69916
19514         * omp-low.c (struct oacc_loop): Add ifns.
19515         (new_oacc_loop_raw): Initialize it.
19516         (finish_oacc_loop): Clear mask & flags if no ifns.
19517         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19518         (oacc_loop_xform_loop): Add ifns arg & adjust.
19519         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19521 2016-03-07  Richard Henderson  <rth@redhat.com>
19523         PR rtl-opt/70061
19524         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19525         (insert_value_copy_on_edge): Likewise.
19527 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19529         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19531 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19533         PR target/62281
19534         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19536 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19538         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19540 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19542         Fix sseimul type attribute.
19543         * config/i386/znver1.md
19544         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19545         znver1_sseimul_avx256_load) : Fix the type attribute.
19546         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19547         pipe usage and latency.
19549 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19551         PR c++/70084
19552         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19553         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19554         to the right type.
19556 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19558         PR c/69973
19559         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19561         PR rtl-optimization/69941
19562         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19563         the reg share its mode.
19565 2016-03-04  Jeff Law  <law@redhat.com>
19567         PR tree-optimization/69196
19568         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19569         If the both SSA_NAMEs are anonymous, then consider them unassociated
19570         and include the PHI in the statement count.
19572 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19574         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19575         construct in oacc routine.  Check for oacc region in oacc routine.
19577 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19579         PR target/70062
19580         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19581         2016-02-22 changes, instead don't recurse if RECUR is already true.
19582         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19583         to pass true to the new argument.
19584         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19586         PR target/70059
19587         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19588         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19589         fixes.
19590         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19592 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19594         PR rtl-optimization/57676
19595         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19596         with flag_checking.
19598 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19600         * tree-vect-patterns.c (search_type_for_mask): Handle
19601         comparison of booleans.
19603 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19605         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19606         Fix @xref usage.
19608         PR debug/69947
19609         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19610         all other ops that have dw_val_class_die_ref operands,
19611         and DW_OP_GNU_entry_value.
19613 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19615         PR rtl-optimization/69904
19616         * config/arm/arm.c (arm_cannot_copy_insn_p):
19617         Return true for load-exclusive instructions.
19619 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19621         PR target/70021
19622         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19623         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19624         the pattern no matter if it is used just by non-pattern, pattern
19625         or mix thereof.
19626         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19627         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19628         oprnd1 def_stmt is in pattern, don't look through it.
19630 2016-03-03  Marek Polacek  <polacek@redhat.com>
19632         PR middle-end/70050
19633         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19635 2016-03-03  Martin Liska  <mliska@suse.cz>
19637         PR tree-optimization/70043
19638         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19639         previous statement if we see a debug statement.
19641 2016-03-03  Richard Biener  <rguenther@suse.de>
19643         PR tree-optimization/55936
19644         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19645         parameter and guard unsafe equivalence use.
19646         (vrp_evaluate_conditional_warnv_with_ops): Always use
19647         safe equivalences but not via the quadratic compare_names
19648         helper.
19650 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19652         PR target/70014
19653         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19654         for operand 1 to s_register_operand. Change predicate for operand
19655         2 to arm_not_immediate_operand.
19657 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19659         * doc/tm.texi: Regenerated.
19661 2016-03-02  Richard Henderson  <rth@redhat.com>
19663         PR rtl-opt/67145
19664         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19665         simplification when all args are positive non-fixed registers.
19667 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19669         * target.def (lra_p): Specify that new ports should use LRA.
19671 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19673         PR libgomp/69555
19674         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19675         gimplify_type_sizes the type they refer to.
19676         (omp_notice_variable): Handle reference vars to VLAs.
19677         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19678         reference to VLA decls in the second pass instead of first pass.
19680 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19682         PR tree-optimization/68659
19683         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19684         new_expr == NULL_TREE.
19685         (get_new_name): Handle ADDR_EXPR.
19687 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19689         PR rtl-optimization/69052
19690         * loop-invariant.c (canonicalize_address): New function.
19691         (inv_can_prop_to_addr_use): Check validity of address expression
19692         which is canonicalized by above function.
19694 2016-03-02  Alan Modra  <amodra@gmail.com>
19696         PR ipa/69990
19697         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19698         larger alignment.
19700 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19702         PR target/70028
19703         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19704         (*movhi_internal): Put mask moves from and to memory separately
19705         from moves from/to GPRs.
19707 2016-03-02  Richard Biener  <rguenther@suse.de>
19709         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19710         GENERIC expressions in GIMPLE.
19712 2016-03-02  Richard Biener  <rguenther@suse.de>
19714         * config/i386/i386.c (type_natural_mode): Fix typo.
19716 2016-03-02  Nick Clifton  <nickc@redhat.com>
19718         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19720 2016-03-02  Richard Biener  <rguenther@suse.de>
19721             Uros Bizjak  <ubizjak@gmail.com>
19723         PR target/67278
19724         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19726 2016-03-02  Richard Biener  <rguenther@suse.de>
19728         PR middle-end/67278
19729         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19731 2016-03-02  Marek Polacek  <polacek@redhat.com>
19733         PR c/67854
19734         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19735         "is promoted to" warning.
19737 2016-03-01  DJ Delorie  <dj@redhat.com>
19739         * config.gcc: Deprecate mep-*.
19741 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19743         PR middle-end/70025
19744         * lra-constraints.c (regno_val_use_in): New.
19745         (match_reload): Use it instead of regno_use_in.
19747 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19749         PR rtl-optimization/70007
19750         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19751         references present in REG_EQUAL notes attached to non-SET patterns.
19753 2016-03-01  Jeff Law  <law@redhat.com>
19755         PR tree-optimization/69196
19756         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19757         Appropriately clamp the number of statements to copy when the
19758         thread path does not traverse a loop backedge.
19760         PR tree-optimization/69196
19761         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19762         Do count some PHIs in the thread path against the insn count.  Decrease
19763         final statement count by one as the control statement in the last
19764         block will get removed.  Remove special cased code for handling PHIs
19765         in the last block.
19767 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19769         PR target/70027
19770         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19771         asm dialect alternatives to explicit GOTPCREL calls.
19773 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19775         PR ada/70017
19776         * ira.c (do_reload): Issue warning for generic stack checking here...
19777         * reload1.c (reload): ...instead of here and streamline it.
19779 2016-03-01  Nick Clifton  <nickc@redhat.com>
19781         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19783 2016-03-01  Richard Biener  <rguenther@suse.de>
19785         PR tree-optimization/69983
19786         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19787         types and fall back to operand_equal_p.
19789 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19791         Revert
19792         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19794         * config/s390/constraints.md ("jm8"): New constraint.
19795         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19796         predicate.
19797         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19798         into ...
19799         ("*setmem_long<setmem_and>"): New pattern.
19800         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19801         into ...
19802         ("*setmem_long_31z<setmem_and>"): New pattern.
19803         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19804         New substitution rules with the required attributes.
19807 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19809         Revert
19810         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19812         * gensupport.c (process_substs_on_one_elem): Split loop to
19813         complete mark_operands_used_in_match_dup on all expressions in the
19814         vector first.
19815         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19816         and remove function.
19818 2016-03-01  Richard Biener  <rguenther@suse.de>
19820         PR middle-end/70022
19821         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19822         vector BIT_FIELD_REF extract.
19824 2016-03-01  Richard Biener  <rguenther@suse.de>
19826         PR tree-optimization/69994
19827         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19829 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19831         PR tree-optimization/69956
19832         * tree-vect-stmts.c (supportable_widening_operation): Support
19833         multi-step conversion of boolean vectors.
19834         (supportable_narrowing_operation): Likewise.
19836 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19838         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19839         anymore.
19841 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19843         * config/s390/subst.md (DSI_VI): New mode iterator.
19844         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19845         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19846         the insn definition.
19847         ("*vec_set<mode>"): Change predicate and add alternative to
19848         support only either register or const_int operands as element
19849         selector.
19850         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19851         operands.
19852         ("vec_extract<mode>"): New expander.
19853         ("*vec_extract<mode>"): New insn definition supporting reg and
19854         const_int element selectors.
19855         ("*vec_extract<mode>_plus"): New insn definition supporting
19856         reg+const_int element selectors.
19857         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19858         following expander+insn definition.
19859         ("<vec_shifts_name><mode>3"): New expander.
19860         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19862 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19864         * config/s390/s390.md ("*tabort_1"): Change predicate to
19865         nonmemory_operand.  Add a second alternative to cover
19866         register as well as const int operands.
19867         ("*tabort_1_plus"): New pattern definition.
19869 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19871         * config/s390/s390.md ("*ashrdi3_cc_31")
19872         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19873         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19874         Merge insn definitions into ...
19875         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19876         New pattern definition.
19877         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19878         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19879         ("*ashr<mode>3_and"): Merge insn definitions into ...
19880         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19881         New pattern definition.
19882         * config/s390/subst.md ("addr_style_op_cc_subst")
19883         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19884         substitutions patterns plus attributes.
19885         Add ashiftrt to SUBST iterator.
19887 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19889         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19890         op2 to nonmemory_operand.
19891         ("*<shift>di3_31", "*<shift>di3_31_and"):
19892         Merge into single pattern definition ...
19893         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19894         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19895         pattern definition ...
19896         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19897         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19898         iterator.
19900 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19902         * config/s390/predicates.md (const_int_6bitset_operand): New
19903         predicate.
19904         * config/s390/s390.md: Include subst.md.
19905         ("rotl<mode>3"): New expander.
19906         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19907         ...
19908         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19909         * config/s390/subst.md: New file.
19911 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19913         * config/s390/s390.md ("op_type", "atype", "length" attributes):
19914         Remove RRR type.  It doesn't really exist.
19915         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19916         attributes.
19917         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19918         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19919         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19920         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19921         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19922         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19923         `enabled' attribute.
19925 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19927         * gensupport.c (process_substs_on_one_elem): Split loop to
19928         complete mark_operands_used_in_match_dup on all expressions in the
19929         vector first.
19930         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19931         and remove function.
19933 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19935         PR target/69706
19936         * config/sparc/sparc.c (NWORDS_UP): Rename to...
19937         (CEIL_NWORDS): ...this.  Use CEIL macro.
19938         (compute_fp_layout): Adjust to above renaming.
19939         (function_arg_union_value): Likewise.
19940         (sparc_arg_partial_bytes): Likewise.
19941         (sparc_function_arg_advance): Likewise.
19943 2016-02-29  Jeff Law  <law@redhat.com>
19945         PR tree-optimization/70005
19946         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19947         where an object with a boolean range is compared against a value
19948         outside [0..1].
19950         PR tree-optimization/69999
19951         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19952         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19953         loop cleanups.
19955 2016-02-29  Richard Biener  <rguenther@suse.de>
19957         PR tree-optimization/69994
19958         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19959         (get_unary_op): Look through nop conversions.
19960         (ops_equal_values_p): New function, look for equality diregarding
19961         nop conversions.
19962         (eliminate_plus_minus_pair): Use ops_equal_values_p
19963         (repropagate_negates): Do not use get_unary_op here.
19965 2016-02-29  Martin Liska  <mliska@suse.cz>
19967         * system.h: Poison ENABLE_CHECKING macro.
19969 2016-02-29  Martin Liska  <mliska@suse.cz>
19971         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19972         is presented in dump flags.
19973         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19974         (hsa_regalloc): Likewise.
19976 2016-02-19  Richard Biener  <rguenther@suse.de>
19978         PR tree-optimization/69980
19979         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19980         permutation of those we need to keep.
19982 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19984         PR target/69706
19985         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19986         (NWORDS_UP): ...this
19987         (init_cumulative_args): Minor tweaks.
19988         (sparc_promote_function_mode): Likewise.
19989         (scan_record_type): Delete.
19990         (traverse_record_type): New function template.
19991         (classify_data_t): New structure type.
19992         (classify_registers): New inline function.
19993         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19994         exhausted.  Instantiate traverse_record_type on classify_registers and
19995         deal with the case of a structure passed in slot #15 with no FP field
19996         in the first word.
19997         (assign_data_t): New structure type.
19998         (compute_int_layout): New static function.
19999         (compute_fp_layout): Likewise.
20000         (count_registers): New inline function.
20001         (assign_int_registers): New static function.
20002         (assign_fp_registers): Likewise.
20003         (assign_registers): New inline function.
20004         (function_arg_record_value_1): Delete.
20005         (function_arg_record_value_2): Likewise.
20006         (function_arg_record_value_3): Likewise.
20007         (function_arg_record_value): Adjust to above changes.  Instantiate
20008         traverse_record_type on count_registers to first count the number of
20009         registers to be used and then on assign_registers to assign them.
20010         (function_arg_union_value): Adjust to above renaming.
20011         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
20012         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
20013         case of a structure passed in slot #15
20014         (sparc_function_arg_advance): Likewise.
20015         (function_arg_padding): Minor tweak.
20017 2016-02-29  Richard Biener  <rguenther@suse.de>
20019         PR tree-optimization/69720
20020         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20021         the adjustment_def path for possibly vectorized defs.
20022         (vect_create_epilog_for_reduction): Handle vectorized initial
20023         defs properly.
20025 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
20027         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20029 2016-02-27  Jeff Law  <law@redhat.com>
20031         Revert
20032         2016-02-26  Richard Biener  <rguenther@suse.de>
20033                     Jeff Law  <law@redhat.com>
20035         PR tree-optimization/69740
20036         * cfghooks.c (remove_edge): Request loop fixups if we delete
20037         an edge that might turn an irreducible loop into a natural
20038         loop.
20040 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
20042         PR rtl-optimization/69896
20043         * tree-vect-generic.c (get_compute_type): Avoid single element
20044         vector types.
20046 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
20048         Rename the AArch64 tuning option and related functions to enable the
20049         Newton series for the reciprocal square root to reflect its
20050         approximative characteristic.
20052         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20053         function to "aarch64_emit_approx_rsqrt".
20054         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20055         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20056         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20057         (xgene1_tunings): Likewise.
20058         (use_rsqrt_p): Likewise.
20059         (aarch64_emit_swrsqrt): Use new function name.
20060         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20061         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20062         text explaining this option.
20063         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20065 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20067         PR target/69969
20068         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20069         complain about -mallow-movmisalign without -mvsx if
20070         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20072 2016-02-26  Joel Sherrill  <joel@rtems.org>
20074         * config.gcc: Add x86_64-*-rtems*.
20075         * config/i386/rtems-64.h: New file.
20077 2016-02-26  Joel Sherrill  <joel@rtems.org>
20079         * config.gcc: Add aarch64-*-rtems*.
20080         * config/aarch64/rtems.h: New file.
20082 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
20084         PR target/69946
20085         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
20086         shift amount using %h.  Add comment.
20088 2016-02-26  Richard Biener  <rguenther@suse.de>
20089             Jeff Law  <law@redhat.com>
20091         PR tree-optimization/69740
20092         * cfghooks.c (remove_edge): Request loop fixups if we delete
20093         an edge that might turn an irreducible loop into a natural
20094         loop.
20096 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20098         PR middle-end/69920
20099         * tree-sra.c (sra_modify_assign): Do not remove loads of
20100         uninitialized aggregates to SSA_NAMEs.
20102 2016-02-26  Richard Henderson  <rth@redhat.com>
20104         PR target/69709
20105         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
20106         pseudo in case the target rtx matches the source of the left
20107         shift.
20109 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20111         PR hsa/69568
20112         * hsa.h (hsa_type_packed_p): Declare.
20113         * hsa.c (hsa_type_packed_p): New function.
20114         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
20115         loads.
20116         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
20117         * hsa-brig.c (emit_basic_insn): Likewise.
20119 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20121         pr hsa/69674
20122         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
20123         pointers.
20124         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
20126 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20128         * hsa.h (is_a_helper): New overload for hsa_op_immed for
20129         hsa_op_with_type operands.
20130         (hsa_unsigned_type_for_type): Declare.
20131         * hsa.c (hsa_unsigned_type_for_type): New function.
20132         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
20133         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
20134         the finalizer.  Do not emit extra move.
20136 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20138         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
20139         atomic operations in private segment.
20141 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20143         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
20144         statements to wi->info.  Also disallow omp simd constructs.
20145         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
20146         for not gridifying.  Dump special string for omp_for.
20148 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20150         PR target/69245
20151         * config/aarch64/aarch64.c (aarch64_set_current_function):
20152         Save/restore target globals when switching to
20153         target_option_default_node.
20155 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20157         PR target/69613
20158         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
20159         Return 0 if !SHIFT_COUNT_TRUNCATED.
20161 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20162             Eric Botcazou  <ebotcazou@adacore.com>
20164         PR rtl-optimization/69891
20165         * dse.c (scan_insn): If we can't figure out memset arguments
20166         or they are non-constant, call clear_rhs_from_active_local_stores.
20168 2016-02-26  Martin Liska  <mliska@suse.cz>
20170         * doc/extend.texi: Mention clog10, clog10f an clog10l
20171         in Builtins section.
20173 2016-02-26  Martin Liska  <mliska@suse.cz>
20175         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20176         CHECKING_P.
20177         (resolve_args_picking_1): Likewise.
20178         * dwarf2out.h (struct GTY): Likewise.
20180 2016-02-26  Martin Liska  <mliska@suse.cz>
20182         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20183         with flag_checking.
20184         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20186 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20187             Martin Liska  <mliska@suse.cz>
20189         * doc/install.texi: Mention --enable-valgrind-annotations.
20191 2016-02-26  Richard Biener  <rguenther@suse.de>
20193         PR tree-optimization/69551
20194         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20195         looking through aliases adjust DECL_PT_UID to refer to the
20196         ultimate alias target.
20198 2016-02-25  Martin Liska  <mliska@suse.cz>
20200         PR middle-end/69919
20201         * alloc-pool.c (after_memory_report): New variable.
20202         * alloc-pool.h (base_pool_allocator ::release): Do not use
20203         the infrastructure if after_memory_report.
20204         * toplev.c (toplev::main): Mark after memory report.
20206 2016-02-25  Richard Biener  <rguenther@suse.de>
20208         PR tree-optimization/48795
20209         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20211 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
20213         PR driver/68463
20214         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
20215         offloading is enabled and -fopenacc or -fopenmp is specified.
20216         (CRTOFFLOADEND): Likewise.
20217         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20218         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20219         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20220         (offload_objects_file_name): New static var.
20221         (tool_cleanup): Remove offload_objects_file_name file.
20222         (find_offloadbeginend): Replace with ...
20223         (find_crtoffloadtable): ... this.
20224         (run_gcc): Remove offload_argc and offload_argv.
20225         Get offload_objects_file_name from -foffload-objects=... option.
20226         Read names of object files with offload from this file, pass them to
20227         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
20228         don't pass offloadbegin and offloadend to the linker.  Don't pass
20229         offload non-LTO files to the linker, because now they're not claimed.
20231 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
20233         PR ipa/69630
20234         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20235         on builtin_unreachable.
20237 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
20239         PR rtl-optimization/69896
20240         * regcprop.c: Include cfgrtl.h.
20241         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
20242         than remembered mode, either delete it (if noop_move_p), or
20243         treat like copy_p but not noop_p instruction.
20245 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20247         PR debug/69705
20248         * dwarf2out.c (gen_variable_die): Work around buggy LTO
20249         - allow NULL decl for Fortran DW_TAG_common_block variables.
20251 2016-02-24  Jason Merrill  <jason@redhat.com>
20253         * common.opt (flifetime-dse): Add -flifetime-dse=1.
20255 2016-02-24  Richard Biener  <rguenther@suse.de>
20256             Jakub Jelinek  <jakub@redhat.com>
20258         PR middle-end/69760
20259         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
20260         conditionally executed ops to well-defined overflow behavior.
20262 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20264         PR middle-end/69915
20265         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
20266         elements.
20268 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20270         PR rtl-optimization/69886
20271         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
20272         argument.  Use it when checking validity of set instructions.
20273         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
20274         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
20275         callsite.
20276         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
20277         * store-motion.c (find_moveable_store): Update
20278         can_assign_to_reg_without_clobbers_p callsite.
20280 2016-02-24  Richard Biener  <rguenther@suse.de>
20282         PR middle-end/68963
20283         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
20284         bogus check.
20285         (record_nonwrapping_iv): Do not fall back to the low/high bound
20286         for non-constant IV bases if the stmt is not always executed.
20288 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20290         * config/arm/arm-cores.def (cortex-a32): New entry.
20291         * config/arm/arm-tables.opt: Regenerate.
20292         * config/arm/arm-tune.md: Regenerate.
20293         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
20294         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
20295         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
20296         for -mcpu and -mtune.
20298 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20300         PR target/69875
20301         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
20302         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
20303         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
20304         (atomic_loaddi_1): Delete.
20305         (atomic_loaddi): Rewrite expander using the above changes.
20307 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20309         PR c/69918
20310         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
20311         2 to 3.
20313 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20314             Richard Biener  <rguenth@suse.de>
20316         PR middle-end/69909
20317         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
20318         set_mem_attributes if tem is SSA_NAME which got expanded
20319         as a MEM.
20321 2016-02-24  Richard Biener  <rguenther@suse.de>
20323         PR tree-optimization/69907
20324         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
20325         end of permutations for BB vectorization.
20327 2016-02-24  Christian Bruel  <christian.bruel@st.com>
20329         * config/arm/arm-c.c (arm_option_override): Initialize
20330         target_option_current_node.
20331         * config/arm/arm.c (arm_pragma_target_parse): Replace
20332         build_target_option_node call by target_option_current_node.
20333         Set target_option_current_node.
20334         Fix comments.
20336 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
20338         PR target/69810
20339         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
20340         define_insn_and_split to define_insn.
20341         (zero_extendqi<mode>2_dot2): Same.
20342         (extendqi<mode>2_dot): Same.
20343         (extendqi<mode>2_dot2): Same.
20345 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20347         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
20348         and add bypass for AES{D,E} and AESMC pairs.
20349         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
20350         and AESMC pairs.
20352 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20354         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
20355         series for reciprocal square root in Exynos M1.
20357 2016-02-23  Martin Sebor  <msebor@redhat.com>
20359         PR c/69759
20360         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
20361         __builtin_alloca_with_align.
20363 2016-02-23  Richard Henderson  <rth@redhat.com>
20365         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
20366         (ix86_register_pragmas): Remove __seg_tls.
20367         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
20368         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
20369         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
20370         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
20371         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
20372         * doc/extend.texi (__seg_tls): Remove item.
20374 2016-02-23  Richard Biener  <rguenther@suse.de>
20376         * alloc-pool.h (struct allocation_object): Make id member
20377         conditional on CHECKING_P again.
20378         (get_instance): Adjust.
20379         (base_pool_allocator): Likewise.
20381 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
20383         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
20384         (parallelize_loops): In OpenACC kernels mode, set n_threads to
20385         zero.
20386         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
20387         flag_openacc.
20388         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
20390 2016-02-23  Richard Biener  <rguenther@suse.de>
20392         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
20393         * bitmap.h (struct bitmap_usage): Likewise.
20394         (bitmap_move): Declare.
20395         * bitmap.c (register_overhead): Take size_t argument.
20396         (bitmap_move): New function.
20397         * df-problems.c (df_rd_transfer_function): Use bitmap_move
20398         to properly account overhead.
20399         * tree.c (free_node): Use tree_size.
20401 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
20403         PR c++/69902
20404         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
20405         when inverting comparison.
20407         PR c/69900
20408         * common.opt (Wunreachable-code): Add Warning flag.
20410 2016-02-23  Mark Wielaard  <mjw@redhat.com>
20411             Jakub Jelinek  <jakub@redhat.com>
20413         PR c/69911
20414         * cgraphunit.c (check_global_declaration): Check main_input_filename
20415         and DECL_SOURCE_FILE are not NULL.
20417 2016-02-23  Martin Jambor  <mjambor@suse.cz>
20419         PR tree-optimization/69666
20420         * tree-sra.c (sra_modify_assign): Do not attempt to create
20421         default_def replacements for unscalarizable regions.
20423 2016-02-20  Mark Wielaard  <mjw@redhat.com>
20425         PR c/28901
20426         * cgraphunit.c (check_global_declaration): Check level of
20427         warn_unused_const_variable and main_input_filename.
20428         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
20429         (-Wunused-variable): For C implies -Wunused-const-variable=1.
20430         (-Wunused-const-variable): Explain levels 1 and 2.
20432 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20434         PR target/69888
20435         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
20436         identical arguments.  Formatting and spelling fixes.
20438         PR target/69885
20439         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
20440         be specified.
20442         PR target/69894
20443         PR target/69895
20444         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
20445         and m68k-devices.def.
20446         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
20447         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
20449 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
20451         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20452         and HImode registers.
20454 2016-02-22  Richard Biener  <rguenther@suse.de>
20456         PR tree-optimization/69882
20457         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20458         preserve permutations present because of gaps.
20459         (vect_supported_load_permutation_p): Always continue checking
20460         permutations after vect_attempt_slp_rearrange_stmts.
20462 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
20464         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20465         min_profitable_estimate, rather than min_profitable_iters.
20467 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20469         PR target/69885
20470         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20471         SImode for last match_operand.
20473 2016-02-22  Martin Liska  <mliska@suse.cz>
20475         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20476         return bitsize - 1 as the return value.
20478 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20480         PR target/69806
20481         PR target/54089
20482         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20483         Handle negative shift counts.
20484         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20485         force_reg on the shift constant.
20486         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20487         (lshrsi3_d): Handle negative shift counts.
20489 2016-02-22  Richard Biener  <rguenther@suse.de>
20490             Tom de Vries  <tom@codesourcery.com>
20492         * graph.c: Include dumpfile.h.
20493         (print_graph_cfg): Split into three overloads.
20494         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20496 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20498         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20499         dump-fn.
20501 2016-02-22  Richard Biener  <rguenther@suse.de>
20503         PR ipa/37448
20504         * ipa-inline-transform.c (inline_call): When not updating
20505         overall summaries adjust self size by the growth estimate.
20506         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20507         hash-set, do not update overall summaries here.  Renamed from ...
20508         (inline_to_all_callers): ... this which is now wrapping the
20509         above and performing delayed overall summary update.
20510         (early_inline_small_functions): Delay updating of the overall
20511         summary.
20513 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20515         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20516         variable.
20518 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20520         PR driver/69805
20521         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20522         :%* in %:gt() argument.
20523         (greater_than_spec_func): Adjust for expecting only numbers,
20524         if there are more than two numbers, compare the last two.
20526 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20528         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20529         -Wnarrowing with -std.
20531 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20533         PR c++/69851
20534         * expr.c (store_field): Don't use bit-field path if exp is
20535         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20536         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20537         and the assignment can be performed by bitwise copy.  Formatting
20538         fix.
20540         PR middle-end/69838
20541         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20542         call copy_reg_eh_region_note_forward on before and/or after sequences
20543         and remove note from insn if it no longer can throw.
20545         PR target/69820
20546         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20547         if TARGET_AVX512BW.
20549 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20551         * config/s390/vector.md: Add missing commutative operand markers
20552         to the patterns which qualify for one.
20553         * config/s390/vx-builtins.md: Likewise.
20555 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20557         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20558         types to mode iterators.
20559         (vec_double): ... and mode attribute.
20560         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20562 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20564         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20565         Change the predicate of op2 from nonimmediate to general and let
20566         reload fix it if necessary.
20568 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20570         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20572 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20574         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20575         mode.
20577 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20579         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20580         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20581         * config/s390/s390.md ("movstr<P:mode>"): Call
20582         s390_expand_vec_movstr.
20584 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20586         * config/s390/s390.md: Add missing output modifier for operand 1
20587         to print it as address properly.
20589 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20591         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20592         * config/s390/2964.md: New file.
20593         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20594         of insn grouping attributes depending on the CPU level.
20595         (s390_get_unit_mask): New function.
20596         (s390_sched_score): Remove the OOO from the scheduling macros.
20597         Add loop to calculate a score for the instruction mix.
20598         (s390_sched_reorder): Likewise plus improve debug output.
20599         (s390_sched_variable_issue): Rename macros as above.  Calculate
20600         the unit distances after actually scheduling an insn.  Improve
20601         debug output.
20602         (s390_sched_init): Clear last_scheduled_unit_distance array.
20603         * config/s390/s390.md: Include 2964.md.
20605 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20607         PR target/69671
20608         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20609         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20610         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20611         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20612         *avx512f_<code>v8div16qi2_mask_1): New insns.
20614 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20616         PR target/68404
20617         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20618         2016-02-09 change.
20620         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20621         earlyclobber from target.  Use wF constraint for fused memory
20622         address.
20623         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20625 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20626             Martin Liska  <mliska@suse.cz>
20628         PR sanitizer/69863
20629         * cfgexpand.c (asan_sanitize_stack_p): New function.
20630         (partition_stack_vars): Use the function.
20631         (expand_stack_vars): Likewise.
20632         (defer_stack_allocation): Likewise.
20633         (expand_used_vars): Likewise.
20635 2016-02-18  Richard Biener  <rguenther@suse.de>
20637         PR middle-end/69553
20638         * fold-const.c (operand_equal_p): Properly compare offsets for
20639         IMAGPART_EXPR and ARRAY_REF.
20641 2016-02-18  Nick Clifton  <nickc@redhat.com>
20643         PR target/62254
20644         PR target/69610
20645         * config/arm/arm.c (arm_option_override_internal): Disable
20646         interworking if the target does not support thumb instructions.
20647         (arm_reload_in_hi): Handle the case where a register to register
20648         move needs reloading because there is no simple pattern to handle
20649         it.
20650         (arm_reload_out_hi): Likewise.
20652 2016-02-18  Richard Biener  <rguenther@suse.de>
20654         PR middle-end/69854
20655         * match.pd: Don't use fold_binary or fold_unary for folding
20656         constants.
20658 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20660         PR c++/69850
20661         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20662         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20663         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20664         warn on gimple_no_warning_p statements.
20666 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20668         * doc/extend.texi (C++ Attributes): Correct description of
20669         warn_unused type attribute.
20671 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20673         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20674         correct instruction.
20676 2016-02-17  Richard Biener  <rguenther@suse.de>
20678         PR rtl-optimization/69609
20679         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20680         (find_traces_1_round): When ending a trace update cached priority
20681         of successors.
20682         (bb_to_key): Use cached priority when available.
20683         (copy_bb): Initialize cached priority.
20684         (reorder_basic_blocks_software_trace_cache): Likewise.
20686 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20688         PR target/69161
20689         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20690         New predicate.
20691         (aarch64_comparison_operator): Break overly long line into two.
20692         (aarch64_comparison_operation): Likewise.
20693         * config/aarch64/aarch64.md (cstorecc4): Use
20694         aarch64_comparison_operator_mode instead of
20695         aarch64_comparison_operator.
20696         (cstore<mode>4): Likewise.
20697         (aarch64_cstore<mode>): Likewise.
20698         (*cstoresi_insn_uxtw): Likewise.
20699         (cstore<mode>_neg): Likewise.
20700         (*cstoresi_neg_uxtw): Likewise.
20702 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20704         PR target/69161
20705         * config/arm/predicates.md (arm_comparison_operator_mode):
20706         New predicate.
20707         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20708         instead of arm_comparison_operator.
20709         (*mov_negscc): Likewise.
20710         (*mov_notscc): Likewise.
20711         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20712         (*thumb2_mov_negscc): Likewise.
20713         (*thumb2_mov_negscc_strict_it): Likewise.
20714         (*thumb2_mov_notscc): Likewise.
20715         (*thumb2_mov_notscc_strict_it): Likewise.
20717 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20719         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20720         Add missing return.
20722 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20724         * config/visium/visium.c (machine_libfunc_index): New enum.
20725         (machine_libfuncs): New structure.
20726         (visium_libfuncs): New static variable.
20727         (TARGET_INIT_LIBFUNCS): Define to...
20728         (visium_init_libfuncs): ...this.  New function.
20729         (expand_block_move_4): Use the appropriate libfunc.
20730         (expand_block_move_2): Likewise.
20731         (expand_block_move_1): Likewise.
20732         (expand_block_set_4): Likewise.
20733         (expand_block_set_2): Likewise.
20734         (expand_block_set_1): Likewise.
20735         (visium_trampoline_init): Likewise.
20737 2016-02-17  Nick Clifton  <nickc@redhat.com>
20739         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20740         TI's devices.csv file as of March 2016.
20742 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20744         PR Target/48344
20745         * opts-global.c (handle_common_deferred_options): Introduce and
20746         initialize two global variables to remember command-line options
20747         specifying a stack-limiting register.
20748         * opts.h: Add extern declarations of the two new global variables.
20749         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20750         variable based on the values of the two new global variables.
20752 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20754         PR c/69835
20755         * common.opt (Wnonnull-compare): New warning.
20756         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20757         of arguments against NULL.
20758         (-Wnonnull-compare): Document.
20759         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20760         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20761         * passes.def (pass_warn_nonnull_compare): Add.
20762         * gimple-ssa-nonnull-compare.c: New file.
20764 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20766         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20767         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20769 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20771         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20772         reciprocal sqrt for -mlow-precision-recip-sqrt.
20774 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20775             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20777         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20778         always use lane loads to construct non-constant vectors.
20780 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20782         * config/aarch64/aarch64.md
20783         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20784         constraints for operand 3.
20785         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20787 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20788             Richard Biener  <rguenther@suse.de>
20790         PR tree-optimization/69820
20791         * tree-vect-patterns.c (type_conversion_p): Return false if
20792         *orig_type is unsigned single precision or boolean.
20793         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20794         Formatting fix.
20796 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20798         PR rtl-optimization/69764
20799         PR rtl-optimization/69771
20800         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20801         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20803 2016-02-16  Richard Biener  <rguenther@suse.de>
20805         PR tree-optimization/69776
20806         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20807         sets from caller.
20808         (indirect_refs_may_alias_p): Likewise.
20809         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20810         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20811         according to tbaa_p.
20812         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20813         (optimize_stmt): For redundant store discovery do not allow tbaa.
20815 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20817         PR tree-optimization/69714
20818         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20819         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20821 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20823         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20824         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20825         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20826         * config/arc/arc.c (arc_init): Check FPU options.
20827         (get_arc_condition_code): Handle new CC_FPU* modes.
20828         (arc_select_cc_mode): Likewise.
20829         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20830         register pair only. Allow access for ARCv2 accumulator.
20831         (gen_compare_reg): Whenever we have FPU support use FPU compare
20832         instructions.
20833         (arc_reorg): Don't generate brcc insns when FPU compare
20834         instructions are involved.
20835         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20836         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20837         floating point emulation.
20838         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20839         (REVERSE_CONDITION): Add new CC_FPU* modes.
20840         (TARGET_FP_SP_BASE): Define.
20841         (TARGET_FP_DP_BASE): Likewise.
20842         (TARGET_FP_SP_FUSED): Likewise.
20843         (TARGET_FP_DP_FUSED): Likewise.
20844         (TARGET_FP_SP_CONV): Likewise.
20845         (TARGET_FP_DP_CONV): Likewise.
20846         (TARGET_FP_SP_SQRT): Likewise.
20847         (TARGET_FP_DP_SQRT): Likewise.
20848         (TARGET_FP_DP_AX): Likewise.
20849         * config/arc/arc.md (ARCV2_ACC): New constant.
20850         (type): New fpu type attribute.
20851         (SDF): Conditional iterator.
20852         (cstore<mode>, cbranch<mode>): Change expand condition.
20853         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20854         handles FPU/FPX cases as well.
20855         * config/arc/arc.opt (mfpu): New option.
20856         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20857         Renamed.
20858         (adddf3, muldf3, subdf3): Removed.
20859         * config/arc/predicates.md (proper_comparison_operator): Recognize
20860         CC_FPU* modes.
20861         * config/arc/fpu.md: New file.
20862         * doc/invoke.texi (ARC Options): Document mfpu option.
20864 2016-02-16  Richard Biener  <rguenther@suse.de>
20866         PR rtl-optimization/69291
20867         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20868         noce_operand_ok check.
20870 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20872         PR lto/67709
20873         * omp-low.c (simd_clone_create): Remove call to
20874         symtab->call_cgraph_insertion_hooks.
20876 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20878         PR tree-optimization/69802
20879         * tree-ssa-reassoc.c (update_range_test): If op is
20880         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20881         op == 1 test of precision 1 integral op, otherwise handle
20882         that case as op itself.  Fix up formatting.
20883         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20884         up formatting.
20886 2016-02-16  Richard Biener  <rguenther@suse.de>
20888         PR tree-optimization/69586
20889         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20890         types for conversion sources.
20892 2016-02-16  Richard Biener  <rguenther@suse.de>
20894         PR middle-end/69801
20895         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20896         mask OEP_ADDRESS_OF.
20898 2016-02-16  Alan Modra  <amodra@gmail.com>
20900         PR target/68973
20901         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20902         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20903         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20904         (p8_mtvsrwz): New.
20905         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20906         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20907         (p8_fmrgow_<mode>): Likewise.
20908         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
20909         changes.
20910         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20911         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20912         to use movdi_internal64.  Remove op0_di.
20913         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20915 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
20917         Add support for the FCCMP insn types
20919         * config/aarch64/aarch64.md (fccmp): Change insn type.
20920         (fccmpe): Likewise.
20921         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20922         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20923         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20924         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20925         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20926         * config/arm/types.md (fccmps): Add new insn type.
20927         (fccmpd): Likewise.
20929 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20931         * alias.c (get_alias_set): Fix a typo in comment.
20933 2016-02-15  Richard Biener  <rguenther@suse.de>
20935         PR tree-optimization/69595
20936         * match.pd: Complete range test simplification to true.
20938 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
20940         PR rtl-optimization/69648
20941         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20942         pic_offset_table_rtx.
20944         PR rtl-optimization/69752
20945         * ira.c (update_equiv_regs): When looking for more than a single SET,
20946         also take other side effects into account.
20948 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20950         * config/s390/s390.c (s390_function_profiler): Add a new sequence
20951         for z900+ CPUs in 31-bit mode.
20953 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20955         * common/config/s390/s390-common.c (s390_supports_split_stack):
20956         New function.
20957         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20958         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20959         * config/s390/s390.c (struct machine_function): New field
20960         split_stack_varargs_pointer.
20961         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20962         in s390_emit_prologue.
20963         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20964         vararg pointer.
20965         (morestack_ref): New global.
20966         (SPLIT_STACK_AVAILABLE): New macro.
20967         (s390_expand_split_stack_prologue): New function.
20968         (s390_live_on_entry): New function.
20969         (s390_va_start): Use split-stack vararg pointer if appropriate.
20970         (s390_asm_file_end): Emit the split-stack note sections.
20971         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20972         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20973         (UNSPECV_SPLIT_STACK_CALL): New unspec.
20974         (UNSPECV_SPLIT_STACK_DATA): New unspec.
20975         (split_stack_prologue): New expand.
20976         (split_stack_space_check): New expand.
20977         (split_stack_data): New insn.
20978         (split_stack_call): New expand.
20979         (split_stack_call_*): New insn.
20980         (split_stack_cond_call): New expand.
20981         (split_stack_cond_call_*): New insn.
20983 2016-02-15  Richard Biener  <rguenther@suse.de>
20985         PR tree-optimization/69783
20986         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20987         Add trivially correct cases.
20989 2016-02-15  Tom de Vries  <tom@codesourcery.com>
20991         PR lto/69655
20992         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20993         do_force_output.
20994         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20996 2016-02-15  Richard Biener  <rguenther@suse.de>
20998         PR tree-optimization/69776
20999         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21000         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21001         indicate whether we can use TBAA to disambiguate against stores.
21002         Use alias-set zero if not.
21003         (visit_reference_op_store): Do not use TBAA when looking up
21004         redundant stores.
21005         * tree-ssa-pre.c (compute_avail): Use TBAA here.
21006         (eliminate_dom_walker::before_dom_children): But not when looking
21007         up redundant stores.
21009 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
21011         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21013 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21015         *  config/i386/znver1.md
21016         (znver1_pop, znver1_pop_mem,
21017         znver1_load_imov_double_store,
21018         znver1_load_imov_direct_store,
21019         znver1_load_imov_direct_load,
21020         znver1_load_imov_double_load): Add new.
21021         (znver1_insn, znver1_insn_load): Add icmov type.
21022         (znver1_sseavx_fma,
21023         znver1_sseavx_fma_load,
21024         znver1_avx256_fma,
21025         znver1_avx256_fma_load): Fix pipe usage.
21027 2016-02-14  Alan Modra  <amodra@gmail.com>
21029         PR target/68973
21030         * reload.c (find_reloads_address_1): For pre/post-inc/dec
21031         with an invalid hard reg, reload just the reg not the entire
21032         pre/post-inc/dec address expression.
21034 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21036         PR target/67260
21037         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21038         fixed R1_REG scratch reg.
21039         (sibcall_value_pcrel_fdpic): Likewise.
21041 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21043         PR target/67636
21044         PR target/64345
21045         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21047 2016-02-12  Walter Lee  <walt@tilera.com>
21049         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21050         * config/tilegx/t-tilegx: Likewise.
21052 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21054         PR other/69554
21055         * diagnostic-show-locus.c (struct line_span): New struct.
21056         (layout::get_first_line): Delete.
21057         (layout::get_last_line): Delete.
21058         (layout::get_num_line_spans): New member function.
21059         (layout::get_line_span): Likewise.
21060         (layout::print_heading_for_line_span_index_p): Likewise.
21061         (layout::get_expanded_location): Likewise.
21062         (layout::calculate_line_spans): Likewise.
21063         (layout::m_first_line): Delete.
21064         (layout::m_last_line): Delete.
21065         (layout::m_line_spans): New field.
21066         (layout::layout): Update comment.  Replace m_first_line and
21067         m_last_line with m_line_spans, replacing their initialization
21068         with a call to calculate_line_spans.
21069         (diagnostic_show_locus): When printing source lines and
21070         annotations, rather than looping over a single span
21071         of lines, instead loop over each line_span within
21072         the layout, with an inner loop over the lines within them.
21073         Call the context's start_span callback when changing line spans.
21074         * diagnostic.c (diagnostic_initialize): Initialize start_span.
21075         (diagnostic_build_prefix): Break out the building of the location
21076         part of the string into...
21077         (diagnostic_get_location_text): ...this new function, rewriting
21078         it from nested ternary expressions to a sequence of "if"
21079         statements.
21080         (default_diagnostic_start_span_fn): New function.
21081         * diagnostic.h (diagnostic_start_span_fn): New typedef.
21082         (diagnostic_context::start_span): New field.
21083         (default_diagnostic_start_span_fn): New prototype.
21085 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21087         PR driver/69779
21088         * gcc.c (driver::finalize): Fix cleanup of "specs".
21090 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21092         PR driver/69265
21093         PR driver/69453
21094         * gcc.c (driver::driver): Initialize m_option_suggestions.
21095         (driver::~driver): Clean up m_option_suggestions.
21096         (suggest_option): Convert to...
21097         (driver::suggest_option): ...this, and split out into
21098         driver::build_option_suggestions and find_closest_string.
21099         (driver::build_option_suggestions): New function, from
21100         first half of suggest_option.  Special-case
21101         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
21102         the sanitizer_opts array.  For options of enum types, add the
21103         various enum values to the candidate strings.
21104         (driver::handle_unrecognized_options): Remove "const".
21105         * gcc.h (driver::handle_unrecognized_options): Likewise.
21106         (driver::build_option_suggestions): New decl.
21107         (driver::suggest_option): New decl.
21108         (driver::m_option_suggestions): New field.
21109         * opts-common.c (add_misspelling_candidates): New function.
21110         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
21111         and make non-static.
21112         * opts.h (sanitizer_opts): New array decl.
21113         (add_misspelling_candidates): New function decl.
21114         * spellcheck.c (find_closest_string): New function.
21115         * spellcheck.h (find_closest_string): New function decl.
21117 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21119         PR rtl-optimization/69764
21120         PR rtl-optimization/69771
21121         * optabs.c (expand_binop_directly): For shift_optab_p, force
21122         convert_modes with VOIDmode if xop1 has VOIDmode.
21124 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
21126         PR target/69729
21127         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
21128         to correctly determine instrumentation thunks.
21130 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21132         PR ipa/69241
21133         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
21134         type by reference, force lhs on the call.
21136         PR ipa/68672
21137         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
21138         Compute retval and retbnd early in all cases if split_part_return_p
21139         and return_bb is not EXIT.  Remove all clobber stmts and reset
21140         all debug stmts that refer to SSA_NAMEs defined in split part,
21141         except if it is retval, in that case replace the old retval with the
21142         lhs of the call to the split part.
21144 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21146         revert:
21147         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21149         PR middle-end/66726
21150         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21151         whose result is used in PHI.
21152         (maybe_optimize_range_tests): Likewise.
21153         (final_range_test_p): Likweise.
21155 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21157         PR middle-end/66726
21158         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21159         whose result is used in PHI.
21160         (maybe_optimize_range_tests): Likewise.
21161         (final_range_test_p): Likweise.
21163 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21165         * cgraph.c: Spelling fixes - behaviour -> behavior and
21166         neighbour -> neighbor.
21167         * target.def: Likewise.
21168         * sel-sched.c: Likewise.
21169         * config/mips/mips.c: Likewise.
21170         * config/arc/arc.md: Likewise.
21171         * config/arm/cortex-a57.md: Likewise.
21172         * config/arm/arm.c: Likewise.
21173         * config/arm/neon.md: Likewise.
21174         * config/arm/arm-c.c: Likewise.
21175         * config/vms/vms-c.c: Likewise.
21176         * config/s390/s390.c: Likewise.
21177         * config/i386/znver1.md: Likewise.
21178         * config/i386/i386.c: Likewise.
21179         * config/ia64/hpux-unix2003.h: Likewise.
21180         * config/msp430/msp430.md: Likewise.
21181         * config/rx/rx.c: Likewise.
21182         * config/rx/rx.md: Likewise.
21183         * config/aarch64/aarch64-simd.md: Likewise.
21184         * config/aarch64/aarch64.c: Likewise.
21185         * config/nvptx/nvptx.c: Likewise.
21186         * config/bfin/bfin.c: Likewise.
21187         * config/cris/cris.opt: Likewise.
21188         * config/rs6000/rs6000.c: Likewise.
21189         * target.h: Likewise.
21190         * spellcheck.c: Likewise.
21191         * ira-build.c: Likewise.
21192         * tree-inline.c: Likewise.
21193         * builtins.c: Likewise.
21194         * lra-constraints.c: Likewise.
21195         * explow.c: Likewise.
21196         * hwint.h: Likewise.
21197         * targhooks.c: Likewise.
21198         * tree-vect-data-refs.c: Likewise.
21199         * expr.c: Likewise.
21200         * doc/tm.texi: Likewise.
21201         * doc/extend.texi: Likewise.
21202         * doc/install.texi: Likewise.
21203         * doc/md.texi: Likewise.
21204         * tree-ssa-tail-merge.c: Likewise.
21205         * sched-int.h: Likewise.
21206         * match.pd: Likewise.
21207         * sched-ebb.c: Likewise.
21208         * target.def (omit_struct_return_reg): Likewise.
21209         * gimple-ssa-isolate-paths.c: Likewise.
21210         (find_implicit_erroneous_behaviour): Renamed to...
21211         (find_implicit_erroneous_behavior): ... this.
21212         (find_explicit_erroneous_behaviour): Renamed to...
21213         (find_explicit_erroneous_behavior): ... this.
21214         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21216 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
21218         PR rtl-optimization/64682
21219         PR rtl-optimization/69567
21220         PR rtl-optimization/69737
21221         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21222         in I2 as well, just lose it.
21224 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21226         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
21227         New variable.
21228         (aarch64_last_printed_tune_string): Likewise.
21229         (aarch64_declare_function_name): Only output .arch assembler
21230         directive if it will be different from the previously output
21231         directive.  Same for .tune comment but only if -dA is set.
21232         (aarch64_start_file): New function.
21233         (TARGET_ASM_FILE_START): Define.
21235 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
21237         PR plugins/69758
21238         * Makefile.in (PLUGIN_HEADERS): Add params.list.
21240 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
21242         PR target/65313
21243         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
21244         -Wmaybe-uninitialized warning.
21246 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
21248         PR target/69713
21249         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
21251 2016-02-11  Richard Biener  <rguenther@suse.de>
21253         PR rtl-optimization/69291
21254         * ifcvt.c (noce_try_store_flag_constants): Do not allow
21255         subexpressions affected by changing the result.
21257 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21259         PR target/69148
21260         * lra-constraints.c (curr_insn_transform): Find in/out operands
21261         for secondary memory moves.  Update dups.
21263 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
21265         PR tree-optimization/69652
21266         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
21267         to nested loop, did source re-formatting, skip debug statements,
21268         add check on statement with volatile operand, remove dead scalar
21269         statements.
21271 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
21272             Patrick Palka  <ppalka@gcc.gnu.org>
21274         PR ipa/69241
21275         PR c++/69649
21276         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
21277         calls if the return type is TREE_ADDRESSABLE.
21278         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
21279         * ipa-split.c (split_function): Fix doubled "we" in comment.
21280         Use void return type for the split part even if
21281         !split_point->split_part_set_retval.
21283 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
21285         PR tree-optimization/68021
21286         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
21287         when computing the value of biv cand by itself.
21289 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21291         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
21292         (cortexa57_tunings): Likewise.
21293         (cortexa72_tunings): Likewise.
21294         (arch_macro_fusion_pair_p): Add support for AES fusion.
21295         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
21296         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
21297         Allow virtual registers before reload so early scheduling works.
21298         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
21299         correct latency and pipeline.
21300         (cortex_a57_crypto_complex): Likewise.
21301         (cortex_a57_crypto_xor): Likewise.
21302         (define_bypass): Add AES bypass.
21304 2016-02-10  Richard Biener  <rguenther@suse.de>
21306         PR tree-optimization/69726
21307         * passes.def: Add DCE pass before late uninit.
21308         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
21309         really fixup if-conversions job.
21311 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21313         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
21314         (arm_cortex_a57_tune): Likewise.
21315         (aarch_macro_fusion_pair_p): Add support for AES fusion.
21316         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
21318 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
21320         * timevar.def (TV_PHASE_DBGINFO): Delete.
21321         (TV_PHASE_CHECK_DBGINFO): Likewise.
21322         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
21324 2016-02-10  Richard Biener  <rguenther@suse.de>
21326         PR tree-optimization/69719
21327         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21328         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
21330 2016-02-09  Andrew Pinski  <apinski@cavium.com>
21332         PR tree-opt/69282
21333         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
21334         get_vcond_mask_icode returns false.
21336 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21338         PR target/68404
21339         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
21340         an ADDIS that adds a pointer to a large constant that sets the
21341         upper16 bits with a load operation.
21343 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21345         PR target/68532
21346         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
21347         order.
21348         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
21349         endian.
21350         (vzipq_s16): Likewise.
21351         (vzipq_s32): Likewise.
21352         (vzipq_f32): Likewise.
21353         (vzipq_u8): Likewise.
21354         (vzipq_u16): Likewise.
21355         (vzipq_u32): Likewise.
21356         (vzipq_p8): Likewise.
21357         (vzipq_p16): Likewise.
21359 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21361         PR target/68532
21362         * config/arm/arm.c (neon_endian_lane_map): New function.
21363         (neon_vector_pair_endian_lane_map): New function.
21364         (arm_evpc_neon_vuzp): Allow for big endian lane order.
21365         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
21366         endian.
21367         (vuzpq_s16): Likewise.
21368         (vuzpq_s32): Likewise.
21369         (vuzpq_f32): Likewise.
21370         (vuzpq_u8): Likewise.
21371         (vuzpq_u16): Likewise.
21372         (vuzpq_u32): Likewise.
21373         (vuzpq_p8): Likewise.
21374         (vuzpq_p16): Likewise.
21376 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
21378         PR target/69634
21379         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
21380         debug insns.
21382 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
21384         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
21385         truncate const_int operand 1 to QImode.
21387 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21389         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
21390         corresponding to an abnormal edge.
21392 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21394         PR tree-optimization/69599
21395         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
21396         function.
21397         (find_func_aliases_for_builtin_call, find_func_clobbers)
21398         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
21399         partition.
21401 2016-02-09  Richard Biener  <rguenther@suse.de>
21403         PR tree-optimization/69715
21404         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
21405         LHS on calls as non-rewritable.
21407 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21409         PR lto/69707
21410         * lto-wrapper.c (append_diag_options): New function.
21411         (compile_offload_image): Call append_diag_options.
21413 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
21415         PR other/69722
21416         * doc/extend.texi (Flag Output Operands): Correct sectioning.
21417         Minor copy-edit to fix verb tenses.
21419 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
21421         PR tree-optimization/69209
21422         * ipa-split.c (split_function): If split part is not
21423         returning retval, retval has gimple type but is not
21424         gimple value, force it into a SSA_NAME first.
21426 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
21428         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
21429         outdated section.
21431 2016-02-08  Jason Merrill  <jason@redhat.com>
21433         PR c++/69631
21434         * convert.c (convert_to_integer_1): Check dofold on truncation
21435         distribution.
21436         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
21437         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
21438         Rename from *_nofold.
21439         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
21440         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
21442 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
21444         PR target/60410
21445         * tree.c (build_common_tree_nodes): Remove short_double argument.
21446         All callers changed.
21447         * tree.h (build_common_tree_nodes): Adjust declaration.
21448         * doc/invoke.texi (-fshort-double): Remove documentation.
21449         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21450         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
21451         * lto-wrapper.c (merge_and_complain, append_compiler_options)
21452         (append_linker_options): Don't handle OPT_fshort_double.
21454         PR rtl-optimization/68730
21455         * lra-remat.c (insn_to_cand_activation): New static variable.
21456         (lra_remat): Allocate and free it.
21457         (create_cand): New arg activation. Initialize a field in
21458         insn_to_cand_activation if it is nonnull.
21459         (create_cands): Pass the activation insn to create_cand when making
21460         a candidate involving an output reload.  Reorganize code a little.
21461         (do_remat): Keep track of active status of candidates in a separate
21462         bitmap.
21464 2016-02-08  Richard Biener  <rguenther@suse.de>
21466         PR tree-optimization/69719
21467         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21468         Properly use absolute of the difference of the two offsets to
21469         compare or adjust the segment length.
21471 2016-02-08  Richard Biener  <rguenther@suse.de>
21472             Jeff Law  <law@redhat.com>
21474         PR target/68273
21475         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21476         types for anonymous SSA names.
21478 2016-02-08   Richard Biener  <rguenther@suse.de>
21480         PR rtl-optimization/69274
21481         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21483 2016-02-08  Jeff Law  <law@redhat.com>
21485         PR tree-optimization/65917
21486         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21487         equivalences from if (x == y) style conditionals.
21488         (loop_depth_of_name): Remove.
21489         (record_equality): Remove loop depth check.
21490         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21491         (const_and_copies::record_const_or_copy_raw): New member function.
21492         * tree-ssa-scopedtables.c
21493         (const_and_copies::record_const_or_copy_raw): New, factored out of
21494         (const_and_copies::record_const_or_copy): Call new member function.
21496 2016-02-05  Jeff Law  <law@redhat.com>
21498         PR tree-optimization/68541
21499         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21500         (count_stmts_in_block): New function.
21501         (poor_ifcvt_candidate_code): Likewise.
21502         (is_feasible_trace): Add some heuristics to determine when path
21503         splitting is profitable.
21504         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21505         is a diamond with a single exit.
21507 2016-02-05  Martin Sebor  <msebor@redhat.com>
21509         PR c++/69662
21510         * doc/invoke.texi: Update -Wplacement-new to take an optional
21511         argument.
21513 2016-02-06  Richard Henderson  <rth@redhat.com>
21515         PR c/69643
21516         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21517         out of non-standard address spaces.
21519 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21521         PR rtl-optimization/69691
21522         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21524 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21526         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21527         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21528         (*ieee128_mfvsrd_64bit): Likewise.
21529         (*ieee128_mfvsrd_32bit): Likewise.
21531 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21533         PR target/69369
21534         Revert r232560:
21535         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21537         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21538         instrumented_version.
21540 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21542         * doc/invoke.texi (Optimize Options): In table of --param options
21543         rename second occurrence of tracer-min-branch-ratio to
21544         tracer-min-branch-probability, rename
21545         tracer-min-branch-ratio-feedback to
21546         tracer-min-branch-probability-feedback and clarify description,
21547         rename sched-spec-state-edge-prob-cutoff to
21548         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21549         to selsched-insns-to-rename, rename lto-minpartition to
21550         lto-min-partition, delete reorder-blocks-duplicate and
21551         reorder-blocks-duplicate-feedback.
21553 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21555         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21556         superfluous loops.
21558 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21560         * doc/extend.texi: S/390: Correct some typos.
21562 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21564         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21566 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21568         PR target/69625
21569         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21570         (s390_register_info_gprtofpr): Use new macros above.
21571         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21572         its name.
21573         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21574         its name.  Adjust restore and save gpr ranges.
21575         (s390_register_info_set_ranges): New function.
21576         (s390_register_info): Use new macros above.  Call
21577         s390_register_info_set_ranges.
21578         (s390_optimize_register_info): Likewise.
21579         (s390_hard_regno_rename_ok): Use new macros.
21580         (s390_hard_regno_scratch_ok): Likewise.
21581         (s390_emit_epilogue): Likewise.
21582         (s390_can_use_return_insn): Likewise.
21583         (s390_optimize_prologue): Likewise.
21584         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21586 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21588         PR bootstrap/69677
21589         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21590         alignment fixes.
21591         (ix86_option_override_internal): Disable TARGET_STV even for
21592         -m{incoming,preferred}-stack-boundary=3.
21594 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21596         * config.gcc: Mark deprecated rtems targets as obsolete.
21598 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21600         PR rtl-optimization/64682
21601         PR rtl-optimization/69567
21602         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21603         before I2 only if the register is both used and set in I2.
21605 2016-02-04  DJ Delorie  <dj@redhat.com>
21607         * config/msp430/msp430.c (msp430_start_function): Add function type.
21609 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21611         PR fortran/69368
21612         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21614 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21616         PR rtl-optimization/69577
21617         Revert:
21618         2015-10-29  Richard Henderson  <rth@redhat.com>
21620         PR target/68124
21621         PR rtl-opt/67609
21622         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21623         sse check to the exact conditions of PR 67609.
21625 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21627         PR target/69667
21628         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21629         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21630         not allowed into the traditional Altivec registers.
21631         (movtd_64bit_nodm): Likewise.
21632         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21634 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21636         * config/aarch64/cortex-a57-fma-steering.c
21637         (aarch64_register_fma_steering): Remove "static" from arguments
21638         to register_pass.
21640 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21642         PR target/69619
21643         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21644         twice when complex.
21646 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21648         * doc/invoke.texi: Delete -mno-fma4.
21650 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21652         PR rtl-optimization/69577
21653         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21654         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21655         definitions.
21657 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21659         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21660         * config/arm/arm.c (neon_reinterpret): Remove.
21661         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21662         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21663         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21664         vreinterpretti): Remove.
21665         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21666         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21667         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21668         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21669         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21670         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21671         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21672         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21673         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21674         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21675         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21676         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21677         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21678         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21679         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21680         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21681         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21682         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21683         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21684         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21685         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21686         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21687         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21688         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21689         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21690         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21691         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21692         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21693         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21694         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21695         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21696         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21697         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21698         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21699         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21700         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21701         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21702         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21703         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21704         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21705         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21706         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21707         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21708         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21709         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21710         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21711         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21712         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21713         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21714         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21715         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21716         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21717         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21718         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21719         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21720         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21721         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21722         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21723         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21724         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21725         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21726         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21727         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21728         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21729         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21730         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21731         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21732         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21733         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21734         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21735         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21736         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21737         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21738         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21739         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21740         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21741         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21742         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21743         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21744         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21745         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21746         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21747         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21748         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21749         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21750         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21751         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21752         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21753         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21754         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21755         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21756         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21757         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21758         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21759         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21760         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21761         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21762         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21763         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21764         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21765         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21766         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21767         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21769 2016-02-04  Martin Liska  <mliska@suse.cz>
21771         PR sanitizer/69276
21772         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21773         that are gimple_store_p.
21774         (maybe_instrument_call): Likewise.
21776 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21778         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21779         register scaling out of memory reference and comment why.
21781 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21783         PR target/65932
21784         PR target/67714
21785         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21786         folding the source of a SET.
21788 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21790         PR target/65932
21791         PR target/67714
21792         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21793         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21795 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21797         PR target/65932
21798         PR target/67714
21799         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21800         HImode.
21802 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21804         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21805         * config/arm/arm.c (arm_set_current_function): Likewise.
21807 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21808             Ilya Enkovich  <enkovich.gnu@gmail.com>
21809             H.J. Lu  <hongjiu.lu@intel.com>
21811         PR target/69454
21812         * config/i386/i386.c (convert_scalars_to_vector): Remove
21813         stack alignment fixes.
21814         (ix86_option_override_internal): Disable TARGET_STV if stack
21815         might not be aligned enough.
21816         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21818 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21820         * config/i386/x86-tune.def: Disable default prefetching
21821         for -march=znver1.
21823 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21824             Vladimir Makarov  <vmakarov@redhat.com>
21826         PR target/69461
21827         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21828         in validating fused toc addresses.
21830 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21832         PR c/69627
21833         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21834         range->m_caret fields if range->m_show_caret_p is false.
21836         PR target/69644
21837         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21838         Force oldval into register if it does not satisfy reg_or_short_operand
21839         predicate.  Fix up formatting.
21841 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21842             Alexandre Oliva  <aoliva@redhat.com>
21844         PR target/69461
21845         * lra-constraints.c (simplify_operand_subreg): Check additionally
21846         address validity after potential reloading.
21847         (process_address_1): Check insns validity.  In case of failure do
21848         nothing.
21850 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21852         PR target/69118
21853         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21854         Fix target.
21856 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21858         * wide-int.cc (canonize_uhwi): New function.
21859         (wi::divmod_internal): Use it.
21861 2016-02-02  James Norris  <jnorris@codesourcery.com>
21863         * gimplify.c (omp_notice_variable): Add usage check.
21865 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21867         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21868         like LE, GE, LT, GT when emitting relational operator.
21870 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21872         * ira-costs.c (find_costs_and_classes): Add extra argument.
21873         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21874         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21875         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21876         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21877         Add best_class parameter, and return it if not ALL_REGS.
21878         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21879         Add parameter.
21880         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21881         Update target hook.
21883 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21885         * config/aarch64/aarch64.c
21886         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21887         (aarch64_ira_change_pseudo_allocno_class): New function.
21889 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21891         PR target/67032
21892         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21894 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21896         * config/avr/avr.c (avr_option_override): Set
21897         PARAM_ALLOW_STORE_DATA_RACES to 1.
21899 2016-02-02  Richard Biener  <rguenther@suse.de>
21901         PR tree-optimization/69595
21902         * match.pd: Add range test simplifications to true/false.
21904 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
21906         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21907         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21908         instead.
21910 2016-02-02  Richard Biener  <rguenther@suse.de>
21912         PR tree-optimization/69606
21913         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21914         info on the result before moving a stmt.
21916 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
21918         PR middle-end/68542
21919         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21920         branch with vector comparison.
21921         * config/i386/sse.md (VI48_AVX): New mode iterator.
21922         (define_expand "cbranch<mode>4): Add support for conditional branch
21923         with vector comparison.
21924         * tree-vect-loop.c (optimize_mask_stores): New function.
21925         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21926         has_mask_store field of vect_info.
21927         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21928         vectorized loops having masked stores after vec_info destroy.
21929         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21930         correspondent macros.
21931         (optimize_mask_stores): Add prototype.
21933 2016-02-02  Alan Modra  <amodra@gmail.com>
21935         PR target/69548
21936         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21937         allow subregs.
21939 2016-02-02  Alan Modra  <amodra@gmail.com>
21941         PR target/68662
21942         * config/rs6000/rs6000.c (need_toc_init): New var, set it
21943         whenever toc_label_name used.
21944         (rs6000_file_start): Don't set up toc section here,
21945         (rs6000_output_function_epilogue): do so here instead,
21946         (rs6000_xcoff_file_start): and here.
21947         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21948         (load_toc_aix_di): Likewise.
21950 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21952         PR rtl-optimization/69592
21953         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21954         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21955         (num_sign_bit_copies_binary_arith_p): New inline function.
21956         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21958 2016-02-01  Jeff Law  <law@redhat.com>
21960         PR tree-optimization/69580
21961         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21962         * tree-ssa-threadbackward.c
21963         (fsm_find_control_statement_thread_paths): Do not try to walk
21964         through large PHI nodes.
21966 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21968         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21969         when count is incremented above limit, don't analyze further
21970         insns afterwards.
21972         * omp-low.c (oacc_parse_default_dims): Avoid
21973         -Wsign-compare warning, make sure value fits into int
21974         rather than just unsigned int.
21976 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
21978         PR tree-optimization/67921
21979         * fold-const.c (split_tree): New parameters.  Convert pointer
21980         type variable part to proper type before negating.
21981         (fold_binary_loc): Pass new arguments to split_tree.
21983 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
21985         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21986         (nvptx_goacc_validate_dims): Extend to handle global defaults.
21987         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21988         * doc/tm.texti: Rebuilt.
21989         * doc/invoke.texi (fopenacc-dim): Document.
21990         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21991         (append_compiler_options): Likewise.
21992         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21993         (oacc_parse_default_dims): New.
21994         (oacc_validate_dims): Add USED arg.  Select non-unity default when
21995         possible.
21996         (oacc_loop_fixed_partitions): Return mask of used partitions.
21997         (oacc_loop_auto_partitions): Emit dump info.
21998         (oacc_loop_partition): Return mask of used partitions.
21999         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
22000         loop partitioning and validation calls.
22002 2016-02-01  Richard Biener  <rguenther@suse.de>
22004         PR middle-end/69556
22005         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22007 2016-02-01  Richard Biener  <rguenther@suse.de>
22009         PR tree-optimization/69574
22010         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22011         of asserting return chrec_dont_know.
22013 2016-02-01  Martin Liska  <mliska@suse.cz>
22015         * mem-stats-traits.h: Add copyright header.
22016         * mem-stats.h: Likewise.
22018 2016-02-01  Richard Biener  <rguenther@suse.de>
22020         PR tree-optimization/69579
22021         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22022         Do not propagate through abnormal PHI results.
22024 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
22026         * postreload.c (reload_cse_simplify): Remove dead code.
22028 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22030         PR rtl-optimization/69570
22031         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22032         if there is more than one set, not if there is a single set.
22034 2016-02-01  Richard Henderson  <rth@redhat.com>
22036         PR rtl-opt/69535
22037         * combine.c (make_compound_operation): When looking through a
22038         subreg, make sure to re-extend to the width of the outer mode.
22040 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
22042         PR tree-optimization/69546
22043         * wide-int.cc (wi::divmod_internal): For unsigned division
22044         where both operands fit into uhwi, if o1 is 1 and o0 has
22045         msb set, if divident_prec is larger than bits per hwi,
22046         clear another quotient word and return 2 instead of 1.
22047         Similarly for remainder with msb in HWI set, if dividend_prec
22048         is larger than bits per hwi.
22050 2016-01-29  Martin Jambor  <mjambor@suse.cz>
22052         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22053         Use short lowercase names.
22054         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
22055         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22056         acq_rel one.  Protect warning agains segfaults if
22057         get_memory_order_name returns NULL.
22058         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22059         with release semantics.  Do not warn if get_memory_order already did.
22060         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22061         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
22062         if get_memory_order already did.
22064 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
22066         * doc/install.texi: Document that isl-0.16 is supported.
22068 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22070         PR target/69299
22071         * config/i386/constraints.md (Bm): Describe as special memory
22072         constraint.
22073         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22074         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22075         * genpreds.c (struct constraint_data): Add is_special_memory.
22076         (have_special_memory_constraints, special_memory_start): New
22077         static vars.
22078         (special_memory_end): Ditto.
22079         (add_constraint): Add new arg is_special_memory.  Add code to
22080         process its true value.  Update have_special_memory_constraints.
22081         (process_define_constraint): Pass the new arg.
22082         (process_define_register_constraint): Ditto.
22083         (choose_enum_order): Process special memory.
22084         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
22085         function insn_extra_special_memory_constraint.
22086         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22087         * gensupport.c (process_rtx): Process
22088         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22089         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
22090         * ira-lives.c (single_reg_class): Use
22091         insn_extra_special_memory_constraint.
22092         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
22093         * lra-constraints.c (process_alt_operands): Ditto.
22094         (curr_insn_transform): Use insn_extra_special_memory_constraint.
22095         * recog.c (asm_operand_ok, preprocess_constraints): Process
22096         CT_SPECIAL_MEMORY.
22097         * reload.c (find_reloads): Ditto.
22098         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
22099         * stmt.c (parse_input_constraint): Use
22100         insn_extra_special_memory_constraint.
22102 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22104         PR target/69530
22105         * lra-splill.c (lra_final_code_change): Revert r229087 by
22106         removing all sub-registers.
22108 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
22110         PR target/65604
22111         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
22113 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
22115         PR target/69551
22116         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
22117         SSE1, copy target into the temporary reg first before recursing
22118         on it.
22120 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22122         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
22123         with vm.
22125 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22127         * ginclude/stdarg.h: Test __cplusplus instead of
22128         __GXX_EXPERIMENTAL_CXX0X__.
22130 2016-01-29  Richard Biener  <rguenther@suse.de>
22132         PR tree-optimization/69547
22133         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
22134         Do not mark clobbers necessary.
22135         (mark_all_reaching_defs_necessary_1): Likewise.
22137 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22139         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
22140         declaration name with %qs and print it in both error messages.
22141         Also fix indentation.
22143 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22145         PR other/69006
22146         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
22147         trailing blank line from error message.
22149 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22151         PR c++/69462
22152         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
22153         for C++-11.
22155 2016-01-29  Richard Biener  <rguenther@suse.de>
22157         PR middle-end/69537
22158         * match.pd: Allow all integral types when simplifying a
22159         widening or sign-changing conversion.
22161 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22163         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22164         back to setting codegen_error to fail codegen.
22166 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
22168         PR target/69459
22169         * config/i386/constraints.md (C): Only accept constant zero operand.
22170         (BC): New constraint.
22171         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22172         instead of C constraint.
22173         * doc/md.texi (Machine Constraints): Update description
22174         of C constraint.
22176 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22178         PR target/68400
22179         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22181 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
22183         PR middle-end/69542
22184         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22185         non-debug insns.
22187 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22189         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22190         branches if using guessed profile.
22192 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
22194         * graphite-optimize-isl.c (optimize_isl): Fix dump.
22196 2016-01-28  Richard Henderson  <rth@redhat.com>
22198         PR target/69305
22199         * config/aarch64/aarch64-modes.def (CC_Cmode): New
22200         * config/aarch64/aarch64-protos.h: Update.
22201         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22202         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22203         (aarch64_get_condition_code_1): Handle CC_Cmode.
22204         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22205         (*add<mode>3_compareC_cconly_imm): New.
22206         (*add<mode>3_compareC_cconly): New.
22207         (*add<mode>3_compareC_imm): New.
22208         (add<mode>3_compareC): New.
22209         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22210         to be first.  Use aarch64_carry_operation.
22211         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22212         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22213         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22214         (subti3): Use subdi3_compare1.
22215         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22216         (sub<mode>3_compare1): New.
22217         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22218         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22219         (*subsi3_carryin_uxtw): Likewise.
22220         (*ngc<mode>, *ngcsi_uxtw): Likewise.
22221         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22222         * config/aarch64/iterators.md (DWI): New.
22223         * config/aarch64/predicates.md (aarch64_carry_operation): New.
22224         (aarch64_borrow_operation): New.
22226 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22228         * graphite-optimize-isl.c (optimize_isl): Print a different debug
22229         message when isl does not return a valid schedule.
22231 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22233         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
22234         Remove comments from class declarations: they are already in the code
22235         close by the defs.
22237 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22239         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
22240         codegen_error_p.
22241         (ternary_op_to_tree): Same.
22242         (unary_op_to_tree): Same.
22243         (nary_op_to_tree): Same.
22244         (gcc_expression_from_isl_expr_op): Same.
22245         (gcc_expression_from_isl_expression): Same.
22246         (graphite_create_new_loop): Same.
22247         (graphite_create_new_loop_guard): Same.
22248         (build_iv_mapping): Same.
22249         (graphite_create_new_guard): Same.
22250         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
22251         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
22253 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22255         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
22256         instead of setting codegen_error to fail codegen.
22258 2016-01-28  Jason Merrill  <jason@redhat.com>
22260         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
22262 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22264         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22265         Remove CONST_INT_P check in CCMP cost calculation.
22267 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22269         * config/aarch64/aarch64.c (generic_vector_cost):
22270         Set vec_permute_cost.
22271         (cortexa57_vector_cost): Likewise.
22272         (exynosm1_vector_cost): Likewise.
22273         (xgene1_vector_cost): Likewise.
22274         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
22275         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
22276         Add vec_permute_cost entry.
22278 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22280         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
22281         immediate as %1.
22282         (add<mode>3_compare0): Likewise.
22283         (addsi3_compare0_uxtw): Likewise.
22284         (add<mode>3nr_compare0): Likewise.
22285         (compare_neg<mode>): Likewise.
22286         (<optab><mode>3): Likewise.
22288 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
22290         * tree-vect-stmts.c (vectorizable_comparison): Add
22291         NULL check for vectype.
22293 2016-01-28  Richard Biener  <rguenther@suse.de>
22295         PR tree-optimization/69466
22296         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
22297         Account for PHIs we couldn't duplicate.
22299 2016-01-28  Martin Liska  <mliska@suse.cz>
22301         PR pch/68758
22302         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
22303         instead of ENABLE_VALGRIND_CHECKING.
22305 2016-01-27  Richard Henderson  <rth@redhat.com>
22307         PR rtl-opt/69447
22308         * lra-remat.c (subreg_regs): New.
22309         (dump_candidates_and_remat_bb_data): Dump it.
22310         (operand_to_remat): Reject if operand in subreg_regs.
22311         (set_bb_regs): Collect subreg_regs.
22312         (lra_remat): Init and free subreg_regs.  Compute
22313         calculate_local_reg_remat_bb_data before create_cands.
22315 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
22317         PR target/68986
22318         * config/i386/i386.c (ix86_update_stack_boundary): Don't
22319         change stack_alignment_needed for __tls_get_addr call.
22321 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
22323         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
22325 2016-01-27  Jeff Law  <law@redhat.com>
22327         PR tree-optimization/68398
22328         PR tree-optimization/69196
22329         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
22330         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
22331         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22332         Only count PHIs in the last block in the path.  The others will
22333         const/copy propagate away.  Add heuristic to allow more irreducible
22334         subloops to be created when it is likely profitable to do so.
22336         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22337         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
22338         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
22340 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22342         PR lto/69254
22343         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
22344         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
22345         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
22346         * tree-streamer-in.c: Include asan.h.
22347         (streamer_get_builtin_tree): For builtins in sanitizer
22348         range call initialize_sanitizer_builtins and retry.
22350 2016-01-27  Ian Lance Taylor  <iant@google.com>
22352         * common.opt (fkeep-gc-roots-live): New undocumented option.
22353         * tree-ssa-loop-ivopts.c (add_candidate_1): If
22354         -fkeep-gc-roots-live, skip pointers.
22355         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
22356         NULL.
22358 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
22360         PR target/69512
22361         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
22362         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
22364 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
22366         PR target/68380
22367         * configure.ac: NetBSD provides SSP in its C library.
22368         * configure: Updated.
22370 2016-01-27  Richard Biener  <rguenther@suse.de>
22372         PR tree-optimization/69166
22373         * tree-vect-loop.c (vect_is_simple_reduction): Always check
22374         reduction code for commutativity / associativity.
22376 2016-01-27  Martin Jambor  <mjambor@suse.cz>
22378         PR tree-optimization/69355
22379         * tree-sra.c (analyze_access_subtree): Correct hole detection when
22380         total_scalarization fails.
22382 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
22384         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
22385         power9.
22387 2016-01-27  Christian Bruel  <christian.bruel@st.com>
22389         PR target/69245
22390         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
22391         Move arm_reset_previous_fndecl and set_target_option_current_node in
22392         the conditional part.  Call save_restore_target_globals.
22393         * config/arm/arm.c (arm_set_current_function):
22394         Refactor to better support #pragma target and attribute mix.
22395         Call save_restore_target_globals.
22396         * config/arm/arm-protos.h (save_restore_target_globals): New function.
22398 2016-01-27  Martin Liska  <mliska@suse.cz>
22400         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
22401         reference for an HSA kernel and its host function.
22403 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22405         PR tree-optimization/69399
22406         * wide-int.h (wi::lrshift): For larger precisions, only
22407         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
22409 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
22411         * config/arc/predicates.md (proper_comparison_operator): Reject
22412         constant-constant comparison.
22414 2016-01-26  Tom de Vries  <tom@codesourcery.com>
22416         PR tree-optimization/69110
22417         * tree-data-ref.c (initialize_data_dependence_relation): Handle
22418         DR_NUM_DIMENSIONS == 0.
22420 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22421             Sebastian Pop  <s.pop@samsung.com>
22423         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
22424         isl_ast_op_cond and isl_ast_op_select.
22425         (gcc_expression_from_isl_expr_op): Same.
22427 2016-01-26  Jason Merrill  <jason@redhat.com>
22429         PR c++/68782
22430         * tree.c (recompute_constructor_flags): Split out from
22431         build_constructor.
22432         (verify_constructor_flags): New.
22433         * tree.h: Declare them.
22435 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
22437         PR rtl-optimization/69217
22438         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
22439         are no TYPE_FIELDS set for the record type.
22441 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22443         PR target/68662
22444         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
22445         toc_label_name unconditionally.
22446         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
22447         SYMBOL_REF string.  Use toc_label_name instead of constructing
22448         LCTOC1.
22449         (rs6000_elf_declare_function_name): Use toc_label_name instead of
22450         constructing LCTOC1.
22452 2016-01-26  Martin Sebor  <msebor@redhat.com>
22454         PR other/69477
22455         * doc/extend.texi (Common Type Attributes): Move text that talks about
22456         attribute packed from attribute aligned to the section discussing
22457         the former attribute for clarity.
22459 2016-01-26  Richard Henderson  <rth@redhat.com>
22461         PR middle-end/60908
22462         * trans-mem.c (tm_region_init): Mark entry block as visited.
22464 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
22466         PR other/69006
22467         * diagnostic-show-locus.c (layout::print_source_line): Replace
22468         call to pp_newline with call to layout::print_newline.
22469         (layout::print_annotation_line): Likewise.
22470         (layout::move_to_column): Likewise.
22471         (layout::print_any_fixits): After printing any fixits, print a
22472         trailing newline, if necessary.
22473         (layout::print_newline): New method, resetting any colorization
22474         before a newline.
22475         (diagnostic_show_locus): Move the pp_newline to before the
22476         early bailout.  Remove dummy block enclosing the layout instance.
22477         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22478         of pp_newline_and_flush with pp_flush.
22479         (diagnostic_append_note): Delete use of pp_newline.
22480         (diagnostic_append_note_at_rich_loc): Delete.
22481         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22482         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22483         when newline characters are added to the buffer.
22485 2016-01-26  Michael Matz  <matz@suse.de>
22487         * configure.ac (ac_cv_std_swap_in_utility): New test.
22488         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22489         * configure: Regenerate.
22490         * config.in: Regenerate.
22492 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22494         * config/arc/arc.md (cstoresi4): Force operand into register.
22495         (arcset<code>): Fix predicate.
22496         (arcsetltu): Likewise.
22497         (arcsetgeu): Likewise.
22498         (arcsethi): Likewise.
22499         (arcsetls): Likewise.
22501 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22503         PR tree-optimization/69483
22504         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22505         if base has error_mark_node type.
22507 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22509         PR target/68620
22510         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22511         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22512         New helper macros.
22513         (vget_lane_f16): Handle big-endian.
22514         (vgetq_lane_f16): Likewise.
22515         (vset_lane_f16): Likewise.
22516         (vsetq_lane_f16): Likewise.
22517         * config/arm/iterators.md (VQXMOV): Add V8HF.
22518         (VDQ): Add V4HF and V8HF.
22519         (V_reg): Handle V4HF and V8HF.
22520         (Is_float_mode): Likewise.
22521         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22522         neon_vdup_nv8hf): New patterns.
22523         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22524         Use VD_LANE iterator.
22525         (neon_vld1_dup<mode>): Use VQ2 iterator.
22527 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22529         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22530         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22531         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22532         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22533         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22534         (oacc_validate_dims): Add LEVEL arg, don't return level.
22535         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22536         oacc_validate_dims.
22537         (execute_oacc_device_lower): Adjust, add more dump output.
22538         * tree-ssa-loop.c (gate_oacc_kernels): Use
22539         oacc_fn_attrib_kernels_p.
22540         * tree-parloops.c (create_parallel_loop): Adjust
22541         set_oacc_fn_attrib call.
22543 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22545         PR lto/69254
22546         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22547         (append_compiler_options): Handle -fcilkplus.
22548         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22550 2016-01-26  Nick Clifton  <nickc@redhat.com>
22552         PR target/66655
22553         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22554         been marked as DECL_ONE_ONLY but we do not the means to make it
22555         so, then do not allow it to bind locally.
22557 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22559         PR lto/69254
22560         * opts.h (parse_sanitizer_options): New prototype.
22561         * opts.c (sanitizer_opts): New array.
22562         (parse_sanitizer_options): New function.
22563         (common_handle_option): Use parse_sanitizer_options.
22565 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22567         PR target/68986
22568         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22569         alignment adjustment to ...
22570         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22571         __tls_get_addr.
22572         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22573         if __tls_get_addr is called.
22575 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22577         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22579 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22581         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22583 2016-01-26  Richard Biener  <rguenther@suse.de>
22585         PR middle-end/69467
22586         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22588 2016-01-26  Richard Biener  <rguenther@suse.de>
22590         PR tree-optimization/69452
22591         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22592         (move_computations_dom_walker::before_dom_children): Rename
22593         to ...
22594         (move_computations_worker): This.
22595         (move_computations): Perform an RPO rather than a DOM walk.
22597 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22599         PR target/69442
22600         * combine.c (combine_instructions): For REG_EQUAL note with
22601         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22602         to the underlying register.
22603         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22604         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22606 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22608         PR target/67896
22609         * config/aarch64/aarch64-builtins.c
22610         (aarch64_init_simd_builtin_types): Do not set structural
22611         equality to __Poly{8,16,64,128}_t types.
22613 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22615         PR tree-optimization/69400
22616         * wide-int.cc (wi_pack): Take the precision as argument and
22617         perform canonicalization here rather than in the callers.
22618         Use the main loop to handle all full-width HWIs.  Add a
22619         zero HWI if in_len isn't a full result.
22620         (wi::divmod_internal): Update accordingly.
22621         (wi::mul_internal): Likewise.  Simplify.
22623 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22624             Sebastian Pop  <s.pop@samsung.com>
22626         * graphite-poly.c (apply_poly_transforms): Simplify.
22627         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22628         (print_isl_map): Same.
22629         (print_isl_union_map): Same.
22630         (print_isl_schedule): New.
22631         (debug_isl_schedule): New.
22632         * graphite-dependences.c (scop_get_reads): Do not call
22633         isl_union_map_add_map that is undocumented isl functionality.
22634         (scop_get_must_writes): Same.
22635         (scop_get_may_writes): Same.
22636         (scop_get_original_schedule): Remove.
22637         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22638         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22639         (compute_deps): Remove.
22640         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22641         (debug_schedule_ast): New.
22642         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22643         set_separate_option.
22644         (graphite_regenerate_ast_isl): Add dump.
22645         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22646         from scop->transformed_schedule.
22647         (graphite_regenerate_ast_isl): Add more dump.
22648         * graphite-optimize-isl.c (optimize_isl): Set
22649         scop->transformed_schedule.  Check whether schedules are equal.
22650         (apply_poly_transforms): Move here.
22651         * graphite-poly.c (apply_poly_transforms): ... from here.
22652         (free_poly_bb): Static.
22653         (free_scop): Static.
22654         (pbb_number_of_iterations_at_time): Remove.
22655         (print_isl_ast): New.
22656         (debug_isl_ast): New.
22657         (debug_scop_pbb): New.
22658         * graphite-scop-detection.c (print_edge): Move.
22659         (print_sese): Move.
22660         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22661         (build_scop_scattering): Remove.
22662         (create_pw_aff_from_tree): Assert instead of bailing out.
22663         (add_condition_to_pbb): Remove unused code, do not fail.
22664         (add_conditions_to_domain): Same.
22665         (add_conditions_to_constraints): Remove.
22666         (build_scop_context): New.
22667         (add_iter_domain_dimension): New.
22668         (build_iteration_domains): Initialize pbb->iterators.
22669         Call add_conditions_to_domain.
22670         (nested_in): New.
22671         (loop_at): New.
22672         (index_outermost_in_loop): New.
22673         (index_pbb_in_loop): New.
22674         (outermost_pbb_in): New.
22675         (add_in_sequence): New.
22676         (add_outer_projection): New.
22677         (outer_projection_mupa): New.
22678         (add_loop_schedule): New.
22679         (build_schedule_pbb): New.
22680         (build_schedule_loop): New.
22681         (embed_in_surrounding_loops): New.
22682         (build_schedule_loop_nest): New.
22683         (build_original_schedule): New.
22684         (build_poly_scop): Call build_original_schedule.
22685         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22686         (free_poly_dr): Remove.
22687         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22688         (free_poly_bb): Remove.
22689         (debug_loop_vec): Remove.
22690         (print_isl_ast): Declare.
22691         (debug_isl_ast): Declare.
22692         (scop_do_interchange): Remove.
22693         (scop_do_strip_mine): Remove.
22694         (scop_do_block): Remove.
22695         (flatten_all_loops): Remove.
22696         (optimize_isl): Remove.
22697         (pbb_number_of_iterations_at_time): Remove.
22698         (debug_scop_pbb): Declare.
22699         (print_schedule_ast): Declare.
22700         (debug_schedule_ast): Declare.
22701         (struct scop): Remove schedule.  Add original_schedule,
22702         transformed_schedule.
22703         (free_gimple_poly_bb): Remove.
22704         (print_generated_program): Remove.
22705         (debug_generated_program): Remove.
22706         (unify_scattering_dimensions): Remove.
22707         * sese.c (print_edge): ... here.
22708         (print_sese): ... here.
22709         (debug_edge): ... here.
22710         (debug_sese): ... here.
22711         * sese.h (print_edge): Declare.
22712         (print_sese): Declare.
22713         (dump_edge): Declare.
22714         (dump_sese): Declare.
22716 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22717             Sebastian Pop  <s.pop@samsung.com>
22719         * Makefile.in: Set ISLVER in site.exp.
22721 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22723         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22724         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22725         through DECL_VALUE_EXPR for expansion.
22727 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22729         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22730         the frame info after reload completed.
22732 2016-01-25  Jeff Law  <law@redhat.com>
22734         PR tree-optimization/69196
22735         PR tree-optimization/68398
22736         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22737         tree-ssa-threadupdate.c.
22738         (determine_bb_domination_status): Prototype
22739         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22740         (determine_bb_domination_status): No longer static.
22741         (valid_jump_thread_path): Remove code to detect characteristics
22742         of the jump thread path not associated with correctness.
22743         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22744         Correct test for thread path length.  Count PHIs for real operands as
22745         statements that need to be copied.  Do not count ASSERT_EXPRs.
22746         Look at all the blocks in the thread path.  Compute and selectively
22747         filter thread paths based on threading through the latch, threading
22748         a multiway branch or crossing a multiway branch.
22750 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22752         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22753         decl with __attribute__ ((unused)) annotation.
22755 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22757         PR target/69421
22758         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22759         of operands is compatible with a statement vectype.
22761 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22763         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22764         improve wording for mixed storage order support.
22766 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22768         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22769         (vcvt_u64_f64): Likewise.
22770         (vcvta_s64_f64): Likewise.
22771         (vcvta_u64_f64): Likewise.
22772         (vcvtm_s64_f64): Likewise.
22773         (vcvtm_u64_f64): Likewise.
22774         (vcvtn_s64_f64): Likewise.
22775         (vcvtn_u64_f64): Likewise.
22776         (vcvtp_s64_f64): Likewise.
22777         (vcvtp_u64_f64): Likewise.
22779 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22781         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22782         (arc_init): Check validity mll64 option.
22783         (arc_save_restore): Use double load/store instruction.
22784         (arc_expand_movmem): Likewise.
22785         (arc_split_move): Don't split if we have double load/store
22786         instructions. Returns a boolean.
22787         (arc_process_double_reg_moves): Change function to return boolean
22788         instead of a sequence of instructions.
22789         (arc_dwarf_register_span): New function.
22790         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22791         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22792         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22793         (*movdf_insn): Likewise.
22794         * config/arc/arc.opt (mll64): New option.
22795         * config/arc/predicates.md (even_register_operand): New predicate.
22796         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22798 2016-01-25  Richard Biener  <rguenther@suse.de>
22800         PR lto/69393
22801         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22802         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22803         DECL_NAMELESS.
22804         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22806 2016-01-25  Richard Biener  <rguenther@suse.de>
22808         PR tree-optimization/69376
22809         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22810         flag.
22811         (VN_INFO_ANTI_RANGE_P): New inline.
22812         (VN_INFO_RANGE_TYPE): Likewise.
22813         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22814         SSA_NAME_ANTI_RANGE_P.
22815         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22816         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22817         Properly query VN_INFO_RANGE_TYPE.
22819 2016-01-25  Nick Clifton  <nickc@redhat.com>
22821         PR target/66655
22822         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22824 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22826         PR tree-optimization/69426
22827         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22828         removed clobber.
22830 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22832         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22833         "the the" with "the" in the comments.
22834         * ipa-devirt.c (build_type_inheritance_graph,
22835         update_type_inheritance_graph): Likewise.
22836         * tree.c (build_function_type_list_1): Likewise.
22837         * cfgloopmanip.c (scale_loop_profile): Likewise.
22838         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22839         * gimple-ssa-split-paths.c
22840         (find_block_to_duplicate_for_splitting_paths): Likewise.
22841         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22842         * expr.c (convert_move): Likewise.
22843         * var-tracking.c (vt_stack_adjustments): Likewise.
22844         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22845         * tree-vrp.c (test_for_singularity): Likewise.
22847         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22848         directly instead of building a temporary tree.
22850         PR bootstrap/69434
22851         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22852         remove <algorithm> include.
22854 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22856         PR target/69432
22857         * config/i386/i386.c: Include dojump.h.
22858         (expand_small_movmem_or_setmem,
22859         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22860         fixes.
22861         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22862         if dynamic_check != -1.
22864 2016-01-21  Jeff Law  <law@redhat.com>
22866         PR middle-end/69347
22867         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22868         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22869         into dominated_by_p.
22870         (cprop_into_successor_phis): Avoid unnecessary tests.
22872 2016-01-22  Richard Henderson  <rth@redhat.com>
22874         PR target/69416
22875         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22876         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22878 2016-01-22  Michael Matz  <matz@suse.de>
22880         * system.h (string, algorithm): Include only conditionally.
22881         (new): Include always under C++.
22882         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22883         * final.c (toplevel): Ditto.
22884         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22885         * genconditions.c (write_header): Make gencondmd.c define
22886         INCLUDE_STRING.
22887         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22889         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22890         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22892 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22894         PR target/68674
22895         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22897 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22899         PR target/69403
22900         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22901         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22902         get assigned the same register.
22904 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22906         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22908 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22910         * config/arm/arm-c.c (arm_pragma_target_parse):
22911         Remove warn_builtin_macro_redefined overwrite.
22913 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22915         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22916         flag_non_call_exceptions compatibility.
22918 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22920         PR debug/66668
22921         * dwarf2out.c (add_child_die_after): New function.
22922         (dwarf_qual_info_t): New type.
22923         (dwarf_qual_info): New variable.
22924         (qualified_die_p): New function.
22925         (modified_type_die): For -fdebug-types-section, ensure
22926         canonical order of qualifiers.  Put qualified DIEs adjacent
22927         to the corresponding non-qualified type DIE and search there
22928         for existing qualified DIEs.
22930 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22932         * doc/extend.texi (scalar_storage_order type attribute): Document
22933         restriction on type punning and aliasing, and remove future tense.
22935 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
22937         PR target/69252
22938         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22939         first stage.
22941 2016-01-21  Jeff Law  <law@redhat.com>
22943         PR middle-end/69347
22944         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22945         useless call to record_temporary_equivalences.
22946         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22947         allocate 10 slots in the bb_path vector and let it grow as needed.
22948         (fsm_find_control_statement_thread_paths): Similarly for the next_path
22949         vector.
22951 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22953         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22954         Detangle.
22955         * configure: Regenerate.
22957 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
22959         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22960         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22962 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
22964         PR middle-end/66178
22965         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22966         drop EXPAND_INITIALIZER.
22967         * rtl.h (contains_symbolic_reference_p): Declare.
22968         * rtlanal.c (contains_symbolic_reference_p): New function.
22969         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22970         a subtraction into a NOT if symbolic constants are involved.
22972 2016-01-21  Anton Blanchard  <anton@samba.org>
22973             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22975         PR target/63354
22976         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22977         #define.
22978         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22979         function.
22981 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22983         * config/microblaze/microblaze.c
22984         (get_branch_target): New.
22985         (insert_wic_for_ilb_runout): New.
22986         (insert_wic): New.
22987         (microblaze_machine_dependent_reorg): New.
22988         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22989         * config/microblaze/microblaze.md
22990         (UNSPEC_IPREFETCH): Define.
22991         (iprefetch): New pattern
22992         * config/microblaze/microblaze.opt
22993         (mxl-prefetch): New flag.
22995 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22997         * config/microblaze/microblaze.h
22998         (FIXED_REGISTERS): Update in macro.
22999         (CALL_USED_REGISTERS): Update in macro.
23001 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
23003         PR rtl-optimization/68920
23004         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23005         moves.
23007 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
23009         PR rtl-optimization/68990
23010         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23011         pseudo instead of inheritance ones.
23013 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23014             Nick Clifton  <nickc@redhat.com>
23016         PR target/69129
23017         PR target/69012
23018         * config/mips/mips.c (mips_compute_frame_info): Initialise
23019         args_size and hard_frame_pointer_offset fields of the frame
23020         structure before calling mips_global_pointer.
23022 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23024         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23025         label reference.
23026         * configure: Regenerate.
23028 2016-01-21  Richard Biener  <rguenther@suse.de>
23030         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23032 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23034         * config/s390/s390.c (s390_asm_declare_function_size): Add code
23035         to actually emit the .size directive.
23037 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
23038              Jakub Jelinek  <jakub@redhat.com>
23040         PR target/69187
23041         PR target/65624
23042         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23043         args array size by one to avoid buffer overflow.
23045 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23047         * config/s390/s390.md (pool_section_start): Use switch_to_section
23048         to select proper read-only data section instead of hardcoding
23049         .rodata.
23050         (pool_section_end): Use switch_to_section to match the above.
23052 2016-01-21  Richard Biener  <rguenther@suse.de>
23054         PR tree-optimization/69378
23055         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23056         (set_ssa_val_to): Use it for dominance checks taking into
23057         account not executable edges.
23059 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23061         PR c++/69355
23062         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23063         for bitsize instead of GET_MODE_PRECISION (mode).
23065 2016-01-20  Martin Sebor  <msebor@redhat.com>
23067         PR c/52291
23068         * extend.texi (__sync Builtins): Clarify the semantics of
23069         __sync_fetch_and_OP built-ins on pointers.
23070         (__atomic Builtins): Same.
23072 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23073             Sebastian Pop  <s.pop@samsung.com>
23075         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23076         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23077         (is_valid_rename): Same.
23078         (translate_isl_ast_to_gimple::get_rename): Same.
23079         (translate_isl_ast_to_gimple::rename_all_uses): Same.
23080         (translate_isl_ast_to_gimple::rename_uses): Same.
23081         (get_new_name): Check for close_phi nodes.
23082         (copy_loop_phi_args): Use phi_node_kind.
23083         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23084         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
23086 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23087             Sebastian Pop  <s.pop@samsung.com>
23089         Revert commit r229783.
23090         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
23091         Remove use of parameter_rename_map.
23092         (copy_def): Remove.
23093         (copy_internal_parameters): Remove.
23094         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
23095         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
23096         (free_sese_info): Do not free parameter_rename_map.
23097         (set_rename): Do not use parameter_rename_map.
23098         (rename_uses): Update call to set_rename.
23099         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
23100         * sese.h (parameter_rename_map_t): Remove.
23101         (struct sese_info_t): Remove field parameter_rename_map.
23103 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23104             Sebastian Pop  <s.pop@samsung.com>
23106         * graphite-isl-ast-to-gimple.c: Fix comment.
23107         * graphite-scop-detection.c (defined_in_loop_p): New.
23108         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
23109         names defined in loop.
23111 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23112             Sebastian Pop  <s.pop@samsung.com>
23114         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
23115         Discard unstructured if-then-else regions.
23117 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23118             Sebastian Pop  <s.pop@samsung.com>
23120         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
23121         (cleanup_loop_iter_dom): Remove.
23122         (build_loop_iteration_domains): Remove.
23123         (build_scop_context): Remove.
23124         (build_scop_iteration_domain): Remove.
23125         (add_loop_constraints): New.
23126         (build_iteration_domains): New.
23127         (build_poly_scop): Call build_iteration_domains.
23129 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23130             Sebastian Pop  <s.pop@samsung.com>
23132         * graphite-scop-detection.c
23133         (scop_detection::harmful_loop_in_region): Free dom and loops.
23134         (scop_detection::loop_body_is_valid_scop): Free bbs.
23136 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23137             Sebastian Pop  <s.pop@samsung.com>
23139         * graphite-scop-detection.c (record_loop_in_sese): New.
23140         (gather_bbs::before_dom_children): Call record_loop_in_sese.
23141         (build_scops): Remove call to build_sese_loop_nests.
23142         * sese.c (sese_record_loop): Remove.
23143         (build_sese_loop_nests): Remove.
23144         (new_sese_info): Remove region->loops.
23145         (free_sese_info): Same.
23146         * sese.h (sese_contains_loop): Same.
23147         (build_sese_loop_nests): Remove.
23148         (sese_contains_loop): Remove.
23150 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23151             Sebastian Pop  <s.pop@samsung.com>
23153         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
23154         loop_is_valid_in_scop.
23155         (scop_detection::harmful_stmt_in_region): Renamed
23156         harmful_loop_in_region.
23157         Call loop_is_valid_in_scop.
23159 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23160             Sebastian Pop  <s.pop@samsung.com>
23162         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23163         isl_ast_node_mark.
23165 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23166             Sebastian Pop  <s.pop@samsung.com>
23168         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23169         * graphite.h (struct poly_bb): Remove field is_reduction.
23170         (PBB_IS_REDUCTION): Remove.
23172 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23173             Sebastian Pop  <s.pop@samsung.com>
23175         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23176         (add_pdr_constraints): Same.
23177         (scop_get_reads): Same.
23178         (scop_get_must_writes): Same.
23179         (scop_get_may_writes): Same.
23180         (scop_get_original_schedule): Same.
23181         (extend_schedule): Same.
23182         (apply_schedule_on_deps): Same.
23183         (carries_deps): Same.
23184         (compute_deps): Same.
23185         (scop_get_dependences): Same.
23186         * graphite-isl-ast-to-gimple.c
23187         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23188         * graphite-optimize-isl.c (get_schedule_for_band): Same.
23189         (get_schedule_for_band_list): Same.
23190         (get_schedule_map): Same.
23191         (apply_schedule_map_to_scop): Same.
23192         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23193         (build_loop_iteration_domains): Same.
23194         (add_condition_to_pbb): Same.
23195         (add_param_constraints): Same.
23196         (pdr_add_memory_accesses): Same.
23197         (pdr_add_data_dimensions): Same.
23199 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23201         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23202         requirements.
23204 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23206         * common.opt (feliminate-dwarf2-dups): Replace references to
23207         "DWARF 2" with just "DWARF".
23208         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23209         * doc/extend.texi: Likewise.
23210         * doc/cpp.texi: Likewise.
23211         * doc/invoke.texi: Likewise.
23212         (Option Summary): Add -gdwarf to list of Debugging Options.
23213         (Debugging Options): Document -gdwarf.
23214         * doc/contrib.texi: Spell "DWARF" like that.
23216 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23218         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23219         warning.  Fix up formatting.
23221         PR middle-end/67653
23222         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23223         attempt to mark memory input operand addressable and
23224         call prepare_gimple_addressable in that case.  Don't adjust
23225         input_location for diagnostics, use error_at instead.
23227 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
23229         * config/rs6000/ppc-auxv.h: New file.
23230         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
23231         (cpu_is): Likewise.
23232         (cpu_supports): Likewise.
23233         * config/rs6000/rs6000.c: include "ppc-auxv.h".
23234         (cpu_is_info): New variable.
23235         (cpu_supports_info): Likewise.
23236         (tcb_verification_symbol): Likewise.
23237         (cpu_builtin_p): Likewise.
23238         (cpu_expand_builtin): New function.
23239         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
23240         (rs6000_init_builtins): Likewise.
23241         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
23242         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
23243         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
23244         * configure: Regenerate.
23245         * config.in: Likewise.
23246         * doc/extend.texi (PowerPC Built-in Functions): Document
23247         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
23249 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
23251         PR target/68609
23252         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
23253         domain check.
23254         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
23255         for V4SFmode.
23257 2016-01-20  Richard Henderson  <rth@redhat.com>
23259         PR bootstrap/69343
23260         PR bootstrap/69339
23261         PR tree-opt/68964
23262         Revert:
23263         * tree.c (tm_define_builtin): New.
23264         (find_tm_vector_type): New.
23265         (build_tm_vector_builtins): New.
23266         (build_common_builtin_nodes): Call it.
23268 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
23270         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
23271         (arm_fp_ok): Likewise.
23272         (arm_fp): Likewise.
23273         (arm_crypto): Likewise.
23275 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23276             Richard Biener  <rguenther@suse.de>
23278         PR tree-optimization/69328
23279         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
23280         vectors have same number of elements.
23281         (vectorizable_condition): Fix masked version recognition.
23283 2016-01-20  Richard Biener  <rguenther@suse.de>
23285         PR tree-optimization/69345
23286         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
23287         (VN_INFO_PTR_INFO): Likewise.
23288         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
23289         info when it is equal between non-dominating SSA names.
23290         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23291         Make sure to look at original SSA infos.
23293 2016-01-20  Jeff Law  <law@redhat.com>
23295         PR target/25114
23296         * config/m68k/predicates.md (pow2_m1_operand): New predicate
23297         extracted from ...
23298         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
23299         (pc_or_label_operand): New predicate.
23300         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
23301         tests for small integers that are 2^n - 1.
23303 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
23305         * doc/invoke.texi (Options Summary): Add '.' after @xref.
23307 2016-01-19  Jeff Law  <law@redhat.com>
23309         PR middle-end/69347
23310         * tree-ssa-threadbackwards.c
23311         (fsm_find_control_statement_thread_paths): Do not try to lookup
23312         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
23314 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23316         * doc/lto.texi: Remove text that says only Gold has linker plugin
23317         support.
23319 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
23321         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
23322         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
23323         the DIE accordingly.
23324         (modified_type_die): Add REVERSE parameter and pass it recursively,
23325         as well as to base_type_die.  Adjust presence check accordingly.
23326         (base_type_for_mode): Adjust call to modified_type_die.
23327         (add_type_attribute): Add REVERSE parameter and pass it to
23328         modified_type_die.
23329         (generic_parameter_die): Adjust call to add_type_attribute.
23330         (add_scalar_info): Likewise.
23331         (add_subscript_info): Likewise.
23332         (gen_array_type_die): Likewise.
23333         (gen_descr_array_type_die): Likewise.
23334         (gen_entry_point_die): Likewise.
23335         (gen_enumeration_type_die): Likewise.
23336         (gen_formal_parameter_die): Likewise.
23337         (gen_subprogram_die): Likewise.
23338         (gen_variable_die ): Likewise.
23339         (gen_const_die): Likewise.
23340         (gen_field_die): Likewise.
23341         (gen_pointer_type_die): Likewise.
23342         (gen_reference_type_die): Likewise.
23343         (gen_ptr_to_mbr_type_die): Likewise.
23344         (gen_inheritance_die): Likewise.
23345         (gen_subroutine_type_die): Likewise.
23346         (gen_typedef_die): Likewise.
23347         (force_type_die): Adjust call to modified_type_die.
23349 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
23351         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
23352         flow throughout the file.  Fix broken link to Objective-C 2.0
23353         documentation.
23354         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
23355         errors.
23357 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23359         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
23361 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23363         PR ipa/66223
23364         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
23365         (maybe_record_node): Record cxa_pure_virtual as the only possible
23366         target if there are not ohter candidates.
23367         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
23369 2016-01-19  Richard Biener  <rguenther@suse.de>
23371         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
23372         (get_memory_order): Likewise.
23374 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23376         * tree-vect-stmts.c (vectorizable_store): Check
23377         rhs vectype.
23379 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
23381         PR jit/68446
23382         * gcc.c (driver::decode_argv): Add call to
23383         init_opts_obstack before init_options_struct.
23384         * opts.c (init_opts_obstack): Remove idempotency.
23385         (init_options_struct): Replace call to init_opts_obstack
23386         with a gcc_assert to verify that it has already been called.
23387         * toplev.c (toplev::main): Add call to init_opts_obstack before
23388         calls to init_options_struct.
23389         (toplev::finalize): Move cleanup of opts_obstack next to
23390         cleanup of save_decoded_options, clearing the latter, and
23391         save_decoded_options_count.
23393 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23395         PR target/69135
23396         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
23397         attribute to unconditional.  Remove %? from output template.
23399 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23400             Jiong Wang  <jiong.wang@arm.com>
23402         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
23403         generated from different expand order.
23405 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23407         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23408         Add support for CCMP costing.
23410 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23412         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
23413         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
23414         (fccmpe<mode>): Likewise.
23415         (fcmp): Rename to fcmp and globalize pattern.
23416         (fcmpe): Likewise.
23417         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
23418         (aarch64_gen_ccmp_next): Add FP support.
23420 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23422         * target.def (gen_ccmp_first): Update documentation.
23423         (gen_ccmp_next): Likewise.
23424         * doc/tm.texi (gen_ccmp_first): Update documentation.
23425         (gen_ccmp_next): Likewise.
23426         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
23427         expand_ccmp_expr_1.  Improve comments.
23428         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
23429         (ccmp_ior<mode>): Remove pattern.
23430         (cmp<mode>): Remove expand.
23431         (cmp): Globalize pattern.
23432         (cstorecc4): Use cc_register.
23433         (mov<mode>cc): Remove ccmp_cc_register check.
23434         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
23435         Simplify after removal of CC_DNE/* modes.
23436         (aarch64_ccmp_mode_to_code): Remove.
23437         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
23438         In 'k' case use integer as condition.
23439         (aarch64_nzcv_codes): Remove inverted cases.
23440         (aarch64_code_to_ccmode): Remove.
23441         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
23442         comparison with CC register to be used in folowing CCMP/branch/CSEL.
23443         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
23444         pattern.  Return the comparison with CC register.  Invert conditions
23445         when bitcode is OR.
23446         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
23447         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
23449 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23451         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23452         instrumented_version.
23454 2016-01-19  Richard Biener  <rguenther@suse.de>
23456         PR tree-optimization/69336
23457         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23458         handled components with get_ref_base_and_extent.
23459         (equal_mem_array_ref_p): Adjust.
23461 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23463         PR debug/65779
23464         * shrink-wrap.c: Include valtrack.h.
23465         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
23466         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23467         in between insn and where it will be moved to.  Call
23468         dead_debug_insert_temp.
23469         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23470         first and dead_debug_local_finish at the end.
23471         For uses and defs bitmap, handle all regs in between REGNO and
23472         END_REGNO, not just the first one.
23474 2016-01-19  Richard Biener  <rguenther@suse.de>
23476         PR tree-optimization/69352
23477         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23478         (equal_mem_array_ref_p): Constrain size and max size properly.
23479         Compare the reverse flag.
23481 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23483         * ira.c (ira): Update regstat data if we deleted insns.
23485 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23487         PR rtl-optimization/68955
23488         PR rtl-optimization/64557
23489         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23490         here.  Fix up formatting.
23491         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23493 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23495         PR lto/69133
23496         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23497         assume that the node has body.
23498         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23499         check.
23501 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23503         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23504         thunks.
23506 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23508         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23509         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23511 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23512             Martin Liska  <mliska@suse.cz>
23513             Michael Matz  <matz@suse.de>
23515         * Makefile.in (OBJS): Add new source files.
23516         (GTFILES): Add hsa.c.
23517         * common.opt (disable_hsa): New variable.
23518         (-Whsa): New warning.
23519         * config.in (ENABLE_HSA): New.
23520         * configure.ac: Treat hsa differently from other accelerators.
23521         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23522         $enable_offloading.
23523         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23524         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23525         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23526         --with-hsa-kmt-lib.
23527         * doc/invoke.texi (-Whsa): Document.
23528         (hsa-gen-debug-stores): Likewise.
23529         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23530         to invoke offload compiler for hsa acclerator.
23531         * opts.c (common_handle_option): Determine whether HSA offloading
23532         should be performed.
23533         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23534         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23535         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23536         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23537         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23538         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23539         GF_OMP_FOR_KIND_GRID_LOOP.
23540         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23541         (pp_gimple_stmt_1): Likewise.
23542         * gimple-walk.c (walk_gimple_stmt): Likewise.
23543         * gimple.c (gimple_build_omp_grid_body): New function.
23544         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23545         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23546         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23547         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23548         GF_OMP_TEAMS_GRID_PHONY.
23549         (gimple_statement_omp_single_layout): Updated comments.
23550         (gimple_build_omp_grid_body): New function.
23551         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23552         (gimple_omp_for_grid_phony): New function.
23553         (gimple_omp_for_set_grid_phony): Likewise.
23554         (gimple_omp_parallel_grid_phony): Likewise.
23555         (gimple_omp_parallel_set_grid_phony): Likewise.
23556         (gimple_omp_teams_grid_phony): Likewise.
23557         (gimple_omp_teams_set_grid_phony): Likewise.
23558         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23559         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23560         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23561         (BUILT_IN_GOMP_TARGET): Updated type.
23562         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23563         (adjust_for_condition): New function.
23564         (get_omp_for_step_from_incr): Likewise.
23565         (extract_omp_for_data): Moved parts to adjust_for_condition and
23566         get_omp_for_step_from_incr.
23567         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23568         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23569         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23570         (scan_omp_parallel): Do not create child functions for phony
23571         constructs.
23572         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23573         (scan_omp_1_op): Checking assert we are not remapping to
23574         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23575         (parallel_needs_hsa_kernel_p): New function.
23576         (expand_parallel_call): Register apprpriate parallel child
23577         functions as HSA kernels.
23578         (grid_launch_attributes_trees): New type.
23579         (grid_attr_trees): New variable.
23580         (grid_create_kernel_launch_attr_types): New function.
23581         (grid_insert_store_range_dim): Likewise.
23582         (grid_get_kernel_launch_attributes): Likewise.
23583         (get_target_argument_identifier_1): Likewise.
23584         (get_target_argument_identifier): Likewise.
23585         (get_target_argument_value): Likewise.
23586         (push_target_argument_according_to_value): Likewise.
23587         (get_target_arguments): Likewise.
23588         (expand_omp_target): Call get_target_arguments instead of looking
23589         up for teams and thread limit.
23590         (grid_expand_omp_for_loop): New function.
23591         (grid_arg_decl_map): New type.
23592         (grid_remap_kernel_arg_accesses): New function.
23593         (grid_expand_target_kernel_body): New function.
23594         (expand_omp): Call it.
23595         (lower_omp_for): Do not emit phony constructs.
23596         (lower_omp_taskreg): Do not emit phony constructs but create for them
23597         a temporary variable receiver_decl.
23598         (lower_omp_taskreg): Do not emit phony constructs.
23599         (lower_omp_teams): Likewise.
23600         (lower_omp_grid_body): New function.
23601         (lower_omp_1): Call it.
23602         (grid_reg_assignment_to_local_var_p): New function.
23603         (grid_seq_only_contains_local_assignments): Likewise.
23604         (grid_find_single_omp_among_assignments_1): Likewise.
23605         (grid_find_single_omp_among_assignments): Likewise.
23606         (grid_find_ungridifiable_statement): Likewise.
23607         (grid_target_follows_gridifiable_pattern): Likewise.
23608         (grid_remap_prebody_decls): Likewise.
23609         (grid_copy_leading_local_assignments): Likewise.
23610         (grid_process_kernel_body_copy): Likewise.
23611         (grid_attempt_target_gridification): Likewise.
23612         (grid_gridify_all_targets_stmt): Likewise.
23613         (grid_gridify_all_targets): Likewise.
23614         (execute_lower_omp): Call grid_gridify_all_targets.
23615         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23616         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23617         (tree_omp_clause): Added union field dimension.
23618         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23619         * tree.c (omp_clause_num_ops): Added number of arguments of
23620         OMP_CLAUSE__GRIDDIM_.
23621         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23622         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23623         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23624         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23625         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23626         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23627         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23628         * tree-pass.h (make_pass_gen_hsail): Declare.
23629         (make_pass_ipa_hsa): Likewise.
23630         * ipa-hsa.c: New file.
23631         * lto-section-in.c (lto_section_name): Add hsa section name.
23632         * lto-streamer.h (lto_section_type): Add hsa section.
23633         * timevar.def (TV_IPA_HSA): New.
23634         * hsa-brig-format.h: New file.
23635         * hsa-brig.c: New file.
23636         * hsa-dump.c: Likewise.
23637         * hsa-gen.c: Likewise.
23638         * hsa.c: Likewise.
23639         * hsa.h: Likewise.
23640         * toplev.c (compile_file): Call hsa_output_brig.
23641         * hsa-regalloc.c: New file.
23643 2016-01-18  Jeff Law  <law@redhat.com>
23645         PR tree-optimization/69320
23646         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23647         ranged object, do nothing if the RHS constant is not [0..1].
23648         (optimize_stmt): Comparing a boolean ranged object against a
23649         constant outside [0..1] results in a compile-time constant.
23651         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23652         test.
23654 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23656         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23657         (Option Summary): Update to reflect new section and moved options.
23658         (C++ Dialect Options): Move -fstats to new section.
23659         (Debugging Options): Move all dump, statistics, and other GCC
23660         developer options to new section.  Rewrite section introduction
23661         and re-order remaining options to put the more basic ones first.
23662         (Optimization Options): Move -fira-verbose and -flto-report* to
23663         new section.
23664         (Developer Options): New section incorporating moved options.
23665         * doc/cppopts.texi (-dM): Update cross-reference.
23667 2016-01-18  Richard Henderson  <rth@redhat.com>
23669         PR target/69176
23670         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23671         operands to pseudo only if CSE is expected.  Split long immediate
23672         operands only after reload, and for the stack pointer.
23673         (*add<GPI>3_pluslong): Remove.
23674         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23675         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23676         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23677         (*add<GPI>3 peepholes): New.
23678         (*add<GPI>3 splitters): New.
23679         * config/aarch64/constraints.md (Upl): New.
23680         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23682 2016-01-18  Richard Biener  <rguenther@suse.de>
23684         PR tree-optimization/69297
23685         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23686         stmt at most once.
23687         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23689 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23691         PR middle-end/68542
23692         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23693         of mixind vector and scalar types.
23694         (fold_relational_const): Add handling of vector
23695         comparison with boolean result.
23696         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23697         comparison of vector operands with boolean result for EQ/NE only.
23698         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23699         (verify_gimple_cond): Likewise.
23700         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23701         valid type of VAL.
23703 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23705         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23706         !TARGET_OCTEON.
23708 2016-01-18  Richard Biener  <rguenther@suse.de>
23710         PR middle-end/69308
23711         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23713 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23715         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23717 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23719         * omp-low.c (set_oacc_fn_attrib): Make extern.
23720         * omp-low.h (set_oacc_fn_attrib): Declare.
23721         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23722         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23723         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23724         Add and handle function parameter oacc_kernels_p.
23725         (find_reduc_addr, get_omp_data_i_param): New function.
23726         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23727         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23728         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23729         Calculate dominance info.  Skip loops that are not in a kernels region
23730         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23731         (pass_parallelize_loops::execute): Call parallelize_loops with
23732         oacc_kernels_p argument.
23733         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23734         New member function.
23735         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23736         * passes.def: Add argument to pass_parallelize_loops instantation.
23738 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23740         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23741         pass_parallelize_loops to be run outside the loop pipeline.
23743 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23745         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23746         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23748 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23750         PR target/63679
23751         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23752         using get_ref_base_and_extent.
23753         (equal_mem_array_ref_p): New.
23754         (hashable_expr_equal_p): Add call to previous.
23756 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23758         PR target/63679
23759         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23760         (sra_initialize): Allocate disqualified_constants.
23761         (sra_deinitialize): Free disqualified_constants.
23762         (disqualify_candidate): Update disqualified_constants when appropriate.
23763         (create_access): Scan for constant-pool entries as we go along.
23764         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23765         (maybe_add_sra_candidate): Allow constant-pool entries.
23766         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23767         (initialize_constant_pool_replacements): New.
23768         (sra_modify_assign): Avoid mangling assignments created by previous,
23769         and don't generate writes into constant pool.
23770         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23772 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23774         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23775         andnot instruction.
23776         (scalar_chain::convert_op): Likewise.
23777         * config/i386/i386.md (*andndi3_doubleword): New.
23779 2016-01-18  Richard Biener  <rguenther@suse.de>
23781         PR tree-optimization/69170
23782         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23783         building a vector from scalar results of a pattern stmt.
23785 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23787         * haifa-sched.c (autopref_multipass_init): Work around
23788         -Wmaybe-uninitialized warning.
23790 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23792         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23793         against the constant 0.
23795 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23797         PR tree-optimization/68799
23798         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23799         look up phi candidates in the statement-candidate map.
23800         (phi_add_costs): Likewise.
23801         (record_phi_increments): Likewise.
23802         (phi_incr_cost): Likewise.
23803         (ncd_with_phi): Likewise.
23804         (all_phi_incrs_profitable): Likewise.
23806 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23808         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23809         -Wmaybe-uninitialized warning.
23811 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23813         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23814         (Option Summary): Update to reflect new section and moved options.
23815         (C++ Dialect Options): Move -fvtable-verify and related options.
23816         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23817         and profiling-related options.
23818         (Optimization Options): Move profile generation options and
23819         -fstack-protector and related options.
23820         (Instrumentation Options): New section incorporating moved options.
23821         (Code Generation Options): Move -finstrument-functions and
23822         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23824 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23826         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23828 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23830         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23832 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23834         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23835         that checks whether the table is already empty.  Rename the
23836         original implementation to...
23837         (hash_table::empty_slot): ...this new private function.
23839 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23841         PR diagnostic/68899
23842         * diagnostic-show-locus.c (layout::print_source_line): Move x
23843         offset of line until after call to
23844         get_line_width_without_trailing_whitespace.
23846 2016-01-15  Jeff Law  <law@redhat.com>
23848         PR tree-optimization/69270
23849         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23850         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23851         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23852         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23853         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23854         ssa_name_has_boolean_range and constant_boolean_node.
23856 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23858         PR rtl-optimization/69030
23859         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23860         returning bool.
23861         (spill_pseudos): Delete debug insn for dead pseudo.
23862         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23864 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23866         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23867         New.
23868         (TYPES_UNOPUS): Likewise.
23869         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23870         builtin type, from UNOP to UNOPUS.
23871         (lbtruncuv4sf): Likewise.
23872         (lbtruncuv2df): Likewise.
23873         (lrounduv2sf): Likewise.
23874         (lrounduv4sf): Likewise.
23875         (lrounduv2df): Likewise.
23876         (lroundusf): Likewise.
23877         (lroundusf): Likewise.
23878         (lceiluv2sf): Likewise.
23879         (lceiluv4sf): Likewise.
23880         (lceiluv2df): Likewise.
23881         (lceilusf): Likewise.
23882         (lceiludf): Likewise.
23883         (lflooruv2sf): Likewise.
23884         (lflooruv4sf): Likewise.
23885         (lflooruv2df): Likewise.
23886         (lfloorusf): Likewise.
23887         (lfloorudf): Likewise.
23888         (lfrintnuv2sf): Likewise.
23889         (lfrintnuv4sf): Likewise.
23890         (lfrintnuv2df): Likewise.
23891         (lfrintnusf): Likewise.
23892         (lfrintnudf): Likewise.
23893         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23894         conversion.
23895         (vcvtq_u32_f32): Likewise.
23896         (vcvtq_u64_f64): Likewise.
23897         (vcvta_u32_f32): Likewise.
23898         (vcvtaq_u32_f32): Likewise.
23899         (vcvtaq_u64_f64): Likewise.
23900         (vcvtm_u32_f32): Likewise.
23901         (vcvtmq_u32_f32): Likewise.
23902         (vcvtmq_u64_f64): Likewise.
23903         (vcvtn_u32_f32): Likwise.
23904         (vcvtnq_u32_f32): Likewise.
23905         (vcvtnq_u64_f64): Likewise.
23906         (vcvtp_u32_f32): Likewise.
23907         (vcvtpq_u32_f32): Likewise.
23908         (vcvtpq_u64_f64): Likewise.
23909         (vcvtmd_u64_f64): Likewise.
23910         (vcvtms_u32_f32): Likewise.
23911         (vcvtad_u64_f64): Likewise.
23912         (vcvtas_u32_f32): Likewise.
23913         (vcvtnd_u64_f64): Likewise.
23914         (vcvtns_u32_f32): Likewise.
23915         (vcvtpd_u64_f64): Likewise.
23916         (vcvtps_u32_f32): Likewise.
23918 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23920         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23921         CSEL of zero_extended registers.
23923 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23925         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23926         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23928 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23930         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23931         false when argument string is not found in the attributes table
23932         at all.
23934 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
23936         PR target/68609
23937         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23938         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23939         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23940         precision estimate.
23942 2016-01-15  Richard Biener  <rguenther@suse.de>
23944         PR tree-optimization/66856
23945         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23946         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23947         (vect_create_new_slp_node): Increment stmt reference count.
23948         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23949         an SLP tree before swapping operands.
23950         (vect_build_slp_tree): Likewise.
23951         (destroy_bb_vec_info): Free stmt info after SLP instances.
23952         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23953         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23954         (STMT_VINFO_NUM_SLP_USES): New macro.
23956 2016-01-15  Richard Biener  <rguenther@suse.de>
23958         PR debug/69137
23959         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23960         (add_linkage_name): ... here.
23961         (gen_typedef_die): Use add_linkage_name_raw instead of
23962         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23963         if necessary.
23965 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
23967         * gimplify.c (oacc_default_clause): Decode reference and pointer
23968         types for both kernels and parallel regions.
23970 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23972         PR middle-end/69246
23973         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23975 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23977         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23978         (convert_scalars_to_vector): Likewise.
23980 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
23982         * doc/extend.texi (Type Traits): Fix grammar.
23984 2016-01-15  Martin Jambor  <mjambor@suse.cz>
23986         * tree-inline.c (remap_decl): Use existing dclarations if
23987         remapping a type and prevent_decl_creation_for_types.
23988         (replace_locals_stmt): Do an initial remapping of non-VLA typed
23989         decls first.  Do real remapping with
23990         prevent_decl_creation_for_types set.
23991         * tree-inline.h (copy_body_data): New field
23992         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23993         padding.
23995 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23997         * config/s390/s390.opt (mmvcle): More verbose help text.
23999 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24001         * config/s390/s390.opt: Add period to -mzvector option text.
24003 2016-01-15  Richard Biener  <rguenther@suse.de>
24005         PR tree-optimization/68961
24006         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24007         of invariants in stores again.
24009 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24011         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24013 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24015         * config/i386/i386.c (ix86_expand_branch): Don't split
24016         DI mode xor instruction to SI mode.
24018 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24020         PR ipa/68148
24021         * ipa-icf.c (sem_function::merge): Virtual functions may become
24022         reachable even if they address is not taken and there are no
24023         idrect calls.
24025 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24027         * lto-streamer-out.c (subtract_estimated_size): New function.
24028         (get_symbol_initial_value): Use it.
24030 2016-01-15  Christian Bruel  <christian.bruel@st.com>
24032         PR target/65837
24033         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24034         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24035         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24036         use add_builtin_function_ext_scope instead of add_builtin_function.
24037         (neon_set_p, neon_crypto_set_p): Remove.
24038         (arm_init_builtins): Always call arm_init_neon_builtins and
24039         arm_init_crypto_builtins.
24040         (arm_expand_builtin): Check that builtins are allowed for the arch.
24041         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24042         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24043         arm_init_neon_builtins call.
24045 2016-01-15  Richard Biener  <rguenther@suse.de>
24047         PR tree-optimization/69117
24048         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24049         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24050         of the leader conservatively.
24051         (free_scc_vn): Restore original SSA name infos.
24053 2016-01-14  Jeff Law  <law@redhat.com>
24055         PR tree-optimization/69270
24056         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24057         single bit of precision, verify it's also unsigned.
24058         (record_edge_info): Use constant_boolean_node rather than fold_convert
24059         to convert boolean_true/boolean_false to the right type.
24061 2016-01-14  Richard Henderson  <rth@redhat.com>
24063         PR rtl-opt/69014
24064         * loop-doloop.c (record_reg_sets): New.
24065         (doloop_optimize): Reject the transform if the sequence
24066         clobbers registers live at the end of the loop block.
24067         (doloop_optimize_loops): Enable df_live if needed.
24069 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24071         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24072         * config/rs6000/rs6000.c: Likewise.
24073         * config/rs6000/rs6000.h: Likewise.
24074         * config/rs6000/rs6000.md: Likewise.
24075         * doc/extend.texi: Likewsie.
24077 2016-01-14  Jeff Law  <law@redhat.com>
24079         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24080         typo.
24082 2016-01-14  Richard Henderson  <rth@redhat.com>
24084         PR c/69272
24085         PR tree-opt/68964
24086         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
24087         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
24088         instead of builtin_decl_declared_p to test for declaration.
24090 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
24092         * doc/loop.texi (Loop Analysis and Representation): Document
24093         loop_depth function.
24095 2016-01-14  Tom de Vries  <tom@codesourcery.com>
24097         PR tree-optimization/68773
24098         * omp-low.c (expand_omp_target): Don't set force_output.
24099         * varpool.c (varpool_node::get_create): Same.
24100         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
24101         offload_funcs with force_output.
24103 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24105         PR debug/69244
24106         * lra-eliminations.c (move_plus_up): Don't change anything if either
24107         the outer or inner subreg mode is not MODE_INT.
24108         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
24109         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
24111 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24113         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
24114         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
24115         reduc_uplus_@var{m}): Remove.
24116         * expr.c (expand_expr_real_2): Remove expansion path for
24117         reduc_[us](min|max|plus) optabs.
24118         * optabs-tree.c (scalar_reduc_to_vector): Remove.
24119         * optabs-tree.h (scalar_reduc_to_vector): Remove.
24120         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
24121         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
24122         * tree-vect-loop.c (vectorizable_reduction): Remove test for
24123         reduc_[us](min|max|plus) optabs.
24125 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24127         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
24128         (reduc_plus_scal_v2sf): New.
24129         (reduc_smax_v2sf): Rename to...
24130         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
24131         (reduc_smin_v2sf): Rename to...
24132         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
24134 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
24136         * alias.c (compare_base_symbol_refs): New function.
24137         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
24138         it.
24140 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24142         PR middle-end/68146
24143         PR tree-optimization/69155
24144         * tree-complex.c: Include cfganal.h.
24145         (phis_to_revisit): New variable.
24146         (extract_component): Add phiarg_p argument.  Assert that returned
24147         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
24148         (update_phi_components): Partly rewrite to use loop over real/imag
24149         components instead of code duplication.  If extract_component returns
24150         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
24151         create_tmp_reg into the PHI node instead, and mention the phi triplet
24152         in phis_to_revisit.
24153         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
24154         in phis_to_revisit at the end.
24156 2016-01-14  Richard Biener  <rguenther@suse.de>
24158         PR tree-optimization/68060
24159         * tree-vect-loop.c (vect_is_simple_reduction): Check the
24160         outer loop reduction is only used in the inner loop before
24161         detecting a double reduction.
24163 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24165         PR target/68269
24166         * combine.c (expand_field_assignment): Punt if compute_mode is
24167         unsupported scalar mode.
24169 2016-01-14  Richard Biener  <rguenther@suse.de>
24171         PR tree-optimization/66856
24172         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24173         SLP node only if it built successfully.
24174         (vect_analyze_slp_instance): Adjust.
24176 2016-01-14  Jeff Law  <law@redhat.com>
24178         PR tree-optimization/69270
24179         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24180         (record_edge_info): Use it.  Convert boolean_{true,false}_node
24181         to the type of op0.
24183 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
24185         PR ipa/66487
24186         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24187         use block_ultimate_origin
24188         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24190 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24192         * doc/invoke.texi (Submodel Options): Rename section to
24193         "Machine-Dependent Options" to better reflect its content.
24194         Rewrite introductory text to remove archaic CPU names.
24195         Update references.
24197 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24199         * doc/invoke.texi (Code Gen Options): Move section up in file,
24200         before target-specific options.  Update menu and option summary
24201         to reflect the new section ordering.
24203 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24205         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24206         (C++ Dialect Options): Add cross-reference to -std option.
24207         * doc/standards.texi (C++ Language): Document C++14 support.
24209 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24211         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24212         for pack/unpack functions for __ibm128.
24213         (PACK_IF): Likewise.
24214         (UNPACK_IF): Likewise.
24216         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24217         support for __ibm128 pack/unpack functions.
24218         (rs6000_invalid_builtin): Likewise.
24219         (rs6000_init_builtins): Likewise.
24220         (rs6000_opt_masks): Likewise.
24222         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24223         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24224         functions
24225         (RS6000_BTM_COMMON): Likewise.
24227         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
24228         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
24229         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
24230         128-bit floating point.  Add support for the double values to be
24231         in Altivec registers for TF/IF packing and unpacking, but restrict
24232         TD packing sub-fields to be FPR registers.  Don't allow overlapped
24233         register support for packing.  Allow pack inputs to be memory
24234         locations.  Don't build generator functions for unpack<mode>_dm
24235         and unpack<mode>_nodm.
24236         (unpack<mode>_dm): Likewise.
24237         (unpack<mode>_nodm): Likewise.
24238         (pack<mode>): Likewise.
24240         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
24241         built-in functions to pack/unpack explicit __ibm128 values.
24242         (__builtin_unpack_ibm128): Likewise.
24244         * doc/extend.texi (PowerPC Built-in Functions): Document
24245         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
24247 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
24249         PR c/66208
24250         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
24251         Add new arg loc and pass it down as context.
24252         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
24253         to the location to use for the warning.
24254         (check_function_arguments): New arg loc.  All callers changed.  Pass
24255         it to check_function_nonnull.
24256         * c-common.h (check_function_arguments): Adjust declaration.
24258 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
24260         PR tree-optimization/69156
24261         * gimple.c (validate_type): Removed.
24262         (gimple_builtin_call_types_compatible_p): Use
24263         useless_type_conversion_p instead of validate_type.
24264         * value-prof.c (gimple_stringop_fixed_value): Fold
24265         icall_size to correct type.
24267 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24269         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
24270         effects.
24272 2016-01-13  Richard Henderson  <rth@redhat.com>
24274         PR tree-opt/68964
24275         * target.def (builtin_tm_load, builtin_tm_store): Remove.
24276         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
24277         (ix86_builtin_tm_store): Remove.
24278         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24279         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24280         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24281         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24282         * doc/tm.texi: Rebuild.
24284         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
24285         (BUILT_IN_TM_MEMCPY_RTWN): New.
24286         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
24287         fallback from vector to integer helpers.
24288         (build_tm_load): Handle vector types directly, instead of
24289         via target hook.
24290         (build_tm_store): Likewise.
24291         (expand_assign_tm): Prepare for register types not handled by
24292         the above.  Copy them to memory and use memcpy.
24293         * tree.c (tm_define_builtin): New.
24294         (find_tm_vector_type): New.
24295         (build_tm_vector_builtins): New.
24296         (build_common_builtin_nodes): Call it.
24298 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
24300         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
24301         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
24303 2016-01-13  Tom de Vries  <tom@codesourcery.com>
24305         PR tree-optimization/69169
24306         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
24307         handled_struct_type param.
24308         (create_variable_info_for, intra_create_variable_infos): Call
24309         create_variable_info_for_1 with extra arg.
24311 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
24313         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
24314         and "armv8.1-a+crc" entries.
24316 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
24318         PR target/69228
24319         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
24320         Change first operand predicate from register_or_constm1_operand
24321         to register_operand.
24322         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
24323         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
24324         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
24325         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
24326         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
24327         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
24328         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
24329         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
24330         comparison with constm1_rtx from vec_prefetch_gen part.
24332 2016-01-13  Richard Biener  <rguenther@suse.de>
24334         PR tree-optimization/69013
24335         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
24336         Exchange assert for a test.
24338 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24340         PR target/69247
24341         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
24343 2016-01-13  Richard Biener  <rguenther@suse.de>
24345         PR tree-optimization/69242
24346         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
24347         assert with a check.
24349 2016-01-13  Richard Biener  <rguenther@suse.de>
24351         PR tree-optimization/69186
24352         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24353         Properly guard vect_update_misalignment_for_peel call.
24355 2016-01-12  Jeff Law  <law@redhat.com>
24357         PR tree-optimization/pr67755
24358         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
24359         "need_profile_correction".
24360         (thread_block_1): Initialize new field to false by default.  If we
24361         have multiple thread paths through a common joiner to different
24362         final targets, then set new field to true.
24363         (compute_path_counts): Only do count adjustment when it's really
24364         needed.
24366 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24368         * doc/invoke.texi (Spec Files): Move section down in file, past
24369         all command-line option descriptions.
24371 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24373         PR middle-end/54809
24374         * doc/gty.texi: Remove documentation of mark_hook.
24375         * gengtype.c (struct write_types_data): Remove code to support
24376         mark_hook attribute.
24377         (walk_type): Likewise.
24378         (write_func_for_structure): Likewise.
24380 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24382         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
24383         Directory Options, and -specs= to Overall Options.
24384         (Overall Options): Adjust similarly.  Reorder to group related
24385         options together.  Make -specs= cross-reference the spec file details.
24386         (Directory Options): Adjust similarly.
24388 2016-01-12  Jeff Law  <law@redhat.com>
24390         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
24392 2016-01-12  Olivier Hainque  <hainque@adacore.com>
24394         * gcc.c (spec_undefvar_allowed): New global.
24395         (process_command): Set to true when running for --version or --help,
24396         alone or together.
24397         (getenv_spec_function): When the variable is not defined, use the
24398         variable name as the variable value if we're allowed not to issue
24399         a fatal error.
24401 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
24403         PR tree-optimization/68911
24404         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
24405         information computed for expression "init + nit * step".
24407 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24409         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
24410         about name of GCC executable.  Remove deleted node from menu.
24411         (Directory Options) <-B>: Remove cross-reference to deleted node.
24412         (Target Options): Delete section.
24414 2016-01-12  Christian Bruel  <christian.bruel@st.com>
24416         PR target/69180
24417         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
24418         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
24420 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
24422         PR target/69198
24423         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
24424         aligned_mem is properly set for AVX512-VL floating point masked
24425         stores.
24427         PR target/69175
24428         * ifcvt.c (cond_exec_process_if_block): When removing the last
24429         insn from then_bb, remove also any possible barriers that follow it.
24431 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24433         PR target/68456
24434         PR target/69226
24435         * config/i386/iamcu.h (SIZE_TYPE): New macro.
24436         (PTRDIFF_TYPE): Likewise.
24437         (WCHAR_TYPE): Likewise.
24438         (WCHAR_TYPE_SIZE): Likewise.
24439         (STDINT_LONG32): Likewise.
24441 2016-01-12  Richard Biener  <rguenther@suse.de>
24443         PR tree-optimization/69053
24444         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
24445         convert initial value for cond reductions.
24447 2016-01-12  Richard Biener  <rguenther@suse.de>
24449         PR tree-optimization/69007
24450         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
24451         widen_sum after dot_prod and sad.
24453 2016-01-12  Richard Biener  <rguenther@suse.de>
24455         PR tree-optimization/69168
24456         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24457         pattern stmt SLP type.
24458         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24459         end up unused so cope with that case.
24461 2016-01-12  Richard Biener  <rguenther@suse.de>
24463         PR tree-optimization/69157
24464         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24465         stmts def type only during analyze phase.
24466         (vectorizable_call): Likewise.
24467         (vectorizable_simd_clone_call): Likewise.
24468         (vectorizable_conversion): Likewise.
24469         (vectorizable_assignment): Likewise.
24470         (vectorizable_shift): Likewise.
24471         (vectorizable_operation): Likewise.
24472         (vectorizable_store): Likewise.
24473         (vectorizable_load): Likewise.
24475 2016-01-12  Richard Biener  <rguenther@suse.de>
24477         PR tree-optimization/69174
24478         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24479         space.
24480         (vectorizable_load): Properly compute the number of loads needed
24481         for permuted strided SLP loads and do not spuriously assign
24482         to SLP_TREE_VEC_STMTS.
24484 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24486         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24487         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24488         (MD_EXEC_PREFIX): Remove.
24489         (MD_STARTFILE_PREFIX) Removee.
24490         (FILE_NAME_ABSOLUTE_P): Remove.
24491         (CPP_SPEC): Do not read macros from sys/version.h.
24492         (LINK_COMMAND_SPEC): Remove.
24493         (LOCAL_INCLUDE_DIR): Remove.
24494         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24495         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24496         (POST_LINK_SPEC): Define to invoke stubify after linker
24497         (LIBSTDCXX): Remove define
24498         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24499         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24500         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24501         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24502         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24503         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24504         (i386_djgpp_asm_named_section): Add propotype of new procedure
24506         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24507         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24508         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24509         in config/i386/djgpp.h).
24510         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24511         STANDARD_STARTFILE_PREFIX_1.
24512         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24513         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24514         installation errors.
24515         (MAX_OFILE_ALIGNMENT): Define to 128.
24516         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24518         * config/i386/djgpp.c: New file. Add implementation of
24519         i386_djgpp_asm_named_section.
24521         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24523         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24524         Add rule for building djgpp.o.
24526 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24528         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24529         (rtx_is_swappable_p): Reductions are swappable.
24530         (insn_is_swappable_p): V2DF reductions are swappable.
24532 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24534         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24535         reloads for other unsupported memory operands.
24537 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24538             Jim Wilson  <jim.wilson@linaro.org>
24540         PR target/69194
24541         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24542         copy_to_mode_reg instead of force_reg.
24544 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24546         PR target/69225
24547         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24548         TARGET_80387 is true.
24550 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24552         PR target/69071
24553         * lra-eliminations.c (move_plus_up): Only move plus up
24554         if subreg of the constant can be simplified into constant
24555         and use the simplified subreg of the constant instead of
24556         the original constant.
24558         * fold-const.c (fold_convertible_p): Don't return true
24559         for conversion of VECTOR_TYPE to same sized integral type.
24560         (fold_convert_loc): Fix up formatting.  Fold conversion of
24561         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24562         instead of NOP_EXPR.
24564         PR tree-optimization/69214
24565         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24566         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24567         Formatting fix.
24569         PR tree-optimization/69207
24570         * tree-vect-slp.c (vect_get_constant_vectors): For
24571         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24572         fold_convertible_p to vector_type's element type, and always
24573         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24575 2016-01-11  Richard Biener  <rguenther@suse.de>
24577         PR tree-optimization/69173
24578         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24579         fixup the cycle if all stmts are in a pattern.
24581 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24583         PR middle-end/68999
24584         * alias.c (base_alias_check): Move check for addresses with
24585         alignment ANDs before the call for compare_base_decls.
24586         (memrefs_conflict_p): Return -1 for different decls
24587         that went through alignment adjustments.
24589 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24591         PR rtl-optimization/68796
24592         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24593         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24594         and QImode comparisons against zero with CC_NZmode.
24595         * config/aarch64/iterators.md (short_mask): New mode_attr.
24597 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24599         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24600         (<avx512>_store<mode>_mask): Likewise.
24602 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24603             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24605         PR rtl-optimization/68841
24606         * ifcvt.c (struct noce_if_info): Add orig_x field.
24607         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24608         Don't record conflicts on to_rename if it's present.
24609         Allow memory destinations in sets.
24610         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24611         blocks, passing orig_x to the checks.
24612         (noce_process_if_block): Set if_info->orig_x appropriately.
24614 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24616         PR tree-optimization/69069
24617         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24619 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24621         PR rtl-optimization/68920
24622         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24623         of conditional moves for  RTL if-conversion to 1 for
24624         TARGET_ONE_IF_CONV_INSN.
24625         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24626         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24627         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24628         parameter to restirct number of conditional moves for
24629         RTL if-conversion.
24630         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24631         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24632         conditionl moves.
24634 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24636         PR bootstrap/69123
24637         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24638         onepart vars.  Fix typo in comment.  Fix reversed condition in
24639         unshare test.
24640         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24642         PR bootstrap/69123
24643         * var-tracking.c (dump_onepart_variable_differences): New.
24644         (dataflow_set_different): If a detailed dump is requested,
24645         delay early returns and dump differences between onepart
24646         variables present before and after, and added variables.
24648 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24650         PR target/69010
24651         * expr.c (expand_expr_real_1): For boolean vector constants
24652         with a scalar mode use const_scalar_mask_from_tree.
24653         (const_scalar_mask_from_tree): New.
24654         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24655         assigned to a mask type to handle constants.
24657 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24659         PR ipa/69044
24660         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24661         useless parameters if we cannot change function signature.
24663 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24665         PR ipa/66616
24666         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24667         flag.
24669 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24671         PR tree-optimization/69109
24672         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24673         latch with phi.
24675 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24677         PR tree-optimization/69108
24678         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24679         res is not used in a phi.
24681 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24683         PR 67425
24684         * common.opt (frandom-seed): Fix parameter name.
24685         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24687 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24689         PR tree-optimization/69058
24690         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24691         not supported.
24693 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24695         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24696         (mcode-density): Likewise.
24698 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24700         PR tree-optimization/69062
24701         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24702         (parallelize_loops): Don't paralelize loop that has phi with address
24703         arg.
24705 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24707         PR tree-optimization/69039
24708         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24709         phi for reduction.
24711 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24713         PR middle-end/68743
24714         * match.pd: Require target has function_c99_misc before doing
24715         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24717 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24719         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24720         use GMPINC.
24721         * configure: Regenerate.
24723 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24725         PR middle-end/50865
24726         PR tree-optimization/69097
24727         * fold-const.h (expr_not_equal_to): New prototype.
24728         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24729         (expr_not_equal_to): New function.
24730         * match.pd (X % -Y is the same as X % Y): Don't optimize
24731         unless X is known not to be equal to minimum or Y is known
24732         not to be equal to -1.
24733         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24734         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24735         (simplify_stmt_using_ranges): Adjust caller.
24736         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24737         substitute_and_fold.
24739 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24741         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24742         w/o DECL_NAME.
24744 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24746         PR tree-optimization/69167
24747         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24748         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24749         ops[0] comparison.
24750         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24752 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24753             Richard Biener  <rguenther@suse.de>
24755         PR tree-optimization/68707
24756         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24757         instances that can be handled via vect_load_lanes.
24759 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24761         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24762         if we can't determine address equivalence.
24763         * alias.c (compare_base_decl): Update for changed return value of
24764         symtab_node::equal_address_to.
24766 2016-01-08  Jason Merrill  <jason@redhat.com>
24768         PR c++/68983
24769         PR c++/67557
24770         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24771         * expr.c (store_field): Not here.
24772         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24773         call with TREE_ADDRESSABLE type.
24774         * tree-cfg.c (verify_gimple_call): Adjust.
24776 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24778         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24779         libc_internal.
24781 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24783         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24784         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24785         (reduc_smin_v2sf): Rename to...
24786         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24787         (reduc_splus_v2sf): Rename to...
24788         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24790 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24792         PR tree-optimization/69162
24793         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24794         valist argument in another argument.
24795         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24796         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24797         to determine the va_list type, build a MEM_REF instead of
24798         build_fold_indirect_ref.
24800         PR tree-optimization/69172
24801         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24802         gimple_build.
24804 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24806         PR tree-optimization/67781
24807         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24808         and cmpnop in two steps: first the ones not accessed in original
24809         gimple expression in a endian independent way and then the ones not
24810         accessed in the final result in an endian-specific way.
24812 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24814         PR tree-optimization/69083
24815         * tree-vect-slp.c (vect_get_constant_vectors): For
24816         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24817         element type.  If op is fold_convertible_p to vector_type's element
24818         type, use NOP_EXPR instead of VCE.
24820 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24822         PR rtl-optimization/67778
24823         PR rtl-optimization/68634
24824         PR rtl-optimization/68909
24825         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24826         block from the stack until done with it.  Remove a superfluous
24827         bitmap set.  Remove a superfluous bitmap test.
24829 2016-01-07  Martin Sebor  <msebor@redhat.com>
24831         PR c/68966
24832         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24833         constraint on the type of arguments.
24835 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24837         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24838         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24839         unaligned_access on the gcc_options set.
24840         * config/arm/arm.c (arm_option_override_internal): Use
24841         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24843 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24845         PR target/69140
24846         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24847         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24849 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24851         Revert
24852         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24854         PR target/69140
24855         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24856         depending on frame_pointer_needed before remaining integer and SSE
24857         registers are saved.
24859 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24861         PR 1078
24862         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24864 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24866         PR target/69171
24867         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24868         Use the "xBm" constraint.
24869         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24870         Likewise.
24871         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24872         (sse_cvtsi2ssq<round_name>): Likewise.
24873         (sse_cvtss2si<round_name>): Likewise.
24874         (sse_cvtss2siq<round_name>): Likewise.
24875         (sse2_cvtsi2sdq<round_name>): Likewise.
24876         (sse2_cvtsd2si<round_name>): Likewise.
24877         (sse2_cvtsd2siq<round_name>): Likewise.
24878         * config/i386/subst.md (round_nimm_scalar_predicate): New
24879         predicate.
24881 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24883         PR middle-end/67639
24884         * varasm.c (make_decl_rtl): Mark invalid register vars as
24885         DECL_EXTERNAL.
24887         PR rtl-optimization/66206
24888         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24889         All callers changed.
24891 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24893         PR tree-optimization/69141
24894         * tree-ssa-pre.c: Include langhooks.h.
24895         (eliminate_dom_walker::before_dom_children): Use
24896         lang_hooks.decl_printable_name instead of
24897         cgraph_node::get ()->name ().
24899         PR middle-end/68960
24900         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24901         it and DECL_ALIGN too.
24903 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
24905         * config/mips/mips-ftypes.def: Sort to lexicographical order.
24907 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24909         PR target/69140
24910         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24911         depending on frame_pointer_needed before remaining integer and SSE
24912         registers are saved.
24914 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24916         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24917         mode iterator with VSX_M2.
24918         (*p9_vecstore_<mode>): Likewise.
24919         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24920         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24921         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24922         (define_split for VSX_LE128 stores): Likewise.
24923         (define_peephole2 for TImode LE swaps): Likewise.
24924         (define_split for VSX_LE128 post-reload stores): Likewise.
24926 2016-01-06  Marek Polacek  <polacek@redhat.com>
24928         PR sanitizer/69099
24929         * convert.c (convert_to_integer_1): Adjust call to
24930         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
24931         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
24932         EXPR instead of ARG.
24933         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24935 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24937         PR 1078
24938         * doc/extend.texi (RL78 Variable Attributes): New section.
24940 2016-01-05  Marek Polacek  <polacek@redhat.com>
24942         PR c/69104
24943         * builtins.c (get_memmodel): Use expansion point location rather than
24944         the input location.  Call warning_at rather than warning.
24945         (expand_builtin_atomic_compare_exchange): Likewise.
24946         (expand_builtin_atomic_load): Likewise.
24947         (expand_builtin_atomic_store): Likewise.
24948         (expand_builtin_atomic_clear): Likewise.
24950 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24952         PR target/68991
24953         * config/i386/i386.c (ix86_expand_vector_logical_operator):
24954         Replace nonimmediate_operand with vector_operand.
24955         * config/i386/predicates.md (vector_operand): New predicate.
24956         (general_vector_operand): Replace nonimmediate_operand with
24957         vector_operand.
24958         * config/i386/sse.md: Replace nonimmediate_operand with
24959         vector_operand and m constraint with Bm constraint on SSE
24960         patterns with 16-byte memory operand.
24961         * config/i386/subst.md (round_nimm_predicate): Replace
24962         nonimmediate_operand with vector_operand.
24963         (round_saeonly_nimm_predicate): Likewise.
24964         (round_saeonly_nimm_scalar_predicate): New.
24966 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24968         PR target/68991
24969         * config/i386/constraints.md (Bm): New constraint.
24970         * config/i386/predicates.md (vector_memory_operand): New
24971         predicate.
24972         * config/i386/sse.md: Replace xm with xBm in plusminus and
24973         any_logic patterns.
24975 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24977         PR 1078
24978         * doc/extend.texi (V850 Function Attributes): New section.
24979         (V850 Variable Attributes): New section.
24981 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24983         PR 1078
24984         * doc/extend.texi (MicroBlaze Function Attributes): Document
24985         interrupt_handler and fast_interrupt attributes.
24987 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
24989         PR other/60465
24990         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24991         for local symbolic operands.
24992         * config/ia64/predicates.md (local_symbolic_operand64): New
24993         predicate.
24995 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24997         PR rtl-optimization/68651
24998         * combine.c (combine_simplify_rtx): Canonicalize x + x into
24999         x << 1.
25001 2016-01-05  Nathan Sidwell  <nathan@acm.org>
25003         * alias.c (compare_base_decls): Use symtab_node::get.
25005 2016-01-05  Nick Clifton  <nickc@redhat.com>
25007         PR target/68770
25008         * ira-costs.c (copy_cost): Initialise the t_icode field of the
25009         secondary_reload_info structure.
25011         PR target/66655
25012         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25013         decls if weak support is available.
25015 2016-01-04  Martin Sebor  <msebor@redhat.com>
25017         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25019 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
25021         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25022         OPTION_MASK_P9_DFORM.
25024         * config/rs6000/constraints.md (wo constraint): New constraint for
25025         ISA 3.0 (power9).
25027         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25028         for wo constraint.
25029         (rs6000_init_hard_regno_mode_ok): Likewise.
25031         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25032         wo constraint.
25034         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25035         expanders not to have constraints.  Add support for ISA 3.0 xxperm
25036         instruction.  Add support for fusing xxlor with xxperm.
25037         (altivec_vperm_<mode>_internal): Likewise.
25038         (altivec_vperm_v8hiv16qi): Likewise.
25039         (altivec_vperm_<mode>v16q): Likewise.
25040         (altivec_vperm_<mode>_uns): Likewise.
25041         (vperm_v8hiv4si): Likewise.
25042         (vperm_v16qiv8hi): Likewise.
25044         * doc/md.texi (RS/6000 constraints): Document wo constraint.
25046 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
25048         Update copyright years.
25050         * gcc.c (process_command): Update copyright notice dates.
25051         * gcov-dump.c (print_version): Ditto.
25052         * gcov.c (print_version): Ditto.
25053         * gcov-tool.c (print_version): Ditto.
25054         * gengtype.c (create_file): Ditto.
25055         * doc/cpp.texi: Bump @copying's copyright year.
25056         * doc/cppinternals.texi: Ditto.
25057         * doc/gcc.texi: Ditto.
25058         * doc/gccint.texi: Ditto.
25059         * doc/gcov.texi: Ditto.
25060         * doc/install.texi: Ditto.
25061         * doc/invoke.texi: Ditto.
25063 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25065         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25066         modes larger than TImode as TImode if NEON is not enabled.
25068 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25070         PR target/69100
25071         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25072         mode for %f0-%f31 only if TARGET_FPU.
25074 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25076         PR target/69072
25077         * config/sparc/sparc.c (scan_record_type): Take into account subfields
25078         to compute the PACKED_P predicate.
25079         (function_arg_record_value): Minor tweaks.
25081 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25083         * doc/install.texi (--with-multilib-list): Describe the meaning of the
25084         option for arm*-*-* targets.
25086 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25088         * doc/extend.texi (Common Function Attributes): Move docs for
25089         MSP430-specific attributes to....
25090         (MSP430 Function Attributes): ...here.  Delete the redundant
25091         entries and copy-edit the remaining text.
25092         (MSP430 Variable Attributes): Use uniform format for index
25093         entries and add a cross-reference to the corresponding function
25094         attribute docs.
25096 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
25098         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
25099         -finite-math typo.
25100         (x86 Options): Likewise.
25102 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25104         PR 1078
25106         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
25107         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
25108         to corresponding attribute.
25110 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25112         * doc/extend.texi (Common Function Attributes) <noplt>: Move
25113         to correct alphabetization of table.  Copy-edit and correct
25114         markup.
25115         <stack_protect>: Likewise.
25116         <target_clones>: Likewise.
25117         <simd>: Likewise.
25118         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
25119         Correct punctuation.
25120         (Code Gen Options) <-fno-plt>: Copy-edit.
25122 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25124         PR target/68917
25125         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
25126         SI values.  Explicitly convert SI to DI and vice-versa.
25128 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
25130         PR tree-optimization/69070
25131         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
25132         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
25134         PR sanitizer/69055
25135         * ubsan.c (ubsan_instrument_float_cast): Call
25136         initialize_sanitizer_builtins.
25138         PR target/69015
25139         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
25141 Copyright (C) 2016 Free Software Foundation, Inc.
25143 Copying and distribution of this file, with or without modification,
25144 are permitted in any medium without royalty provided the copyright
25145 notice and this notice are preserved.