2016-10-07 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / gcc / ChangeLog
bloba7d6689566db5d56740e1aba20a3b8d2fa5d985d
1 2016-10-07  Andrew Pinski  <apinski@cavium.com>
3         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
4         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
5         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR): Likewise.
6         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION): Likewise.
7         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION): Likewise.
8         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9         (AARCH64_ARCH): Likewise.
10         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION): Likewise.
11         (AARCH64_CORE): Likewise.
12         (AARCH64_ARCH): Likewise.
13         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
14         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
15         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
16         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
17         (AARCH64_ARCH): Likewise.
18         (AARCH64_CORE): Likewise.
19         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
20         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
21         (AARCH64_CORE): Likewise.
22         (AARCH64_ARCH): Likewise.
24 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
27         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
28         floating point type infrastructre, and -mfloat128 that enables the
29         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
30         if -mfloat128-type.  Define __ibm128 to be long double by default.
31         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
32         the IEEE 128-bit floating point type infrastructure should
33         automatically be enabled.
34         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
35         instead of -mfloat128 to enable KFmode.
36         (rs6000_option_override_internal): Split the option -mfloat128
37         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
38         systems, automatically set -mfloat128-type, but don't enable it on
39         other operating systems.  Move setting the long double size and
40         IEEE quad support before the IEEE 128-bit floating point changes.
41         (rs6000_init_builtins): Do not create a unique type for __ibm128
42         if long double is IBM extended double, instead rely on __ibm128
43         being defined as 'long double'.  If -mfloat128-type and not
44         -mfloat128, create the KFmode type with an undocumented __ieee128
45         keyword.
46         (rs6000_init_libfuncs): Use -mfloat128-type instead of
47         -mfloat128 for tests about the types, but keep tests for
48         -mfloat128 to enable the keyword support.
49         (rs6000_complex_function_value): Likewise.
50         (rs6000_scalar_mode_supported_p): Likewise.
51         (rs6000_floatn_mode): Likewise.
52         (rs6000_c_mode_for_suffix): Likewise.
53         (rs6000_opt_masks): Add -mfloat128-type.
54         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
55         -mfloat128-type being split from -mfloat128.  Add
56         -mfloat128-hardware, which was missing.
57         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
58         -mfloat128 and -mfloat128-type:
59         (-mfloat128-type): Likewise.
60         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
61         that 64-bit Linux systems with enable -mfloat128-type by default
62         on VSX systems.
63         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
64         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
65         -mfloat128-type instead of -mfloat128.
66         (FLOAT128_2REG_P): Likewise.
67         (MASK_FLOAT128_TYPE): Likewise.
68         (ALTIVEC_ARG_MAX_RETURN): Likewise.
69         (RS6000_BTM_FLOAT128): Likewise.
70         (TARGET_FLOAT128): Poison old identifiers.
71         (OPTION_MASK_FLOAT128): Likewise.
72         (MASK_FLOAT128): Likewise.
73         * config/rs6000/rs6000.md (FP): Likewise.
74         (FLOAT128): Likewise.
75         (fix_trunc<mode>di2): Likewise.
76         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
77         (floatdi<mode>2): Likewise.
78         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
79         (neg<mode>2, FLOAT128 iterator): Likewise.
80         (abs<mode>2, FLOAT128 iterator): Likewise.
81         (ieee_128bit_negative_zero): Likewise.
82         (ieee_128bit_vsx_neg<mode>2): Likewise.
83         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
84         (ieee_128bit_vsx_abs<mode>2): Likewise.
85         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
86         (ieee_128bit_vsx_nabs<mode>2): Likewise.
87         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
88         (extendiftf2): Likewise.
89         (extendifkf2): Likewise.
90         (extendtfkf2): Likewise.
91         (trunciftf2): Likewise.
92         (truncifkf2): Likewise.
93         (trunckftf2): Likewise.
94         (trunctfif2): Likewise.
95         (extendkftf2): Likewise.
96         (trunctfkf2): Likewise.
98 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
100         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
101         before merging in bytes to pass down to real_from_target.
103 2016-10-07  Richard Biener  <rguenther@suse.de>
105         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
106         required hack.
107         (substitute_and_fold_dom_walker::before_dom_children):
108         Substitute and fold before pass specific folding to avoid
109         feeding that with SSA names that will be later released.
110         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
111         introduced by folding and visited by evaluate_stmt called during
112         ccp_fold_stmt.
113         (likely_value): Likewise.
114         (evaluate_stmt): Likewise.
115         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
116         (simplify_div_or_mod_using_ranges): Likewise.
117         (simplify_min_or_max_using_ranges): Likewise.
118         (simplify_abs_using_ranges): Likewise.
119         (simplify_conversion_using_ranges): Likewise.
120         (simplify_float_conversion_using_ranges): Likewise.
121         (simplify_stmt_using_ranges): Likewise.
123 2016-10-07  Marek Polacek  <polacek@redhat.com>
125         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
126         FALLTHROUGH_LABEL_P here...
127         (warn_implicit_fallthrough_r): ...not here.
129 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
131         PR tree-optimization/77880
132         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
133         necessary.
135 2016-10-07  Marek Polacek  <polacek@redhat.com>
137         PR c++/77803
138         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
140 2016-10-07  Richard Biener  <rguenther@suse.de>
142         * bitmap.h: Document constraints on bitmap modification while
143         iterating over it.
145 2016-10-07  Richard Biener  <rguenther@suse.de>
147         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
148         * bitmap.h (bmp_iter_set): When advancing to the next element
149         check that we didn't remove the current one.
150         (bmp_iter_and): Likewise.
151         (bmp_iter_and_compl): Likewise.
152         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
153         we currently iterate on but keep a one-level queue.
154         * sched-deps.c (remove_from_deps): Do not clear current bit
155         but keep a one-level queue.
157 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
159         PR tree-optimization/77664
160         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
161         for the other ranges.
162         (optimize_range_tests_diff): Fix up formatting.
163         (optimize_range_tests_var_bound): New function.
164         (optimize_range_tests): Use it.
166 2016-10-07  Martin Liska  <mliska@suse.cz>
168         * coverage.c (build_gcov_exit_decl): Fix priority what
169         should be really 99.
171 2016-10-07  Richard Biener  <rguenther@suse.de>
173         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
174         vars in gimple_bind_vars but not in BLOCK_VARS.
176 2016-10-07  Richard Biener  <rguenther@suse.de>
178         PR tree-optimization/77879
179         * tree-ssa-structalias.c (handle_const_call): Properly handle
180         NRV return slots.
181         (handle_pure_call): Likewise.
183 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
185         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
186         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
187         possible overflow.
189 2016-10-06  Andrew Pinski  <apinski@cavium.com>
191         * config/aarch64/aarch64-cores.def: Add a comment before each
192         set of cores.
194 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
196         PR tree-optimization/77862
197         * tree-vrp.c (add_equivalence): Use get_value_range so that
198         num_vr_values is checked before accessing vr_values.
200 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
202         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
203           POINTER_TYPE_P.
205 2016-10-05  Jeff Law  <law@redhat.com>
207         PR tree-optimization/71661
208         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
209         removal of a forwarder exposes a new natural loop.
211 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
213         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
214         Introduce ssesuffix variable.
215         (<mask_codefor><code><mode>3<mask_name>): Ditto.
216         (*<code><mode>3): Ditto.
218 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
220         * postreload.c (reload_cse_simplify): Skip also USE when detecting
221         noop move.
223 2016-10-06  Richard Biener  <rguenther@suse.de>
225         PR tree-optimization/77855
226         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
227         instead of removing the current item while iterating over the set
228         which is not safe.
230 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
231             Eric Botcazou  <ebotcazou@adacore.com>
233         PR target/77759
234         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
235         (classify_registers): Don't set it
236         (function_arg_slotno): Don't initialize and test it.  Tidy up.
238 2016-10-06  Richard Biener  <rguenther@suse.de>
240         PR tree-optimization/77839
241         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
242         lattice transition.
244 2016-10-06  Martin Liska  <mliska@suse.cz>
246         * gcc.c: Set -fprofile-update=atomic when profiling is
247         enabled and -pthread is set.  Warn when one combines
248         -pthread and -fprofile-update=single for an app using
249         profiling code.
251 2016-10-06  Martin Liska  <mliska@suse.cz>
253         PR bootstrap/77788
254         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
255         * gimple-ssa-strength-reduction.c (slsr_process_cast):
256         Initialize a pointer to NULL.
257         (slsr_process_copy): Likewise.
258         * input.c (location_get_source_line): Likewise.
259         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
261 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
263         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
264         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
265         (ix86_handle_option): Deleted handle of OPT_mpcommit.
266         * config.gcc: Deleted pcommitintrin.h
267         * config/i386/pcommitintrin.h: Deleted file.
268         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
269         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
270         detection.
271         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
272         __PCOMMIT__.
273         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
274         (PTA_PCOMMIT): Deleted define.
275         (ix86_option_override_internal): Deleted handle of option.
276         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
277         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
278         __builtin_ia32_pcommit): Deleted.
279         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
280         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
281         (pcommit): Deleted instruction.
282         * config/i386/i386.opt: Mention -mpcommit deprecation.
283         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
285 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
287         PR target/77874
288         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
289         Remove wrong assert.
290         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
291         Use <round_constraint> as operand 1 constraint.
293 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
295         PR sanitizer/66343
296         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
297         (ubsan_instrument_float_cast): And not here.
299         PR sanitizer/66343
300         * ubsan.c (ubsan_ids): New GTY(()) array.
301         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
302         instead of static local counters.
304 2016-10-05  Martin Sebor  <msebor@redhat.com>
306         PR bootstrap/77819
307         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
308         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
309         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
310         (default_printf_pointer_format): Define function.
311         * targhooks.c (linux_printf_pointer_format): Define new function.
312         * targhooks.h (linux_printf_pointer_format): Declare.
313         (gnu_libc_printf_pointer_format): Remove declaration.
315 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
317         * fold-const.c (native_encode_real): Fix logic for selecting offset
318         to write to when BYTES_BIG_ENDIAN.
320 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
322         * builtins.c (fold_builtin_strchr): Remove function.
323         (fold_builtin_strrchr): Likewise.
324         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
325         * gimple-fold.c (target_char_cst_p): New function.
326         (gimple_fold_builtin_strchr) Add more foldings.
327         (gimple_fold_builtin): Add index, strrchr, rindex cases.
329 2016-10-05  Richard Biener  <rguenther@suse.de>
331         PR middle-end/77863
332         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
333         capture ids in c-exprs.
335 2016-10-05  Richard Biener  <rguenther@suse.de>
337         PR middle-end/77826
338         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
339         with types_match for GIMPLE code gen to handle type mismatched
340         constants properly.
341         (dt_operand::gen): Adjust.
342         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
343         and constant A.
345 2016-10-05  Richard Biener  <rguenther@suse.de>
347         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
349 2016-10-05  Richard Biener  <rguenther@suse.de>
351         PR middle-end/77842
352         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
354 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
356         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
357         version check to protect only DW_TAG_imported_module generation.
359 2016-10-05  Richard Biener  <rguenther@suse.de>
361         PR middle-end/55152
362         * match.pd (min(a,-a) -> -abs(a)): New pattern.
364 2016-10-04  Ian Lance Taylor  <iant@golang.org>
366         * explow.c (allocate_dynamic_stack_space): Call
367         do_pending_stack_adjust before handling flag_split_stack.
369 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
371         * genattrtab.c (make_internal_attr): Supply dummy column number to
372         file_location ctor.
373         (main): Likewise.
374         * genoutput.c (init_insn_for_nothing): Likewise.
375         * gensupport.c (add_define_attr): Likewise.
376         * read-md.c (message_at_1): Print column number.
377         (fatal_with_file_and_line): Likewise.
378         (rtx_reader::read_char): Track column numbers.
379         (rtx_reader::unread_char): Likewise.
380         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
381         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
382         (rtx_reader::handle_file): Initialize m_read_md_colno.
383         (rtx_reader::get_current_location): Supply column number to
384         file_location ctor.
385         * read-md.h (struct file_location): Add field "colno".
386         (file_location::file_location): Likewise.
387         (rtx_reader::get_colno): New accessor.
388         (rtx_reader::m_read_md_colno): New field.
389         (rtx_reader::m_last_line_colno): New field.
391 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
393         * doc/extend.texi (Java Exceptions): Remove.
394         (java_interface): Remove.
396 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
398         PR tree-optimization/77808
399         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
400         and addr are different before copying points-to information.
402 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
404         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
405         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
406         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
407         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
409 2016-10-04  Richard Biener  <rguenther@suse.de>
411         PR tree-optimization/77399
412         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
413         verify the target can convert.
415 2016-10-04  Richard Biener  <rguenther@suse.de>
417         PR middle-end/77833
418         * explow.c (plus_constant): Verify the mode of the constant
419         pool offset before calling plus_constant.
421 2016-10-04  Richard Biener  <rguenther@suse.de>
423         PR middle-end/77407
424         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
425         type support, mark with :C.
426         (X / -X -> -1): Mark with :C.
428 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
430         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
431         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
432         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
433         * doc/tm.texi: Regenerated.
434         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
435         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
436         * config/darwin.h (JCR_SECTION_NAME): Remove.
437         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
438         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
439         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
440         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
441         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
442         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
444 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
446         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
447         between "because" and "param" in dump message in call to fprintf.
449 2016-10-03  Jeff Law  <law@redhat.com>
451         PR tree-optimization/71550
452         PR tree-optimization/71403
453         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
454         (profitable_jump_thread_path): Also return boolean indicating if
455         the realized path will create an irreducible loop.
456         Remove loop depth tests from 71403.
457         (fsm_find_control_statement_thread_paths): Remove loop depth tests
458         from 71403.  If threading will create an irreducible loop, then
459         throw away loop iteration and related information.
461 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
463         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
464         -Woverloaded-virtual checks for warning options.
465         * configure: Regenerate.
467 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
469         PR preprocessor/77699
470         * input.c (maybe_grow): Don't allocate one byte extra headroom.
471         (get_next_line): Return false on error.
472         (read_next_line): Removed, use get_next_line instead.
473         (read_line_num): Don't copy the line.
474         (location_get_source_line): Don't use static data.
475         (selftest::test_reading_source_line): Add more test cases.
477 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
479         Revert
480         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
482         * ifcvt.c (noce_try_avoid_const_materialization): New function.
483         (noce_process_if_block): Use it.
485 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
487         * doc/invoke.texi: Update -Wint-in-bool-context.
489 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
491         * dwarf2out.c (output_fde, output_call_frame_info,
492         dwarf2out_do_cfi_startproc, set_indirect_string,
493         gen_internal_sym, output_die, output_line_info): Use
494         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
495         ASM_GENERATE_INTERNAL_LABEL output.
497 2016-10-01  Richard Biener  <rguenther@suse.de>
499         PR middle-end/77798
500         * genmatch.c (get_operand_type): Add operand position arg
501         and handle COND_EXPR comparison operand with fixed boolean_type_node.
502         (expr::gen_transform): Adjust.
503         (dt_simplify::gen_1): Likewise.
505 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
507         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
508         comments.  Simplify asserts, remove unnecessary conditions.
509         Formatting fixes.
510         (*<code><mode>3): Likewise.
512 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
514         * doc/invoke.texi (-Wregister): Document.
516 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
518         * configure.ac: Split CHECKING_P into CHECKING_P and
519         ENABLE_EXTRA_CHECKING.
520         * configure: Regenerated.
521         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
522         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
524 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
526         PR other/31566
527         * gcc.c (process_command): For @filename handling, output
528         the correct name if the file does not exist.
530 2016-09-30  Marek Polacek  <polacek@redhat.com>
532         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
533         * config/alpha/predicates.md: Likewise.
535 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
537         * ifcvt.c (noce_try_avoid_const_materialization): New function.
538         (noce_process_if_block): Use it.
540 2016-09-30  Martin Liska  <mliska@suse.cz>
542         * doc/invoke.texi: Document asan-use-after-return that
543         it's disabled by default in runtime.
545 2016-09-30  Richard Biener  <rguenther@suse.de>
547         * tree-vrp.c (intersect_ranges): If we failed to handle
548         the intersection choose a constant singleton range if available.
550 2016-09-30  Richard Biener  <rguenther@suse.de>
552         PR tree-optimization/77399
553         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
554         float <-> int conversions.
556 2016-09-30  Alan Modra  <amodra@gmail.com>
558         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
560 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
562         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
563         ext_level before calling CPUID with 0x80000008.
564         Simplify xgetbv checks.
566 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
568         * Makefile.in (OBJS): Add print-rtl-function.o.
569         * print-rtl-function.c: New file.
570         * print-rtl.h (print_rtx_function): New decl.
572 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
574         PR target/77756
575         * config/i386/cpuid.h (__get_cpuid_count): New.
576         (__get_cpuid): Rename __level to __leaf.
578 2016-09-29  Marek Polacek  <polacek@redhat.com>
580         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
582 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
584         * builtins.c (expand_builtin_memcmp): don't swap args unless
585         result is only being compared with zero.
587 2016-09-29  Marek Polacek  <polacek@redhat.com>
589         * dwarf2out.c (loc_descriptor): Add fall through comment.
590         (add_const_value_attribute): Likewise.
592 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
594         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
595         with "v6t2".  Move "arch" attribute above "pool_range".
596         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
597         with "v6t2".
598         (*thumb2_movhi_vfp): Likewise.
599         (*arm_movhi_fp16): Likewise.
600         (*thumb2_movhi_fp16): Likewise.
601         (*arm_movsi_vfp): Remove "arch" attribute.
602         (*thumb2_movsi_vfp): Likewise.
604 2016-09-29  Martin Liska  <mliska@suse.cz>
606         * doc/extend.texi: Remove limitation of Objective C for
607         __attribute__((constructor)) and __attribute__((destructor)).
609 2016-09-29  Richard Biener  <rguenther@suse.de>
611         PR tree-optimization/77768
612         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
613         Handle stores to readonly memory when removing redundant stores.
615 2016-09-29  Richard Biener  <rguenther@suse.de>
617         PR middle-end/77407
618         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
619         X / -X -> -1 simplifications.
621 2016-09-29  Richard Biener  <rguenther@suse.de>
623         PR middle-end/55152
624         * match.pd: Add max(a,-a) -> abs(a) pattern.
625         * tree-ssa-phiopt.c (minmax_replacement): Disable for
626         HONOR_SIGNED_ZEROS types.
628 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
630         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
631         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
633 2016-09-29  Richard Biener  <rguenther@suse.de>
635         * tree-vrp.c (set_defs_to_varying): New helper avoiding
636         writing to vr_const_varying.
637         (vrp_initialize): Call it.
638         (vrp_visit_stmt): Likewise.
639         (evrp_dom_walker::before_dom_children): Likewise.
641 2016-09-29  Richard Biener  <rguenther@suse.de>
643         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
644         constructors with vector elements.
646 2016-09-29  Richard Biener  <rguenther@suse.de>
648         PR tree-optimization/77768
649         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
650         with stores to a place we know has a constant value.
652 2016-09-29  Alan Modra  <amodra@gmail.com>
654         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
655         * doc/invoke.texi: Document it.
656         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
657         (rs6000_passes_float): Comment.
658         (rs6000_passes_long_double): New static var.
659         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
660         (init_cumulative_args): Set up to emit fp .gnu_attribute for
661         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
662         to include fp values returned in vectors.
663         Set rs6000_passes_long_double.
664         (rs6000_function_arg_advance_1): Likewise for function args.
665         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
666         and SPE.  Emit long double tag value too.
667         (rs6000_opt_vars): Add gnu-attr.
668         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
669         * configure: Regenerate.
670         * config.in: Regenerate.
672 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
674         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
675         of 0 < x.
676         (format_floating, format_string, format_directive,
677         get_destination_size, pass_sprintf_length::handle_gimple_call):
678         Likewise.
680 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
682         * gimple-ssa-sprintf.c: Fix comment formatting.
683         (format_integer): Use is_gimple_assign.
684         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
685         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
686         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
687         (pass_sprintf_length::execute): Use is_gimple_call.
689 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
691         * gimple-fold.c (gimple_fold_builtin): After failing to fold
692         strchr, also try the generic folding.
694 2016-09-28  Martin Sebor  <msebor@redhat.com>
696         PR c/77762
697         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
698         Fix typos.
700 2016-09-28  Martin Sebor  <msebor@redhat.com>
702         PR middle-end/77683
703         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
704         length modifier is not expected.
705         (format_floating): Ignore l length modifier and fail gracefuly
706         when it isn't one of the other expected ones.
708 2016-09-28  Martin Sebor  <msebor@redhat.com>
710         PR bootstrap/77753
711         * varasm.c (assemble_addr_to_section): Increase local buffer size.
713 2016-09-27  Richard Biener  <rguenther@suse.de>
715         * dwarf2out.c (cu_die_list): New global.
716         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
717         main_comp_unit_die to cu_die_list if we created it.
718         Move break_out_includes ...
719         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
720         the cu_die_list.
722 2016-09-28  Richard Biener  <rguenther@suse.de>
724         * dwarf2out.c (struct die_struct): Add removed flag.
725         (lookup_type_die): If the DIE is marked as removed, clear
726         TYPE_SYMTAB_DIE and return NULL.
727         (lookup_decl_die): If the DIE is marked as removed, remove it
728         from the hash and return NULL.
729         (mark_removed): New helper.
730         (prune_unused_types_prune): Call it for removed DIEs.
731         (gen_subprogram_die): Move the premark_used_types call to after
732         DIEs for the functions scopes are generated.
733         (process_scope_var): Do not re-create pruned types or type decls.
734         Make sure to also re-parent type decls.
735         (dwarf2out_finish): Move unused type pruning and debug_types
736         handling ...
737         (dwarf2out_early_finish): ... here.
739 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
741         * config/arc/arc-c.c: New file.
742         * config/arc/arc-c.def: Likewise.
743         * config/arc/t-arc: Likewise.
744         * config.gcc: Include arc-c.o as c and cpp object.
745         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
746         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
747         arc_cpu_cpp_builtins.
749 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
751         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
752         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
754 2016-09-28  Nathan Sidwell  <nathan@acm.org>
756         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
757         printing.
759 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
761         PR tree-optimization/61056
762         * gimple-fold.c (gimple_fold_builtin_strchr):
763         New function to optimize strchr (s, 0) to strlen.
764         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
766 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
768         PR tree-optimization/77724
769         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
770         Add tree_fits_shwi_p check.
772 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
774         * auto-inc-dec.c (try_merge): Remove break after return.
775         * cselib.c (autoinc_split): Likewise.
776         * explow.c (promote_mode): Likewise.
777         * fixed-value.c (fixed_arithmetic): Likewise.
778         * hsa.c (hsa_internal_fn::get_arity): Likewise.
779         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
780         * trans-mem.c (get_attrs_for): Likewise.
781         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
782         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
783         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
784         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
785         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
786         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
787         * config/cris/cris.c (cris_op_str): Likewise.
788         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
789         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
791 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
793         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
794         IFN_GOACC_REDUCTION_CODES): New.
795         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
796         ifn_goacc_reduction_kind): Use them.
797         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
798         of internal functions, when applicable.
800 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
802         * config/mips/constraints.md (d): Fix documentation.
803         * doc/md.texi (Machine Constraints): Update accordingly.
805 2016-09-27  Richard Biener  <rguenther@suse.de>
807         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
808         cur_line_info_table initialization ...
809         (dwarf2out_assembly_start): ... here.
811 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
813         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
814         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
815         (*thumb2_movhi_vfp): Likewise.
816         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
817         template.  Expand predicable attribute to mark VMOV.F16 as not
818         predicable.  Add "arch" attribute.
819         (*thumb2_movhi_fp16): Likewise.
820         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
821         (*thumb2_movsi_vfp): Add "arch" attribute.
823 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
825         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
826         VAR_DECL string.
828 2016-09-27  Marek Polacek  <polacek@redhat.com>
830         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
831         comment.
833         * config/c6x/c6x.h: Adjust fall through comment.
834         * config/sh/sh.c (final_prescan_insn): Likewise.
835         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
836         (visium_expand_fp_cstore): Likewise.
838 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
840         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
841         expected by -Wimplicit-fallthrough.
842         (thumb1_size_rtx_costs): Likewise.
843         (thumb2_reorg): Likewise.
844         (tls_mentioned_p): Add "Fall through" comment.
845         (thumb2_reorg): Likewise.
846         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
847         comment form expected by -Wimplicit-fallthrough.
849 2016-09-27  Martin Liska  <mliska@suse.cz>
851         PR gcov-profile/46266
852         * input.h (RESERVED_LOCATION_P): New macro.
853         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
854         instread of comparison with UNKNOWN_LOCATION.
856 2016-09-27  Richard Biener  <rguenther@suse.de>
858         PR tree-optimization/77745
859         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
860         When removing redundant stores make sure to check compatibility
861         of the TBAA state for downstream accesses.
862         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
863         value-numbering virtual operands for store matches.
865 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
867         PR target/51244
868         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
869         movrt patterns.  Match them before anything else in the SET case.
871 2016-09-27  Martin Liska  <mliska@suse.cz>
873         PR gcov-profile/7970
874         PR gcov-profile/16855
875         PR gcov-profile/44779
876         * coverage.c (build_gcov_exit_decl): New function.
877         (coverage_obj_init): Call the function and generate __gcov_exit
878         destructor.
879         * doc/gcov.texi: Document when __gcov_exit function is called.
881 2016-09-27  Marek Polacek  <polacek@redhat.com>
883         PR bootstrap/77751
884         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
885         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
886         -Wno-error instead of -Wno-implicit-fallthrough.
888 2016-09-27  Martin Liska  <mliska@suse.cz>
890         PR bootstrap/77749
891         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
893 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
895         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
896         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
897         comments.  Remove break after return.
898         (ix86_fp_compare_code_to_integer, has_dispatch,
899         ix86_simd_clone_usable): Remove break after return.
901 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
903         PR rlt-optimization/77714
904         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
905         REG_EQUAL note.
907 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
909         PR ipa/77677
910         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
911         extract_range_from_unary_expr to convert value_range.
912         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
913         (extract_range_from_unary_expr): This.
914         * tree-vrp.h (extract_range_from_unary_expr): Declare.
916 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
918         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
920 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
922         * config/i386/i386.c (ix86_print_operand)
923         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
924         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
925         (epilogue_renumber): Likewise.
927 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
929         PR middle-end/77719
930         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
931         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
933 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
935         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
936         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
937         is_mm_seq_cst, is_mm_sync): Move to ...
938         * memmodel.h: This.  New file.
939         * builtins.c: Include memmodel.h.
940         * optabs.c: Likewise.
941         * tsan.c: Likewise.
942         * config/aarch64/aarch64.c: Likewise.
943         * config/alpha/alpha.c: Likewise.
944         * config/arm/arm.c: Likewise.
945         * config/i386/i386.c: Likewise.
946         * config/ia64/ia64.c: Likewise.
947         * config/mips/mips.c: Likewise.
948         * config/rs6000/rs6000.c: Likewise.
949         * config/sparc/sparc.c: Likewise.
950         * genconditions.c: Include memmodel.h in generated file.
951         * genemit.c: Likewise.
952         * genoutput.c: Likewise.
953         * genpeep.c: Likewise.
954         * genpreds.c: Likewise.
955         * genrecog.c: Likewise.
957 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
959         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
960         "c" instead when parsing characters.  Move operand parsing into...
961         (read_rtx_operand): ...this new function, renaming "i" to "idx",
962         and tightening the scope of various locals.
964 2016-09-26  Liu Hao  <lh_mouse@126.com>
966         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
968 2016-09-26  Marek Polacek  <polacek@redhat.com>
970         * system.h: Use __has_attribute to check whether the fallthrough
971         attribute is supported.
973 2016-09-26  Marek Polacek  <polacek@redhat.com>
975         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
976         gimple_call_internal_p.
977         * ipa-split.c (find_return_bb): Likewise.
978         (execute_split_functions): Likewise.
979         * omp-low.c (dump_oacc_loop_part): Likewise.
980         (oacc_loop_xform_head_tail): Likewise.
981         * predict.c (predict_loops): Likewise.
982         * sanopt.c (pass_sanopt::execute): Likewise.
983         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
984         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
985         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
986         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
987         (expand_ifn_va_arg): Likewise.
988         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
989         (optimize_mask_stores): Likewise.
990         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
991         (vect_transform_stmt): Likewise.
992         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
993         * tsan.c (instrument_memory_accesses): Likewise.
995 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
996             Alexander Monakov  <amonakov@ispras.ru>
998         * regrename.c (rename_chains): Check
999         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
1000         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
1001         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1003 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1005         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
1006         (s390_sched_score): Likewise.
1008 2016-09-26  Martin Liska  <mliska@suse.cz>
1010         * doc/gcov.texi: Update program output of gcov tool.
1012 2016-09-26  Martin Liska  <mliska@suse.cz>
1014         PR gcov-profile/23332
1015         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
1016         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
1017         * value-prof.c (dump_histogram_value): Do not handle
1018         HIST_TYPE_CONST_DELTA.
1019         (stream_in_histogram_value): Likewise.
1020         (gimple_find_values_to_profile): Likewise.
1021         * value-prof.h (enum hist_type): Likewise.
1023 2016-09-26  Martin Liska  <mliska@suse.cz>
1025         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
1026         from default sanitize recover values.
1027         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
1028         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
1029         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
1030         consistent.
1031         * opts.c (finish_options): Do a generic loop over options
1032         that can be recovered.
1033         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
1034         SANITIZE_RETURN.
1035         (common_handle_option): Likewise.
1036         * opts.h: Declare can_recover to sanitizer_opts_s.
1038 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1040         * target.def(elf_flags_numeric): Change documentation to present tense.
1041         * doc/tm.texi: Regenerate.
1043 2016-09-26  Marek Polacek  <polacek@redhat.com>
1045         PR c/7652
1046         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1047         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
1048         -Wno-switch-fallthrough.
1049         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
1050         (expand_builtin): Likewise.
1051         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
1052         * convert.c (convert_to_real_1): Likewise.
1053         (convert_to_integer_1): Likewise.
1054         * final.c (output_alternate_entry_point): Likewise.
1055         * genattrtab.c (make_canonical): Likewise.
1056         (write_test_expr): Likewise.
1057         * genpreds.c (validate_exp): Likewise.
1058         * gimple-ssa-strength-reduction.c
1059         (find_candidates_dom_walker::before_dom_children): Likewise.
1060         * godump.c (go_format_type): Likewise.
1061         * reload1.c (elimination_effects): Likewise.
1062         * resource.c (mark_referenced_resources): Likewise.
1063         (mark_set_resources): Likewise.
1064         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
1065         * varasm.c (output_addressed_constants): Likewise.
1067 2016-09-26  Marek Polacek  <polacek@redhat.com>
1069         PR c/7652
1070         * common.opt (Wimplicit-fallthrough): New option.
1071         * doc/extend.texi: Document statement attributes and the fallthrough
1072         attribute.
1073         * doc/invoke.texi: Document -Wimplicit-fallthrough.
1074         * gimple.h (gimple_call_internal_p): New function.
1075         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
1076         (struct label_entry): New struct.
1077         (find_label_entry): New function.
1078         (case_label_p): New function.
1079         (collect_fallthrough_labels): New function.
1080         (last_stmt_in_scope): New function.
1081         (should_warn_for_implicit_fallthrough): New function.
1082         (warn_implicit_fallthrough_r): New function.
1083         (maybe_warn_implicit_fallthrough): New function.
1084         (expand_FALLTHROUGH_r): New function.
1085         (expand_FALLTHROUGH): New function.
1086         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
1087         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
1088         (gimplify_label_expr): New function.
1089         (gimplify_case_label_expr): Set location.
1090         (gimplify_expr): Call gimplify_label_expr.
1091         * internal-fn.c (expand_FALLTHROUGH): New function.
1092         * internal-fn.def (FALLTHROUGH): New internal function.
1093         * langhooks.c (lang_GNU_OBJC): New function.
1094         * langhooks.h (lang_GNU_OBJC): Declare.
1095         * system.h (gcc_fallthrough): Define.
1096         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1097         * tree.h (FALLTHROUGH_LABEL_P): Define.
1099 2016-09-26  Richard Biener  <rguenther@suse.de>
1101         * dwarf2out.c (stripattributes): Remove unused function.
1102         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1103         Push dwarf_split_debug_info handling into init_sections_and_labels.
1104         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1105         (DEBUG_MACRO_SECTION_FLAGS): Remove.
1106         (debug_macinfo_section_name): New global.
1107         (output_macinfo): Use debug_macinfo_section_name.
1108         (init_sections_and_labels): Split out section and label generation
1109         from dwarf2out_init.  Set debug_macinfo_section_name.
1110         (dwarf2out_init): Move text section label generation and emission
1111         to ...
1112         (dwarf2out_assembly_start): ... here.
1113         (dwarf2out_finish): Call init_sections_and_labels before DWARF
1114         output starts.
1116 2016-09-26  Richard Biener  <rguenther@suse.de>
1118         PR debug/77692
1119         * cgraphunit.c (analyze_functions): Before early removing
1120         global vars calls the late_global_decl debug handler mark
1121         the variable as readonly.
1123 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1125         PR target/51244
1126         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1127         (sh_rtx_costs): Handle SET of movt and movrt patterns.
1128         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1129         declare new overloads.
1130         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1131         operand.
1133 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1135         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1136         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1138 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1140         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1141         * configure: Regenerate.
1143 2016-09-24  Marek Polacek  <polacek@redhat.com>
1145         PR c/77490
1146         * doc/invoke.texi: Document -Wbool-operation.
1148 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1150         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1151         * config/rs6000/rs6000.c (expand_block_compare): New function used by
1152         cmpmemsi pattern to do builtin expansion of memcmp ().
1153         (compute_current_alignment): Add helper function for
1154         expand_block_compare used to compute alignment as the compare proceeds.
1155         (select_block_compare_mode): Used by expand_block_compare to select
1156         the mode used for reading the next chunk of bytes in the compare.
1157         (do_load_for_compare): Used by expand_block_compare to emit the load
1158         insns for the compare.
1159         (rs6000_emit_dot_insn): Moved this function to avoid a forward
1160         reference from expand_block_compare ().
1161         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1162         prototype for this function.
1163         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1164         target option for controlling how much code inline expansion of
1165         memcmp() will be allowed to generate.
1167 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1169         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1170         hook_bool_mode_false, hook_bool_mode_true,
1171         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1172         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1173         hook_bool_const_rtx_insn_const_rtx_insn_true,
1174         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1175         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1176         hook_bool_const_tree_hwi_hwi_const_tree_false,
1177         hook_bool_const_tree_hwi_hwi_const_tree_true,
1178         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1179         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1180         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1181         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
1182         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
1183         hook_bool_const_tree_true, hook_bool_tree_tree_false,
1184         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
1185         hook_bool_rtx_insn_true, hook_bool_rtx_false,
1186         hook_bool_uintp_uintp_false,
1187         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
1188         hook_rtx_tree_int_null, hook_uint_mode_0,
1189         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
1190         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
1191         hook_constcharptr_const_rtx_insn_null,
1192         hook_constcharptr_const_tree_const_tree_null,
1193         hook_constcharptr_int_const_tree_null,
1194         hook_constcharptr_int_const_tree_const_tree_null,
1195         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
1196         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
1197         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
1199         * vec.h (vNULL): Extend comment to say = vNULL initialization
1200         isn't needed for static vars.
1202         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
1203         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
1204         = vNULL initialization of file scope vec.
1205         * passes.c (pass_tab, enabled_pass_uid_range_tab,
1206         disabled_pass_uid_range_tab): Likewise.
1207         * haifa-sched.c (sched_luids, h_i_d): Likewise.
1208         * tree-chkp-opt.c (check_infos): Likewise.
1209         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
1211         * vec.h (vnull::operator vec): Add constexpr keyword for
1212         C++11 and later.
1214 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
1216         PR tree-optimization/77654
1217         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
1218         to duplicate_ssa_name_ptr_info.
1220 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
1222         PR preprocessor/77672
1223         * input.c (selftest::test_lexer_string_locations_simple): Update
1224         test to expect location information of the terminator character
1225         at the location of the final closing quote.
1226         (selftest::test_lexer_string_locations_hex): Likewise.
1227         (selftest::test_lexer_string_locations_oct): Likewise.
1228         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
1229         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
1230         (selftest::test_lexer_string_locations_ucn4): Likewise.
1231         (selftest::test_lexer_string_locations_ucn8): Likewise.
1232         (selftest::test_lexer_string_locations_u8): Likewise.
1233         (selftest::test_lexer_string_locations_utf8_source): Likewise.
1234         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
1235         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
1236         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
1237         (selftest::test_lexer_string_locations_macro): Likewise.
1238         (selftest::test_lexer_string_locations_long_line): Likewise.
1240 2016-09-23  Richard Biener  <rguenther@suse.de>
1242         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
1243         virtual definition to virtual use if the call devirtualizes
1244         to a const or pure function.
1245         (visit_use): Also visit calls we can devirtualize to a
1246         const or pure function.
1248 2016-09-23  Richard Biener  <rguenther@suse.de>
1250         PR tree-optimization/77697
1251         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
1252         signal error if we have sth ternary or unhandled.
1254 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1256         * config/arm/arm_neon.h (vabd_f16): New.
1257         (vabdq_f16): New.
1258         (vabs_f16): New.
1259         (vabsq_f16): New.
1260         (vadd_f16): New.
1261         (vaddq_f16): New.
1262         (vcage_f16): New.
1263         (vcageq_f16): New.
1264         (vcagt_f16): New.
1265         (vcagtq_f16): New.
1266         (vcale_f16): New.
1267         (vcaleq_f16): New.
1268         (vcalt_f16): New.
1269         (vcaltq_f16): New.
1270         (vceq_f16): New.
1271         (vceqq_f16): New.
1272         (vceqz_f16): New.
1273         (vceqzq_f16): New.
1274         (vcge_f16): New.
1275         (vcgeq_f16): New.
1276         (vcgez_f16): New.
1277         (vcgezq_f16): New.
1278         (vcgt_f16): New.
1279         (vcgtq_f16): New.
1280         (vcgtz_f16): New.
1281         (vcgtzq_f16): New.
1282         (vcle_f16): New.
1283         (vcleq_f16): New.
1284         (vclez_f16): New.
1285         (vclezq_f16): New.
1286         (vclt_f16): New.
1287         (vcltq_f16): New.
1288         (vcltz_f16): New.
1289         (vcltzq_f16): New.
1290         (vcvt_f16_s16): New.
1291         (vcvt_f16_u16): New.
1292         (vcvt_s16_f16): New.
1293         (vcvt_u16_f16): New.
1294         (vcvtq_f16_s16): New.
1295         (vcvtq_f16_u16): New.
1296         (vcvtq_s16_f16): New.
1297         (vcvtq_u16_f16): New.
1298         (vcvta_s16_f16): New.
1299         (vcvta_u16_f16): New.
1300         (vcvtaq_s16_f16): New.
1301         (vcvtaq_u16_f16): New.
1302         (vcvtm_s16_f16): New.
1303         (vcvtm_u16_f16): New.
1304         (vcvtmq_s16_f16): New.
1305         (vcvtmq_u16_f16): New.
1306         (vcvtn_s16_f16): New.
1307         (vcvtn_u16_f16): New.
1308         (vcvtnq_s16_f16): New.
1309         (vcvtnq_u16_f16): New.
1310         (vcvtp_s16_f16): New.
1311         (vcvtp_u16_f16): New.
1312         (vcvtpq_s16_f16): New.
1313         (vcvtpq_u16_f16): New.
1314         (vcvt_n_f16_s16): New.
1315         (vcvt_n_f16_u16): New.
1316         (vcvtq_n_f16_s16): New.
1317         (vcvtq_n_f16_u16): New.
1318         (vcvt_n_s16_f16): New.
1319         (vcvt_n_u16_f16): New.
1320         (vcvtq_n_s16_f16): New.
1321         (vcvtq_n_u16_f16): New.
1322         (vfma_f16): New.
1323         (vfmaq_f16): New.
1324         (vfms_f16): New.
1325         (vfmsq_f16): New.
1326         (vmax_f16): New.
1327         (vmaxq_f16): New.
1328         (vmaxnm_f16): New.
1329         (vmaxnmq_f16): New.
1330         (vmin_f16): New.
1331         (vminq_f16): New.
1332         (vminnm_f16): New.
1333         (vminnmq_f16): New.
1334         (vmul_f16): New.
1335         (vmul_lane_f16): New.
1336         (vmul_n_f16): New.
1337         (vmulq_f16): New.
1338         (vmulq_lane_f16): New.
1339         (vmulq_n_f16): New.
1340         (vneg_f16): New.
1341         (vnegq_f16): New.
1342         (vpadd_f16): New.
1343         (vpmax_f16): New.
1344         (vpmin_f16): New.
1345         (vrecpe_f16): New.
1346         (vrecpeq_f16): New.
1347         (vrnd_f16): New.
1348         (vrndq_f16): New.
1349         (vrnda_f16): New.
1350         (vrndaq_f16): New.
1351         (vrndm_f16): New.
1352         (vrndmq_f16): New.
1353         (vrndn_f16): New.
1354         (vrndnq_f16): New.
1355         (vrndp_f16): New.
1356         (vrndpq_f16): New.
1357         (vrndx_f16): New.
1358         (vrndxq_f16): New.
1359         (vrsqrte_f16): New.
1360         (vrsqrteq_f16): New.
1361         (vrecps_f16): New.
1362         (vrecpsq_f16): New.
1363         (vrsqrts_f16): New.
1364         (vrsqrtsq_f16): New.
1365         (vsub_f16): New.
1366         (vsubq_f16): New.
1368 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1370         * config.gcc (extra_headers): Add arm_fp16.h
1371         * config/arm/arm_fp16.h: New.
1372         * config/arm/arm_neon.h: Include "arm_fp16.h".
1374 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1376         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
1377         variants).
1378         (vmulf): New (v8hf, v4hf variants).
1379         (vfma): New (v8hf, v4hf variants).
1380         (vfms): New (v8hf, v4hf variants).
1381         (vsub): New (v8hf, v4hf variants).
1382         (vcage): New (v8hf, v4hf variants).
1383         (vcagt): New (v8hf, v4hf variants).
1384         (vcale): New (v8hf, v4hf variants).
1385         (vcalt): New (v8hf, v4hf variants).
1386         (vceq): New (v8hf, v4hf variants).
1387         (vcgt): New (v8hf, v4hf variants).
1388         (vcge): New (v8hf, v4hf variants).
1389         (vcle): New (v8hf, v4hf variants).
1390         (vclt): New (v8hf, v4hf variants).
1391         (vceqz): New (v8hf, v4hf variants).
1392         (vcgez): New (v8hf, v4hf variants).
1393         (vcgtz): New (v8hf, v4hf variants).
1394         (vcltz): New (v8hf, v4hf variants).
1395         (vclez): New (v8hf, v4hf variants).
1396         (vabd): New (v8hf, v4hf variants).
1397         (vmaxf): New (v8hf, v4hf variants).
1398         (vmaxnm): New (v8hf, v4hf variants).
1399         (vminf): New (v8hf, v4hf variants).
1400         (vminnm): New (v8hf, v4hf variants).
1401         (vpmaxf): New (v4hf variant).
1402         (vpminf): New (v4hf variant).
1403         (vpadd): New (v4hf variant).
1404         (vrecps): New (v8hf, v4hf variants).
1405         (vrsqrts): New (v8hf, v4hf variants).
1406         (vabs): New (v8hf, v4hf variants).
1407         (vneg): New (v8hf, v4hf variants).
1408         (vrecpe): New (v8hf, v4hf variants).
1409         (vrnd): New (v8hf, v4hf variants).
1410         (vrnda): New (v8hf, v4hf variants).
1411         (vrndm): New (v8hf, v4hf variants).
1412         (vrndn): New (v8hf, v4hf variants).
1413         (vrndp): New (v8hf, v4hf variants).
1414         (vrndx): New (v8hf, v4hf variants).
1415         (vrsqrte): New (v8hf, v4hf variants).
1416         (vmul_lane): Add v4hf and v8hf variants.
1417         (vmul_n): Add v4hf and v8hf variants.
1418         (vext): New (v8hf, v4hf variants).
1419         (vcvts): New (v8hi, v4hi variants).
1420         (vcvts): New (v8hf, v4hf variants).
1421         (vcvtu): New (v8hi, v4hi variants).
1422         (vcvtu): New (v8hf, v4hf variants).
1423         (vcvts_n): New (v8hf, v4hf variants).
1424         (vcvtu_n): New (v8hi, v4hi variants).
1425         (vcvts_n): New (v8hi, v4hi variants).
1426         (vcvtu_n): New (v8hf, v4hf variants).
1427         (vbsl): New (v8hf, v4hf variants).
1428         (vcvtas): New (v8hf, v4hf variants).
1429         (vcvtau): New (v8hf, v4hf variants).
1430         (vcvtms): New (v8hf, v4hf variants).
1431         (vcvtmu): New (v8hf, v4hf variants).
1432         (vcvtns): New (v8hf, v4hf variants).
1433         (vcvtnu): New (v8hf, v4hf variants).
1434         (vcvtps): New (v8hf, v4hf variants).
1435         (vcvtpu): New (v8hf, v4hf variants).
1437 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1439         * config/arm/arm-builtins.c (hf_UP): New.
1440         (si_UP): New.
1441         (vfp_builtin_data): New.  Update comment.
1442         (enum arm_builtins): Include "arm_vfp_builtins.def".
1443         (ARM_BUILTIN_VFP_PATTERN_START): New.
1444         (arm_init_vfp_builtins): New.
1445         (arm_init_builtins): Add arm_init_vfp_builtins.
1446         (arm_expand_vfp_builtin): New.
1447         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
1448         long line.
1449         * config/arm/arm_vfp_builtins.def: New file.
1450         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
1451         (arm-builtins.o): Likewise.
1453 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1455         PR ipa/77677
1456         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
1457         from constant while creating value range.
1459 2016-09-23  Renlin Li  <renlin.li@arm.com>
1461         * ira.c (ira): Move ira_use_lra_p initialization code to ...
1462         (ira_init_once): Here.
1464 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
1465             Jakub Jelinek  <jakub@redhat.com>
1467         * hooks.h (hook_uint_uintp_false): Rename to...
1468         (hook_bool_uint_uintp_false): ... this.
1469         * hooks.c (hook_uint_uintp_false): Rename to...
1470         (hook_bool_uint_uintp_false): ... this.
1471         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
1472         instead of hook_uint_uintp_false.
1474 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1476         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
1477         (arm_init_builtins): Move body of a loop to the standalone
1478         function arm_init_neon_builtin.
1479         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
1480         moved from arm_neon_builtin with some white-space fixes.
1481         (arm_expand_neon_builtin): Move code into the standalone function
1482         arm_expand_neon_builtin_1.
1484 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1486         * config/arm/iterators.md (VCVTHI): New.
1487         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
1488         (NEON_VAGLTE): New.
1489         (VFM_LANE_AS): New.
1490         (VH_CVTTO): New.
1491         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
1492         (V_HALF): Add V4HF.  Fix white-space.
1493         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
1494         (V_s_elem): Likewise.
1495         (V_sz_elem): Fix white-space.
1496         (V_elem_ch): Likewise.
1497         (VH_elem_ch): New.
1498         (scalar_mul_constraint): Add V8HF and V4HF.
1499         (Is_float_mode): Fix white-space.
1500         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
1501         (q): Add HF.  Fix white-space.
1502         (float_sup): New.
1503         (float_SUP): New.
1504         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
1505         (neon_vfm_lane_as): New.
1506         * config/arm/neon.md (add<mode>3_fp16): New.
1507         (sub<mode>3_fp16): New.
1508         (mul<mode>3add<mode>_neon): New.
1509         (fma<VH:mode>4_intrinsic): New.
1510         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
1511         (fmsub<VH:mode>4_intrinsic): New.
1512         (<absneg_str><mode>2): New.
1513         (neon_v<absneg_str><mode>): New.
1514         (neon_v<fp16_rnd_str><mode>): New.
1515         (neon_vrsqrte<mode>): New.
1516         (neon_vpaddv4hf): New.
1517         (neon_vadd<mode>): New.
1518         (neon_vsub<mode>): New.
1519         (neon_vmulf<mode>): New.
1520         (neon_vfma<VH:mode>): New.
1521         (neon_vfms<VH:mode>): New.
1522         (neon_vc<cmp_op><mode>): New.
1523         (neon_vc<cmp_op><mode>_fp16insn): New
1524         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
1525         (neon_vca<cmp_op><mode>): New.
1526         (neon_vca<cmp_op><mode>_fp16insn): New.
1527         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
1528         (neon_vc<cmp_op>z<mode>): New.
1529         (neon_vabd<mode>): New.
1530         (neon_v<maxmin>f<mode>): New.
1531         (neon_vp<maxmin>fv4hf: New.
1532         (neon_<fmaxmin_op><mode>): New.
1533         (neon_vrecps<mode>): New.
1534         (neon_vrsqrts<mode>): New.
1535         (neon_vrecpe<mode>): New (VH variant).
1536         (neon_vdup_lane<mode>_internal): New.
1537         (neon_vdup_lane<mode>): New.
1538         (neon_vcvt<sup><mode>): New (VCVTHI variant).
1539         (neon_vcvt<sup><mode>): New (VH variant).
1540         (neon_vcvt<sup>_n<mode>): New (VH variant).
1541         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
1542         (neon_vcvt<vcvth_op><sup><mode>): New.
1543         (neon_vmul_lane<mode>): New.
1544         (neon_vmul_n<mode>): New.
1545         * config/arm/unspecs.md (UNSPEC_VCALE): New
1546         (UNSPEC_VCALT): New.
1547         (UNSPEC_VFMA_LANE): New.
1548         (UNSPECS_VFMS_LANE): New.
1550 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1552         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1553         ("*extzv<mode><clobbercc_or_nocc>"):
1554         Correct a typo in a comment.
1555         Merged patterns.
1556         ("*insv<mode>_zEC12", "*insv<mode>_z10")
1557         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1558         ("*insv<mode>_zEC12_appendbitsleft")
1559         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1560         ("*insv<mode>_z10_appendbitsleft"): Ditto.
1561         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1562         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1563         Provide pattern with operands switched.
1564         ("*pre_z10_extv<mode>"):
1565         Use new subst patterns.
1566         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1567         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1568         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1569         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1570         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1571         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1572         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1573         New patterns.
1574         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1575         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1576         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1577         on zEC12.
1578         ("SINT"): New mode_iterator with SI, HI, QI.
1579         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1580         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1581         duplication.
1583 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1585         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1586         new interface of s390_contiguous_bitmask_p.
1587         ("contiguous_bitmask_nowrap_operand"): New predicate.
1588         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1589         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1590         of s390_contiguous_bitmask_p.
1591         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1592         ("NxxSw"): New constraint.
1593         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1594         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1595         interface.
1596         (s390_contiguous_bitmask_nowrap_p): Export.
1597         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1598         former s390_contiguous_bitmask_p.
1599         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1600         detect contiguous bit ranges with wraparound.  Change signature to
1601         return START and END position instead of POS and LENGTH.
1602         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1603         ranges with wraparound.
1604         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1605         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1606         Adapt to new signature of s390_contiguous_bitmask_p.
1608 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1610         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1611         (create_intersect_range_checks): New.
1612         (vect_create_cond_for_alias_checks): Call above function.
1614 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1616         * config/arm/iterators.md (Code iterators): Fix some white-space
1617         in the comments.
1618         (GLTE): New.
1619         (ABSNEG): New
1620         (FCVT): Moved from vfp.md.
1621         (VCVT_HF_US_N): New.
1622         (VCVT_SI_US_N): New.
1623         (VCVT_HF_US): New.
1624         (VCVTH_US): New.
1625         (FP16_RND): New.
1626         (absneg_str): New.
1627         (FCVTI32typename): Moved from vfp.md.
1628         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1629         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1630         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1631         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1632         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1633         (vcvth_op): New.
1634         (fp16_rnd_str): New.
1635         (fp16_rnd_insn): New.
1636         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1637         (UNSPEC_VCVT_HF_U_N): New.
1638         (UNSPEC_VCVT_SI_S_N): New.
1639         (UNSPEC_VCVT_SI_U_N): New.
1640         (UNSPEC_VCVTH_S): New.
1641         (UNSPEC_VCVTH_U): New.
1642         (UNSPEC_VCVTA_S): New.
1643         (UNSPEC_VCVTA_U): New.
1644         (UNSPEC_VCVTM_S): New.
1645         (UNSPEC_VCVTM_U): New.
1646         (UNSPEC_VCVTN_S): New.
1647         (UNSPEC_VCVTN_U): New.
1648         (UNSPEC_VCVTP_S): New.
1649         (UNSPEC_VCVTP_U): New.
1650         (UNSPEC_VCVTP_S): New.
1651         (UNSPEC_VCVTP_U): New.
1652         (UNSPEC_VRND): New.
1653         (UNSPEC_VRNDA): New.
1654         (UNSPEC_VRNDI): New.
1655         (UNSPEC_VRNDM): New.
1656         (UNSPEC_VRNDN): New.
1657         (UNSPEC_VRNDP): New.
1658         (UNSPEC_VRNDX): New.
1659         * config/arm/vfp.md (<absneg_str>hf2): New.
1660         (neon_vabshf): New.
1661         (neon_v<fp16_rnd_str>hf): New.
1662         (neon_vrndihf): New.
1663         (addhf3): New.
1664         (subhf3): New.
1665         (divhf3): New.
1666         (mulhf3): New.
1667         (*mulsf3neghf_vfp): New.
1668         (*negmulhf3_vfp): New.
1669         (*mulsf3addhf_vfp): New.
1670         (*mulhf3subhf_vfp): New.
1671         (*mulhf3neghfaddhf_vfp): New.
1672         (*mulhf3neghfsubhf_vfp): New.
1673         (fmahf4): New.
1674         (neon_vfmahf): New.
1675         (fmsubhf4_fp16): New.
1676         (neon_vfmshf): New.
1677         (*fnmsubhf4): New.
1678         (*fnmaddhf4): New.
1679         (neon_vsqrthf): New.
1680         (neon_vrsqrtshf): New.
1681         (FCVT): Move to iterators.md.
1682         (FCVTI32typename): Likewise.
1683         (neon_vcvth<sup>hf): New.
1684         (neon_vcvth<sup>si): New.
1685         (neon_vcvth<sup>_nhf_unspec): New.
1686         (neon_vcvth<sup>_nhf): New.
1687         (neon_vcvth<sup>_nsi_unspec): New.
1688         (neon_vcvth<sup>_nsi): New.
1689         (neon_vcvt<vcvth_op>h<sup>si): New.
1690         (neon_<fmaxmin_op>hf): New.
1692 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1694         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1695         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1696         ("*insv<mode>_zEC12_appendbitsleft")
1697         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1698         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1700 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1702         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1703         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1704         construct values without normalization.
1705         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1706         static local lhs_ops to vNULL.
1708 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1709             Jiong Wang <jiong.wang@arm.com>
1711         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1712         available when FP16 instructions are available.
1713         (output_move_vfp): Add support for 16-bit data moves.
1714         (arm_validize_comparison): Fix some white-space.  Support HFmode
1715         by conversion to SFmode.
1716         * config/arm/arm.md (truncdfhf2): Fix a comment.
1717         (extendhfdf2): Likewise.
1718         (cstorehf4): New.
1719         (movsicc): Fix some white-space.
1720         (movhfcc): New.
1721         (movsfcc): Fix some white-space.
1722         (*cmovhf): New.
1723         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1724         instructions are available.
1725         (*thumb2_movhi_vfp): Likewise.
1726         (*arm_movhi_fp16): New.
1727         (*thumb2_movhi_fp16): New.
1728         (*movhf_vfp_fp16): New.
1729         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1730         (*movhf_vfp): Likewise.
1731         (extendhfsf2): Enable when VFP FP16 instructions are available.
1732         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1734 2016-09-23  Martin Liska  <mliska@suse.cz>
1736         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1738 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1740         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1741         V4HF modes.
1742         (arm_evpc_neon_vtrn): Likewise.
1743         (arm_evpc_neon_vrev): Likewise.
1744         (arm_evpc_neon_vext): Likewise.
1745         * config/arm/arm_neon.h (vbsl_f16): New.
1746         (vbslq_f16): New.
1747         (vdup_n_f16): New.
1748         (vdupq_n_f16): New.
1749         (vdup_lane_f16): New.
1750         (vdupq_lane_f16): New.
1751         (vext_f16): New.
1752         (vextq_f16): New.
1753         (vmov_n_f16): New.
1754         (vmovq_n_f16): New.
1755         (vrev64_f16): New.
1756         (vrev64q_f16): New.
1757         (vtrn_f16): New.
1758         (vtrnq_f16): New.
1759         (vuzp_f16): New.
1760         (vuzpq_f16): New.
1761         (vzip_f16): New.
1762         (vzipq_f16): New.
1763         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1764         (vdup_lane): New (v8hf, v4hf variants).
1765         (vext): New (v8hf, v4hf variants).
1766         (vbsl): New (v8hf, v4hf variants).
1767         * config/arm/iterators.md (VDQWH): New.
1768         (VH): New.
1769         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1770         (Scalar_mul_8_16): Fix white-space.
1771         (Is_d_reg): Add V4HF and V8HF.
1772         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1773         (neon_vdup_lane<mode>): New.
1774         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1775         (*neon_vtrn<mode>_insn): Likewise.
1776         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1777         (*neon_vzip<mode>_insn): Likewise
1778         (neon_vuzp<mode>_internal): Likewise.
1779         (*neon_vuzp<mode>_insn): Likewise
1780         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1782 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1783             Matthew Wahab  <matthew.wahab@arm.com>
1785         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1786         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1787         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1788         available.  Also fix some white-space.
1789         * config/arm/vfp.md (*arm_movhi_vfp): New.
1790         (*thumb2_movhi_vfp): New.
1792 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1794         * config/arm/arm-c.c (arm_cpu_builtins): Define
1795         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1796         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1798 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1800         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1801         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1802         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1803         arm_v8_2a_fp16_neon_hw.
1804         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1805         arm_v8_2a_neon.
1807 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1809         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1810         arm_fp16_alternative_ok and arm_fp16_none_ok.
1812 2016-09-23  Martin Liska  <mliska@suse.cz>
1814         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1816 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1818         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1819         ("armv8.2-a"): New.
1820         ("armv8.2-a+fp16"): New.
1821         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1822         (FL2_FP16INST): New.
1823         (FL2_FOR_ARCH8_2A): New.
1824         * config/arm/arm-tables.opt: Regenerate.
1825         * config/arm/arm.c (arm_arch8_2): New.
1826         (arm_fp16_inst): New.
1827         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1828         for incompatible fp16-format settings.
1829         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1830         (TARGET_NEON_FP16INST): New.
1831         (arm_arch8_2): Declare.
1832         (arm_fp16_inst): Declare.
1833         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1834         march=armv8.2-a and march=armv8.2-a+fp16.
1835         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1836         and armv8.2-a+fp16.
1837         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1838         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1840 2016-09-23  Martin Liska  <mliska@suse.cz>
1842         * doc/extend.texi: Remove fused-madd from i386 target options.
1844 2016-09-23  Martin Liska  <mliska@suse.cz>
1846         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1847         Handle movbe.
1849 2016-09-23  Martin Liska  <mliska@suse.cz>
1851         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1852         Handle crc32.
1854 2016-09-23  Martin Liska  <mliska@suse.cz>
1856         PR target/71652
1857         * config/i386/i386.c (ix86_option_override_internal): Change
1858         signature and return false when there's an error related to
1859         arch string.
1860         (release_options_strings): New function.
1861         (ix86_valid_target_attribute_tree): Call the function.
1863 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1865         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1866         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1867         (gen_hsa_ctor_assignment): Likewise.
1868         * print-tree.c (print_node): Likewise.
1869         * tree-dump.c (dequeue_and_dump): Likewise.
1870         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1871         * expr.c (store_constructor): Likewise.
1872         * fold-const.c (operand_equal_p): Likewise.
1873         * tree-pretty-print.c (dump_generic_node): Likewise.
1874         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1875         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1877 2016-09-23  Richard Biener  <rguenther@suse.de>
1879         * hooks.h (hook_uint_uintp_false): Declare.
1881 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1883         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1884         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1886 2016-09-22  Martin Sebor  <msebor@redhat.com>
1888         PR target/77676
1889         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1890         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1891         (target_int_min): Correct computation.
1892         (format_integer): Use long long as the argument for the ll length
1893         modifier.
1894         (format_floating): Use target_int_max().
1895         (get_string_length): Same.
1896         (format_string): Avoid setting the bounded flag for strings
1897         of unknown length.
1898         (try_substitute_return_value): Avoid setting range info when
1899         the result isn't bounded.
1900         * varasm.c (assemble_name): Increase buffer size.
1902 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1903             Terry Guo  <terry.guo@arm.com>
1905         * target.def (elf_flags_numeric): New target hook.
1906         * targhooks.h (default_asm_elf_flags_numeric): New.
1907         * varasm.c (default_asm_elf_flags_numeric): New.
1908         (default_elf_asm_named_section): Use new target hook.
1909         * config/arm/arm.opt (mpure-code): New.
1910         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1911         * config/arm/arm.c (arm_asm_init_sections): Add section
1912         attribute to default text section if -mpure-code.
1913         (arm_option_check_internal): Diagnose use of option with
1914         non supported targets and/or options.
1915         (arm_asm_elf_flags_numeric): New.
1916         (arm_function_section): New.
1917         (arm_elf_section_type_flags): New.
1918         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1919         for -mpure-code.
1920         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1921         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1923 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1925         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1927 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1929         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1930         * rtl.h: Adjust prototype.
1932 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1934         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1935         (prev_active_insn): Likewise.
1936         (active_insn_p): Likewise.
1937         * rtl.h: Adjust prototypes.
1938         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1939         * config/arc/arc.md: Likewise.
1940         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1941         (branch_needs_nop_p): Likewise.
1942         (use_skip_p): Likewise.
1943         * config/sh/sh.c (gen_block_redirect): Likewise.
1944         (split_branches): Likewise.
1945         * reorg.c (optimize_skip): Likewise.
1946         (fill_simple_delay_slots): Likewise.
1947         (fill_slots_from_thread): Likewise.
1948         (relax_delay_slots): Likewise.
1949         * resource.c (mark_target_live_regs): Likewise.
1951 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1953         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1954         type to rtx_insn *.
1955         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1956         (prev_nonnote_nondebug_insn): Likewise.
1957         * config/cris/cris-protos.h: Adjust prototype.
1958         * rtl.h: Likewise.
1959         * jump.c (rtx_renumbered_equal_p): Adjust.
1961 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1963         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1964         * rtl.h: Adjust prototype.
1965         * config/sh/sh.md: Adjust.
1966         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1968 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1970         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1971         (prev_nondebug_insn): Likewise.
1972         * loop-doloop.c (doloop_condition_get): Likewise.
1973         * rtl.h: Adjust prototype.
1974         * cfgloop.h: Likewise.
1976 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1978         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1979         (prev_nonnote_insn): Likewise.
1980         * jump.c (reversed_comparison_code_parts): Likewise.
1981         (reversed_comparison): Likewise.
1982         * rtl.h: Adjust prototypes.
1983         * config/arc/arc.md: Adjust.
1984         * cse.c (find_comparison_args): Likewise.
1985         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1986         (fix_reg_dead_note): Change argument type to rtx_insn *.
1987         (delete_prior_computation): Likewise.
1988         (delete_computation): Likewise.
1989         (fill_slots_from_thread): Adjust.
1990         (relax_delay_slots): Likewise.
1991         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1992         (simplify_relational_operation_1): Likewise.
1993         (simplify_ternary_operation): Likewise.
1995 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1997         * config/arc/arc-protos.h (arc_label_align): Change type of
1998         variables from rtx to rtx_insn *.
1999         * config/arc/arc.c (arc_label_align): Likewise.
2000         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
2001         * config/bfin/bfin.c (workaround_speculation): Likewise.
2002         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
2003         (find_last_same_clock): Likewise.
2004         (reorg_split_calls): Likewise.
2005         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
2006         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
2007         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
2008         (same_cmp_following_p): Likewise.
2009         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
2010         (same_cmp_following_p): Likwise.
2011         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
2012         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
2013         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
2014         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
2015         (rl78_alloc_physical_registers_cmp): Likewise.
2016         (rl78_alloc_physical_registers_umul): Likewise.
2017         (rl78_calculate_death_notes): Likewise.
2018         * config/s390/s390-protos.h (s390_label_align): Likewise.
2019         * config/s390/s390.c (s390_label_align): Likewise.
2020         * config/sh/sh.c (barrier_align): Likewise.
2021         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
2022         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
2023         (emit_cbcond_nop): Likewise.
2025 2016-09-22  Martin Liska  <mliska@suse.cz>
2027         PR ipa/77653
2028         * ipa-icf.c (sem_variable::merge): Yield merge operation if
2029         alias address matters, not necessarily address of original.
2031 2016-09-22  Richard Biener  <rguenther@suse.de>
2033         PR middle-end/77697
2034         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
2035         fold fails.
2037 2016-09-22  Richard Biener  <rguenther@suse.de>
2039         PR middle-end/77677
2040         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
2041         from constant folding results.
2042         (gimple_resimplify2): Likewise.
2043         (gimple_resimplify3): Likewise.
2045 2016-09-22  Richard Biener  <rguenther@suse.de>
2047         PR middle-end/77678
2048         * expr.c (expand_expr_real_1): Guard array access against negative
2049         offset.
2051 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2053         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
2054         of MPFR_RNDN.
2055         (format_floating): Likewise.
2057 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
2059         PR fortran/77665
2060         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2061         for all IFN_GOMP_SIMD_* internal fns, not just for
2062         IFN_GOMP_SIMD_ORDERED_*.
2064 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2066         PR target/77670
2067         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
2068         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
2069         instructions when you want to invert the test.
2070         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
2071         correct order for XXSEL.
2072         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
2073         for using XSCMP{EQ,GT,GE}DP.
2075 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
2077         * genconstants.c (main): Introduce noop_reader and convert call
2078         to read_md_files to a method call.
2079         * genenums.c (main): Likewise.
2080         * genmddeps.c (main): Likewise.
2081         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
2082         rtx_reader_ptr->get_top_level_filename ().
2083         (write_tm_preds_h): Likewise.
2084         (write_insn_preds_c): Likewise.
2085         * gensupport.c (class gen_reader): New subclass of rtx_reader.
2086         (rtx_handle_directive): Convert to...
2087         (gen_reader::handle_unknown_directive): ...this.
2088         (init_rtx_reader_args_cb): Convert return type from bool to
2089         rtx_reader *.  Create a gen_reader instance, using it for the
2090         call to read_md_files.  Return it if no errors occur.
2091         (init_rtx_reader_args): Convert return type from bool to
2092         rtx_reader *.
2093         * gensupport.h (init_rtx_reader_args_cb): Likewise.
2094         (init_rtx_reader_args_cb): Likewise.
2095         * read-md.c (struct file_name_list): Move to class rtx_reader.
2096         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2097         (read_md_filename): Delete in favor of
2098         rtx_reader::m_read_md_filename.
2099         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2100         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2101         (base_dir): Delete in favor of rtx_reader::m_base_dir.
2102         (first_dir_md_include): Delete in favor of
2103         rtx_reader::m_first_dir_md_include.
2104         (last_dir_md_include_ptr): Delete in favor of
2105         rtx_reader::m_last_dir_md_include_ptr.
2106         (max_include_len): Delete.
2107         (rtx_reader_ptr): New.
2108         (fatal_with_file_and_line): Use get_filename and get_lineno
2109         accessors of rtx_reader_ptr.
2110         (require_char_ws): Likewise.
2111         (rtx_reader::read_char): New method, based on ::read_char.
2112         (rtx_reader::unread_char): New method, based on ::unread_char.
2113         (read_escape): Use get_filename and get_lineno accessors of
2114         rtx_reader_ptr.
2115         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2116         (read_string): Use get_filename and get_lineno accessors of
2117         rtx_reader_ptr.
2118         (rtx_reader::rtx_reader): New ctor.
2119         (rtx_reader::~rtx_reader): New dtor.
2120         (handle_include): Convert from a function to...
2121         (rtx_reader::handle_include): ...this method, converting
2122         handle_directive from a callback to a virtual function.
2123         (handle_file): Likewise, converting to...
2124         (rtx_reader::handle_file): ...this method.
2125         (handle_toplevel_file): Likewise, converting to...
2126         (rtx_reader::handle_toplevel_file): ...this method.
2127         (rtx_reader::get_current_location): New method.
2128         (parse_include): Convert from a function to...
2129         (rtx_reader::add_include_path): ...this method, dropping redundant
2130         update to unused max_include_len.
2131         (read_md_files): Convert from a function to...
2132         (rtx_reader::read_md_files): ...this method, converting
2133         handle_directive from a callback to a virtual function.
2134         (noop_reader::handle_unknown_directive): New method.
2135         * read-md.h (directive_handler_t): Delete this typedef.
2136         (in_fname): Delete.
2137         (read_md_file): Delete.
2138         (read_md_lineno): Delete.
2139         (read_md_filename): Delete.
2140         (class rtx_reader): New class.
2141         (rtx_reader_ptr): New decl.
2142         (class noop_reader): New subclass of rtx_reader.
2143         (read_char): Reimplement in terms of rtx_reader::read_char.
2144         (unread_char): Reimplement in terms of rtx_reader::unread_char.
2145         (read_md_files): Delete.
2146         * read-rtl.c (read_rtx_code): Update for deletion of globals
2147         read_md_filename and read_md_lineno.
2149 2016-09-21  Jason Merrill  <jason@redhat.com>
2151         * input.h (from_macro_definition_at): New.
2153 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2155         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2157 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2159         PR tree-optimization/77550
2160         * tree-vect-stmts.c (create_array_ref): Change parameters.
2161         (get_group_alias_ptr_type): New function.
2162         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2164 2016-09-21  Marek Polacek  <polacek@redhat.com>
2166         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2167         Add falls through comment.
2169 2016-09-21  Richard Biener  <rguenther@suse.de>
2171         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2172         (replace_child): Likewise.
2173         (remove_child_TAG): Adjust.
2174         (move_marked_base_types): Likewise.
2175         (prune_unused_types_prune): Clear die_sib of removed children.
2177 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
2179         PR target/77326
2180         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2181         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
2183 2016-09-21  Richard Biener  <rguenther@suse.de>
2185         PR tree-optimization/77648
2186         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
2187         with complex RHS.
2188         (make_transitive_closure_constraints): Adjust comment.
2189         (make_any_offset_constraints): New function.
2190         (handle_rhs_call): Make sure to first expand a pointer to all
2191         subfields before transitively closing it.
2192         (handle_const_call): Likewise.  Properly expand returned
2193         pointers as well.
2194         (handle_pure_call): Likewise.
2196 2016-09-21  Richard Biener  <rguenther@suse.de>
2197             Jakub Jelinek  <jakub@redhat.com>
2199         PR tree-optimization/77621
2200         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2201         group at non-vectorizable stmts.
2203 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2205         PR tree-optimization/72835
2206         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
2207         (make_new_ssa_for_all_defs): Likewise.
2208         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
2210 2016-09-20  Martin Sebor  <msebor@redhat.com>
2212         PR middle-end/49905
2213         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
2214         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
2215         * config/linux.c (gnu_libc_printf_pointer_format): New function.
2216         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
2217         * config/sol2.c (solaris_printf_pointer_format): New function.
2218         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
2219         options.
2220         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
2221         * doc/tm.texi: Regenerate.
2222         * gimple-fold.h (get_range_strlen): New function.
2223         (get_maxval_strlen): Declare existing function.
2224         * gimple-fold.c (get_range_strlen): Add arguments and compute both
2225         maximum and minimum.
2226          (get_range_strlen): Define overload.
2227         (get_maxval_strlen): Adjust.
2228         * gimple-ssa-sprintf.c: New file and pass.
2229         * passes.def (pass_sprintf_length): Add new pass.
2230         * targhooks.h (default_printf_pointer_format): Declare new function.
2231         (gnu_libc_printf_pointer_format): Same.
2232         (solaris_libc_printf_pointer_format): Same.
2233         * targhooks.c (default_printf_pointer_format): Define new function.
2234         * tree-pass.h (make_pass_sprintf_length): Declare new function.
2235         * print-tree.c: Increase buffer size.
2237 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2239         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
2241 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2243         * common.opt: New option -fipa-vrp.
2244         * ipa-cp.c (ipa_get_vr_lat): New.
2245         (ipcp_vr_lattice::print): Likewise.
2246         (print_all_lattices): Call ipcp_vr_lattice::print.
2247         (ipcp_vr_lattice::meet_with): New.
2248         (ipcp_vr_lattice::meet_with_1): Likewise.
2249         (ipcp_vr_lattice::top_p): Likewise.
2250         (ipcp_vr_lattice::bottom_p): Likewsie.
2251         (ipcp_vr_lattice::set_to_bottom): Likewise.
2252         (set_all_contains_variable): Call VR set_to_bottom.
2253         (initialize_node_lattices): Init VR lattices.
2254         (propagate_vr_accross_jump_function): New.
2255         (propagate_constants_accross_call): Call
2256         propagate_vr_accross_jump_function.
2257         (ipcp_store_vr_results): New.
2258         (ipcp_driver): Handle VR.
2259         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2260         (ipa_set_jf_unknown): Likewise.
2261         (ipa_compute_jump_functions_for_edge): Likewise.
2262         (ipa_node_params_t::duplicate): Likewise.
2263         (ipa_write_jump_function): Likewise.
2264         (ipa_read_jump_function): Likewise.
2265         (write_ipcp_transformation_info): Likewise.
2266         (read_ipcp_transformation_info): Likewise.
2267         (ipcp_update_vr): New.
2268         (ipcp_transform_function): Handle VR.
2269         * ipa-prop.h (struct ipa_vr): New.
2270         * cgraph.c: Include tree-vrp.h.
2271         * cgraphunit.c: Likewise.
2272         * ipa-utils.c: Likewise.
2273         * ipa.c: Likewise.
2274         * opts.c: Likewise.
2275         * toplev.c: Likewise.
2276         * ipa-devirt.c: Likewise.
2277         * ipa-inline-transform.c: Likewise.
2278         * ipa-inline.c: Likewise.
2279         * ipa-profile.c: Likewise.
2281 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2283         * doc/invoke.texi: Document -fdump-tree-evrp.
2284         * passes.def: Define new pass_early_vrp.
2285         * timevar.def: Define new TV_TREE_EARLY_VRP.
2286         * tree-pass.h (make_pass_early_vrp): New.
2287         * tree-ssa-propagate.c: Make replace_uses_in non static.
2288         * tree-ssa-propagate.h: Export replace_uses_in.
2289         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2290         (extract_range_from_assert): Factor out
2291         extract_range_for_var_from_comparison_expr.
2292         (vrp_initialize_lattice): New.
2293         (vrp_initialize): Factor out vrp_initialize_lattice.
2294         (vrp_valueize): Fix it to reject complex value ranges.
2295         (vrp_free_lattice): New.
2296         (evrp_dom_walker::before_dom_children): Likewise.
2297         (evrp_dom_walker::after_dom_children): Likewise.
2298         (evrp_dom_walker::push_value_range): Likewise.
2299         (evrp_dom_walker::pop_value_range): Likewise.
2300         (execute_early_vrp): Likewise.
2301         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2302         (make_pass_early_vrp): New.
2304 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2306         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2307         instead of exact_log2.
2309 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2311         PR target/77621
2312         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2313         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2314         (ix86_add_stmt_cost): Penalize DFmode vector operations
2315         for !TARGET_VECTORIZE_DOUBLE.
2317 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
2319         * doc/invoke.texi (Warning Options): Simplify language.
2320         (Optimize Options): Complete sentence.
2322 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
2324         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
2325         early_finish hook.
2327 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2329         PR target/71395
2330         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
2331         inits on power8 and above, use the VMRGEW instruction instead of a
2332         permute.
2334         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
2335         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
2336         initialization.
2338 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2340         * config/aarch64/arm_neon.h
2341         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
2342         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
2343         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
2345 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2347         * config/var/vax.h (ELIMINABLE_REGS): Define.
2348         (INITIAL_ELIMINATION_OFFSET): Define.
2350 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
2352         PR middle-end/77624
2353         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2354         cast to void * if the cast is from some other pointer type.
2356 2016-09-20  Richard Biener  <rguenther@suse.de>
2358         PR tree-optimization/77646
2359         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2360         a VDEF.
2362 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2364         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
2365         attributes to all inlined functions and make them extern.
2367 2016-09-20  Richard Biener  <rguenther@suse.de>
2369         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
2370         hook.
2371         * debug.c (do_nothing_debug_hooks): Adjust.
2372         * dbxout.c (dbx_debug_hooks): Likewise.
2373         * sdbout.c (sdb_debug_hooks): Likewise.
2374         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
2375         (dwarf2out_finish): Move producer, filename and
2376         path annotation ...
2377         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
2378         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
2380 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2382         PR c++/77434
2383         * doc/invoke.texi: Document -Wint-in-bool-context.
2385         PR middle-end/77421
2386         * dwarf2out.c (output_loc_operands): Fix an assertion.
2388 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2390         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
2391         (CR_DECIMAL_DIG): New macro.
2393 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2395         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
2396         element.
2398 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
2400         PR rtl-optimization/77416
2401         * lra-remat.c (operand_to_remat): Process hard coded insn
2402         registers.
2404 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2406         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
2407         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
2409 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2411         * target.def (lra_p): Wordsmithing.
2412         * doc/tm.texi: Regenerate.
2414 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
2415             Jan Hubicka  <jh@suse.cz>
2417         PR target/77587
2418         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
2419         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
2420         Call ultimate_alias_target just once, not up to 4 times.
2422 2016-09-19  Richard Biener  <rguenther@suse.de>
2424         * dwarf2out.c (early_dwarf_finished): New global.
2425         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
2426         is false.
2427         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
2428         if called from LTO exit early.
2429         (dwarf2out_late_global_decl): When being during the early
2430         debug phase do not add locations but only const value attributes.
2431         Adjust the way we generate early DIEs for LTO.
2433 2016-09-19  Richard Biener  <rguenther@suse.de>
2435         PR middle-end/77605
2436         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
2437         proper niter to bound the loops.
2439 2016-09-19  Richard Biener  <rguenther@suse.de>
2441         PR tree-optimization/77514
2442         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
2443         search for folded stmt.
2445 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
2447         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
2448         * tree-pass.h (make_pass_early_thread_jumps): Declare.
2449         * tree-ssa-threadbackward.c (fsm_find_thread_path,
2450         fsm_find_thread_path, profitable_jump_thread_path,
2451         fsm_find_control_statement_thread_paths,
2452         find_jump_threads_backwards): Add speed_p parameter.
2453         (pass_data_early_thread_jumps): New pass.
2454         (make_pass_early_thread_jumps): New function.
2456 2016-09-17  Andreas Schwab  <schwab@suse.de>
2458         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
2459         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2461 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
2463         * recog.c (rest_of_handle_split_after_reload): Delete.
2464         (pass_split_after_reload::gate): New method.
2465         (pass_split_after_reload::execute): Call split_all_insns directly.
2467 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
2469         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
2470         parameters for functions taking long long arguments.
2472 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2474         PR target/77613
2475         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
2476         splat with truncate.
2478 2016-09-16  Jason Merrill  <jason@redhat.com>
2480         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
2481         New.
2482         * hwint.c (exact_log2): Use pow2p_hwi.
2483         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
2484         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
2485         * builtins.c (get_object_alignment_2, get_object_alignment)
2486         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
2487         least_bit_hwi.
2488         * calls.c (compute_argument_addresses, store_one_arg): Use
2489         least_bit_hwi.
2490         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
2491         * combine.c (force_to_mode): Use least_bit_hwi.
2492         (contains_muldiv, find_split_point, combine_simplify_rtx)
2493         (simplify_if_then_else, simplify_set, force_to_mode)
2494         (if_then_else_cond, simplify_and_const_int_1)
2495         (simplify_compare_const): Use pow2p_hwi.
2496         * cse.c (fold_rtx): Use pow2p_hwi.
2497         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
2498         Use least_bit_hwi.
2499         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
2500         (init_expmed_one_conv): Use pow2p_hwi.
2501         * expr.c (is_aligning_offset): Use pow2p_hwi.
2502         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
2503         (fold_binary_loc): Use pow2p_hwi.
2504         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
2505         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
2506         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
2507         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
2508         Use least_bit_hwi.
2509         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
2510         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
2511         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
2512         * omp-low.c (oacc_loop_fixed_partitions)
2513         (oacc_loop_auto_partitions): Use least_bit_hwi.
2514         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
2515         * stor-layout.c (place_field): Use least_bit_hwi.
2516         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
2517         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
2518         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
2519         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
2520         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
2521         * tree-vect-data-refs.c (vect_analyze_group_access_1)
2522         (vect_grouped_store_supported, vect_grouped_load_supported)
2523         (vect_permute_load_chain, vect_shift_permute_load_chain)
2524         (vect_transform_grouped_load): Use pow2p_hwi.
2525         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
2526         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
2527         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
2528         least_bit_hwi.
2529         * tsan.c (instrument_expr): Use least_bit_hwi.
2530         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
2532 2016-09-16  Andreas Schwab  <schwab@suse.de>
2534         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
2535         OFFSET, not offset.
2536         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2538 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2540         PR target/77526
2541         * combine.c (rest_of_handle_combine): If any edges have been purged,
2542         free dominators if available.
2544 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2545             Eric Botcazou  <ebotcazou@adacore.com>
2547         PR middle-end/77594
2548         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2549         through into expand_addsub_overflow after expand_neg_overflow.
2551 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
2553         * diagnostic-show-locus.c
2554         (selftest::test_fixit_insert_containing_newline): New function.
2555         (selftest::test_fixit_replace_containing_newline): New function.
2556         (selftest::diagnostic_show_locus_c_tests): Call the above.
2558 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
2560         PR tree-optimization/77503
2561         * tree-vect-loop.c (vectorizable_reduction): Record reduction
2562         code for CONST_COND_REDUCTION at analysis stage and use it at
2563         transform stage.
2564         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2565         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2566         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2567         field.
2569 2016-09-15  Richard Biener  <rguenther@suse.de>
2571         PR middle-end/77544
2572         * fold-const.c (split_tree): Do not split constant ~X.
2574 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2576         PR rtl-optimization/77425
2577         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2578         is NULL.
2580         PR middle-end/77475
2581         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2582         use %qs instead of %s where desirable, use argument instead of arg in
2583         the diagnostic wording, add list of supported strategies and
2584         spellcheck hint.
2585         (ix86_option_override_internal): Emit target("m...") instead of
2586         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2587         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2588         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2589         main_args_p ? "..." : "..." in diagnostics to make translation
2590         possible.
2592 2016-09-15  Richard Biener  <rguenther@suse.de>
2594         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2595         extra offset argument.
2596         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2597         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2598         to reflect new offset parameter.
2599         * doc/tm.texi: Regenerate.
2600         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2601         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2602         offset argument.
2603         (darwin_asm_output_dwarf_offset): Likewise.
2604         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2605         argument.
2606         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2607         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2608         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2610 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2612         PR fortran/72743
2613         * ipa-icf.c (set_alias_uids): New function.
2614         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2615         all the merged variable's referring aliases.
2617 2016-09-15  Richard Biener  <rguenther@suse.de>
2619         PR tree-optimization/77514
2620         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2621         only forced_stmts sequence.
2623 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2625         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2626         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2627         FOR_EACH_SSA_NAME to iterate over SSA variables.
2628         (pass_expand::execute): Likewise.
2629         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2630         * tree-cfg.c (dump_function_to_file): Likewise.
2631         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2632         (update_ssa): Likewise.
2633         * tree-ssa-alias.c (dump_alias_info): Likewise.
2634         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2635         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2636         (create_outofssa_var_map): Likewise.
2637         (coalesce_ssa_name): Likewise.
2638         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2639         * tree-ssa-pre.c (compute_avail): Likewise.
2640         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2641         (scc_vn_restore_ssa_info): Likewise.
2642         (free_scc_vn): Likwise.
2643         (run_scc_vn): Likewise.
2644         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2645         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2646         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2647         * tree-ssa.c (verify_ssa): Likewise.
2649 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2651         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2652         and mips64r2 as default 32-bit and 64-bit architectures.
2653         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2654         as default 32-bit and 64-bit architectures.
2656 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2658         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2659         of succ edge.
2661 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2663         * target.def (lra_p): Change commentary (for the manual) for the
2664         new default.
2665         * doc/tm.texi: Regenerate.
2667 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2669         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2670         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2671         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2672         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2674 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2676         * targhooks.c (default_lra_p): Return true instead of false.
2678 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2680         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2681         hook_bool_void_false.
2682         * config/avr/avr.c: Ditto.
2683         * config/bfin/bfin.c: Ditto.
2684         * config/c6x/c6x.c: Ditto.
2685         * config/cr16/cr16.c: Ditto.
2686         * config/cris/cris.c: Ditto.
2687         * config/epiphany/epiphany.c: Ditto.
2688         * config/fr30/fr30.c: Ditto.
2689         * config/frv/frv.c: Ditto.
2690         * config/h8300/h8300.c: Ditto.
2691         * config/ia64/ia64.c: Ditto.
2692         * config/iq2000/iq2000.c: Ditto.
2693         * config/lm32/lm32.c: Ditto.
2694         * config/m32c/m32c.c: Ditto.
2695         * config/m32r/m32r.c: Ditto.
2696         * config/m68k/m68k.c: Ditto.
2697         * config/mcore/mcore.c: Ditto.
2698         * config/microblaze/microblaze.c: Ditto.
2699         * config/mmix/mmix.c: Ditto.
2700         * config/mn10300/mn10300.c: Ditto.
2701         * config/moxie/moxie.c: Ditto.
2702         * config/msp430/msp430.c: Ditto.
2703         * config/nios2/nios2.c: Ditto.
2704         * config/nvptx/nvptx.c: Ditto.
2705         * config/pa/pa.c: Ditto.
2706         * config/pdp11/pdp11.c: Ditto.
2707         * config/rl78/rl78.c: Ditto.
2708         * config/sparc/sparc.c: Ditto.
2709         * config/spu/spu.c: Ditto.
2710         * config/stormy16/stormy16.c: Ditto.
2711         * config/tilegx/tilegx.c: Ditto.
2712         * config/tilepro/tilepro.c: Ditto.
2713         * config/v850/v850.c: Ditto.
2714         * config/vax/vax.c: Ditto.
2715         * config/visium/visium.c: Ditto.
2716         * config/xtensa/xtensa.c: Ditto.
2718 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2720         PR sanitizer/68260
2721         * tsan.c: Include target.h.
2722         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2723         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2724         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2725         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2726         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2728 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2729             Martin Liska  <mliska@suse.cz>
2731         PR middle-end/77574
2732         * predict.c (force_edge_cold): Add braces to a condition.
2734 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2736         PR rtl-optimization/77289
2737         * lra-constraints.c (get_final_hard_regno): Removed.
2738         (get_hard_regno): Add new parameter final_p.
2739         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2740         (operands_match_p): Adjust call to get_hard_regno.
2741         (uses_hard_regs_p): Likewise.
2742         (process_alt_operands): Likewise.
2744 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2746         PR target/70713
2747         * config/msp430/msp430.c (msp430_start_function): Emit an error
2748         if a function is both weak and specifies an interrupt number.
2750 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2752         PR tree-optimization/77454
2753         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2754         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2755         Formatting fix.
2757 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2759         * config/aarch64/aarch64-builtins.c
2760         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2762 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2764         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2765         SFmode and SCmode arguments by reference.
2767 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2769         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2770         Rename to...
2771         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2772         for renaming of add_fixit_insert to add_fixit_insert_before.
2773         (selftest::test_one_liner_fixit_insert_after): New function.
2774         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2775         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2776         (selftest::test_one_liner_many_fixits): Likewise.
2777         (selftest::test_diagnostic_show_locus_one_liner): Update for
2778         renaming, call new test function.
2779         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2780         renaming of add_fixit_insert to add_fixit_insert_before.
2781         (selftest::test_fixit_consolidation): Likewise.
2782         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2783         Likewise.
2784         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2785         (selftest::test_applying_fixits_insert_before): ...this.
2786         (selftest::test_applying_fixits_insert): Update for renaming of
2787         add_fixit_insert to add_fixit_insert_before.
2788         (selftest::test_applying_fixits_insert_after): New function.
2789         (selftest::test_applying_fixits_insert_after_at_line_end): New
2790         function.
2791         (selftest::test_applying_fixits_insert_after_failure): New function.
2792         (selftest::test_applying_fixits_multiple): Update for renaming of
2793         add_fixit_insert to add_fixit_insert_before.
2794         (selftest::change_line): Likewise.
2795         (selftest::test_applying_fixits_unreadable_file): Likewise.
2796         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2797         (selftest::test_applying_fixits_column_validation): Likewise.
2798         (selftest::test_applying_fixits_column_validation): Likewise.
2799         (selftest::edit_context_c_tests): Update for renamed test function;
2800         call new test functions.
2802 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2804         PR tree-optimization/77536
2805         PR rtl-optimization/68212
2806         * config/rs6000/rs6000.md (div->recip splitter): Remove
2807         optimize_insn_for_speed_p condition.
2809 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2811         * optabs.c (prepare_cmp_insn): Update documentation comment.
2813 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2814             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2816         PR middle-end/77475
2817         * opts.h (candidates_list_and_hint): Declare.
2818         * opts-common.c (candidates_list_and_hint): New function.
2819         (cmdline_handle_error): Use it.
2821 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2823         * edit-context.c (edited_line::get_len): New accessor.
2824         (edited_file::print_diff): Split out hunk-printing into...
2825         (edited_file::print_diff_hunk): New method.
2826         (edited_file::print_diff_line): New method.
2828 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2830         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2831         New tuning option.
2832         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2833         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2834         (aarch64_operands_ok_for_ldpstp): Return false if
2835         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2836         was SImode and the alignment is less than 8 byte.
2837         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2839 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2841         PR target/77570
2842         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2844 2016-09-12  Marek Polacek  <polacek@redhat.com>
2846         * doc/extend.texi: Use lowercase "boolean".
2847         * doc/invoke.texi: Likewise.
2848         * doc/md.texi: Likewise.
2849         * target.def: Likewise.
2850         * doc/tm.texi: Regenerated.
2852 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2854         PR middle-end/77426
2855         * expmed.c (synth_mult): Delete duplicate mode check.
2857 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2859         PR C/71602
2860         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2861         va_list type only.
2862         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2863         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2865 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2867         PR rtl-optimization/77289
2868         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2869         register numbers.  Remove support for subregs.
2870         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2871         (get_reg_class): Delete removed get_final_hard_regno() argument.
2872         (uses_hard_regs_p): Call get_final_hard_regno().
2874 2016-09-09  Martin Sebor  <msebor@redhat.com>
2876         PR c/77520
2877         PR c/77521
2878         * pretty-print.c (pp_quoted_string): New function.
2879         (pp_format): Call it for %c and %s directives.
2881 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2883         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2884         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2885         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2886         * target.def (frame_pointer_required, can_eliminate): Likewise.
2887         * doc/tm.texi: Regenerated.
2888         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2889         ELIMINABLE_REGS.
2890         * df-scan.c (df_hard_reg_init): Likewise.
2891         * ira.c (ira_setup_eliminable_regset): Likewise.
2892         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2893         init_elim_table): Likewise.
2894         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2895         set_initial_elim_offsets, update_eliminables,
2896         init_elim_table): Likewise.
2897         * rtlanal.c (get_initial_register_offset): Likewise.
2898         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2899         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2900         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2901         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2902         * config/fr30/fr30.h: Fix comment.
2903         * config/frv/frv.c: Likewise.
2904         * config/frv/frv.h: Likewise.
2905         * config/ft32/ft32.h: Likewise.
2906         * config/visium/visium.h: Likewise.
2907         * config/pa/pa64-linux.h: Likewise.
2908         * config/v850/v850.h: Likewise.
2909         * config/cris/cris.c: Likewise.
2910         * config/ia64/ia64.h: Likewise.
2911         * config/moxie/moxie.h: Likewise.
2912         * config/m32r/m32r.h: Likewise.
2914 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2916         PR target/77267
2917         * config.in: Regenerate.
2918         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2919         New macro.
2920         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2921         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2922         static-libmpxwrappers case.
2923         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2924         MPX_LD_AS_NEEDED_GUARD_POP.
2925         * configure: Regenerate.
2926         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2927         defined if linker support "--push-state"/"--pop-state".
2929 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2931         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2933 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2935         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2936         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2937         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2938         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2939         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2940         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2941         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2942         Document.
2943         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2944         width macros from TS 18661-1.
2945         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2947 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2949         PR fortran/77516
2950         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2951         OMP_CLAUSE_SAFELEN_EXPR.
2953 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2955         * Makefile.in (OBJS): Add substring-locations.o.
2956         * langhooks-def.h (class substring_loc): New forward decl.
2957         (lhd_get_substring_location): New decl.
2958         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2959         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2960         * langhooks.c (lhd_get_substring_location): New function.
2961         * langhooks.h (class substring_loc): New forward decl.
2962         (struct lang_hooks): Add field get_substring_location.
2963         * substring-locations.c: New file, taking definition of
2964         format_warning_va and format_warning_at_substring from
2965         c-family/c-format.c, making them non-static.
2966         * substring-locations.h (class substring_loc): Move class here
2967         from c-family/c-common.h.  Add and rewrite comments.
2968         (format_warning_va): New decl.
2969         (format_warning_at_substring): New decl.
2970         (get_source_location_for_substring): Add comment.
2972 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2974         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2975         to avoid -Wnarrowing warning.
2976         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2977         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2979 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2981         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2982         Avoid use of base_offset if offset already in range.
2984 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2986         * config/sh/sh-protos.h (struct sh_atomic_model,
2987         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2988         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2989         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2990         * config/sh/sh.h (struct sh_atomic_model,
2991         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2992         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2993         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2994         Guard with __cplusplus.
2996 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2998         PR target/69255
2999         * config/i386/i386.c (ix86_expand_builtin): For builtin with
3000         unsupported or unknown ISA, use expand_call.
3002 2016-09-06  Martin Liska  <mliska@suse.cz>
3004         PR gcov-profile/77378
3005         PR gcov-profile/77466
3006         * tree-profile.c (tree_profiling): Detect whether target can use
3007         -fprofile-update=atomic.
3009 2016-09-06  Richard Biener  <rguenther@suse.de>
3011         PR tree-optimization/77479
3012         * tree-vrp.c (update_value_range): Extend overflow handling to
3013         VARYING.
3015 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3017         PR target/77476
3018         * config/i386/i386.md (isa): Add x64_avx512bw.
3019         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
3020         (kmov_isa): New mode attr.
3021         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
3022         (*zero_extend<mode>si2): Likewise.
3023         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
3025 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
3027         * doc/invoke.texi (SPU Options): nops -> NOPs.
3028         (x86 Options): Ditto.
3030 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3032         PR middle-end/77475
3033         * toplev.c (process_options): Temporarily set input_location
3034         to UNKNOWN_LOCATION around targetm.target_option.override () call.
3036 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
3038         PR rtl-optimization/77452
3039         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3040         inner-mode reference to a CONST_VECTOR constant in the constant pool.
3042 2016-09-05  Marek Polacek  <polacek@redhat.com>
3044         PR c/77423
3045         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
3047 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3049         PR other/77421
3050         * gensupport.c (alter_output_for_subst_insn): Remove redundant
3051         *insn_out == '*' test.  Don't copy unnecessary to yet another
3052         memory buffer, and don't leak it.
3054         PR rtl-optimization/77425
3055         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
3057 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
3059         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
3061 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3063         * common.opt (fdiagnostics-generate-patch): New option.
3064         * diagnostic.c: Include "edit-context.h".
3065         (diagnostic_initialize): Initialize context->edit_context_ptr.
3066         (diagnostic_finish): Delete context->edit_context_ptr.
3067         (diagnostic_report_diagnostic): Add fix-it hints from the
3068         diagnostic to context->edit_context_ptr, if any.
3069         * diagnostic.h (class edit_context): Add forward decl.
3070         (struct diagnostic_context): Add field "edit_context_ptr".
3071         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3072         -fdiagnostics-generate-patch.
3073         (-fdiagnostics-generate-patch): New item.
3074         * toplev.c: Include "edit-context.h".
3075         (process_options): Set global_dc->edit_context_ptr to a new
3076         edit_context if the options need one.
3077         (toplev::main): Handle -fdiagnostics-generate-patch by using
3078         global_dc->edit_context_ptr.
3080 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3082         PR c/65467
3083         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
3084         map and firstprivate clauses on target construct for _Atomic
3085         qualified decls.
3086         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
3087         on target construct for _Atomic qualified decls.
3088         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
3089         decls.
3090         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
3091         _Atomic qualified arguments not mentioned in uniform clause.
3093 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3095         * Makefile.in (OBJS-libcommon): Add edit-context.o.
3096         * diagnostic-color.c (color_dict): Add "diff-filename",
3097         "diff-hunk", "diff-delete", and "diff-insert".
3098         (parse_gcc_colors): Update default value of GCC_COLORS in comment
3099         to reflect above changes.
3100         * doc/invoke.texi (-fdiagnostics-color): Update description of
3101         default GCC_COLORS, and of the supported capabilities.
3102         * edit-context.c: New file.
3103         * edit-context.h: New file.
3104         * input.c (struct fcache): Add field "missing_trailing_newline".
3105         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3106         true.
3107         (add_file_to_cache_tab): Likewise.
3108         (fcache::fcache): Likewise.
3109         (get_next_line): Update c->missing_trailing_newline.
3110         (location_missing_trailing_newline): New function.
3111         * input.h (location_missing_trailing_newline): New decl.
3112         * selftest-run-tests.c (selftest::run_tests): Call
3113         edit_context_c_tests.
3114         * selftest.h (edit_context_c_tests): New decl.
3116 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3117             Richard Biener  <rguenth@suse.de>
3119         PR tree-optimization/77444
3120         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3121         as steptype, remove redundant initialization.
3123 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3125         PR sanitizer/77396
3126         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3127         (sanopt_optimize_walker): Optimize away
3128         __asan_before_dynamic_init (...) followed by
3129         __asan_after_dynamic_init () without intervening memory loads/stores.
3130         * ipa-pure-const.c (special_builtin_state): Handle
3131         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3132         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3134 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3136         * cfg.c (free_original_copy_tables): Replace second assignment of
3137         bb_copy = NULL by bb_original = NULL. 
3139 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3141         PR other/77421
3142         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3143         assignment added in r216794.
3145 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3147         * Makefile.in (OBJS): Add typed-splay-tree.o.
3148         * selftest-run-tests.c (selftest::run_tests): Call
3149         typed_splay_tree_c_tests.
3150         * selftest.h (typed_splay_tree_c_tests): New decl.
3151         * typed-splay-tree.c: New file.
3152         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3153         (typed_splay_tree::max): New method.
3154         (typed_splay_tree::min): New method.
3155         (typed_splay_tree::foreach): New method.
3156         (typed_splay_tree::closure): New struct.
3157         (typed_splay_tree::inner_foreach_fn): New function.
3159 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3161         * ipa-cp.c (ipcp_store_bits_results): Change option name from
3162         -fipa-cp-bit to -fipa-bit-cp.
3164 2016-09-01  Martin Sebor  <msebor@redhat.com>
3166         PR tree-optimization/71831
3167         * tree-object-size.h: Return bool instead of the size and add
3168         argument for the size.
3169         * tree-object-size.c (compute_object_offset): Update signature.
3170         (addr_object_size): Same.
3171         (compute_builtin_object_size): Return bool instead of the size
3172         and add argument for the size.  Handle POINTER_PLUS_EXPR when
3173         optimization is disabled.
3174         (expr_object_size): Adjust.
3175         (plus_stmt_object_size): Adjust.
3176         (pass_object_sizes::execute): Adjust.
3177         * builtins.c (fold_builtin_object_size): Adjust.
3178         * doc/extend.texi (Object Size Checking): Update.
3179         * ubsan.c (instrument_object_size): Adjust.
3181 2016-09-01  Martin Sebor  <msebor@redhat.com>
3183         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
3184         it fits the output of the formatted function regardless of its
3185         arguments.
3186         * gcc/genmodes.c (parser::parse_expr): Same.
3187         * gimplify.c (gimplify_asm_expr): Same.
3188         * passes.c (pass_manager::register_one_dump_file): Same.
3189         * print-tree.c (print_node): Same.
3191 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3193         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
3195 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3197         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
3199 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3201         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
3202         * config/rs6000/vector.md: Ditto.
3203         * config/rs6000/vsx.md: Ditto.
3205 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3207         * ipa-inline-analysis.c (param_change_prob): Get to the base object
3208         first in all cases.
3210 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3212         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
3213         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
3214         *return_and_restore_gpregs_<mode>_r11,
3215         *return_and_restore_gpregs_<mode>_r12,
3216         *return_and_restore_gpregs_<mode>_r1,
3217         *return_and_restore_fpregs_<mode>_r11,
3218         *return_and_restore_fpregs_<mode>_r12,
3219         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
3220         directly instead of via the "l" constraint.  Renumber operands.
3221         Fix whitespace.
3223 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3225         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
3226         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
3227         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
3228         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
3229         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
3230         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
3231         *call_value_nonlocal_darwin64, reload_macho_picbase,
3232         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
3233         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
3234         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
3235         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
3236         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
3237         *save_fpregs_<mode>_r1): Ditto.
3238         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
3239         *return_and_restore_gpregs_spe): Ditto.
3241 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3243         * config/rs6000/rs6000.md
3244         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
3245         the use of the link register.
3246         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
3248 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3249             Michael Meissner  <meissner@linux.vnet.ibm.com>
3251         PR target/72827
3252         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
3253         reg+reg addressing for TImode.
3254         (rs6000_legitimate_address_p): Only allow register indirect
3255         addressing for TImode, even without TARGET_QUAD_MEMORY.
3257 2016-09-01  Richard Biener  <rguenther@suse.de>
3259         PR middle-end/77436
3260         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3261         check whether the result fits the desired result type.
3263 2016-09-01  Nathan Sidwell  <nathan@acm.org>
3265         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3267 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
3269         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3270         New function.
3271         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3273 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3275         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3276         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3277         for comparisons of integer ZERO_EXTEND against zero.
3279 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3281         * config/i386/i386.c (ix86_option_override_internal): Also disable the
3282         STV pass if -mstackrealign is enabled.
3284 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
3286         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3287         AVX512IFMA.
3289 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3291         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3292         (layout_range::intersects_line_p): New method.
3293         (test_range_contains_point_for_single_point): Rename to...
3294         (test_layout_range_for_single_point): ...this, and add testing
3295         for layout_range::intersects_line_p.
3296         (test_range_contains_point_for_single_line): Rename to...
3297         (test_layout_range_for_single_line): ...this,  and add testing
3298         for layout_range::intersects_line_p.
3299         (test_range_contains_point_for_multiple_lines): Rename to...
3300         (test_layout_range_for_multiple_lines): ...this,  and add testing
3301         for layout_range::intersects_line_p.
3302         (layout::layout): Populate m_fixit_hints.
3303         (layout::get_expanded_location): Handle the case of a line-span
3304         for a fix-it hint.
3305         (layout::validate_fixit_hint_p): New method.
3306         (get_line_span_for_fixit_hint): New function.
3307         (layout::calculate_line_spans): Add spans for fixit-hints.
3308         (layout::should_print_annotation_line_p): New method.
3309         (layout::print_any_fixits): Drop param "richloc", instead using
3310         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
3311         (diagnostic_show_locus): Avoid printing blank annotation lines.
3312         (selftest::test_diagnostic_context::test_diagnostic_context):
3313         Initialize show_column and start_span.
3314         (selftest::test_diagnostic_context::start_span_cb): New static
3315         function.
3316         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3317         (selftest::diagnostic_show_locus_c_tests): Update for function
3318         renamings.  Call test_diagnostic_show_locus_fixit_lines.
3320 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3322         PR tree-optimization/73714
3323         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
3325 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3327         * selftest.c: Move "namespace selftest {" to top of file,
3328         removing explicit "selftest::" qualifiers throughout.
3330 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3332         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
3333         New types.
3334         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
3335         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
3336         Replace builtin with vector extension.
3337         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
3338         New types.
3339         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
3340         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
3341         Replace builtin with vector extension.
3342         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
3343         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
3344         Replace builtin with vector extension.
3345         * config/i386/xmmintrin.h (__m128_u): New type.
3346         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
3347         (_mm_load_ps, _mm_store_ps): Simplify.
3349 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
3351         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
3353 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3355         * diagnostic-show-locus.c (colorizer::begin_state): Support more
3356         than 3 ranges per diagnostic by alternating between color 1 and
3357         color 2.
3358         (layout::layout): Replace use of rich_location::MAX_RANGES
3359         with richloc->get_num_locations ().
3360         (layout::calculate_line_spans): Replace use of
3361         rich_location::MAX_RANGES with m_layout_ranges.length ().
3362         (layout::print_annotation_line): Handle arbitrary numbers of
3363         ranges in caret-printing by defaulting to '^'.
3364         (selftest::test_one_liner_many_fixits): New function.
3365         (test_diagnostic_show_locus_one_liner): Call it.
3366         * diagnostic.c (diagnostic_initialize): Update for renaming
3367         of rich_location::MAX_RANGES to
3368         rich_location::STATICALLY_ALLOCATED_RANGES.
3369         * diagnostic.h (struct diagnostic_context): Likewise.
3371 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3373         * selftest.c (selftest::named_temp_file::named_temp_file): New
3374         ctor.
3375         (selftest::temp_source_file::~temp_source_file): Move to...
3376         (selftest::named_temp_file::~named_temp_file): ...here.
3377         (selftest::test_named_temp_file): New function.
3378         (selftest::selftest_c_tests): Call test_named_temp_file.
3379         * selftest.h (class named_temp_file): New class.
3380         (class temp_source_file): Convert to a subclass of named_temp_file.
3382 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
3384         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
3385         USEs of LR_REGNO in returns and sibcalls.
3386         (rs6000_output_mi_thunk): Similar.
3387         (rs6000_sibcall_aix): Similar.
3388         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
3389         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
3390         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
3391         Remove the USE of LR_REGNO from the patterns as well.  Delete an
3392         obsolete comment.
3393         (return_internal_<mode>): Delete.
3395 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
3397         * gcc/config/aarch64/aarch64-simd.md
3398         (aarch64_ld2<mode>_dreg_le): New.
3399         (aarch64_ld2<mode>_dreg_be): New.
3400         (aarch64_ld2<mode>_dreg): Removed.
3401         (aarch64_ld3<mode>_dreg_le): New.
3402         (aarch64_ld3<mode>_dreg_be): New.
3403         (aarch64_ld3<mode>_dreg): Removed.
3404         (aarch64_ld4<mode>_dreg_le): New.
3405         (aarch64_ld4<mode>_dreg_be): New.
3406         (aarch64_ld4<mode>_dreg): Removed.
3407         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
3409 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3411         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
3412         redundant location param.
3413         (test_one_liner_fixit_remove): Likewise.
3414         (test_one_liner_fixit_replace): Likewise.
3415         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
3416         * gcc-rich-location.c
3417         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
3418         get_range_from_loc.  Drop overload taking a const char *.
3419         * gcc-rich-location.h
3420         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
3421         a const char *.
3423 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3425         * config/linux.c (linux_libc_has_function): Return true on musl.
3427 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3429         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
3431 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3433         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
3434         used for abnormal egdes.
3436 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
3438         PR tree-optimization/72866
3439         * tree-vect-patterns.c (search_type_for_mask): Turn into
3440         a small wrapper, move all code to ...
3441         (search_type_for_mask_1): ... this new function.  Add caching
3442         and adjust recursive calls.
3444         PR debug/77363
3445         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
3446         instead of lookup_type_die (type_main_variant (type)) even for array
3447         types.
3449         PR middle-end/77377
3450         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
3451         constant pool reference return x instead of c.
3453 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
3455         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
3456         include MQ.
3458 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3460         * input.c
3461         (selftest::test_make_location_nonpure_range_endpoints): Fix
3462         header comment.
3464 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3466         * diagnostic-show-locus.c
3467         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
3468         function.
3469         (selftest::test_diagnostic_show_locus_one_liner): Call it.
3470         * input.c (get_pure_location): Move to libcpp/line-map.c.
3471         * input.h (get_pure_location): Convert decl to an inline function
3472         calling implementation in libcpp.
3474 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
3476         PR target/77403
3477         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
3478         template for intel asm dialect.
3479         (vec_set_hi_<mode><mask_name>): Ditto.
3481 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3483         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
3484         (selftest::fail_formatted): Likewise.
3486 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3488         * input.c (make_location): Call get_start and get_finish
3489         on the endpoints to avoid storing packed ranges or ad-hoc
3490         ranges in them.
3491         (selftest::test_make_location_nonpure_range_endpoints): New function.
3492         (selftest::input_c_tests): Call it.
3493         * input.h (get_start): New inline function.
3495 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3497         PR c/77398
3498         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
3499         with assert.
3501 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
3503         * Makefile.in (gcov-iov.h): Add dummy recipe.
3505 2016-08-29  Nathan Sidwell  <nathan@acm.org>
3507         * config/nvptx/nvptx.c: #include tree-vrp.h.
3509 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
3511         PR target/77324
3512         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
3513         HIGH+LO construct during reload.
3515 2016-08-28  Tom de Vries  <tom@codesourcery.com>
3517         PR lto/70955
3518         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3519         'sysv_abi va_list' attribute.
3520         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3521         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3522         attributes.
3524 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3526         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
3527         * emit-rtl.c (unshare_all_rtl_1): Adjust.
3528         (unshare_all_rtl_again): Likewise.
3529         * function.c (assign_stack_local_1): Likewise.
3530         (assign_stack_temp_for_type): Likewise.
3532 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3534         * cfgbuild.c (make_edges): Adjust.
3535         * cfgrtl.c (can_delete_label_p): Likewise.
3536         * dwarf2cfi.c (create_trace_edges): Likewise.
3537         * except.c (sjlj_emit_dispatch_table): Likewise.
3538         * function.h (struct expr_status): make x_forced_labels a vector.
3539         * jump.c (rebuild_jump_labels_1): Adjust.
3540         * reload1.c (set_initial_label_offsets): Likewise.
3541         * stmt.c (force_label_rtx): Likewise.
3542         (expand_label): Likewise.
3544 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3546         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
3548 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
3550         PR tree-optimization/71077
3551         PR tree-optimization/68542
3552         * fold-const.c (fold_relational_const): Fix folding of
3553         VECTOR_CST comparisons that have a scalar boolean result type.
3554         (selftest::test_vector_folding): New static function.
3555         (selftest::fold_const_c_tests): Call it.
3557 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
3559         * doc/extend.texi (SPU Built-in Functions): Remove stale
3560         references to material formerly at IBM and Sony.
3562 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
3564         PR target/77349
3565         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3567 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3569         * diagnostic-show-locus.c
3570         (selftest::test_fixit_consolidation): New function.
3571         (selftest::diagnostic_show_locus_c_tests): Call it.
3572         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3573         constructor based on source_range.
3575 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3577         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3578         "fixit-delete".
3579         (parse_gcc_colors): Update description of default GCC_COLORS.
3580         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3581         (colorizer::set_fixit_insert): New method.
3582         (colorizer::set_fixit_delete): New method.
3583         (colorizer::get_color_by_name): New method.
3584         (colorizer::STATE_FIXIT_INSERT): New constant.
3585         (colorizer::STATE_FIXIT_DELETE): New constant.
3586         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3587         fields in favor of new field "m_stop_color".  Add fields
3588         "m_fixit_insert" and "m_fixit_delete".
3589         (colorizer::colorizer): Update for above changes.  Replace
3590         colorize_start calls with calls to get_color_by_name.
3591         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3592         STATE_FIXIT_DELETE.  Update for field renamings.
3593         (colorizer::finish_state): Simplify by using m_stop_color,
3594         rather than multiple identical "*_ce" fields.
3595         (colorizer::get_color_by_name): New method.
3596         (layout::print_any_fixits): Print insertions and replacements
3597         using the "fixit-insert" color, and deletions using the
3598         "fixit-delete" color.
3599         * doc/invoke.texi (-fdiagnostics-color): Update description of
3600         default GCC_COLORS, and of the supported capabilities.
3602 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3604         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3605         current_function_static_stack_size variable with the static
3606         stack frame size of the current function when
3607         flag_stack_usage_info is enabled.
3609 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3611         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3612         assignment inside if condition.
3614 2016-08-26  Richard Biener  <rguenther@suse.de>
3616         PR tree-optimization/69047
3617         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3618         extracts similar to what FRE does.
3619         (non_rewritable_mem_ref_base): Likewise.
3621 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3623         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3624         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3625         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3626         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3627         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3628         Likewise.
3629         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3630         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3631         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3632         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3633         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3635 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3637         PR target/70473
3638         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3639         reservation duration to 15 cycles.
3640         (cortex_a8_vfp_macs): Likewise.
3641         (cortex_a8_vfp_macd): Likewise.
3642         (cortex_a8_vfp_divs): Likewise.
3643         (cortex_a8_vfp_divd): Likewise.
3645 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3647         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3648         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3650 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3651             Martin Jambhor  <mjambor@suse.cz>
3653         * common.opt: New option -fipa-bit-cp.
3654         * doc/invoke.texi: Document -fipa-bit-cp.
3655         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3656         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3657         * tree-ssa-ccp.h: New header file.
3658         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3659         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3660         Replace all occurences of tree parameter by two new params: signop, int.
3661         (bit_value_unop_1): Change to bit_value_unop and export it.
3662         Replace all occurences of tree parameter by two new params: signop,
3663         int.
3664         (bit_value_binop): Change call from bit_value_binop_1 to
3665         bit_value_binop.
3666         (bit_value_assume_aligned): Likewise.
3667         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3668         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3669         to ccp_finalize.
3670         (ccp_finalize): Skip processing if val->mask == 0.
3671         * ipa-cp.c: Include tree-ssa-ccp.h
3672         (ipcp_bits_lattice): New class.
3673         (ipcp_param_lattice (bits_lattice): New member.
3674         (print_all_lattices): Call ipcp_bits_lattice::print.
3675         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3676         (initialize_node_lattices): Likewise.
3677         (propagate_bits_accross_jump_function): New function.
3678         (propagate_constants_accross_call): Call
3679         propagate_bits_accross_jump_function.
3680         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3681         (ipcp_store_bits_results): New function.
3682         (ipcp_driver): Call ipcp_store_bits_results.
3683         * ipa-prop.h (ipa_bits): New struct.
3684         (ipa_jump_func): Add new member bits of type ipa_bits.
3685         (ipa_param_descriptor): Change decl to decl_or_type.
3686         (ipa_get_param): Change decl to decl_or_type and assert on
3687         PARM_DECL.
3688         (ipa_get_type): New function.
3689         (ipcp_transformation_summary): New member bits.
3690         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3691         (ipa_populate_param_decls): Likewise.
3692         (ipa_dump_param): Likewise.
3693         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3694         function.
3695         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3696         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3697         propagation.
3698         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3699         (ipa_write_jump_function): Add streaming for ipa_bits.
3700         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3701         (write_ipcp_transformation_info): Add streaming for ipa_bits
3702         summary for ltrans.
3703         (read_ipcp_transfomration_info): Add support for reading streamed
3704         ipa_bits.
3705         (ipcp_update_bits): New function.
3706         (ipcp_transform_function): Call ipcp_update_bits.
3708 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3710         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3711         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3713 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3715         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3717 2016-08-25  Richard Biener  <rguenther@suse.de>
3719         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3720         Only add locations in late dwarf.
3721         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3722         (dwarf2out_early_finish): But do it here.
3724 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3725             Michael Collison  <michael.collison@arm.com>
3727         * config/arm/arm-modes.def: Add new condition code mode CC_V
3728         to represent the overflow bit.
3729         * config/arm/arm.c (maybe_get_arm_condition_code):
3730         Add support for CC_Vmode.
3731         (arm_gen_unlikely_cbranch): New function to generate common
3732         rtl conditional branches for overflow patterns.
3733         * config/arm/arm-protos.h: Add prototype for
3734         arm_gen_unlikely_cbranch.
3735         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3736         addsi3_compareV_upper): New patterns to support signed
3737         builtin overflow add operations.
3738         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3739         New patterns to support unsigned builtin add overflow operations.
3740         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3741         builtin overflow subtract operations,
3742         (usubv<mode>4): New patterns to support unsigned builtin subtract
3743         overflow operations.
3744         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3745         to support builtin overflow negate operations.
3747 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3749         Revert
3750         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3752         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3753         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3754         needed.
3756 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3758         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3759         MULTILIB_OPTIONS should be used.  Small wording fixes.
3760         * genmultilib: Memorize set of all option combinations in
3761         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3762         found in MULTILIB_OPTIONS by checking if option set is listed in
3763         combination_space.  Output new and existing error message to stderr.
3765 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3767         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3768         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3769         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3770         (MULTILIB_REUSE): Remove reuse rules for option set including
3771         -mfpu=fp-armv8 and -mfpu=vfpv4
3773 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3775         * config/arm/t-rtems: Add vfp multilib.
3777 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3779         * config/s390/s390.c (s390_asm_file_start): Call
3780         default_file_start.
3782 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3784         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3785         initialization of all 0's to the 0 constant, instead of directly
3786         generating XOR.  Add support for V4SImode vector initialization on
3787         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3788         initialization.  Change variables used in V4SFmode vector
3789         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3790         any memory addresses are in index form.  Add support for using
3791         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3792         with all of the same element.
3793         (regno_or_subregno): New helper function to return a register
3794         number for either REG or SUBREG.
3795         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3796         Use regno_or_subregno where possible.
3797         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3798         DImode value from two SImode values in order to generate V4SImode
3799         vector initialization on 64-bit systems with direct move.
3800         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3801         initialization.
3802         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3803         swappable.
3804         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3805         declaration.
3806         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3807         attributes to initialize V8HImode and V16QImode vectors with the
3808         same element.
3809         (VSX_SPLAT_COUNT): Likewise.
3810         (VSX_SPLAT_SUFFIX): Likewise.
3811         (UNSPEC_VSX_VEC_INIT): New unspec.
3812         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3813         Allow SFmode values to come from Altivec registers.
3814         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3815         on 64-bit systems with direct move.
3816         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3817         vector initializations, to allow V4SImode vector initializations
3818         on 64-bit systems with direct move.
3819         (vsx_splat_v4si): Likewise.
3820         (vsx_splat_v4si_di): Likewise.
3821         (vsx_splat_v4sf): Likewise.
3822         (vsx_splat_v4sf_internal): Likewise.
3823         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3824         register classes.
3825         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3826         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3827         initializing V8HImode and V16QImode vectors with the same
3828         element.
3829         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3830         optimization if -maltivec=be.
3832 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3834         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3835         attribute for alternatives 3 and 4.
3837 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3839         * selftest.c (selftest::assert_str_contains): New function.
3840         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3841         * selftest.h (selftest::assert_str_contains): New decl.
3842         (ASSERT_STR_CONTAINS): New macro.
3844 2016-08-23  Richard Biener  <rguenther@suse.de>
3846         PR tree-optimization/77286
3847         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3848         the CFG here.
3849         (vect_transform_loop): Split exit edges of loop and scalar
3850         loop if required and at the appropriate time.
3852 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3854         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3855         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3856         needed.
3857         Correct a typo in a comment.
3859 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3861         * config/s390/s390.md ("*andc_split"): New splitter for and with
3862         complement.
3864 2016-08-23  Richard Biener  <rguenther@suse.de>
3866         PR tree-optimization/27336
3867         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3868         by looking for a non-EH edge.
3869         (process_assert_insertions_for): Likewise.
3871 2016-08-23  Richard Biener  <rguenther@suse.de>
3873         PR middle-end/77305
3874         * statistics.c (statistics_counter_event): Robustify against
3875         NULL current_pass.
3877 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3879         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3880         for targets amdfam10 and barcelona.
3882 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3884         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3885         (zero_extend<mode>di2): Ditto.
3886         (*zero_extend<mode>si2): Ditto.
3887         (*zero_extendqihi2): Ditto.
3889 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3891         PR middle-end/77269
3892         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3893         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3895 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3897         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3898         identical consecutive elements.
3899         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3900         the node's def stmt, avoid printing an unwanted trailing newline by
3901         replacing the call to print_gimple_stmt() with its inlined body and
3902         adjusting it to not set pp_needs_newline and to call pp_flush()
3903         instead of pp_newline_and_flush().
3905 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3907         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3908         (float32_type_node, float64_type_node, float32x_type_node)
3909         (float128x_type_node): New macros.
3910         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3911         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3912         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3913         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3914         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3915         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3916         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3917         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3918         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3919         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3920         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3921         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3922         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3923         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3924         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3925         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3926         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3927         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3928         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3929         and copysign.
3930         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3931         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3932         * doc/extend.texi (Other Builtins): Document these built-in
3933         functions.
3934         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3935         for nan and nans.
3937 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3939         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3941 2016-08-22  Richard Biener  <rguenther@suse.de>
3943         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3945 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3947         PR target/77270
3948         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3949         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3950         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3952 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3954         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3955         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3956         (vrp_visit_switch_stmt): Likewise.
3957         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3958         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3959         (vrp_visit_stmt): Use extract_range_from_stmt.
3960         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3962 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3964         * Makefile.in: Add tree-vrp.h to GTFILES.
3965         * gengtype.c (open_base_files): Add tree-vrp.h.
3966         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3967         * builtins.c: Likewise.
3968         * fold-const.c: Likewise.
3969         * gimple-builder.c: Likewise.
3970         * gimple-laddress.c: Likewise.
3971         * hsa-gen.c: Likewise.
3972         * internal-fn.c: Likewise.
3973         * ssa.h: Likewise.
3974         * targhooks.c: Liewise,
3975         * tree-ssa-address.c: Likewise.
3976         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3977         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3978         * tree-vrp.h: New file.
3980 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3982         PR tree-optimization/61839
3983         * tree-vrp.c (two_valued_val_range_p): New.
3984         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3985         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3986         Also Convert VAR BINOP CST where VAR is two-valued to
3987         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3989 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3991         * diagnostic-show-locus.c
3992         (layout::annotation_line_showed_range_p): New method.
3993         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3994         Reimplement case fixit_hint::REPLACE to cover removals, and
3995         replacements where the range of the replacement isn't one
3996         of the ranges in the rich_location.
3997         (test_one_liner_fixit_replace): Likewise.
3998         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3999         function.
4000         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
4001         New function.
4002         (selftest::test_diagnostic_show_locus_one_liner): Call the new
4003         functions.
4004         * diagnostic.c (print_parseable_fixits): Remove case
4005         fixit_hint::REMOVE.
4007 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
4009         PR target/77270
4010         * config/i386/i386.c (ix86_option_override_internal): Remove
4011         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
4012         Enable SSE prefetch also for TARGET_PREFETCHWT1.
4013         Do not try to enable TARGET_PRFCHW ISA flag here.
4014         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
4015         Rewrite expander function body.
4016         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
4018 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
4020         PR c/32187
4021         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
4022         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
4023         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
4024         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
4025         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
4026         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
4027         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
4028         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
4029         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
4030         tree_index values.
4031         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
4032         macros.
4033         (struct floatn_type_info): New structure type.
4034         (floatn_nx_types): New variable declaration.
4035         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
4036         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
4037         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
4038         * tree.c (floatn_nx_types): New variable.
4039         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
4040         corresponding complex types.
4041         * target.def (floatn_mode): New hook.
4042         * targhooks.c: Include "real.h".
4043         (default_floatn_mode): New function.
4044         * targhooks.h (default_floatn_mode): New prototype.
4045         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
4046         types.
4047         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
4048         effective-target and dg-add-options keywords.
4049         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
4050         Document new effective-target keywords.
4051         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
4052         * doc/tm.texi: Regenerate.
4053         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
4054         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
4055         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
4056         18661-3.
4057         * real.h (struct real_format): Add field ieee_bits.
4058         * real.c (ieee_single_format, mips_single_format)
4059         (motorola_single_format, spu_single_format, ieee_double_format)
4060         (mips_double_format, motorola_double_format)
4061         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
4062         (ieee_extended_intel_128_format)
4063         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
4064         (mips_extended_format, ieee_quad_format, mips_quad_format)
4065         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
4066         (decimal_double_format, decimal_quad_format, ieee_half_format)
4067         (arm_half_format, real_internal_format: Initialize ieee_bits
4068         field.
4069         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
4070         float128_type_node.  Set float80_type_node to float64x_type_node
4071         if appropriate and long_double_type_node not appropriate.
4072         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
4073         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
4074         Initialize ieee_bits field.
4075         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
4076         (rs6000_init_builtins): Set ieee128_float_type_node to
4077         float128_type_node.
4078         (rs6000_floatn_mode): New function.
4080 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
4082         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4083         _rdseed64_step): Uglify argument names and/or local variable names
4084         in inline functions.
4085         * config/i386/rtmintrin.h (_xabort): Likewise.
4086         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
4087         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
4088         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
4089         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
4090         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
4091         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
4092         _mm_maskz_ternarylogic_epi32): Likewise.
4093         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
4094         __lwpins32, __lwpins64): Likewise.
4095         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
4096         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4097         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4098         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4099         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4100         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4101         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4102         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4103         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4104         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4105         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4106         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4107         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4108         _mm256_mask_i64gather_epi32): Likewise.
4109         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4110         * config/i386/ia32intrin.h (__writeeflags): Likewise.
4111         * config/i386/pkuintrin.h (_wrpkru): Likewise.
4112         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4113         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4114         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4115         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4116         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4117         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4118         _mm512_mask_prefetch_i64scatter_ps): Likewise.
4119         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4120         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4121         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4122         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4123         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4124         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4125         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4126         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4128         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4129         returning void.
4130         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4131         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4132         Likewise.
4133         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4134         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
4135         function name.
4136         (_rdpkru_u32): Add space after function name.
4138         * config/i386/t-i386 (i386-c.o): Don't depend on
4139         i386-builtin-types.inc.
4140         (i386.o): Depend on i386-builtin-types.inc.
4142 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
4144         PR target/77281
4145         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4146         Use const_vec_duplicate to check for duplicated elements.
4148 2016-08-19  Richard Biener  <rguenther@suse.de>
4150         PR tree-optimization/77290
4151         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4152         Fix flag_tree_parallelize_loops check.
4154 2016-08-19  Richard Biener  <rguenther@suse.de>
4156         * match.pd (x | 0 -> x): Add.
4158 2016-08-19  Richard Biener  <rguenther@suse.de>
4160         PR tree-optimization/77286
4161         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4162         Deal with virtual PHIs being out-of-order.
4164 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4166         * doc/invoke.texi (fverbose-asm): Note that source code lines
4167         are emitted, and provide an example.
4168         * final.c (asm_show_source): New function.
4169         (final_scan_insn): Call asm_show_source.
4171 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4173         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4174         param with diagnostic_kind.
4175         (class colorizer): Similarly replace field m_diagnostic with
4176         m_diagnostic_kind.
4177         (colorizer::colorizer): Replace diagnostic
4178         param with diagnostic_kind.
4179         (colorizer::begin_state): Update for above field change.
4180         (layout::layout): Replace diagnostic param with rich_location *
4181         and diagnostic_kind.
4182         (diagnostic_show_locus): Replace diagnostic param with richloc
4183         and diagnostic_kind.
4184         (class selftest::test_diagnostic_context): New class.
4185         (selftest::test_diagnostic_show_locus_unknown_location): New
4186         function.
4187         (selftest::test_one_liner_simple_caret): New function.
4188         (selftest::test_one_liner_caret_and_range): New function.
4189         (selftest::test_one_liner_multiple_carets_and_ranges): New
4190         function.
4191         (selftest::test_one_liner_fixit_remove): New function.
4192         (selftest::test_one_liner_fixit_replace): New function.
4193         (selftest::test_diagnostic_show_locus_one_liner): New function.
4194         (selftest::diagnostic_show_locus_c_tests): Call the new test
4195         functions.
4196         * diagnostic.c (diagnostic_initialize): Initialize
4197         colorize_source_p, show_ruler_p and parseable_fixits_p.
4198         (default_diagnostic_finalizer): Update for change to
4199         diagnostic_show_locus.
4200         (diagnostic_append_note): Likewise.
4201         * diagnostic.h (diagnostic_show_locus): Replace
4202         const diagnostic_info * param with location * and diagnostic_t.
4204 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4206         * input.c (saved_line_table): New global.
4207         (class selftest::temp_line_table): Rename to line_table_test and
4208         move declaration to selftest.h, and drop field m_old_line_table.
4209         (selftest::temp_line_table::temp_line_table): Rename ctor to...
4210         (selftest::line_table_test::line_table_test): ...this.  Add a
4211         default ctor.  Store current value of line_table within
4212         saved_line_table.
4213         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
4214         (selftest::line_table_test::~line_table_test): ...this, and
4215         restore line_table from the saved_line_table, rather than
4216         m_old_line_table.
4217         (selftest::test_accessing_ordinary_linemaps): Update for above
4218         renaming.
4219         (selftest::test_lexer): Likewise.
4220         (struct selftest::lexer_test): Likewise.
4221         (selftest::lexer_test::lexer_test): Likewise.
4222         (selftest::input_c_tests): Move the looping over test cases from
4223         here into...
4224         (selftest::for_each_line_table_case): New function.
4225         * input.h (saved_line_table): New decl.
4226         * selftest.h (struct selftest::line_table_case): New forward decl.
4227         (class selftest::line_table_test): New class, moved here from
4228         selftest::temp_line_table in input.c, and renamed.
4229         (selftest::for_each_line_table_case): New decl.
4231 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4233         PR target/72839
4234         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
4236 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
4238         PR middle-end/70895
4239         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
4240         enclosing parallel construct for reduction variables on OpenACC loop
4241         directives.
4243 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
4245         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
4246         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
4247         -gdwarf-3.
4248         (function_to_dwarf_procedure): Update comment.
4250 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4252         * input.c (diagnostics_file_cache_forcibly_evict_file): New
4253         function.
4254         * input.h (diagnostics_file_cache_forcibly_evict_file): New
4255         declaration.
4256         * selftest.c (selftest::temp_source_file::~temp_source_file):
4257         Evict m_filename from the diagnostic file cache.
4259 2016-08-18  Richard Biener  <rguenther@suse.de>
4261         * tree-pass.h (make_pass_materialize_all_clones): Declare.
4262         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4263         make_pass_materialize_all_clones): New simple IPA pass encapsulating
4264         clone materialization.
4265         * passes.def (all_late_ipa_passes): Start with
4266         pass_materialize_all_clones.
4267         * cgraphunit.c (symbol_table::compile): Remove call to
4268         materialize_all_clones.
4269         * tree-into-ssa.c: Include statistics.h.
4270         (update_ssa): Count number of times we do incremental/rewrite
4271         SSA update.
4273 2016-08-18  Richard Biener  <rguenther@suse.de>
4275         PR tree-optimization/77282
4276         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4277         When doing auto-parallelizing also prevent use of PHIs that
4278         carry dependences across loop backedges.
4280 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
4281             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4283         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4285 2016-08-18  Richard Biener  <rguenther@suse.de>
4287         * ssa-iterators.h (ssa_vuse_operand): New inline.
4288         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4289         (predicate_all_scalar_phis): Use remove_phi_node to remove
4290         phi nodes predicated.  Delay removing virtual PHIs.
4291         (predicate_mem_writes): Update virtual operands.
4292         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
4293         (tree_if_conversion): Do not rewrite virtual SSA form.
4294         * tree-phinodes.c (release_phi_node): Make static.
4295         * tree-phinodes.h (release_phi_node): Remove.
4297 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
4299         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4300         codes that appear in bdesc_* arrays, instead include i386-builtin.def
4301         twice to define those.
4302         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4303         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4304         bdesc_multi_arg): Define by including i386-builtin.def the third time.
4305         * config/i386/i386-builtin.def: New file.
4307 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
4309         * input.c (get_source_range_for_char): Rename to...
4310         (selftest::get_source_range_for_char): ...this, and move within
4311         the #if CHECKING_P guard.
4312         (get_num_source_ranges_for_substring): Rename to...
4313         (selftest::get_num_source_ranges_for_substring): ...this, move
4314         within the #if CHECKING_P guard, and make static.
4315         (selftest::assert_num_substring_ranges): Initialize
4316         actual_num_ranges.
4318 2016-08-18  Alan Modra  <amodra@gmail.com>
4320         PR rtl-optimization/72771
4321         * reload.c (find_reloads): Don't assume that a subreg mem is OK
4322         when find_reloads_toplev returns address_reloaded==-1.
4323         (alternative_allows_const_pool_ref): Update comment.
4325 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
4327         PR tree-optimization/71752
4328         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
4329         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
4331 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
4333         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
4334         instead of testing ECF_NORETURN bit in gimple_call_flags.
4335         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
4336         * predict.c (tree_bb_level_predictions): Likewise.
4337         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
4339         PR middle-end/77259
4340         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
4341         turning a call into __builtin_unreachable-like noreturn call, adjust
4342         gimple_call_set_fntype.
4343         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
4344         gimple_call_fntype has void return type.
4346 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
4348         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
4349         maybe_lookup_decl, to handle nested acc loop directives.
4351 2016-08-17  Richard Biener  <rguenther@suse.de>
4353         PR tree-optimization/76490
4354         * tree-vrp.c (update_value_range): Preserve overflow infinities
4355         when intersecting with ranges from get_range_info.
4356         (operand_less_p): Handle overflow infinities correctly.
4357         (value_range_constant_singleton): Use vrp_operand_equal_p
4358         to handle overflow max/min correctly.
4359         (vrp_valueize): Likewise.
4360         (union_ranges): Likewise.
4361         (intersect_ranges): Likewise.
4362         (vrp_visit_phi_node): Improve iteration limitation to only
4363         apply when we'll possibly re-visit the PHI via a changed argument
4364         on the backedge.
4366 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4368         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
4369         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
4370         rather than those that should not be built.
4372 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
4374         PR target/66488
4375         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
4377 2016-08-17  Richard Biener  <rguenther@suse.de>
4379         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
4380         (verify_vssa): New function verifying virtual SSA form.
4381         (verify_ssa): Call it.
4382         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
4383         Do not apply loop-closed SSA handling to virtuals.
4384         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
4385         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
4386         when rewriting their symbol.
4387         (prepare_def_site_for): Likewise.
4388         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
4389         operands of moved stmts.
4391 2016-08-17  Richard Biener  <rguenther@suse.de>
4393         PR tree-optimization/23855
4394         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
4395         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
4396         find guards to hoist.  Do not update SSA form but rewrite virtuals
4397         into loop closed SSA.
4398         (find_loop_guard): Adjust to skip already hoisted guards.  Do
4399         not mark virtuals for renaming or update SSA form.
4401 2016-08-17  Martin Liska  <mliska@suse.cz>
4403         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
4404         a LONG_LONG_TYPE_SIZE comparison.
4405         * gcov-io.h: Remove macro definitions.
4406         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
4407         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
4408         comparison.
4410 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4412         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
4413         that builtins not mentioned in bdesc_* arrays come first, then
4414         the ones mentioned in bdesc_* arrays in the order they appear in
4415         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
4416         IX86_BUILTIN__BDESC_*_LAST enumerator.
4417         (bdesc_mpx): Fix up a comment typo.
4418         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
4419         __builtin_ia32_vpcomneu[bwdq] builtins.
4420         (BDESC_VERIFY, BDESC_VERIFYS): Define.
4421         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
4422         enum ix86_builtins ordering.
4423         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
4424         for direct bdesc_* array member access instead of searching all the
4425         arrays until an fcode match is found.
4427 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
4429         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
4430         pattern as define_insn_and_split.  Split insn before reload to
4431         ashl<mode>3_1.
4432         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
4433         <shift_insn><mode>3_1.
4434         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
4435         <rotate_insn><mode>3_1.
4437 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4439         PR c/72857
4440         * input.c (get_source_range_for_substring): Rename to...
4441         (get_source_location_for_substring): ...this, adding param
4442         "caret_idx", and converting output param from source_range * to
4443         location_t *.
4444         (get_source_range_for_char): New function.
4445         (get_num_source_ranges_for_substring): Update comment to reflect
4446         above renaming.
4447         (assert_char_at_range): Update to use get_source_range_for_char
4448         rather than get_source_range_for_substring.
4449         (test_lexer_string_locations_concatenation_2): Likewise.
4450         * substring-locations.h (get_source_range_for_substring): Rename
4451         to...
4452         (get_source_location_for_substring): ...this, and adding param
4453         "caret_idx", and converting output param from source_range * to
4454         location_t *.
4456 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4458         * input.c (class selftest::temp_source_file): Move to
4459         selftest.h.
4460         (selftest::temp_source_file::temp_source_file): Move to
4461         selftest.c.
4462         (selftest::temp_source_file::~temp_source_file): Likewise.
4463         * selftest.c (selftest::temp_source_file::temp_source_file): Move
4464         here from input.c.
4465         (selftest::temp_source_file::~temp_source_file): Likewise.
4466         * selftest.h (class selftest::temp_source_file): Move here from
4467         input.c
4469 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4471         PR target/71910
4472         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
4473         inlining, add cgraph edge for the added __builtin_unreachable call.
4475         PR middle-end/67485
4476         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
4477         only cast it to SHWI for the final comparison.
4479 2016-08-16  Martin Liska  <mliska@suse.cz>
4481         PR gcov-profile/36412
4482         * doc/gcov.texi: Document --hash-filenames(-x).
4483         * gcov.c (print_usage): Add the option.
4484         (process_args): Process the option, sort options alphabetically.
4485         (md5sum_to_hex): New function.
4486         (make_gcov_file_name): Do the md5sum and append it to a
4487         filename.
4489 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4491         PR tree-optimization/69848
4492         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
4493         and swtich operands to avoid additional NOT instruction.
4494         (vcond<v_cmp_mixed><mode>): Ditto.
4495         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4497 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4499         * doc/install.texi (*-*-solaris2*): Adjust latest change.
4501 2016-08-16  Richard Biener  <rguenther@suse.de>
4503         PR tree-optimization/76783
4504         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
4505         BB visited flags at start.
4507 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4509         PR tree-optimization/72817
4510         PR tree-optimization/73450
4511         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
4512         multiple_of_p for adjusted IV.base.
4514 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
4516         PR target/72867
4517         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
4518         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
4519         for !flag_finite_math_only or flag_signed_zeros.
4520         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
4521         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
4522         depend on flag_finite_math_only.
4523         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
4524         New insn pattern.
4525         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
4526         (*ieee_smin<mode>3): Ditto.
4527         (*ieee_smax<mode>3): Ditto.
4528         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
4529         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
4530         flag_signed_zeros.
4531         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
4532         depend on flag_finite_math_only.
4533         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
4534         (*mmx_<code>v2sf3): Remove.
4535         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
4536         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
4537         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
4539 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
4541         PR rtl-optimization/73650
4542         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
4543         it is not a simple move.
4545 2016-08-15  Martin Liska  <mliska@suse.cz>
4547         PR driver/72765
4548         * gcc.c (do_spec_1): Call save_string with the right size.
4549         (save_string): Do an assert about string we copy.
4551 2016-08-15  Richard Biener  <rguenther@suse.de>
4553         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4554         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4555         TV_MACH_DEP.
4556         (pass_data_stv): Likewise.
4558 2016-08-15  Richard Biener  <rguenther@suse.de>
4560         PR tree-optimization/73434
4561         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4562         TBAA info on the base when forwarding a non-invariant address.
4564 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4566         * dwarf2out.c (struct checksum_attributes): Add
4567         at_string_length_bit_size and at_string_length_byte_size fields.
4568         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4569         and DW_AT_string_length_byte_size.
4570         (die_checksum_ordered): Handle at_string_length_bit_size and
4571         at_string_length_byte_size.
4572         (gen_array_type_die): For dwarf_version >= 5 emit
4573         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4574         (adjust_string_types): For dwarf_version >= 5 remove
4575         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4576         (resolve_addr): Likewise.
4578         PR debug/71906
4579         * dwarf2out.c (string_types): New variable.
4580         (gen_array_type_die): Change early_dwarf handling of
4581         DW_AT_string_length, create DW_OP_call4 referencing the
4582         length var temporarily.  Handle parameters that are pointers
4583         to string length.
4584         (adjust_string_types): New function.
4585         (gen_subprogram_die): Temporarily set string_types to local var,
4586         call adjust_string_types if needed.
4587         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4588         New functions.
4589         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4591 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4593         * doc/install.texi (*-*-solaris2*): Fix version number and document
4594         requirement on GNU make for building libjava with the Solaris linker.
4596 2016-08-15  Martin Liska  <mliska@suse.cz>
4597             Jakub Jelinek  <jakub@redhat.com>
4599         PR tree-optimization/72824
4600         * tree-loop-distribution.c (const_with_all_bytes_same)
4601         <case VECTOR_CST>: Fix a typo.
4603 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4605         PR target/76342
4606         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4607         Renamed from _mm512_undefined_si512.
4608         (_mm_undefined_si512): New definition.
4610 2016-08-13  Richard Biener  <rguenther@suse.de>
4612         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4613         into PHIs and update the lattice for its def.
4615 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4617         PR c/71512
4618         * ubsan.c (instrument_si_overflow): Pass true instead of false
4619         to gsi_replace.
4620         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4621         of bbs.  Return TODO_cleanup_cfg if any returned true.
4623 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4625         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4626         ISA 3.0 MTVSRDD instruction.
4627         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4628         vecperm.
4630 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4632         PR tree-optimization/71083
4633         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4634         bitfield access when possible.
4636 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4638         PR middle-end/71654
4639         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4640         sign-changing cast from a shorter unsigned type to a wider
4641         signed type.
4643 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4645         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4646         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4647         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4649 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4651         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4652         Correct costs for vec_construct.
4654 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4656         PR tree-optimization/69848
4657         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4658         type CONST_COND_REDUCTION.
4659         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4660         reudction type CONST_COND_REDUCTION.
4662 2016-08-12  Richard Biener  <rguenther@suse.de>
4664         PR tree-optimization/57326
4665         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4666         returning an SSA name.
4667         (phi_translate_1): When fully_constant_expression returns a NAME
4668         make sure we have a leader for it.
4670 2016-08-12  Martin Liska  <mliska@suse.cz>
4671             Adam Fineman  <afineman@afineman.com>
4673         * gcov.c (process_file): Create .gcov file when .gcda
4674         file is missing.
4676 2016-08-12  Marek Polacek  <polacek@redhat.com>
4678         PR c/7652
4679         * alias.c (find_base_value): Adjust fall through comment.
4680         * cfgexpand.c (expand_debug_expr): Likewise.
4681         * combine.c (find_split_point): Likewise.
4682         (expand_compound_operation): Likewise.  Add FALLTHRU.
4683         (make_compound_operation): Adjust fall through comment.
4684         (canon_reg_for_combine): Add FALLTHRU.
4685         (force_to_mode): Adjust fall through comment.
4686         (simplify_shift_const_1): Likewise.
4687         (simplify_comparison): Likewise.
4688         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4689         FALLTHRU.
4690         * config/aarch64/predicates.md: Likewise.
4691         * config/i386/i386.c (function_arg_advance_32): Likewise.
4692         (ix86_gimplify_va_arg): Likewise.
4693         (print_reg): Likewise.
4694         (ix86_print_operand): Likewise.
4695         (ix86_build_const_vector): Likewise.
4696         (ix86_expand_branch): Likewise.
4697         (ix86_sched_init_global): Adjust fall through comment.
4698         (ix86_expand_args_builtin): Add FALLTHRU.
4699         (ix86_expand_builtin): Likewise.
4700         (ix86_expand_vector_init_one_var): Likewise.
4701         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4702         (rs6000_adjust_cost): Likewise.
4703         (insn_must_be_first_in_group): Likewise.
4704         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4705         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4706         * df-scan.c (df_uses_record): Likewise.
4707         * dojump.c (do_jump): Add FALLTHRU.
4708         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4709         comment.
4710         (resolve_args_picking_1): Adjust fall through comment.
4711         (loc_list_from_tree_1): Likewise.
4712         * expmed.c (make_tree): Likewise.
4713         * expr.c (expand_expr_real_2): Add FALLTHRU.
4714         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4715         * fold-const.c (const_binop): Adjust fall through comment.
4716         (fold_truth_not_expr): Likewise.
4717         (fold_cond_expr_with_comparison): Add FALLTHRU.
4718         (fold_binary_loc): Likewise.
4719         (contains_label_1): Adjust fall through comment.
4720         (multiple_of_p): Likewise.
4721         * gcov-tool.c (process_args): Add FALLTHRU.
4722         * genattrtab.c (check_attr_test): Likewise.
4723         (write_test_expr): Likewise.
4724         * genconfig.c (walk_insn_part): Likewise.
4725         * genpreds.c (validate_exp): Adjust fall through comment.
4726         (needs_variable): Likewise.
4727         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4728         (subst_dup): Likewise.
4729         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4730         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4731         (gimplify_scan_omp_clauses): Add FALLTHRU.
4732         (goa_stabilize_expr): Likewise.
4733         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4734         through comment.
4735         * hsa-gen.c (get_address_from_value): Likewise.
4736         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4737         * ira.c (ira_setup_alts): Add FALLTHRU.
4738         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4739         comment.
4740         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4741         * opts.c (common_handle_option): Likewise.
4742         * read-rtl.c (read_rtx_code): Likewise.
4743         * real.c (round_for_format): Likewise.
4744         * recog.c (asm_operand_ok): Likewise.
4745         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4746         * reload1.c (set_label_offsets): Likewise.
4747         (eliminate_regs_1): Likewise.
4748         (reload_reg_reaches_end_p): Likewise.
4749         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4750         (rtx_cost): Likewise.
4751         * sched-rgn.c (is_exception_free): Likewise.
4752         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4753         * stor-layout.c (int_mode_for_mode): Likewise.
4754         * toplev.c (print_to_asm_out_file): Likewise.
4755         (print_to_stderr): Likewise.
4756         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4757         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4758         (chrec_fold_multiply): Likewise.
4759         (evolution_function_is_invariant_rec_p): Likewise.
4760         (for_each_scev_op): Likewise.
4761         * tree-data-ref.c (siv_subscript_p): Likewise.
4762         (get_references_in_stmt): Likewise.
4763         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4764         (substitute_in_expr): Likewise.
4765         (type_cache_hasher::equal): Likewise.
4766         (walk_type_fields): Likewise.
4767         * var-tracking.c (adjust_mems): Add FALLTHRU.
4768         (set_dv_changed): Adjust fall through comment.
4769         * varasm.c (default_function_section): Add FALLTHRU.
4771 2016-08-12  Marek Polacek  <polacek@redhat.com>
4773         PR c/7652
4774         * tree-complex.c (expand_complex_division): Add missing break.
4776 2016-08-12  Richard Biener  <rguenther@suse.de>
4778         * passes.c (execute_todo): Do not push/pop TV_TODO.
4779         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4780         (execute_one_pass): Likewise.
4781         * common.opt (ftime-report-details): New switch.
4782         * doc/invoke.texi (ftime-report-details): Document.
4783         * timevar.h (timer::print_row): Adjust signature.
4784         (timer::all_zero): New static helper.
4785         (timer::child_map_t): New typedef.
4786         (timer::time_var_def): Add children field.
4787         * timevar.c (timer::named_items::print): Adjust.
4788         (timer::~timer): Free timevar recorded children.
4789         (timer::pop_internal): When -ftime-report-details record
4790         time spent in sub-timevars.
4791         (timer::print_row): Adjust.
4792         (timer::print): Print sub-timevar stats, use all_zero.
4793         * timevar.def (TV_TODO): Remove.
4795 2016-08-12  Richard Biener  <rguenther@suse.de>
4797         PR tree-optimization/72851
4798         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4799         worklists to use bitmaps indexed in execution order.
4800         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4801         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4802         (cfg_blocks): Make a bitmap.
4803         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4804         New globals.
4805         (cfg_blocks_empty_p): Adjust.
4806         (cfg_blocks_add): Likewise.
4807         (cfg_blocks_get): Likewise.
4808         (add_ssa_edge): Likewise.
4809         (add_control_edge): Likewise.
4810         (simulate_stmt): Likewise.
4811         (process_ssa_edge_worklist): Likewise.
4812         (simulate_block): Likewise.
4813         (ssa_prop_init): Compute PRE order and stmt UIDs.
4814         (ssa_prop_fini): Adjust.
4815         (ssa_propagate): Adjust.
4817 2016-08-12  Richard Biener  <rguenther@suse.de>
4819         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4820         the currently executable edges have fixed ranges.  Always
4821         go through update_value_range.
4823 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4825         PR debug/63240
4826         * langhooks-def.h
4827         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4828         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4829         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4830         (LANG_HOOKS_DECLS): Add it.
4831         * langhooks.h (struct lang_hooks_for_decls): Add
4832         function_decl_defaulted.  Const_tree-ify
4833         function_decl_explicit_p and function_decl_deleted_p.
4834         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4835         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4836         also at strict DWARF v5.
4838         PR debug/55641
4839         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4840         TYPE_QUAL_CONST in reference-typed decls.
4842         PR debug/49366
4843         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4844         in DW_OP_pieces, just enough to handle pointers to member
4845         functions.
4846         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4847         expression on DWARFv5 if a constant value doesn't work.
4849 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4851         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4852         * selftest.c (selftest::test_assertions): New function.
4853         (selftest::selftest_c_tests): New function.
4854         * selftest.h (selftest::selftest_c_tests): New declaration.
4856 2016-08-11  Richard Biener  <rguenther@suse.de>
4857             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4859         PR rtl-optimization/72855
4860         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4862 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4864         PR target/72863
4865         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4866         (vsx_store_<mode>): Likewise.
4868 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4870         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4871         TImode CONST_WIDE_INT store.
4872         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4874 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4876         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4877         mode if unaligned SSE load and store are optimal.
4879 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4881         PR tree-optimization/71083
4882         * tree-predcom.c (ref_at_iteration): Correctly align the
4883         reference type.
4885 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4887         * config/s390/s390-builtin-types.def: Add INT128 types.
4888         * config/s390/s390-builtins.def: Add INT128 variants for the add
4889         sub low-level builtins dealing with TImode.
4890         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4891         via subreg when expanding a builtin.
4892         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4893         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4894         Fix comment.
4895         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4896         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4897         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4898         "vacc<bhfgq>_<mode>".
4899         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4900         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4901         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4902         "vscbi<bhfgq>_<mode>".
4903         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4904         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4906 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4908         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4910 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4912         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4913         unused declaration.
4914         (vcond<v_cmp_mixed><mode>): Ditto.
4915         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4917 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4919         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4920         variable explicitly, also assert on it before use.
4922 2016-08-11  Richard Biener  <rguenther@suse.de>
4924         PR tree-optimization/72772
4925         * cfgloopmanip.c (create_preheader): Use split_edge if there
4926         is a single loop entry, avoiding degenerate PHIs.
4928 2016-08-11  Richard Biener  <rguenther@suse.de>
4930         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4931         unconditional TODO_cleanup_cfg.
4932         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4933         cleanup only if we threaded a jump.
4935 2016-08-11  Alan Modra  <amodra@gmail.com>
4937         PR target/71680
4938         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4939         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4940         slow.  Emit two reloads for slow mem case, first loading in
4941         fast innermode, then converting to required mode.
4943 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4945         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4946         (vec_extract_sig): New macro.
4947         (vec_insert_exp): New macro.
4948         (vec_test_data_class): New macro.
4949         (scalar_extract_exp): New macro.
4950         (scalar_extract_sig): New macro.
4951         (scalar_insert_exp): New macro.
4952         (scalar_test_data_class): New macro.
4953         (scalar_test_neg): New macro.
4954         (scalar_cmp_exp_gt): New macro.
4955         (scalar_cmp_exp_lt): New macro.
4956         (scalar_cmp_exp_eq): New macro.
4957         (scalar_cmp_exp_unordered): New macro.
4958         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4959         to enforce constraint that operand is a 7-bit unsigned literal.
4960         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4961         for power9 built-ins.
4962         (BU_P9V_VSX_2): Likewise.
4963         (BU_P9V_64BIT_VSX_2): Likewise.
4964         (VSEEDP): Add scalar extract exponent support.
4965         (VSEESP): Add scalar extract signature support.
4966         (VSTDCNDP): Add scalar test negative support.
4967         (VSTDCNSP): Likewise.
4968         (VSIEDP): Add scalar insert exponent support.
4969         (VSCEDPGT): Add scalar compare exponent greater than support.
4970         (VSCEDPLT): Add scalar compare exponent less than support.
4971         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4972         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4973         (VSTDCDP): Add scalar test data class support.
4974         (VSTDCSP): Likewise.
4975         (VSEEDP): Add overload support for scalar extract exponent
4976         operation.
4977         (VSESDP): Add overload support for scalar extract signature
4978         operation.
4979         (VSTDCN): Add overload support for scalar test negative
4980         operation.
4981         (VSTDCNDP): Add overload support for scalar test negative
4982         operation.
4983         (VSTDCNSP): Add overload support for scalar test negative
4984         operation.
4985         (VSIEDP): Add overload support for scalar insert exponent
4986         operation.
4987         (VSTDC): Add overload support for scalar test data class
4988         operation.
4989         (VSTDCDP): Add overload support for scalar test data class
4990         operation.
4991         (VSTDCSP): Add overload support for scalar test data class
4992         opreation.
4993         (VSCEDPGT): Add overload support for scalar compare exponent
4994         greater than operation.
4995         (VSCEDPLT): Add overload support for scalar compare exponent
4996         less than operation.
4997         (VSCEDPEQ): Add overload support for scalar compare exponent
4998         test-for-equality operation.
4999         (VSCEDPUO): Add overload support for scalar compare exponent
5000         test-for-unordered operation.
5001         (VEEDP): Add vector extract exponent support.
5002         (VEESP): Likewise.
5003         (VESDP): Add vector extract significand support.
5004         (VESSP): Likewise.
5005         (VIEDP): Add vector insert exponent support.
5006         (VIESP): Likewise.
5007         (VTDCDP): Add vector test data class support.
5008         (VTDCSP): Likewise.
5009         (VES): Add overload support for vector extract significand operation.
5010         (VESDP): Likewise.
5011         (VESSP): Likewise
5012         (VEE): Add overload support for vector extract exponent operation.
5013         (VEEDP): Likewise.
5014         (VEESP): Likewise.
5015         (VTDC): Add overload support for vector test data class operation.
5016         (VTDCDP): Likewise.
5017         (VTDCSP): Likewise.
5018         (VIE): Add overload support for vector insert exponent operation.
5019         (VIEDP): Likewise.
5020         (VIESP): Likewise.
5021         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5022         overloaded binary floating point functions.
5023         (altivec_resolve_overloaded_builtin): Improve error messages to
5024         distinguish between functions not supported in the current
5025         compiler configuration and functions that were invoked with an
5026         invalid parameter combination, and include the built-in function
5027         name in both error messages.
5028         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
5029         New prototype.
5030         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
5031         function.
5032         (rs6000_expand_binop_builtin): Add check to enforce that argument
5033         2 of the test data class operations is a 7-bit unsigned literal.
5034         (rs6000_invalid_builtin): Add code to issue an error message if a
5035         built-in function that requires the power9_vector and -m32
5036         command-line options is compiled without these options.
5037         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
5038         (UNSPEC_VSX_SXSIGDP): New value.
5039         (UNSPEC_VSX_SXSIGPDP): New value.
5040         (UNSPEC_VSX_SIEXPDP): New value.
5041         (UNSPEC_VSX_SCMPEXPDP): New value.
5042         (UNSPEC_VSX_STSTDC): New value.
5043         (UNSPEC_VSX_VXEXP): New value.
5044         (UNSPEC_VSX_VXSIG): New value.
5045         (UNSPEC_VSX_VIEXP): New value.
5046         (UNSPEC_VSX_VTSTDC): New value.
5047         (xsxexpdp): New insn for scalar extract exponent.
5048         (xsxsigdp): New insn for scalar extract significand.
5049         (xsiexpdp): New insn for scalar insert exponent.
5050         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
5051         (*xscmpexpdp): New insn for scalar compare exponents.
5052         (xststdc<Fvsx): New expansion for both single- and
5053         double-precision scalar test data class operations.
5054         (xststdcneg<Fvsx>): New expansion for both single- and
5055         double-precision scalar test for negative value operations.
5056         (*xststdc<Fvsx>): New insn for scalar test data class
5057         operation.
5058         (xvxexp<VSs>): New insn for single- and double-precision
5059         vector extract exponent operation.
5060         (xvxsig<VSs>): New insn for single- and double-precision
5061         vector extract significand operation.
5062         (xviexp<VSs>): New insn for single- and double-precision
5063         vector insert exponent operation.
5064         (xvtstdc<VSs>): New insn for single- and double-precision
5065         vector test data class operation.
5066         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5067         built-in functions to represent the Power9 binary floating-point
5068         support instructions.
5070 2016-08-10  bin cheng  <bin.cheng@arm.com>
5072         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
5074 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5075             Renlin Li  <renlin.li@arm.com>
5076             Bin Cheng  <bin.cheng@arm.com>
5078         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
5079         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
5080         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
5081         (aarch64_vcond_internal<mode><mode>): Delete pattern.
5082         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
5083         (vcond<v_cmp_result><mode>): Ditto.
5084         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
5085         (vcondu<mode><mode>): Ditto.
5086         (vcond<v_cmp_mixed><mode>): New pattern.
5087         (vcondu<mode><v_cmp_mixed>): New pattern.
5088         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
5089         of aarch64_vcond_internal.
5091 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5092             Renlin Li  <renlin.li@arm.com>
5093             Bin Cheng  <bin.cheng@arm.com>
5095         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
5096         (vec_cmp<mode><v_cmp_result>): New pattern.
5097         (vec_cmpu<mode><mode>): New pattern.
5098         (vcond_mask_<mode><v_cmp_result>): New pattern.
5100 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5102         PR tree-optimization/71734
5103         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5104         REF_LOOP, invoke ref_indep_loop_p_1.
5105         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5106         to ref_indep_loop_p.
5107         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5108         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5109         is inside LOOP, do not cache dpendence value for loops with
5110         non-zero SAFELEN.
5111         (ref_indep_loop_p_2): Delete function.
5112         (can_sm_ref_p): Pass LOOP as additional argument to
5113         ref_indep_loop_p.
5115 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5117         PR target/72853
5118         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5119         being an offsettable address.
5121 2016-08-10  Martin Liska  <mliska@suse.cz>
5123         PR gcov-profile/58306
5124         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5125         atomic variants of profile update functions.
5127 2016-08-10  Martin Liska  <mliska@suse.cz>
5129         Cherry picked (and modified) from google-4_7 branch
5130         2012-12-26  Rong Xu  <xur@google.com>
5131         * common.opt (fprofile-update): Add new flag.
5132         * coretypes.h: Define enum profile_update.
5133         * doc/invoke.texi: Document -fprofile-update.
5134         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5135         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5136         * tree-profile.c (gimple_init_edge_profiler): Generate
5137         also atomic profiler update.
5138         (gimple_gen_edge_profiler): Likewise.
5140 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
5142         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5143         stack_usage_file to NULL after fclose calls.
5145 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5147         PR target/71873
5148         * reload.c (push_reload): Compute subreg_in_class for
5149         subregs of constants and plus expressions. Remove special
5150         handling of SYMBOL_REFs.
5152 2016-08-10  Alan Modra  <amodra@gmail.com>
5154         PR target/71680
5155         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5156         SImode for TARGET_E500_DOUBLE when given SImode.
5158 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
5160         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5161         unused variable __O.
5163 2016-08-09  Martin Liska  <mliska@suse.cz>
5165         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5166         _gcov_reset to __gcov_reset.
5167         * doc/gcov-tool.texi: Fix typo.
5169 2016-08-09  Martin Liska  <mliska@suse.cz>
5171         * value-prof.c (gimple_divmod_values_to_profile): Do not
5172         instrument MOD histogram if a value is not a SSA name.
5174 2016-08-09  Martin Liska  <mliska@suse.cz>
5176         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5177         values.
5179 2016-08-09  Renlin Li  <renlin.li@arm.com>
5181         PR middle-end/64971
5182         * calls.c (prepare_call_address): Convert funexp to Pmode when
5183         necessary.
5184         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
5185         (sibcall_value): Likewise.
5187 2016-08-09  Marek Polacek  <polacek@redhat.com>
5189         PR c/7652
5190         * cselib.c (cselib_expand_value_rtx_1): Add return.
5191         * gengtype.c (dbgprint_count_type_at): Likewise.
5192         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
5193         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
5195 2016-08-09  Martin Jambor  <mjambor@suse.cz>
5197         PR ipa/71981
5198         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
5199         if instance is a MEM_REF.
5201 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
5203         PR target/72843
5204         * config/i386/i386.md (*movtf_internal): Use
5205         lra_in_progress || reload_completed instead of !can_create_pseudo_p
5206         in the insn constraint.
5207         (*movxf_internal): Ditto.
5208         (*movdf_internal): Ditto.
5209         (*movsf_internal): Ditto.
5211 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5213         PR tree-optimization/72772
5214         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5215         for expanded base.
5217 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5219         PR tree-optimization/72772
5220         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
5221         parameter STOP.
5222         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
5223         parameter STOP and update calls.  Move expand_simple_operations
5224         function call from here...
5225         (simplify_using_initial_conditions): ...to here.  Delete parameter
5226         STOP.
5227         (tree_simplify_using_condition): Delete parameter STOP.
5228         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
5229         simplify_using_initial_conditions.
5231 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
5233         PR c/65345
5234         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
5235         Use create_tmp_var_raw instead of create_tmp_var.
5237 2016-08-09  Richard Biener  <rguenther@suse.de>
5239         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
5240         Treat same SSA names related.
5242 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
5244         PR tree-optimization/72824
5245         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
5246         real_zerop is not negative.
5248 2016-08-09  Richard Biener  <rguenther@suse.de>
5250         PR tree-optimization/71802
5251         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
5252         all merge opportunities with the predecessor.
5254 2016-08-09  Richard Biener  <rguenther@suse.de>
5256         PR ipa/68273
5257         * ipa-prop.c (ipa_modify_formal_parameters): Build
5258         parameter types with natural alignment also for the
5259         over-aligned case.
5261 2016-08-08  Andi Kleen  <ak@linux.intel.com>
5263         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5265 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5267         PR c/64955
5268         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5269         do-nothing langhook.
5270         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5271         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5272         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5273         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5275 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5277         PR bootstrap/72844
5278         * input.c: Ensure that HAVE_ICONV is defined.
5280 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5282         PR middle-end/72781
5283         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5284         private vars for lastprivate and for linear iterator.
5286         PR middle-end/68762
5287         * omp-simd-clone.c: Include varasm.h.
5288         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5289         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5290         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
5291         update function name.
5293 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5295         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5296         (avr_diagnose_devicespecs_error): Remove.
5297         (avr_devicespecs_file): Remove composing absolute path for specfile
5298         and its verbose info. Remove conditions to check specs-file,
5300 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5302         PR rtl-optimization/72821
5303         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5304         just return false for them.
5306 2016-08-08  Alan Modra  <amodra@gmail.com>
5308         PR target/72771
5309         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5310         toc refs created during reload.  Update function comment.
5312 2016-08-08  Alan Modra  <amodra@gmail.com>
5314         PR target/72802
5315         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5316         alternatives.  Put loads first, then stores, and reg/reg moves
5317         within same class later.  Delete attr length.
5319 2016-08-08  Alan Modra  <amodra@gmail.com>
5321         PR target/72802
5322         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
5323         (mem_operand_ds_form): New predicate.
5324         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
5325         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
5326         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
5327         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
5328         (extendsfdf2_fpr): Replace o constraint with wY.
5330 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
5332         * tree-ssa-threadbackward.c: Include tree-inline.h
5333         (profitable_jump_thread_path): Use estimate_num_insns to estimate
5334         size of copied block; for cold paths reduce duplication.
5335         (find_jump_threads_backwards): Remove redundant tests.
5336         (pass_thread_jumps::gate): Enable for -Os.
5338 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
5340         PR c/72816
5341         * stor-layout.c (layout_decl): Fix up formatting.
5342         (relayout_decl): Allow DECL to be FIELD_DECL.
5344 2016-08-07  Alan Modra  <amodra@gmail.com>
5346         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
5348 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5350         * data-streamer-in.c (streamer_read_wide_int): New.
5351         (streamer_read_widest_int): Renamed function.
5352         * data-streamer-out.c (streamer_write_wide_int): New
5353         (streamer_write_widest_int): Renamed function.
5354         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
5355         data-stream-in.c.
5356         (input_cfg): Call renamed function.
5357         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
5358         data-stream-out.c.
5359         (output_cfg): Call renamed function.
5360         * data-streamer.h: Add declarations.
5362 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5364         * tree-ssa-ccp.c (extend_mask): New param sgn.
5365         Remove ORing with wi::mask.
5366         (get_default_value): Adjust call to extend_mask to pass sign.
5367         (evaluate_stmt): Likewise.
5369 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
5371         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
5372         INT64_MAX.
5374 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5376         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
5377         transform if operand's type is pointer to function or method.
5379 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5381         PR tree-optimization/18046
5382         * tree-ssa-threadedge.c: Include cfganal.h.
5383         (simplify_control_statement_condition): If simplifying a
5384         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
5385         with the dominating ASSERT_EXPR before handing it off to VRP.
5386         Mention that a CASE_LABEL_EXPR may be returned.
5387         (thread_around_empty_blocks): Adjust to handle
5388         simplify_control_statement_condition() returning a
5389         CASE_LABEL_EXPR.
5390         (thread_through_normal_block): Likewise.
5391         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
5392         a switch statement by trying to determine which case label
5393         will be taken.
5395 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
5397         PR rtl-optimization/69847
5398         * lra-constraints.c (process_invariant_for_inheritance): Save
5399         pattern instead of src.
5400         (remove_inheritance_pseudos): Use the pattern.  Add assert.
5402 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
5404         * input.c (string_concat::string_concat): New constructor.
5405         (string_concat_db::string_concat_db): New constructor.
5406         (string_concat_db::record_string_concatenation): New method.
5407         (string_concat_db::get_string_concatenation): New method.
5408         (string_concat_db::get_key_loc): New method.
5409         (class auto_cpp_string_vec): New class.
5410         (get_substring_ranges_for_loc): New function.
5411         (get_source_range_for_substring): New function.
5412         (get_num_source_ranges_for_substring): New function.
5413         (class selftest::lexer_test_options): New class.
5414         (struct selftest::lexer_test): New struct.
5415         (class selftest::ebcdic_execution_charset): New class.
5416         (selftest::ebcdic_execution_charset::s_singleton): New variable.
5417         (selftest::lexer_test::lexer_test): New constructor.
5418         (selftest::lexer_test::~lexer_test): New destructor.
5419         (selftest::lexer_test::get_token): New method.
5420         (selftest::assert_char_at_range): New function.
5421         (ASSERT_CHAR_AT_RANGE): New macro.
5422         (selftest::assert_num_substring_ranges): New function.
5423         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
5424         (selftest::assert_has_no_substring_ranges): New function.
5425         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
5426         (selftest::test_lexer_string_locations_simple): New function.
5427         (selftest::test_lexer_string_locations_ebcdic): New function.
5428         (selftest::test_lexer_string_locations_hex): New function.
5429         (selftest::test_lexer_string_locations_oct): New function.
5430         (selftest::test_lexer_string_locations_letter_escape_1): New function.
5431         (selftest::test_lexer_string_locations_letter_escape_2): New function.
5432         (selftest::test_lexer_string_locations_ucn4): New function.
5433         (selftest::test_lexer_string_locations_ucn8): New function.
5434         (selftest::uint32_from_big_endian): New function.
5435         (selftest::test_lexer_string_locations_wide_string): New function.
5436         (selftest::uint16_from_big_endian): New function.
5437         (selftest::test_lexer_string_locations_string16): New function.
5438         (selftest::test_lexer_string_locations_string32): New function.
5439         (selftest::test_lexer_string_locations_u8): New function.
5440         (selftest::test_lexer_string_locations_utf8_source): New function.
5441         (selftest::test_lexer_string_locations_concatenation_1): New
5442         function.
5443         (selftest::test_lexer_string_locations_concatenation_2): New
5444         function.
5445         (selftest::test_lexer_string_locations_concatenation_3): New
5446         function.
5447         (selftest::test_lexer_string_locations_macro): New function.
5448         (selftest::test_lexer_string_locations_stringified_macro_argument):
5449         New function.
5450         (selftest::test_lexer_string_locations_non_string): New function.
5451         (selftest::test_lexer_string_locations_long_line): New function.
5452         (selftest::test_lexer_char_constants): New function.
5453         (selftest::input_c_tests): Call the new test functions once per
5454         case within the line_table test matrix.
5455         * input.h (struct string_concat): New struct.
5456         (struct location_hash): New struct.
5457         (class string_concat_db): New class.
5458         * substring-locations.h: New header.
5460 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5462         PR tree-optimization/72810
5463         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
5464         the type of the case labels when truncating.
5466 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
5468         PR Target/72819
5469         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
5470         (aarch64_fp16_ptr_type_node): Likewise.
5471         * config/aarch64/aarch64-simd-builtins.c
5472         (aarch64_fp16_ptr_type_node): Define.
5473         (aarch64_init_fp16_types): New, refactored out of...
5474         (aarch64_init_builtins): ...here, update to call
5475         aarch64_init_fp16_types.
5476         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
5477         HFmode.
5478         (aapcs_vfp_sub_candidate): Likewise.
5480 2016-08-05  Martin Liska  <mliska@suse.cz>
5481             Joshua Cranmer  <Pidgeot18@gmail.com>
5483         * gcov.c (line_t::has_block): New function.
5484         (enum loop_type): New enum.
5485         (handle_cycle): New function.
5486         (unblock): Likewise.
5487         (circuit): Likewise.
5488         (get_cycles_count): Likewise.
5489         (accumulate_line_counts): Use new loop detection algorithm.
5491 2016-08-05  Martin Liska  <mliska@suse.cz>
5493         * gcov.c (output_intermediate_file): Rename
5494         function_info::line_next to next_file_fn.
5495         (process_file): Likewise.
5496         (read_graph_file): Likewise.
5497         (accumulate_line_counts): Likewise.
5498         (output_lines): Likewise.
5500 2016-08-05  Richard Biener  <rguenther@suse.de>
5502         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
5503         restriction on threading to a loop header.
5505 2016-08-05  Richard Biener  <rguenther@suse.de>
5507         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
5508         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
5509         adjust loop info accordingly.
5511 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
5513         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
5514         before folding call to __builtin_constant_p with parameters to false.
5516 2016-08-05  Alan Modra  <amodra@gmail.com>
5518         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
5519         code accidentally committed 2016-05-02 providing class when given
5520         NO_REGS.
5522 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5524         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
5525         the case label ranges that partially overlap with OP's value
5526         range.
5528 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
5530         PR target/72805
5531         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
5532         Cast builtin function result to __mmask16 instead of __mmask8.
5533         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5534         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
5535         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5537 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
5539         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
5540         (ASSERT_TRUE_AT): New macro.
5541         (ASSERT_FALSE): Reimplement in terms of...
5542         (ASSERT_FALSE_AT): New macro.
5543         (ASSERT_STREQ_AT): Fix typo in comment.
5545 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5547         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
5548         labels are exhaustive, designate the label with the widest
5549         range to be the default label.
5551 2016-08-04  Andrew Pinski  <apinski@cavium.com>
5553         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5554         (thunderx_tunings): Use thunderx_vector_cost instead of
5555         generic_vector_cost.
5557 2016-08-04  Martin Liska  <mliska@suse.cz>
5559         * gcov.c (main): Fix GNU coding style.
5560         (output_intermediate_file): Likewise.
5561         (process_file): Likewise.
5562         (generate_results): Likewise.
5563         (release_structures): Likewise.
5564         (create_file_names): Likewise.
5565         (find_source): Likewise.
5566         (read_graph_file): Likewise.
5567         (find_exception_blocks): Likewise.
5568         (canonicalize_name): Likewise.
5569         (make_gcov_file_name): Likewise.
5570         (mangle_name): Likewise.
5571         (accumulate_line_counts): Likewise.
5572         (output_branch_count): Likewise.
5573         (read_line): Likewise.
5575 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5577         PR rtl-optimization/71779
5578         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5579         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5580         or if it was truncated.
5582         PR rtl-optimization/70903
5583         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5585 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5587         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5588         accessing SSA_NAME_PTR_INFO.
5590 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5592         PR 70677
5593         * common/config/avr/avr-common.c (avr_option_optimization_table)
5594         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5596 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5598         PR 55181
5599         * config/avr/avr.md: New pattern to work around do_store_flag
5600         generating shift instructions for bit extractions.
5602 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5604         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5605         BITMAP_ALLOC.
5606         (add_equivalence): Likewise.
5607         (get_value_range): Allocate value range with vrp_value_range_pool.
5608         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5609         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5611 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5613         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5614         the default for the rs6000 port.
5616 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5618         PR middle-end/71876
5619         * calls.c (special_function_p): Remove special handling of
5620         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5621         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5622         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5624 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5626         PR middle-end/72778
5627         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5628         Don't stop on regular insns.
5630 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5632         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5633         size to DImode boundary.
5634         (nvptx_propagate): Likewise.
5636 2016-08-03  Alan Modra  <amodra@gmail.com>
5638         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5639         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5640         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5641         from -mefficient-unaligned-vector.  Note that this affects fp too.
5643 2016-08-03  Alan Modra  <amodra@gmail.com>
5645         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5646         cost more.
5648 2016-08-03  Alan Modra  <amodra@gmail.com>
5650         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5651         to a reg.  Localize vars.
5653 2016-08-03  Alan Modra  <amodra@gmail.com>
5655         * config/rs6000/rs6000.opt: Remove negatives from help strings
5656         and comments.
5658 2016-08-03  Alan Modra  <amodra@gmail.com>
5660         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5661         Delete duplicated code.
5663 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5665         PR middle-end/72778
5666         * lra-spills.c (regno_in_use_p): New.
5667         (lra_final_code_change): Use it.
5669 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5671         PR rtl-optimization/69847
5672         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5673         restore_regno.
5674         (lra_rtx_hash): New.
5675         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5676         of restore_regno.
5677         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5678         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5679         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5680         next insn is USE with the same reg as the current insn source.
5681         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5682         of restore_regno.
5683         (lra_constraints_init): Call initiate_invariants.
5684         (lra_constraints_finish): Call finish_invariants.
5685         (struct invariant, invariant_t, invariant_ptr_t): New.
5686         (const_invariant_ptr_t, invariants, invariants_pool): New.
5687         (invariant_table, invariant_hash, invariant_eq_p): New.
5688         (insert_invariant, initiate_invariants, finish_invariants): New.
5689         (clear_invariants, invalid_invariant_regs): New.
5690         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5691         instead of restore_regno.
5692         (invariant_p, process_invariant_for_inheritance): New.
5693         (inherit_in_ebb): Implement invariant inheritance.
5694         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5695         (remove_inheritance_pseudos): Implement undoing invariant
5696         inheritance.
5697         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5698         instead of restore_regno.
5699         * lra-assigns.c (regno_live_length): New.
5700         (reload_pseudo_compare_func): Use regno_live_length.
5701         (assign_by_spills): Use restore_rtx instead of restore_regno.
5702         (lra_assign): Ditto.  Initiate regno_live_length.
5704 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5706         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5707         __builtin_aarch64_fmindf.
5709 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5711         PR tree-optimization/34114
5712         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5713         information for more control IVs.
5715 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5717         PR tree-optimization/34114
5718         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5719         PLUS_EXPR case.  Handle SSA_NAME case.
5721 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5723         * config/aarch64/aarch64-simd-builtins.def
5724         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5725         (__builtin_aarch64_fmaxdf): Likewise.
5726         (__builtin_aarch64_smin_nandf): Likewise.
5727         (__builtin_aarch64_smax_nandf): Likewise.
5728         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5729         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5730         (<fmaxmin><mode>3): ...this.
5731         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5732         (vminnm_f64): Likewise.
5733         (vmin_f64): Likewise.
5734         (vmax_f64): Likewise.
5735         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5736         (FMAXMIN_UNS): ...this.
5737         (fmaxmin): Merged with
5738         (fmaxmin_op): ...this...
5739         (maxmin_uns_op): ...in to this.
5741 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5743         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5744         Add support for vec_extract on vector float, vector int, vector
5745         short, and vector char vector types.
5746         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5747         vector float, vector int, vector short, and vector char
5748         optimizations on 64-bit ISA 2.07 systems for both constant and
5749         variable element numbers.
5750         (rs6000_split_vec_extract_var): Likewise.
5751         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5752         Altivec registers on ISA 2.07 and above.
5753         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5754         which never was matched due to the split occuring before register
5755         allocation (and the code would not have worked on little endian
5756         systems if it did match).  Allow extracts to go to the Altivec
5757         registers if ISA 2.07 (power8).  Change from using "" around the
5758         C++ code to using {}'s.
5759         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5760         vec_extracts when the vector is in memory.
5761         (vsx_extract_v4sf_var): New insn to optimize vector float
5762         vec_extracts when the element number is variable on 64-bit ISA
5763         2.07 systems.
5764         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5765         for 64-bit ISA 2.07 as well as ISA 3.0.
5766         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5767         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5768         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5769         optimize vector int, vector short, and vector char vec_extracts
5770         when the vector is in memory.
5771         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5772         optimize vector int, vector short, and vector char vec_extracts
5773         when the element number is variable.
5775 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5777         PR target/71948
5778         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5779         does not overlap with other symbol flags.
5781 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5783         * config/aarch64/aarch64.h (aarch64_frame):
5784         Remove padding0 and hardfp_offset.  Add locals_offset,
5785         initial_adjust, callee_adjust, callee_offset and final_adjust.
5786         * config/aarch64/aarch64.c (aarch64_layout_frame):
5787         Remove unused padding0 and hardfp_offset initializations.
5788         Choose frame layout and set frame variables accordingly.
5789         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5790         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5791         (aarch64_pop_regs): Likewise.
5792         (aarch64_expand_prologue): Remove all decision code, just emit
5793         prolog according to frame variables.
5794         (aarch64_expand_epilogue): Remove all decision code, just emit
5795         epilog according to frame variables.
5796         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5798 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5800         PR target/72748
5801         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5802         fix_debug_reg_uses after changing source register mode to
5803         V1TImode if source register is undefined.
5805 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5807         PR tree-optimization/71818
5808         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5809         with non invariant evolutions
5811 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5813         PR target/72767
5814         * config/avr/avr.md (length) [branch]: Correct insn length
5815         attribute for forward branches.
5817 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5819         * doc/extend.texi (AVR Built-in Functions): Document
5820         __builtin_avr_nops.
5821         * config/avr/builtins.def (NOPS): New.
5822         * config/avr/avr.c (avr_expand_nops): New static function.
5823         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5825 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5827         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5828         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5829         addresses.
5831 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5833         * config/aarch64/aarch64.c (vulcan_tunings): Update
5834         vulcan L1 cache_line_size.
5836 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5838         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5839         function that takes a vector memory address, a hard register, an
5840         element number and a temporary base register, and recreates an
5841         address that points to the appropriate element within the vector.
5842         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5843         (rs6000_split_vec_extract_var): Add support for the target of a
5844         vec_extract with variable element number being a scalar memory
5845         location.
5846         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5847         swappable.
5848         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5849         vsx_extract_<mode>_load insn with a new insn that optimizes
5850         storing either element to a memory location, using scratch
5851         registers to pick apart the vector and reconstruct the address.
5852         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5853         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5854         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5855         store instruction.
5856         (vsx_extract_<mode>_var): Add support for extracting a variable
5857         element number from memory.
5859 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5861         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5862         when testing for compares against constants of the form 0xabab.
5864 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5866         PR tree-optimization/57558
5867         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5868         function.
5869         (vect_loop_versioning): Support versioning with niter assumptions.
5870         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5871         (vect_get_loop_niters): New parameter.  Reimplement to support
5872         assumptions in loop niter info.
5873         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5874         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5875         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5876         Support loop versioning for niters.
5877         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5878         (vect_free_loop_info_assumptions): New function.
5879         (vectorize_loops): Free loop niter info for loops with flag
5880         LOOP_F_ASSUMPTIONS set if vectorization failed.
5881         * tree-vectorizer.h (struct _loop_vec_info): New field
5882         num_iters_assumptions.
5883         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5884         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5885         (LOOP_REQUIRES_VERSIONING): New macro.
5886         (vect_free_loop_info_assumptions): New decl.
5888 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5890         * cfgloop.h (struct loop): New field constraints.
5891         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5892         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5893         functions.
5894         * cfgloop.c (alloc_loop): Initialize new field.
5895         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5896         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5897         Adjust niter analysis wrto loop constraints.
5898         * doc/loop.texi (@node Number of iterations): Add description for loop
5899         constraints.
5901 2016-07-29  Marek Polacek  <polacek@redhat.com>
5903         PR c/7652
5904         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5905         (ix86_expand_round_builtin): Likewise.
5907 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5908             Georg-Johann Lay  <avr@gjlay.de>
5910         PR rtl-optimization/71976
5911         * combine.c (get_last_value): Return 0 if the argument for which
5912         the function is called has a wider mode than the recorded value.
5914 2016-07-29  Marek Polacek  <polacek@redhat.com>
5916         PR c/7652
5917         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5918         (altivec_expand_st_builtin): Likewise.
5920 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5922         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5923         introduced in r238381.
5925 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5927         PR middle-end/68217
5928         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5929         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5931 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5933         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5934         New declaration.
5935         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5936         Add support for vec_extract of vector double or vector long having
5937         a variable element number on 64-bit ISA 2.07 systems or newer.
5938         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5939         Likewise.
5940         (rs6000_split_vec_extract_var): New function to split a
5941         vec_extract built-in function with variable element number.
5942         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5943         swappable.
5944         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5945         (UNSPEC_VSX_EXTRACT): Likewise.
5946         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5947         direct move instructions to be generated on 64-bit ISA 2.07
5948         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5949         instruction.
5950         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5951         arguments for vec_extract variable element.
5952         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5953         vec_extract with variable element on V2DFmode and V2DImode
5954         vectors.
5955         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5956         -mupper-regs-df requirement, since it isn't needed.
5957         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5958         do direct moves on 64-bit systems, which allows optimization of
5959         vec_extract on 64-bit ISA 2.07 systems and newer.
5961 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5962 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5964          * config/aarch64/aarch64.md
5965         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5966         statement and type.
5967         (<optab>qihi2_aarch64): Likewise, and split into two.
5968         (extendqihi2_aarch64): New.
5969         (zero_extendqihi2_aarch64): New.
5970         * config/aarch64/iterators.md (ldrxt): Remove.
5971         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5972         uxtb/uxth.
5974 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5976         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5978 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5980         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5981         (aarch64_push_reg): New function to push 1 or 2 registers.
5982         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5983         (aarch64_expand_prologue): Use aarch64_push_regs.
5984         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5986 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5988         PR tree-optimization/71734
5989         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5990         attribute instead of REF_LOOP and use it.
5991         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5992         set it for Loops having non-zero safelen attribute.
5993         (ref_indep_loop_p): Pass zero as initial value for safelen.
5995 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5997         PR middle-end/72657
5998         PR target/72683
5999         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
6000         call using chkp_gimple_call_builtin_p.
6001         (chkp_copy_bounds_for_assign): Likewise.
6003 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6005         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
6006         * config/arm/arm-protos.h (struct tune_params): Likewise.
6007         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6008         (cortex_a9_sched_adjust_cost): Likewise.
6009         (fa726te_sched_adjust_cost): Likewise.
6010         (arm_adjust_cost): Likewise.
6011         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
6012         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
6013         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
6014         * config/i386/i386.c (ix86_adjust_cost): Likewise.
6015         * config/ia64/ia64.c: Likewise.
6016         * config/m68k/m68k.c: Likewise.
6017         * config/mep/mep.c (mep_adjust_cost): Likewise.
6018         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6019         * Likewise.
6020         * config/mips/mips.c (mips_adjust_cost): Likewise.
6021         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
6022         * Likewise.
6023         * config/pa/pa.c (pa_adjust_cost): Likewise.
6024         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
6025         (rs6000_debug_adjust_cost): Likewise.
6026         * config/sh/sh.c (sh_adjust_cost): Likewise.
6027         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
6028         (hypersparc_adjust_cost): Likewise.
6029         (sparc_adjust_cost): Likewise.
6030         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
6031         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
6032         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
6033         * Likewise.
6034         * config/visium/visium.c (visium_adjust_cost): Likewise.
6035         * doc/tm.texi: Regenerate.
6036         * haifa-sched.c (dep_cost_1): Adjust.
6037         * target.def: Merge adjust_cost and adjust_cost_2.
6039 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6041         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
6043 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6045         * store-motion.c (struct st_expr): Make pattern_regs a vector.
6046         (extract_mentioned_regs): Append to a vector instead of
6047         returning a rtx_expr_list.
6048         (st_expr_entry): Adjust.
6049         (free_st_expr_entry): Likewise.
6050         (store_ops_ok): Likewise.
6051         (store_killed_in_insn): Likewise.
6052         (find_moveable_store): Likewise.
6054 2016-07-28  Martin Liska  <mliska@suse.cz>
6056         PR gcov-profile/68025
6057         * tree-profile.c (tree_profiling): Respect
6058         no_profile_instrument_function attribute.
6059         * doc/extend.texi: Document no_profile_instrument_function
6060         attribute.
6062 2016-07-28  Martin Liska  <mliska@suse.cz>
6064         PR rtl-optimization/70944
6065         * combine.c (make_compound_operation):
6066         Do not allow make_compound_operation for vector mode
6068 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
6070         PR middle-end/71994
6071         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
6072          before calling get_ops.
6074 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6076         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
6077         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
6078         (BITS_PER_UNIT_LOG): Remove.
6079         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
6080         * expr.c (expand_assignment): Likewise.
6081         * stor-layout.c (initialize_sizetypes): Likewise.
6083 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6085         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
6086         signature of rs6000_expand_vector_extract so that the element
6087         number is a RTX instead of a constant integer.
6088         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
6089         Likewise.
6090         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
6091         (altivec_expand_vec_ext_builtin): Likewise.
6092         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
6093         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
6094         MFVSRLD instruction.
6096 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6098         * input.c (get_pure_location): Move here from tree.c.
6099         (make_location): Likewise.  Add header comment.
6100         (selftest::test_accessing_ordinary_linemaps): Verify
6101         pure_location_p, make_location, get_location_from_adhoc_loc and
6102         get_range_from_loc.
6103         * input.h (get_pure_location): Move declaration here from tree.h.
6104         (get_finish): Likewise for inline function.
6105         (make_location): Likewise for declaration.
6106         * tree.c (get_pure_location): Move to input.c.
6107         (make_location): Likewise.
6108         * tree.h (get_pure_location): Move declaration to tree.h.
6109         (get_finish): Likewise for inline function.
6110         (make_location): Likewise for declaration.
6112 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6114         PR middle-end/71078
6115         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6117 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6119         * system.h (STATIC_ASSERT): Use static_assert if building
6120         with C++11 onwards.
6122 2016-07-27  Richard Biener  <rguenther@suse.de>
6124         PR tree-optimization/72517
6125         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6126         Revert change to not compute read-read dependences.
6128 2016-07-27  Richard Biener  <rguenther@suse.de>
6130         * predict.c (set_even_probabilities): Make nedges unsigned.
6132 2016-07-27  Martin Liska  <mliska@suse.cz>
6134         * predict.c (set_even_probabilities): Handle unlikely edges.
6135         (combine_predictions_for_bb): Likewise.
6137 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6139         PR target/71869
6140         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6141         __float128 support when we don't have hardware support, so that
6142         the IEEE built-in functions like isgreater, first call __unordkf3
6143         to make sure neither operand is a NaN, and if both operands are
6144         ordered, do the normal comparison.
6146 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6148         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6149         name.
6150         (extract_code_and_val_from_cond_with_ops): Verify that name is
6151         either cond_op0 or cond_op1.
6153 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6155         PR tree-optimization/18046
6156         * genmodes.c (emit_mode_size_inline): Emit an assert that
6157         verifies that mode is a valid array index.
6158         (emit_mode_nuinits_inline): Likewise.
6159         (emit_mode_inner_inline): Likewise.
6160         (emit_mode_unit_size_inline): Likewise.
6161         (emit_mode_unit_precision_inline): Likewise.
6162         * tree-vrp.c: Include params.h.
6163         (find_switch_asserts): Register edge assertions for the default
6164         label which correspond to the anti-ranges of each case label.
6165         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6166         * doc/invoke.texi: Document it.
6168 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6170         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6171         and unnecessary call to gimple_bb.
6173 2016-07-26  Richard Biener  <rguenther@suse.de>
6175         PR rtl-optimization/71984
6176         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6177         for VOIDmode.
6179 2016-07-26  Richard Biener  <rguenther@suse.de>
6181         PR middle-end/72517
6182         * expmed.c (extract_bit_field_1): Constrain the vector mode
6183         with element size matching the extraction mode size when
6184         choosing a better vector mode to do the extraction from.
6186 2016-07-26  Richard Biener  <rguenther@suse.de>
6187             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6189         PR middle-end/70920
6190         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
6191         pattern.
6193 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6195         * tree-ssa-structalias.c (struct scc_info): Change types of
6196         members to auto_sbitmap and auto_vec.
6197         (scc_info::scc_info): New constructor.
6198         (scc_info::~scc_info): New destructor.
6199         (init_scc_info): Remove.
6200         (free_scc_info): Remove.
6201         (find_indirect_cycles): Adjust.
6202         (perform_var_substitution): Likewise.
6203         (free_var_substitution_info): Likewise.
6205 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6207         * tree-outof-ssa.c (struct elim_graph): Change type of members
6208         to auto_vec and auto_sbitmap.
6209         (elim_graph::elim_graph): New constructor.
6210         (delete_elim_graph): Remove.
6211         (expand_phi_nodes): Adjust.
6213 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6215         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
6216         (new_elim_graph): Adjust.
6217         (clear_elim_graph): Likewise.
6218         (delete_elim_graph): Likewise.
6219         (elim_graph_size): Likewise.
6220         (elim_graph_add_node): Likewise.
6221         (elim_graph_add_edge): Likewise.
6222         (elim_graph_remove_succ_edge): Likewise.
6223         (eliminate_name): Likewise.
6224         (eliminate_build): Likewise.
6225         (elim_forward): Likewise.
6226         (elim_unvisited_predecessor): Likewise.
6227         (elim_backward): Likewise.
6228         (elim_create): Likewise.
6229         (eliminate_phi): Likewise.
6230         (expand_phi_nodes): Likewise.
6232 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6234         * bt-load.c (compute_out): Use auto_sbitmap class.
6235         (link_btr_uses): Likewise.
6236         * cfganal.c (mark_dfs_back_edges): Likewise.
6237         (post_order_compute): Likewise.
6238         (inverted_post_order_compute): Likewise.
6239         (pre_and_rev_post_order_compute_fn): Likewise.
6240         (single_pred_before_succ_order): Likewise.
6241         * cfgexpand.c (pass_expand::execute): Likewise.
6242         * cfgloop.c (verify_loop_structure): Likewise.
6243         * cfgloopmanip.c (fix_bb_placements): Likewise.
6244         (remove_path): Likewise.
6245         (update_dominators_in_loop): Likewise.
6246         * cfgrtl.c (break_superblocks): Likewise.
6247         * ddg.c (check_sccs): Likewise.
6248         (create_ddg_all_sccs): Likewise.
6249         * df-core.c (df_worklist_dataflow): Likewise.
6250         * dse.c (dse_step3): Likewise.
6251         * except.c (eh_region_outermost): Likewise.
6252         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6253         * gcse.c (prune_expressions): Likewise.
6254         (prune_insertions_deletions): Likewise.
6255         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
6256         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6257         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
6258         * lcm.c (compute_earliest): Likewise.
6259         (compute_farthest): Likewise.
6260         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6261         (unroll_loop_runtime_iterations): Likewise.
6262         (unroll_loop_stupid): Likewise.
6263         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6264         * lra-lives.c: Likewise.
6265         * lra.c (lra): Likewise.
6266         * modulo-sched.c (schedule_reg_moves): Likewise.
6267         (optimize_sc): Likewise.
6268         (get_sched_window): Likewise.
6269         (sms_schedule_by_order): Likewise.
6270         (check_nodes_order): Likewise.
6271         (order_nodes_of_sccs): Likewise.
6272         (order_nodes_in_scc): Likewise.
6273         * recog.c (split_all_insns): Likewise.
6274         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6275         * reload1.c (reload): Likewise.
6276         * sched-rgn.c (haifa_find_rgns): Likewise.
6277         (split_edges): Likewise.
6278         (compute_trg_info): Likewise.
6279         * sel-sched.c (init_seqno): Likewise.
6280         * store-motion.c (remove_reachable_equiv_notes): Likewise.
6281         * tree-into-ssa.c (update_ssa): Likewise.
6282         * tree-ssa-live.c (live_worklist): Likewise.
6283         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6284         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6285         * Likewise.
6286         (try_peel_loop): Likewise.
6287         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6288         * Likewise.
6289         * tree-ssa-pre.c (compute_antic): Likewise.
6290         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6291         * tree-stdarg.c (reachable_at_most_once): Likewise.
6292         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6293         * var-tracking.c (vt_find_locations): Likewise.
6295 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6297         * sbitmap.h (auto_sbitmap): New class.
6299 2016-07-26  Alan Modra  <amodra@gmail.com>
6301         PR target/72103
6302         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6303         sri->t_icode.
6305 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
6307         * input.c (selftest::temp_source_file::temp_source_file): Fix
6308         missing "%s" in fprintf.
6310 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
6312         PR middle-end/71732
6313         * cselib.c (cselib_process_insn): Invalidate argument slots for
6314         const/pure calls.
6316 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6318         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6319         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6320         vmulxh_lane_f16, vmulxh_laneq_f16): New.
6322 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6324         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6325         * config/aarch64/aarch64.md (fma, fnma): Support HF.
6326         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
6328 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6330         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6331         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
6332         New.
6333         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
6334         (add<mode>3): Likewise.
6335         (sub<mode>3): Likewise.
6336         (mul<mode>3): Likewise.
6337         (div<mode>3): Likewise.
6338         (*div<mode>3): Likewise.
6339         (<fmaxmin><mode>3): Extend to HF.
6340         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
6341         (fabd<mode>3): Likewise.
6342         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
6343         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
6344         (aarch64_fmulx<mode>): Likewise.
6345         (aarch64_fac<optab><mode>): Likewise.
6346         (aarch64_frecps<mode>): Likewise.
6347         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
6348         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
6349         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
6350         (VSDQ_HSDI): Support HI.
6351         (fcvt_target, FCVT_TARGET): Likewise.
6352         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
6353         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
6354         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
6355         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
6356         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
6357         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
6358         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
6359         vrsqrtsh_f16): New.
6361 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6363         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
6364         * config/aarch64/aarch64-builtins.c (hi_UP): New.
6365         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6366         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
6367         mode.
6368         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
6369         (aarch64_cm<optab><mode>): Likewise.
6370         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
6371         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
6372         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6373         (sqrt<mode>2): Likewise.
6374         (*sqrt<mode>2): Likewise.
6375         (abs<mode>2): Likewise.
6376         (<optab><mode>hf2): New pattern for HF mode.
6377         (<optab>hihf2): Likewise.
6378         * config/aarch64/arm_neon.h: Include arm_fp16.h.
6379         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
6380         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
6381         Support HF mode.
6382         * config/aarch64/arm_fp16.h: New file.
6383         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
6384         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
6385         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
6386         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
6387         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
6388         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
6389         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
6390         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
6391         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
6392         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
6393         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
6394         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
6395         vsqrth_f16): New.
6397 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6399         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
6400         reduc_smin_scal_): Use VDQIF_F16.
6401         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
6402         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
6403         Use VHSDF.
6404         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
6405         * config/aarch64/iterators.md (VDQIF_F16): New.
6406         (vp): Support HF modes.
6407         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
6408         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
6410 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6412         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
6413         "*aarch64_mulx_elt_from_dup<mode>".
6414         (*aarch64_mul3_elt<mode>): Update schedule type.
6415         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
6416         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
6417         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6418         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
6419         (f, fp): Support HF modes.
6420         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
6421         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
6422         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
6423         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
6424         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
6425         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
6427 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6429         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6430         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
6431         modes.
6432         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
6433         vfmsq_f16): New.
6435 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6437         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6438         * config/aarch64/aarch64-simd.md
6439         (aarch64_rsqrts<mode>): Extend to HF modes.
6440         (fabd<mode>3): Likewise.
6441         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
6442         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
6443         (aarch64_<maxmin_uns>p<mode>): Likewise.
6444         (<su><maxmin><mode>3): Likewise.
6445         (<maxmin_uns><mode>3): Likewise.
6446         (<fmaxmin><mode>3): Likewise.
6447         (aarch64_faddp<mode>): Likewise.
6448         (aarch64_fmulx<mode>): Likewise.
6449         (aarch64_frecps<mode>): Likewise.
6450         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
6451         (add<mode>3): Extend to HF modes.
6452         (sub<mode>3): Likewise.
6453         (mul<mode>3): Likewise.
6454         (div<mode>3): Likewise.
6455         (*div<mode>3): Likewise.
6456         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
6457         HF, V4HF and V8HF.
6458         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
6459         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
6460         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
6461         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
6462         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
6463         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
6464         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
6465         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
6466         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
6467         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
6468         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
6469         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
6470         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
6471         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
6473 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6475         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
6476         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6477         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
6478         (neg<mode>2): Likewise.
6479         (abs<mode>2): Likewise.
6480         (<frint_pattern><mode>2): Likewise.
6481         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
6482         (<optab><VDQF:mode><fcvt_target>2): Likewise.
6483         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
6484         (ftrunc<VDQF:mode>2): Likewise.
6485         (<optab><fcvt_target><VDQF:mode>2): Likewise.
6486         (sqrt<mode>2): Likewise.
6487         (*sqrt<mode>2): Likewise.
6488         (aarch64_frecpe<mode>): Likewise.
6489         (aarch64_cm<optab><mode>): Likewise.
6490         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
6491         HF, V4HF and V8HF.
6492         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
6493         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
6494         (stype): New.
6495         * config/aarch64/arm_neon.h (vdup_n_f16): New.
6496         (vdupq_n_f16): Likewise.
6497         (vld1_dup_f16): Use vdup_n_f16.
6498         (vld1q_dup_f16): Use vdupq_n_f16.
6499         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
6500         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
6501         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
6502         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
6503         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
6504         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
6505         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
6506         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
6507         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
6508         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
6509         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
6510         vsqrt_f16, vsqrtq_f16): New.
6512 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6514         * config/aarch64/aarch64-simd.md
6515         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
6516         (aarch64_ext<mode>): Likewise.
6517         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
6518         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
6519         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
6520         and V8HFmode.
6521         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
6522         float16x8_t.
6523         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
6524         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
6525         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
6526         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
6527         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
6528         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
6529         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
6530         New.
6531         (vmov_n_f16): Reimplement using vdup_n_f16.
6532         (vmovq_n_f16): Reimplement using vdupq_n_f16..
6534 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6536         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
6537         "frame_related_p".  Generate CFA annotation when it's necessary.
6538         (aarch64_expand_prologue): Use aarch64_add_constant.
6539         (aarch64_expand_epilogue): Likewise.
6540         (aarch64_output_mi_thunk): Pass "false" when calling
6541         aarch64_add_constant.
6543 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6545         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
6546         sequences.
6548 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6550         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6551         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6552         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6553         (aarch64_build_constant): Delete.
6555 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
6557         Revert
6558         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6560         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6561         flag_toplevel_reorder.
6563 2016-07-25  Richard Biener  <rguenther@suse.de>
6565         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6566         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6567         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6568         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6569         (streamer_get_builtin_tree): Likewise.
6570         (streamer_write_builtin): Likewise.
6571         * lto-streamer.h (LTO_builtin_decl): Remove.
6572         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6573         (lto_input_scc): Remove LTO_builtin_decl handling.
6574         (lto_input_tree_1): Liekwise.
6575         * lto-streamer-out.c (lto_output_tree_1): Remove special
6576         handling of builtins.
6577         (DFS::DFS): Likewise.
6578         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6579         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6580         assert.
6581         (streamer_write_builtin): Remove.
6583 2016-07-25  Martin Liska  <mliska@suse.cz>
6585         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6586         if flag_auto_profile is set to true.
6588 2016-07-25  Martin Liska  <mliska@suse.cz>
6590         PR gcov-profile/71868
6591         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6592         have a function with multiple latches, count them all.
6594 2016-07-25  Martin Liska  <mliska@suse.cz>
6596         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6598 2016-07-25  Martin Liska  <mliska@suse.cz>
6600         PR tree-optimization/71987
6601         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6602         just for SSA_NAMEs. Fix GNU coding style.
6604 2016-07-25  Martin Liska  <mliska@suse.cz>
6606         PR gcov-profile/64874
6607         * gcov-io.h: Update command about file format.
6608         * gcov-iov.c (main): Adapt the numbering scheme.
6610 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6612         PR middle-end/66726
6613         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6614         whose result is used in PHI.
6615         (final_range_test_p): Likewise.
6616         (maybe_optimize_range_tests): Likewise.
6618 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6620         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6621         Reformat two multi-line strings.
6623 2016-07-22  Martin Sebor  <msebor@redhat.com>
6625         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6627 2016-07-22  Martin Sebor  <msebor@redhat.com>
6629         PR c/71560
6630         * doc/extend.texi (Compound Literals): Correct and clarify.
6631         (Cast to Union): Same.
6633 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6635         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6636         comments to explain why certain error messages make mention of
6637         undocumented options.
6638         (rs6000_invalid_builtin): Change error messages to replace mention
6639         of undocumented options with mention of the -mcpu=power9 option
6640         that enables those undocumented options.
6641         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6642         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6643         definition of this macro to correct an existing error.
6644         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6645         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6646         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6647         descriptions of built-in functions so that they depend on
6648         -mcpu=power9 instead of on the corresponding undocumented flags.
6649         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6650         undocumented flags.
6651         (IBM RS/6000 and PowerPC Options): Likewise.
6652         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6653         mention of newly undocumented flags.
6655 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6657         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6658         when target_clones attribute is set.
6660 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6662         * common.opt (funsafe-loop-optimizations): Mark ignore.
6663         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6664         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6665         related code.
6666         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6667         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6669 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6671         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6672         Parameter.
6673         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6674         Parameter.
6675         (number_of_iterations_exit): Warn missed loop optimization for
6676         possible infinite loops.
6678 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6680         PR target/71216
6681         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6682         when to emit a ".machine" pseudo-op.
6684 2016-07-22  Martin Liska  <mliska@suse.cz>
6686         PR gcov-profile/69028
6687         PR gcov-profile/62047
6688         * coverage.c (coverage_compute_lineno_checksum): Do not
6689         calculate checksum for fns w/o xloc.file.
6690         (coverage_compute_profile_id): Likewise.
6692 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6694         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6695         (avr_secondary_reload): ...and implementation.
6696         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6697         * config/avr/avr.md (reload_in<mode>): Remove insns.
6698         (adjust_len) [lpm]: Remove insn attribute value.
6699         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6701 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6703         PR middle-end/71876
6704         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6705         attribute.
6706         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6707         * calls.c (special_function_p): Remove the special handling of the
6708         "__builtin_" prefix.
6710 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6712         PR middle-end/71876
6713         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6714         if STMT may be an alloca call.
6715         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6716         builtin alloca call.
6717         * calls.h (gimple_maybe_alloca_call_p): New function.
6718         * tree-inline.c (inline_forbidden_p_stmt): Use
6719         gimple_maybe_alloca_call_p here.
6721 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6723         * spellcheck-tree.c (best_macro_match::best_macro_match):
6724         Explictly specify the template arguments when invoking the base
6725         class constructor, to help older C++ compilers.
6727 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6729         PR sanitizer/71953
6730         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6731         before builtin_decl_implicit.
6733 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6735         * optabs.c (emit_condiitonal_move): Short circuit for identical
6736         sources.
6738 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6740         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6741         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6742         (noce_conversion_profitable_p): New.
6743         (noce_try_store_flag_constants): Use it.
6744         (noce_try_addcc): Likewise.
6745         (noce_try_store_flag_mask): Likewise.
6746         (noce_try_cmove): Likewise.
6747         (noce_try_cmove_arith): Likewise.
6748         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6749         overwriting it.
6750         (noce_convert_multiple_sets): Move cost model to here, from...
6751         (bb_ok_for_noce_convert_multiple_sets) ...here.
6752         (noce_process_if_block): Update calls for above changes.
6753         (noce_find_if_block): Record new noce_if_info parameters.
6755 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6757         * target.def (max_noce_ifcvt_seq_cost): New.
6758         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6759         * doc/tm.texi: Regenerate.
6760         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6761         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6762         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6763         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6764         * doc/invoke.texi: Document new params.
6766 2016-07-21  Richard Biener  <rguenther@suse.de>
6768         PR tree-optimization/71947
6769         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6770         ranges have useful limit_vr information.
6772 2016-07-21  Richard Biener  <rguenther@suse.de>
6774         * function-tests.c (build_trivial_generic_function): Set
6775         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6776         * omp-low.c (create_omp_child_function): Likewise.
6777         (grid_expand_target_grid_body): Likewise.
6778         * cgraphunit.c (init_lowered_empty_function): Likewise.
6779         (cgraph_node::expand_thunk): Likewise.
6780         * tree-parloops.c (create_loop_fn): Likewise.
6781         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6783 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6785         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6786         in comment.
6788 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6790         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6791         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6792         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6793         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6794         values for insn attribute.
6795         * config/avr/avr.c (avr_out_insert_notbit): New function.
6796         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6797         ADJUST_LEN_INSV_NOTBIT_0/_7.
6798         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6800 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6802         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6803         (chrec_convert_1, chrec_convert): Ditto.
6804         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6805         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6806         * tree-vrp.c (adjust_range_with_scev): Ditto.
6807         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6808         (scev_var_range_cant_overflow): New function.
6809         (scev_probably_wraps_p): New parameter.  Call above function.
6810         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6812 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6814         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6815         by removing computation of may_be_zero.
6817 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6819         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6821 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6823         Improving concepts performance and diagnostics.
6824         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6825         for constraint satisfaction and subsumption.
6826         * timevar.h (auto_timevar): New constructor that matches the push/pop
6827         pattern of usage in pt.c.
6829 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6831         * hwint.h (HOST_WIDE_INT_0): New define.
6832         (HOST_WIDE_INT_0U): Ditto.
6833         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6834         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6835         * simplify-rtx.c: Ditto.
6836         * tree-object-size.c: Ditto.
6838 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6840         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6841         check.
6843 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6845         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6846         * combine.c: Use HOST_WIDE_INT_M1U instead of
6847         ~(unsigned HOST_WIDE_INT) 0.
6848         * double-int.h: Ditto.
6849         * dse.c: Ditto.
6850         * dwarf2asm.c:Ditto.
6851         * expmed.c: Ditto.
6852         * genmodes.c: Ditto.
6853         * match.pd: Ditto.
6854         * read-rtl.c: Ditto.
6855         * tree-ssa-loop-ivopts.c: Ditto.
6856         * tree-ssa-loop-prefetch.c: Ditto.
6857         * tree-vect-generic.c: Ditto.
6858         * tree-vect-patterns.c: Ditto.
6859         * tree.c: Ditto.
6861 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6863         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6864         constant addresses outside [0,0xc0] into a register.
6865         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6866         cases where the base address register is unused after.
6867         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6868         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6869         (avr_out_store_psi_reg_disp_tiny): Same.
6871 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6873         Implement attribute progmem on reduced Tiny cores by adding
6874         flash offset 0x4000 to respective symbols.
6876         PR target/71948
6877         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6878         documentation how it works on reduced Tiny cores.
6879         (AVR Named Address Spaces): No support for reduced Tiny.
6880         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6881         (avr_address_tiny_pm_p): New static function.
6882         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6883         if the address is in progmem.
6884         (avr_assemble_integer): Same.
6885         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6886         for symbol_ref in progmem.
6887         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6888         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6889         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6891 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6893         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6894         * configure: Regenerate.
6895         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6896         (USE_THIN_ARCHIVES): New variable.
6897         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6898         this archive as a thin archive.
6900 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6902         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6903         same location as last time, don't skip if we have fix-it hints.
6904         Clarify the skipping logic by converting it from one "if" clause
6905         to repeated "if" clauses.
6906         * spellcheck-tree.c: Include "cpplib.h".
6907         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6908         (best_macro_match::best_macro_match): New constructor.
6909         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6910         Move here from c/c-decl.c.
6911         (class best_macro_match): Move here from c/c-decl.c, converting
6912         from a typedef to a subclass, gaining a ctor.
6914 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6916         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6917         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6918         define...
6919         (avr_addr_space_diagnose_usage): ...and implementation.
6920         (avr_addr_space_supported_p): New function.
6921         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6922         report bad address space usage if that space is supported.
6923         (avr_insert_attributes): Same.  No more complain about unsupported
6924         address spaces.
6925         * config/avr/avr-c.c (tm_p.h): Include it.
6926         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6927         macro if avr_addr_space_supported_p.
6929 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6931         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6932         flag_toplevel_reorder.
6934 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6936         * gcc-rich-location.c
6937         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6938         a const char *.
6939         * gcc-rich-location.h
6940         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6942 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6944         * target.def (addr_space): Add new diagnose_usage to hook vector.
6945         * targhooks.c (default_addr_space_diagnose_usage): Add default
6946         implementation and...
6947         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6948         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6949         is some address space, call targetm.addr_space.diagnose_usage.
6950         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6951         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6952         * doc/tm.texi: Regenerate.
6954 2016-07-20  Martin Liska  <mliska@suse.cz>
6956         PR middle-end/71898
6957         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6958         Properly handly PHI stmts.
6960 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6962         PR tree-optimization/71503
6963         PR tree-optimization/71683
6964         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6965         and break.
6967 2016-07-20  Martin Liska  <mliska@suse.cz>
6969         * doc/invoke.texi (-fipa-ra): Document when the option is
6970         disabled. Fix a typo.
6972 2016-07-20  Martin Liska  <mliska@suse.cz>
6974         * Makefile.in: Include fibonacci_heap.c
6975         * fibonacci_heap.c: New file.
6976         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6977         (fibonacci_heap::union_with): Fix deletion of the second heap.
6978         * selftest-run-tests.c (selftest::run_tests): Incorporate
6979         fibonacci heap tests.
6980         * selftest.h: Declare fibonacci_heap_c_tests.
6982 2016-07-20  Martin Liska  <mliska@suse.cz>
6984         * selftest-run-tests.c (selftest::run_tests): New function.
6985         * selftest.h (sreal_c_tests): Declare.
6986         * sreal.c (sreal_verify_basics): New function.
6987         (verify_aritmetics): Likewise.
6988         (sreal_verify_arithmetics): Likewise.
6989         (verify_shifting): Likewise.
6990         (sreal_verify_shifting): Likewise.
6991         (void sreal_c_tests): Likewise.
6993 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6995         PR rtl-optimization/71916
6996         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6997         bb which have a single succ fake edge.
6999 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
7001         PR debug/71855
7002         * dwarf2out.c (gen_subprogram_die): Only call
7003         gen_unspecified_parameters_die while dumping early dwarf.
7005 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
7007         PR middle-end/71874
7008         * gimple-fold.c (fold_builtin_memory_op): Use
7009         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7011 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
7013         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
7014         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
7015         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
7016         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
7017         * combine.c: Ditto.
7018         * cse.c: Ditto.
7019         * dojump.c: Ditto.
7020         * double-int.c: Ditto.
7021         * dse.c: Ditto.
7022         * dwarf2out.c: Ditto.
7023         * expmed.c: Ditto.
7024         * expr.c: Ditto.
7025         * fold-const.c: Ditto.
7026         * function.c: Ditto.
7027         * fwprop.c: Ditto.
7028         * genmodes.c: Ditto.
7029         * hwint.c: Ditto.
7030         * hwint.h: Ditto.
7031         * ifcvt.c: Ditto.
7032         * loop-doloop.c: Ditto.
7033         * loop-invariant.c: Ditto.
7034         * loop-iv.c: Ditto.
7035         * match.pd: Ditto.
7036         * optabs.c: Ditto.
7037         * real.c: Ditto.
7038         * reload.c: Ditto.
7039         * rtlanal.c: Ditto.
7040         * simplify-rtx.c: Ditto.
7041         * stor-layout.c: Ditto.
7042         * toplev.c: Ditto.
7043         * tree-ssa-loop-ivopts.c: Ditto.
7044         * tree-vect-generic.c: Ditto.
7045         * tree-vect-patterns.c: Ditto.
7046         * tree.c: Ditto.
7047         * tree.h: Ditto.
7048         * ubsan.c: Ditto.
7049         * varasm.c: Ditto.
7050         * wide-int-print.cc: Ditto.
7051         * wide-int.cc: Ditto.
7052         * wide-int.h: Ditto.
7054 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7056         * selftest.c (selftest::assert_streq): Handle NULL values of
7057         val_actual and val_expected.
7059 2016-07-19  Martin Jambor  <mjambor@suse.cz>
7061         PR fortran/71688
7062         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
7063         rather than cgraph_create_node to get a call graph node.
7065 2016-07-19  Richard Biener  <rguenther@suse.de>
7067         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
7068         handle all tcc_constant bases and valueize SSA names.
7069         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
7070         tcc_constant bases.
7072 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7074         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
7075         the flags of the exit block and bb2, not just the entry block.
7077 2016-07-19  Richard Biener  <rguenther@suse.de>
7079         PR tree-optimization/71901
7080         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7081         align member, group stuff with the bitfield.
7082         (vn_ref_op_align_unit): New inline.
7083         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
7084         record element alignment and operand 3 unchanged.
7085         (ao_ref_init_from_vn_reference): Adjust.
7086         (valueize_refs_1): Likewise.
7087         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7089 2016-07-19  Richard Biener  <rguenther@suse.de>
7091         PR tree-optimization/71908
7092         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
7093         symbolic constants in a more reliable way.
7095 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7097         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7098         comment.
7099         (vect_update_inits_of_drs): Likewise.
7100         (vect_create_cond_for_alias_checks): Likewise.
7101         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7103 2016-07-19  Richard Biener  <rguenther@suse.de>
7105         PR lto/71907
7106         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7107         with an abstract origin that is not an inlined function outer
7108         scope add a self-reference as abstract origin.
7109         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7111 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7113         PR target/71493
7114         * config/rs6000/rs6000.c (rs6000_function_value): Fix
7115         unintentional System V.4 structure return breakage for structures
7116         with a single floating point element.
7118 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
7120         PR tree-optimization/71734
7121         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7122         contains REF, use it to check safelen, assume that safelen value
7123         must be greater 1, fix style.
7124         (ref_indep_loop_p_2): Add REF_LOOP argument.
7125         (ref_indep_loop_p): Pass LOOP as additional argument to
7126         ref_indep_loop_p_2.
7128 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7130         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7131         allocation in the prologue.
7132         * explow.c (get_dynamic_stack_base): New function to return an address
7133         expression for the dynamic stack base.
7134         (get_dynamic_stack_size): New function to do the required dynamic stack
7135         space size calculations.
7136         (allocate_dynamic_stack_space): Use new functions.
7137         (align_dynamic_address): Move some code from
7138         allocate_dynamic_stack_space to new function.
7139         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7141 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7143         * config/s390/s390.c (s390_encode_section_info): Always set
7144         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7145         found.
7147 2016-07-18  Richard Biener  <rguenther@suse.de>
7149         PR tree-optimization/71893
7150         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7151         for sizetype cast added by array_ref_element_size.
7152         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7154 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
7156         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7157         register parameters.  Remove code to initialize argument pointer
7158         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
7159         using a pc-relative branch.  Cleanup conditional code.
7160         * config/pa/pa.md (call_mcount): New expander.
7161         (call_mcount_nonpic): New insn.
7162         (call_mcount_pic): New insn and split.
7163         (call_mcount_pic_post_reload): New insn.
7164         (call_mcount_64bit): New insn and split.
7165         (call_mcount_64bit_post_reload): New insn.
7167 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
7169         * config/avr/predicates.md (const_m255_to_m1_operand): New.
7170         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7171         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7172         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7173         (*usum_widenqihi3, *udiff_widenqihi3)
7174         (*addhi3_zero_extend.const): New combiner insns.
7175         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7176         just 1 bit is affected.
7177         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7178         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7180 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
7182         * omp-low.c (lower_omp_target): Mark data clauses with
7183         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
7184         zero-length subarrays.
7186 2016-07-15  Richard Biener  <rguenther@suse.de>
7188         PR tree-optimization/71881
7189         * tree-loop-distribution.c (destroy_loop): Remove blocks in
7190         reverse DOM order to make debug temp generation happy.
7192 2016-07-15  Richard Biener  <rguenther@suse.de>
7194         PR tree-optimization/71887
7195         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
7196         verify it is not zero for division / modulo handling.
7197         (value_replacement): Adjust.
7199 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
7200             Julian Brown  <julian@codesourcery.com>
7202         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
7203         * config/aarch64/aarch64-cost-tables.h
7204         (vulcan_extra_costs): New variable.
7205         * config/aarch64/aarch64.c
7206         (vulcan_addrcost_table): Likewise.
7207         (vulcan_regmove_cost): Likewise.
7208         (vulcan_vector_cost): Likewise.
7209         (vulcan_branch_cost): Likewise.
7210         (vulcan_tunings): Likewise.
7212 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
7214         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
7215         (output_in_order): Loop over undefined variables too.  Output them
7216         via assemble_undefined_decl.  Skip variables that correspond to hard
7217         registers or have value-exprs.
7218         * varpool.c (symbol_table::output_variables): Handle undefined
7219         variables together with defined ones.
7221 2016-07-15  Richard Biener  <rguenther@suse.de>
7223         * tree-ssa-pre.c (get_representative_for): Make sure to return
7224         the value number of SSA names.
7225         (phi_translate_1): get_representative_for cannot return NULL.
7226         (do_pre_regular_insertion): Remove redundant call to
7227         fully_constant_expression.
7228         (do_pre_partial_partial_insertion): Likewise.
7230 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
7232         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
7233         (derive_simple_iv_with_niters): New function.
7234         (simple_iv): Rewrite using simple_iv_with_niters.
7235         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7236         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7237         function.
7238         (number_of_iterations_exit): Rewrite using above function.
7239         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7240         Decl.
7242 2016-07-15  Richard Biener  <rguenther@suse.de>
7244         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
7245         vec_construct cost.
7247 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
7249         PR tree-optimization/71872
7250         * tree-data-ref.c (get_references_in_stmt): Ignore references
7251         with is_gimple_constant get_base_address.
7253 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7255         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
7256         (TARGET_HAVE_LDACQD): New macro.
7257         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
7258         than TARGET_HAVE_LDACQ.
7259         (arm_load_acquire_exclusivedi): Likewise.
7260         (arm_store_release_exclusivedi): Likewise.
7262 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7264         PR rtl-optimization/71878
7265         * lra-constraints.c (match_reload): Pass information about other
7266         output operands.  Create new unique register value if matching input
7267         operand shares same register value as output operand being considered.
7268         (curr_insn_transform): Record output operands already processed.
7270 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7272         PR target/65951
7273         PR tree-optimization/70923
7274         * tree-vect-patterns.c: Include mult-synthesis.h.
7275         (target_supports_mult_synth_alg): New function.
7276         (synth_lshift_by_additions): Likewise.
7277         (apply_binop_and_append_stmt): Likewise.
7278         (vect_synth_mult_by_constant): Likewise.
7279         (target_has_vecop_for_code): Likewise.
7280         (vect_recog_mult_pattern): Use above functions to synthesize vector
7281         multiplication by integer constants.
7283 2016-07-14  Alan Modra  <amodra@gmail.com>
7285         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7286         gpr alternatives.  Correct '*' placement on Y,r alternative.
7287         Add '*' on operand 1 of r,r alternative.
7289 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7291         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7292         * expmed.h: ... Here.
7294 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
7296         * gimple.h (stmt_can_terminate_bb_p): New function.
7297         * tree-cfg.c (need_fake_edge_p): Rename to ...
7298         (stmt_can_terminate_bb_p): ... this; return true if stmt can
7299         throw external; handle const and pure calls.
7300         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7302 2016-07-14  Richard Biener  <rguenther@suse.de>
7304         PR tree-optimization/71866
7305         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7306         (do_hoist_insertion): Avoid endless recursion when we
7307         didn't insert anything because we managed to simplify
7308         things down to a constant or SSA name.
7309         (fully_constant_expression): Re-write in terms of ...
7310         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
7311         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7312         vn_nary_build_or_lookup_1.
7313         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7314         (vn_nary_build_or_lookup): ... this which now wraps it.
7316 2016-07-14  Alan Modra  <amodra@gmail.com>
7318         PR target/71733
7319         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7320         with p9_vector override before power9-dform override.
7322 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7324         * value-prof.c (gimple_value_profile_transformations): Don't run
7325         when auto_profile is on.
7327 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7329         * auto-profile.c (update_inlined_ind_target,
7330         afdo_indirect_call): Print information to dump file.
7332 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7334         * genrecog.c (special_predicate_operand_p): New function.
7335         (predicate_name): Move function.
7336         (validate_pattern): Don't warn about missing mode for all
7337         define_special_predicate predicates.
7339 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
7341         * tree-vect-data-refs.c (vect_no_alias_p): New function.
7342         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
7343         resolve alias checks which are known at compilation time.
7344         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
7345         alias checks are resolved.  Move dump info for too many runtime
7346         alias checks to here...
7347         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
7349 2016-07-13  Richard Biener  <rguenther@suse.de>
7351         PR tree-optimization/24574
7352         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
7353         position and add shift, rotate, divison and modulo support
7354         for left zero.
7355         (value_replacement): Pass in argument position to absorbing_element_p.
7357 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7359         PR ipa/71633
7360         * ipa-inline-transform.c (inline_call): Support
7361         instrumented thunks.
7363 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7365         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
7366         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
7367         divide feature.
7368         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
7369         Baseline.  Make initial alternative TARGET_32BIT only.
7370         (udivsi3): Likewise.
7371         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
7372         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
7373         target.
7375 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7377         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
7378         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
7379         availability with TARGET_HAVE_MOVT.
7380         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
7381         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
7382         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
7383         UINTVAL.
7384         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
7385         extra instruction if MOVW is available.  Use a cost variable
7386         incremented by COSTS_N_INSNS (1) when the condition match rather than
7387         returning an arithmetic expression based on COSTS_N_INSNS.  Make
7388         constant with bottom half word zero cost 2 instruction if MOVW is
7389         available.
7390         * config/arm/arm.md (define_attr "arch"): Add v8mb.
7391         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
7392         target is ARMv8-M Baseline.
7393         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
7394         (arm_movtas_ze): Likewise.
7395         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
7396         alternative for constants satisfying j constraint.
7397         (thumb1_movsi_insn): Likewise.
7398         (movsi splitter for K alternative): Tighten condition to not trigger
7399         if movt is available and j constraint is satisfied.
7400         (Pe immediate splitter): Likewise.
7401         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
7402         constant fitting in an halfword to use MOVW.
7403         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
7404         effective target.
7406 2016-07-13  Richard Biener  <rguenther@suse.de>
7408         PR middle-end/71104
7409         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
7410         gimplifying the LHS.  Make sure to gimplify a returning twice
7411         call LHS without using SSA names.
7413 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7415         * tree-data-ref.c (find_data_references_in_stmt): Remove
7416         unnecessary call to vec::release.
7417         (graphite_find_data_references_in_stmt): Likewise.
7418         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
7419         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7421 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7423         * cfgexpand.c (expand_used_vars): Make the type of a local
7424         variable auto_vec.
7425         * genmatch.c (lower_for): Likewise.
7426         * haifa-sched.c (haifa_sched_init): Likewise.
7427         (add_to_speculative_block): Likewise.
7428         (create_check_block_twin): Likewise.
7429         * predict.c (handle_missing_profiles): Likewise.
7430         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
7431         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
7432         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7433         Likewise.
7434         (maybe_lower_iteration_bound): Likewise.
7435         * tree-ssa-sccvn.c (DFS): Likewise.
7436         * tree-stdarg.c (reachable_at_most_once): Likewise.
7437         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
7438         (vectorizable_store): Likewise.
7440 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7442         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
7443         (sccvn_dom_walker): make cond_stack an auto_vec.
7445 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7447         * ree.c (struct ext_state): Make type of members auto_vec.
7448         (find_and_remove_re): Adjust.
7450 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7452         * cfgexpand.c (struct stack_vars_data): Make type of fields
7453         auto_vec.
7454         (expand_used_vars): Adjust.
7456 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7458         * ipa.c (record_cdtor_fn): Adjust.
7459         (build_cdtor_fns): Likewise.
7460         (ipa_cdtor_merge): Make static_ctors and static_dtors local
7461         variables.
7463 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7465         * genextract.c (struct accum_extract): Add constructor and make
7466         members auto_vec.
7467         (gen_insn): Adjust.
7469 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7471         * tree.c (struct free_lang_data_d): Add constructor and change
7472         types of members to ones that automatically manage resources.
7473         (fld_worklist_push): Adjust.
7474         (find_decls_types): Likewise.
7475         (find_decls_types_in_eh_region): Likewise.
7476         (free_lang_data_in_cgraph): Stop manually creating and
7477         destroying members of free_lang_data_d.
7479 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
7481         PR rtl-optimization/68961
7482         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
7483         peephole variant.  Use sse_reg_operand predicates.
7485 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
7487         * config/i386/predicates.md (x86_64_immediate_operand)
7488         <case CONST_INT>: Remove unneeded truncation to DImode.
7489         <case CONST>: Ditto.
7490         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7492 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7494         PR target/71805
7495         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
7496         The xxperm and xxpermr instructions require that the 2nd input
7497         operand overlap with the output operand, and not the 1st.
7498         (altivec_vperm_v8hiv16qi): Likewise.
7499         (altivec_vperm_<mode>_uns_internal): Likewise.
7500         (altivec_vpermr_<mode>_internal): Likewise.
7501         (vperm_v8hiv4si): Likewise.
7502         (vperm_v16qiv8hi): Likewise.
7504 2016-07-12  Nathan Sidwell  <nathan@acm.org>
7506         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
7507         when -mno-pic-data-is-text-relative is in effect, by default.
7508         * doc/invoke.texi (mpic-data-is-text-relative): Document new
7509         behavior and clarify.
7511 2016-07-12  Martin Liska  <mliska@suse.cz>
7513         * params.def: Add avg-loop niter.
7514         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
7515         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
7516         * doc/invoke.texi: Document the new parameter.
7518 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7520         PR middle-end/71700
7521         * expr.c (store_constructor): Mask sign-extended bits when widening
7522         sub-word constructor element at the start of a word.
7524 2016-07-12  Martin Liska  <mliska@suse.cz>
7526         * Makefile.in: Append rule for params-options.h.
7527         * params-options.h: New file.
7529 2016-07-12  Martin Liska  <mliska@suse.cz>
7531         * ira-build.c (mark_loops_for_removal): Properly iterate
7532         loops.
7534 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
7535             Richard Biener  <rguenther@suse.de>
7537         PR tree-optimization/23286
7538         PR tree-optimization/70159
7539         * doc/invoke.texi: Document -fcode-hoisting.
7540         * common.opt (fcode-hoisting): New flag.
7541         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
7542         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
7543         (do_regular_insertion): Rename to ...
7544         (do_pre_regular_insertion): ... this and amend general comments
7545         on insertion strathegy.
7546         (do_partial_partial_insertion): Rename to ...
7547         (do_pre_partial_partial_insertion): ... this.
7548         (do_hoist_insertion): New function.
7549         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7550         and call do_hoist_insertion properly.
7551         (insert): Adjust.
7552         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7553         (pass_pre::execute): Register hoist_insert stats.
7555 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
7557         PR middle-end/71716
7558         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7559         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7560         is different from mode's bitsize.  Small cleanup.
7562 2016-07-12  Richard Biener  <rguenther@suse.de>
7564         PR rtl-optimization/68961
7565         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7566         to simplify to a non-constant.
7568 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7570         PR middle-end/71758
7571         * omp-low.c (expand_omp_target): Gimplify device.
7573         PR tree-optimization/71823
7574         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7575         to get vec_oprnds2 from op2.
7577 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7579         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7580         Hoist common subexpressions.
7581         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7583 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7585         PR target/71800
7586         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7587         prevent generation of 'stxsiwx' on pre Power8 hardware.
7589 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7591         * input.c: Include cpplib.h.
7592         (selftest::temp_source_file): New class.
7593         (selftest::temp_source_file::temp_source_file): New ctor.
7594         (selftest::temp_source_file::~temp_source_file): New dtor.
7595         (selftest::should_have_column_data_p): New function.
7596         (selftest::test_should_have_column_data_p): New function.
7597         (selftest::temp_line_table): New class.
7598         (selftest::temp_line_table::temp_line_table): New ctor.
7599         (selftest::temp_line_table::~temp_line_table): New dtor.
7600         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7601         it to create a temp_line_table.
7602         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7603         locations that are known to have column data.
7604         (selftest::line_table_case): New struct.
7605         (selftest::test_reading_source_line): Move tempfile handling
7606         to class temp_source_file.
7607         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7608         (selftest::assert_token_loc_eq): New function.
7609         (ASSERT_TOKEN_LOC_EQ): New macro.
7610         (selftest::test_lexer): New function.
7611         (selftest::boundary_locations): New array.
7612         (selftest::input_c_tests): Call test_should_have_column_data_p.
7613         Loop over a test matrix of interesting values of location and
7614         default_range_bits, calling test_lexer on each case in the matrix.
7615         Move call to test_accessing_ordinary_linemaps into the matrix.
7616         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7617         (ASSERT_EQ_AT): New macro.
7619 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7621         PR target/71801
7622         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7623         Don't convert TImode in debug insn.
7625 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7627         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7628         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7629         (tree_type_common::lang_flag_7): New.
7630         (tree_type_common::spare): Reduce size.
7631         * tree.h (TYPE_ALIGN_OK): Remove.
7632         (TYPE_LANG_FLAG_7): New.
7633         (get_inner_reference): Adjust header.
7634         * print-tree.c (print_node): Adjust.
7635         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7636         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7637         calls to get_inner_reference.
7638         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7639         handling of TYPE_ALIGN_OK.
7640         * builtins.c (get_object_alignment_2): Adjust call to
7641         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7642         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7643         TYPE_ALIGN_OK.
7644         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7645         * cfgexpand.c (expand_debug_expr): Likewise.
7646         * dbxout.c (dbxout_expand_expr): Likewise.
7647         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7648         loc_list_from_tree, fortran_common): Likewise.
7649         * fold-const.c (optimize_bit_field_compare,
7650         decode_field_reference, fold_unary_loc, fold_comparison,
7651         split_address_to_core_and_offset): Likewise.
7652         * gimple-laddress.c (execute): Likewise.
7653         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7654         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7655         * hsa-gen.c (gen_hsa_addr): Likewise.
7656         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7657         * tsan.c (instrument_expr): Likewise.
7658         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7659         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7660         * tree-affine.c (tree_to_aff_combination,
7661         get_inner_reference_aff): Adjust calls to get_inner_reference.
7662         * tree-data-ref.c (split_constant_offset_1,
7663         dr_analyze_innermost): Likewise.
7664         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7665         * tree-sra.c (ipa_sra_check_caller): Likewise.
7666         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7667         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7668         bswap_replace): Likewise.
7669         * tree-vect-data-refs.c (vect_check_gather,
7670         vect_analyze_data_refs): Likewise.
7671         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7672         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7673         TYPE_ALIGN_OK.
7675 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7677         * Makefile.in (selftest-valgrind): New phony target.
7678         * function-tests.c (selftest::build_cfg): Delete pass instances
7679         created by the test.
7680         (selftest::convert_to_ssa): Likewise.
7681         (selftest::test_expansion_to_rtl): Likewise.
7682         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7683         vectors.
7684         (selftest::test_diamond): Likewise.
7686 2016-07-11  Richard Biener  <rguenther@suse.de>
7688         PR tree-optimization/71816
7689         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7690         than replacing all of its operands.
7692 2016-07-11  Alan Modra  <amodra@gmail.com>
7694         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7695         (ctr<mode>): Add unspec.
7696         (ctr<mode>_internal*): Likewise.
7698 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7700         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7701         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7703 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7705         PR rtl-optimization/71621
7706         * lra-constraints.c (process_alt_operands): Check combination of
7707         reg class and mode.
7709 2016-07-08  Jason Merrill  <jason@redhat.com>
7710             Richard Biener  <rguenther@suse.de>
7712         P0145: Refining Expression Order for C++.
7713         * gimplify.c (initial_rhs_predicate_for): New.
7714         (gimplfy_modify_expr): Gimplify RHS before LHS.
7716 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7718         PR target/71297
7719         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7720         Allow standard error handling to take over when a wrong number
7721         of arguments is presented to __builtin_vec_ld () or
7722         __builtin_vec_st ().
7724 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7726         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7727         variants.
7728         (smin): Likewise.
7729         (fmax): New entry.
7730         (fmin): Likewise.
7731         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7732         __builtin_aarch64_fmaxv2sf.
7733         (vmaxnmq_f32): Likewise.
7734         (vmaxnmq_f64): Likewise.
7735         (vminnm_f32): Likewise.
7736         (vminnmq_f32): Likewise.
7737         (vminnmq_f64): Likewise.
7739 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7741         PR target/71806
7742         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7743         enable -mfloat128-hardware by default.
7744         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7745         that IEEE 128-bit hardware support needs.
7746         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7747         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7748         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7749         floating point requires.
7750         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7751         -mfloat128 and -mfloat128-hardware changes.
7753 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7755         PR tree-optimization/71667
7756         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7758 2016-07-08  Martin Liska  <mliska@suse.cz>
7760         PR middle-end/71606
7761         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7762         folding produces SAVE_EXPRs, thus return false for the type.
7764 2016-07-07  Martin Liska  <mliska@suse.cz>
7766         * file-find.c (remove_prefix): New function.
7767         * file-find.h (remove_prefix): Declare the function.
7768         * gcc-ar.c (main): Skip a folder of the wrapper if
7769         a wrapped binary would point to the same file.
7771 2016-07-07  Jan Hubicka  <jh@suse.cz>
7773         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7774         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7775         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7777 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7779         PR ipa/71624
7780         * ipa-inline-analysis.c (compute_inline_parameters): Set
7781         local.can_change_signature to false for intrumentation
7782         thunk callees.
7784 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7786         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7787         with TARGET_HAVE_MOVT.
7788         (TARGET_HAVE_MOVT): Define.
7789         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7790         availability with TARGET_HAVE_MOVT.
7791         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7792         availability.
7793         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7794         TARGET_THUMB2.
7795         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7796         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7797         * config/arm/constraints.md (define_constraint "j"): Use
7798         TARGET_HAVE_MOVT to check MOVT availability.
7800 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7802         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7804 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7806         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7807         (armv8-m.main): Likewise.
7808         (armv8-m.main+dsp): Likewise.
7809         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7810         (FL_FOR_ARCH8M_MAIN): Likewise.
7811         * config/arm/arm-tables.opt: Regenerate.
7812         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7813         armv8-m.main+dsp to BE8_LINK_SPEC.
7814         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7815         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7816         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7817         Baseline and Mainline.
7818         (arm_option_override_internal): Also disable arm_restrict_it when
7819         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7820         ARMv8-M Baseline.
7821         (arm_file_start): Increase buffer size for printing architecture name.
7822         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7823         and armv8-m.main+dsp.
7824         (mno-unaligned-access): Clarify that this is disabled by default for
7825         ARMv8-M Baseline architectures as well.
7827 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7829         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7830         decide whether to prevent some libgcc routines being included for some
7831         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7832         link between this condition and the one in
7833         libgcc/config/arm/lib1func.S.
7835 2016-07-07  Richard Biener  <rguenther@suse.de>
7837         * tree-ssa-pre.c: Include alias.h.
7838         (compute_avail): If we have multiple VN_REFERENCEs with the
7839         same hashtable entry adjust that to make it a valid replacement
7840         for all of them with respect to alignment and aliasing
7841         when doing insertion.
7842         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7843         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7845 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7847         PR target/70098
7848         PR target/71763
7849         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7850         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7851         constraint.
7853 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7855         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7856         (adjust_mems): Adjust.
7857         (adjust_insn): Likewise.
7858         (prepare_call_arguments): Likewise.
7860 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7862         * gcse.c (struct ls_expr): Make stores field a vector.
7863         (ldst_entry): Adjust.
7864         (free_ldst_entry): Likewise.
7865         (print_ldst_list): Likewise.
7866         (compute_ld_motion_mems): Likewise.
7867         (update_ld_motion_stores): Likewise.
7869 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7871         * gcse.c (struct ls_expr): Remove loads field.
7872         (ldst_entry): Adjust.
7873         (free_ldst_entry): Likewise.
7874         (print_ldst_list): Likewise.
7875         (compute_ld_motion_mems): Likewise.
7877 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7879         * store-motion.c (struct st_expr): Make antic_stores a vector.
7880         (st_expr_entry): Adjust.
7881         (free_st_expr_entry): Likewise.
7882         (print_store_motion_mems): Likewise.
7883         (find_moveable_store): Likewise.
7884         (compute_store_table): Likewise.
7885         (remove_reachable_equiv_notes): Likewise.
7886         (replace_store_insn): Likewise.
7887         (build_store_vectors): Likewise.
7889 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7891         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7892         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7894 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7896         PR tree-optimization/71518
7897         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7898         misalign also for outer loops with negative step.
7900 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7902         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7903         (cortex_a53_shift): Add mov_shift.
7904         (cortex_a53_shift_reg): Add new reservation for register shifts.
7905         (cortex_a53_alu): Remove bfm.
7906         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7907         (cortex_a53_alu_extr): Add new reservation for EXTR.
7908         (bypasses): Improve bypass modelling.
7910 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7912         PR target/50739
7913         * config/avr/avr.c (avr_asm_select_section): Strip off
7914         SECTION_DECLARED from flags when calling get_section.
7916 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7918         * tree-vectorizer.h (vect_memory_access_type): Add
7919         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7920         * tree-vect-stmts.c (compare_step_with_zero): New function.
7921         (perm_mask_for_reverse): Move further up file.
7922         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7923         step is negative.
7924         (get_negative_load_store_type): New function.
7925         (get_load_store_type): Call it.  Add an ncopies argument.
7926         (vectorizable_mask_load_store): Update call accordingly and
7927         remove tests for negative steps.
7928         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7929         memory_access_types.
7931 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7933         * tree-vectorizer.h (vect_memory_access_type): New enum.
7934         (_stmt_vec_info): Add a memory_access_type field.
7935         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7936         (vect_model_store_cost): Take an access type instead of a boolean.
7937         (vect_model_load_cost): Likewise.
7938         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7939         vect_model_store_cost and vect_model_load_cost.
7940         * tree-vect-stmts.c (vec_load_store_type): New enum.
7941         (vect_model_store_cost): Take an access type instead of a
7942         store_lanes_p boolean.  Simplify tests.
7943         (vect_model_load_cost): Likewise, but for load_lanes_p.
7944         (get_group_load_store_type, get_load_store_type): New functions.
7945         (vectorizable_store): Use get_load_store_type.  Record the access
7946         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7947         (vectorizable_load): Likewise.
7948         (vectorizable_mask_load_store): Likewise.  Replace is_store
7949         variable with vls_type.
7951 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7953         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7954         single_element_p parameter.
7955         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7956         Check the PR65518 case here rather than in vectorizable_load.
7957         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7958         * tree-vect-stmts.c (vectorizable_load): Likewise.
7960 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7962         * tree-vectorizer.h (gather_scatter_info): New structure.
7963         (vect_check_gather_scatter): Return a bool rather than a decl.
7964         Replace return-by-pointer arguments with a single
7965         gather_scatter_info *.
7966         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7967         (vect_analyze_data_refs): Update call accordingly.
7968         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7969         (vectorizable_mask_load_store): Likewise.  Also record the
7970         offset dt and vectype in the gather_scatter_info.
7971         (vectorizable_store): Likewise.
7972         (vectorizable_load): Likewise.
7974 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7976         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7977         strided groups, use the cost of N scalar accesses instead
7978         of ncopies vector accesses.
7979         (vect_model_load_cost): Likewise.
7981 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7983         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7984         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7985         variable to indicate when once-per-group costs are being used.
7986         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7988 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7990         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7991         peeling-for-gaps condition.
7993 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7995         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7996         element to register if it doesn't match general_operand.
7998 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7999             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8001         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
8002         prototype.
8003         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
8004         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
8005         (SIGNBIT): New mode iterator.
8006         (Fsignbit): New mode attribute.
8007         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
8008         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
8009         when direct moves are available.
8010         (signbit<mode>2_dm): New define_insn_and_split).
8011         (signbit<mode>2_dm2): New define_insn.
8013 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8015         PR rtl-optimization/71594
8016         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
8017         into subregs of appropriate mode before trying to emit a conditional
8018         move.
8020 2016-07-05  Jan Hubicka  <jh@suse.cz>
8022         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
8023         (simple_iv): Use it.
8025 2016-07-05  Jan Hubicka  <jh@suse.cz>
8027         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
8029 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
8031         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
8032         "offmemok".
8034 2016-07-05  Jan Hubicka  <jh@suse.cz>
8036         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
8037         IV can overflow.
8039 2016-07-05  Richard Biener  <rguenther@suse.de>
8041         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
8042         Handle empty else block.
8043         (is_feasible_trace): Likewise.
8044         (split_paths): Likewise.
8046 2016-07-05  Richard Biener  <rguenther@suse.de>
8048         * tree-loop-distribution.c (distribute_loop): Fix issue with
8049         the cost model loop.
8051 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
8053         * config/arm/neon-testgen.ml: Delete.
8054         * config/arm/neon.ml: Delete.
8056 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
8058         PR c++/71739
8059         * tree.c (attribute_value_equal): Use get_attribute_name instead of
8060         directly using TREE_PURPOSE.
8062 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
8064         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
8065         * config/aarch64/aarch64_neon.h: Likewise.
8066         * config/aarch64/arm_neon.h: Likewise.
8067         * config/aarch64/atomics.md: Likewise.
8068         * config/aarch64/aarch64-simd-builtins.def: Likewise.
8069         * doc/invoke.texi: Likewise.
8071 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8073         * config/s390/s390.md: Add "z13" cpu_facility.
8074         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
8075         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
8076         condition" type instructions.
8078 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8079             Jeff Law  <law@redhat.com>
8081         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
8082         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
8084 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
8086         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
8087         permutation for TARGET_AVX512F.
8088         (ix86_expand_vec_one_operand_perm_avx512): New function.
8089         (expand_vec_perm_1): Invoke introduced function.
8090         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8091         it may be not valid after vectorization.
8093 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8095         PR target/63874
8096         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8097         typo in comment.  Only force to memory if it is a weak
8098         external reference.
8100 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
8101             Jiong Wang  <jiong.wang@arm.com>
8103         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8104         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8105         (AARCH64_FL_F16): New.
8106         (AARCH64_FL_FOR_ARCH8_2): New.
8107         (AARCH64_ISA_8_2): New.
8108         (AARCH64_ISA_F16): New.
8109         (TARGET_FP_F16INST): New.
8110         (TARGET_SIMD_F16INST): New.
8111         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8112         ("fp"): Disabling "fp" also disables "fp16".
8113         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8114         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8115         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8116         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8118 2016-07-04  Jan Beulich  <jbeulich@suse.com>
8120         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8122 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8124         PR target/71720
8125         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8126         the insns, use an insn form that does not adjust the offset on
8127         little endian systems.
8129 2016-07-01  Jan Beulich  <jbeulich@suse.com>
8131         * varasm.c (get_variable_section): Validate initializer in
8132         named .bss-like sections.
8134 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8136         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8137         Exchange the order of the second and third operands in the vpermr
8138         instruction tmeplate.
8140 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
8142         PR target/71698
8143         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8144         Disallow TDmode values.
8146 2016-07-01  Alan Modra  <amodra@gmail.com>
8148         PR rtl-optimization/71709
8149         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8150         being set, not referenced.
8152 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8154         PR tree-optimization/70729
8155         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8156         of loop since it can be not valid after transformation.
8158 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8160         * config/arm/arm.c (thumb_reload_in_hi): Delete.
8161         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8163 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8165         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8166         for NULL decl.
8168 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8170         PR target/71677
8171         * config/rs6000/constraints.md (wY constraint): New constraint to
8172         match the requirements for the LXSD and STXSD instructions.
8173         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8174         predicate to match the requirements for the LXSD and STXSD
8175         instructions.
8176         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8177         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8178         to make sure that the bottom 2 bits of offset are 0, the address
8179         form is offsettable, and no updating is done in the address mode.
8180         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8181         (movdi_internal32): Likewise
8182         (movdi_internal64): Likewise.
8184 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8186         PR tree-optimization/71707
8187         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
8188         strinfo even for ADDR_EXPR ptr.
8190 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8192         * config/rs6000/altivec.md (darn_32): Change the condition to
8193         TARGET_P9_MISC instead of TARGET_MODULO.
8194         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
8195         condition expression.
8196         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
8197         condition expression.
8198         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
8199         (DFP_TEST): New code iterator.
8200         (dfptstsfi_<code>_mode>): New define_expand.
8201         (*dfp_sgnfcnc_<mode>): New define_insn.
8202         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
8203         definition next to BU_P9_MISC_1 definition and change the MASK
8204         value to RS6000_BTM_P9_MISC.
8205         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
8206         (BU_P9_64BIT_MISC_0): Likewise.
8207         (BU_P9_DFP_MISC_0): New macro definition.
8208         (BU_P9_DFP_MISC_1): New macro definition.
8209         (BU_P9_DFP_MISC_2): New macro definition.
8210         (BU_P9_DFP_OVERLOAD_1): New macro definition.
8211         (BU_P9_DFP_OVERLOAD_2): New macro definition.
8212         (BU_P9_DFP_OVERLOAD_3): New macro definition.
8213         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
8214         (TSTSFI_LT_TD): Likewise.
8215         (TSTSFI_EQ_DD): Likewise.
8216         (TSTSFI_EQ_TD): Likewise.
8217         (TSTSFI_GT_DD): Likewise.
8218         (TSTSFI_GT_TD): Likewise.
8219         (TSTSFI_OV_DD): Likewise.
8220         (TSTSFI_OV_TD): Likewise.
8221         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
8222         (TSTSFI_LT_DD): Likewise.
8223         (TSTSFI_LT_TD): Likewise.
8224         (TSTSFI_EQ): Likewise.
8225         (TSTSFI_EQ_DD): Likewise.
8226         (TSTSFI_EQ_TD): Likewise.
8227         (TSTSFI_GT): Likewise.
8228         (TSTSFI_GT_DD): Likewise.
8229         (TSTSFI_GT_TD): Likewise.
8230         (TSTSFI_OV): Likewise.
8231         (TSTSFI_OV_DD): Likewise.
8232         (TSTSFI_OV_TD): Likewise.
8233         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8234         overloaded test significance functions.
8235         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8236         OPTION_MASK_P9_MISC into the representation of this mask.
8237         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
8238         of this mask.
8239         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
8240         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
8241         non-zero.
8242         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
8243         argument is a 6-bit unsigned literal value if the icode argument
8244         represents a DFP test significance built-in call.
8245         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
8246         flag used independently and in combination with the
8247         RS6000_BTM_64BIT flag.
8248         (rs6000_opt_masks): Add entry for power9-misc command-line option.
8249         (rs6000_builtin_mask_names): Add entry for power9-misc
8250         command-line option.
8251         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
8252         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
8253         RS6000_BTM_P9_MISC macros.
8254         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
8255         option and change the description of the -mpower9-vector option to
8256         enable only vector instructions, removing its erroneously claimed
8257         support for scalar instructions.
8258         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8259         the ISA 3.0 digital floating point test significance built-in
8260         functions.
8262 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
8264         * config/aarch64/aarch64.c (cortexa35_tunings):
8265         Enable AES fusion.  Use cortexa57_branch_cost.
8266         (cortexa53_tunings): Use cortexa57_branch_cost.
8267         (cortexa72_tunings): Use cortexa57_branch_cost.
8268         Use AUTOPREFETCHER_WEAK.
8269         (cortexa73_tunings): Use cortexa57_branch_cost.
8271 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8272             James Greenhalgh  <james.greenhalgh@arm.com>
8274         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8275         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8276         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8277         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8278         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8279         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8280         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8281         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8282         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8283         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8284         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8285         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8286         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8287         New intrinsics.
8289 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
8290             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8292         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8293         New define_insn.
8294         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8296 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
8298         PR driver/71651
8299         * gcc.c (driver::build_option_suggestions): Pass "option" to
8300         add_misspelling_candidates.
8301         * opts-common.c (add_misspelling_candidates): Add "option" param;
8302         use it to avoid adding negated forms for options marked with
8303         RejectNegative.
8304         * opts.h (add_misspelling_candidates): Add "option" param.
8306 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8308         PR middle-end/71693
8309         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8310         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8311         first when permuting bitwise operation with rotate.  Cast
8312         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8314 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
8316         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8317         for misspelled param names.
8318         * params.c: Include spellcheck.h.
8319         (find_param_fuzzy): New function.
8320         * params.h (find_param_fuzzy): New prototype.
8321         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
8322         * spellcheck.h (struct edit_distance_traits<const char *>):
8323         ...here.
8325 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8327         * config/rs6000/predicates.md (const_0_to_7_operand): New
8328         predicate, recognize 0..7.
8329         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8330         support for doing extracts from V16QImode, V8HImode, V4SImode
8331         under ISA 3.0.
8332         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
8333         vector extract support.
8334         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
8335         for ISA 3.0 vector extract.
8336         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
8337         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
8338         extracts of a constant element number from small integer vectors
8339         on 64-bit ISA 3.0 systems.
8340         (vsx_extract_<mode>_di): Likewise.
8341         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
8342         say when we can do ISA 3.0 vector extracts.
8343         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
8344         registers, using the stxsiwx instruction.
8346 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
8348         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
8349         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
8350         qdf24xx_regmove_cost, qdf24xx_tunings): New.
8351         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
8352         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
8353         * config/arm/arm.c (arm_qdf24xx_tune): New.
8355 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
8357         * config/aarch64/aarch64.c (cortexa53_tunings):
8358         Increase loop alignment to 8.  Set function alignment to 16.
8359         (cortexa35_tunings): Likewise.
8360         (cortexa57_tunings): Increase loop alignment to 8.
8361         (cortexa72_tunings): Likewise.
8362         (cortexa73_tunings): Likewise.
8364 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8366         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
8367         for arm_fp16_ok and arm_fp16_hw.
8368         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
8369         arm_fp16_alternative.
8371 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8373         PR tree-optimization/71655
8374         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
8375         types when swapping operands.
8377 2016-06-29  Martin Liska  <mliska@suse.cz>
8379         PR middle-end/71585
8380         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
8381         * ipa-inline-transform.c (inline_call): Remove unnecessary call
8382         of build_optimization_node.
8384 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
8386         PR tree-optimization/70729
8387         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
8388         independent in loops having positive safelen value.
8389         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8390         it may be not valid after vectorization.
8392 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
8394         PR tree-optimization/71625
8395         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
8396         is sorted by ascending list->offset.  If PTR is non-NULL and there is
8397         previous strinfo, call get_stridx_plus_constant.
8398         (get_stridx): Pass exp as second argument to get_addr_stridx.
8399         (addr_stridxptr): Add missing list = list->next, so that there can be
8400         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
8401         the list is sorted by ascending list->offset.
8402         (get_stridx_plus_constant): Adjust so that it can be also called with
8403         ADDR_EXPR instead of SSA_NAME as PTR.
8404         (handle_char_store): Pass NULL_TREE as second argument to
8405         get_addr_stridx.
8407 2016-06-29  Richard Biener  <rguenther@suse.de>
8409         PR rtl-optimization/68961
8410         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
8412 2016-06-29  Richard Biener  <rguenther@suse.de>
8414         PR middle-end/71002
8415         * alias.c (component_uses_parent_alias_set_from): Handle
8416         type punning through union accesses by using the union alias set.
8417         * gimple.c (gimple_get_alias_set): Remove union type punning case.
8419 2016-07-29  Richard Biener  <rguenther@suse.de>
8421         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
8422         precision not matching mode precision.
8424 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
8426         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
8427         pa_output_arg_descriptor.
8428         (call_val_symref_64bit_post_reload): Likewise.
8429         (call_val_powf_64bit_post_reload): Likewise.
8430         (sibcall_internal_symref_64bit): Likewise.
8431         (sibcall_value_internal_symref_64bit): Likewise.
8433 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8435         PR middle-end/71626
8436         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
8437         a constant, force its SUBREG_REG into memory or register instead
8438         of whole op1.
8440 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8442         PR target/58655
8443         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
8444         * doc/invoke.texi (AVR Options): Document it.
8446 2016-06-28  Walter Lee  <walt@tilera.com>
8448         * config/tilegx/linux.h: Do not include arch/icache.h
8449         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8450         * config/tilepro/linux.h: Do not include arch/icache.h
8451         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8453 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
8455         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
8456         for big-endian BIT_FIELD_REF.
8458 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
8460         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
8461         ('size' attribute): Add '128'.
8462         Include power9.md.
8463         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
8464         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
8465         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
8466         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
8467         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
8468         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
8469         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
8470         *trunc<mode>df2_odd): Set size attribute to '128'.
8471         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
8472         * config/rs6000/power6.md (power6-fp): Include dfp type.
8473         * config/rs6000/power7.md (power7-fp): Likewise.
8474         * config/rs6000/power8.md (power8-fp): Likewise.
8475         * config/rs6000/power9.md: New file.
8476         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
8477         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
8478         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
8479         htmsimple.
8480         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
8481         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8482         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
8483         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
8484         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
8485         dfp_dscri_<mode>): Change type attribute to dfp.
8486         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
8487         attribute to vecsimple.
8488         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
8489         and prefetch streams.
8490         (rs6000_option_override_internal): Remove temporary code setting
8491         tuning to power8.  Don't set rs6000_sched_groups for power9.
8492         (last_scheduled_insn): Change to rtx_insn *.
8493         (divide_cnt, vec_load_pendulum): New variables.
8494         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
8495         (rs6000_issue_rate): Set issue rate for Power9.
8496         (is_power9_pairable_vec_type): New.
8497         (power9_sched_reorder2): New.
8498         (rs6000_sched_reorder2): Call new function for Power9 specific
8499         reordering.
8500         (insn_must_be_first_in_group): Remove Power9.
8501         (insn_must_be_last_in_group): Likewise.
8502         (force_new_group): Likewise.
8503         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
8504         Initialize divide_cnt/vec_load_pendulum.
8505         (_rs6000_sched_context, rs6000_init_sched_context,
8506         rs6000_set_sched_context): Handle context save/restore of new
8507         variables.
8509 2016-06-28  Richard Biener  <rguenther@suse.de>
8511         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8512         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
8513         COMPONENT_REF operand.
8514         (nonoverlapping_component_refs_p): Likewise.
8515         * stor-layout.c (start_bitfield_representative): Mark
8516         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
8518 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8520         * Makefile.in: Don't cat ../stage_current if it does not exist.
8522         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
8523         last argument is a bit-field.
8525         PR rtl-optimization/71673
8526         * internal-fn.c (expand_arith_overflow_result_store): Use
8527         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
8528         expand_simple_binop.
8530         PR middle-end/66867
8531         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
8532         expand_ifn_atomic_compare_exchange): New functions.
8533         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
8534         * tree.h (build_call_expr_internal_loc): Rename to ...
8535         (build_call_expr_internal_loc_array): ... this.  Fix up type of
8536         last argument.
8537         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
8538         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
8539         ATOMIC_COMPARE_EXCHANGE result.
8540         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
8541         * gimple-fold.h (optimize_atomic_compare_exchange_p,
8542         fold_builtin_atomic_compare_exchange): New prototypes.
8543         * gimple-fold.c (optimize_atomic_compare_exchange_p,
8544         fold_builtin_atomic_compare_exchange): New functions..
8545         * tree-ssa.c (execute_update_addresses_taken): If
8546         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
8547         of call when finding addressable vars, and if such var becomes
8548         non-addressable, call fold_builtin_atomic_compare_exchange.
8550 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
8552         PR target/71670
8553         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8554         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8556 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
8558         * config/rs6000/rs6000.md ('type' attribute): Add
8559         veclogical,veccmpfx,vecexts,vecmove insn types.
8560         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8561         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8562         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8563         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8564         *nabs<mode>2_hw): Change type to vecmove.
8565         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8566         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8567         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8568         *ieee_128bit_vsx_abs<mode>2_internal,
8569         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8570         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8571         *ieee128_mtvsrd_32bit): Change type to veclogical.
8572         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8573         *movdi_internal32, *movdi_internal64): Update insn types.
8574         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8575         vsx_extract_<mode>): Change type to veclogical.
8576         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8577         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8578         *vsx_sign_extend_si_v2di): Change type to vecexts.
8579         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8580         type to veclogical.
8581         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8582         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8583         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8584         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8585         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8586         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8587         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8588         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8589         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8590         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8591         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8592         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8593         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8594         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8595         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8596         (ppc7450-vecsimple): Add veclogical, vecmove.
8597         (ppc7450-veccmp): Add veccmpfx.
8598         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8599         vecmove.
8600         (ppc8540_vector_compare): Add veccmpfx.
8601         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8602         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8603         (cell-vecsimple): Add veclogical, vecmove.
8604         (cell-veccmp): Add veccmpfx.
8605         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8606         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8607         veccmpfx.
8608         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8609         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8610         (power4-vecsimple): Add veclogical, vecmove.
8611         (power4-veccmp): Add veccmpfx.
8612         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8613         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8614         (power6-vecsimple): Add veclogical, vecmove.
8615         (power6-veccmp): Add veccmpfx.
8616         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8617         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8618         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8619         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8620         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8621         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8622         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8623         fpsimple.
8624         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8626 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8628         PR target/71656
8629         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8630         OPTION_MASK_P9_DFORM_VECTOR.
8631         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8632         disable -mpower9-dform-vector when using reload.
8633         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8634         New 'strict' argument.  Update all callers.  Add strict addressing
8635         support.
8636         (rs6000_legitimate_offset_address_p): Remove call to
8637         virtual_stack_registers_memory_p.
8638         (rs6000_legitimize_reload_address): Add quad address support.
8639         (rs6000_legitimate_address_p): Move call to quad_address_p above
8640         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8641         to account for new strict usage.
8642         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8643         for new strict usage.
8644         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8646 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8648         PR target/70902
8649         PR target/71453
8650         PR target/71555
8651         PR target/71596
8652         PR target/71657
8653         * config/i386/i386.c (ix86_spill_class): Disable condition to
8654         always return NO_REGS.
8656 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8658         * predict.c: Include gimple-pretty-print.h
8659         (predicted_by_loop_heuristics_p): Check also
8660         PRED_LOOP_EXIT_WITH_RECURSION
8661         (predict_loops): Find self recursive calls and use special purpose
8662         predictors for them; dump log about decisions.
8663         (pass_profile::execute): Dump info about #of iterations.
8664         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8665         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8667 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8669         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8670         output_asm_insn calls and shorten long lines.  Output .CALL
8671         argument descriptor using pa_output_arg_descriptor.  Add various
8672         inline $$dyncall and other optimizations.
8673         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8675 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8677         PR tree-optimization/71643
8678         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8679         EH preds.
8681         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8682         leak a bitmap if dep_bb is NULL.
8684         PR tree-optimization/71631
8685         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8686         to rewrite_expr_tree even if negate_result, move new_lhs var
8687         declaration and initialization earlier, for powi_result set afterwards
8688         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8689         if new_lhs != lhs, and don't shadow gsi var.
8691 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8693         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8694         Add in_loop parameter.
8695         (predict_loops): Add loop guard heuristics.
8696         * predict.def (PRED_LOOP_GUARD): New heuristics.
8698 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8700         * predict.c: Include ipa-utils.h
8701         (tree_bb_level_prediction): Predict recursive calls.
8702         (tree_estimate_probability_bb): Skip inexpensive calls for call
8703         predictor.
8704         * predict.def (PRED_RECURSIVE_CALL): New.
8706 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8708         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8709         (BU_FLOAT128_1): Likewise.
8710         (FABSQ): Likewise.
8711         (COPYSIGNQ): Likewise.
8712         (RS6000_BUILTIN_NANQ): Likewise.
8713         (RS6000_BUILTIN_NANSQ): Likewise.
8714         (RS6000_BUILTIN_INFQ): Likewise.
8715         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8716         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8717         (TARGET_FOLD_BUILTIN): New #define.
8718         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8719         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8720         (rs6000_fold_builtin): New target hook implementation, handling
8721         folding of 128-bit NaNs and infinities.
8722         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8723         entries are filled in to avoid problems during bootstrap
8724         self-test; define builtins for 128-bit NaNs and infinities.
8725         (rs6000_opt_mask): Add entry for float128.
8726         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8727         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8728         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8729         (const_str_type_node): New #define.
8730         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8731         to a define_expand that dispatches to either copysign<mode>3_soft
8732         or copysign<mode>3_hard.
8733         (copysign<mode>3_hard): Rename from copysign<mode>3.
8734         (copysign<mode>3_soft): New define_insn.
8735         * doc/extend.texi: Document new builtins.
8737 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8739         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8740         PRIu64 instead of lu.
8742 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8744         PR debug/71642
8745         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8746         copy the type name.
8748 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8750         PR tree-optimization/71647
8751         * omp-low.c (lower_rec_input_clauses): Convert
8752         omp_clause_aligned_alignment (c) to size_type_node for the
8753         last argument of __builtin_assume_aligned.
8755 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8757         * configure.ac (calling ___tls_get_addr via GOT): New
8758         assembler/linker check.
8759         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8760         assembler and linker supports calling ___tls_get_addr via GOT.
8761         Otherise, defined to 0.
8762         * config.in: Regenerated.
8763         * configure: Likewise.
8764         * config/i386/constraints.md (Yb): New constraint.
8765         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8766         (REG_CLASS_NAMES): Likewise.
8767         (REG_CLASS_CONTENTS): Likewise.
8768         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8769         the b constraint with the Yb constraint.  Call ___tls_get_addr
8770         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8771         is 1.
8772         (*tls_local_dynamic_base_32_gnu): Likewise.
8773         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8774         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8775         (*tls_local_dynamic_base_64_<mode>): Likewise.
8777 2016-06-24  Martin Liska  <mliska@suse.cz>
8779         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8780         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8781         few functions.
8782         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8783         argument to true if the expected number of iterations is
8784         loop-based.
8786 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8788         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8789         assemble for 32bit target.
8790         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8791         and $ld_ix86_gld_32_opt to link for 32bit target.
8792         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8793         * configure: Regenerate.
8795 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8797         * config/arm/arm.c (int_log2): Delete definition and prototype.
8798         (shift_op): Use exact_log2 instead of int_log2.
8799         (vfp3_const_double_for_fract_bits): Likewise.
8801 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8803         * internal-fn.c (expand_arith_set_overflow): New function.
8804         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8805         Use it.
8806         (expand_arith_overflow_result_store): Likewise.  Handle precision
8807         smaller than mode precision.
8808         * tree-vrp.c (extract_range_basic): For imag part, handle
8809         properly signed 1-bit precision result.
8810         * doc/extend.texi (__builtin_add_overflow): Document that last
8811         argument can't be pointer to enumerated or boolean type.
8812         (__builtin_add_overflow_p): Document that last argument can't
8813         have enumerated or boolean type.
8815 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8816             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8818         * config/rs6000/predicates.md (splat_input_operand): Rework.
8819         Don't allow constants, since the insns that use this predicate
8820         don't support constants.  Constants are handled by other insns
8821         that are created via combine.  During and after register
8822         allocation, only allow indexed or indirect addresses, and not
8823         general addresses.  Only allow modes supported by the hardware.
8824         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8825         comment.  Move check for using VSPLTIS<x> to a common location,
8826         instead of doing it in two different places.
8828 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8830         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8831         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8832         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8833         signature_CENTAUR_ebx.
8835 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8837         PR target/66232
8838         PR target/67400
8839         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8840         (as_ix86_gas_32_opt): This.
8841         (ld_ix86_tls_ldm_opt): Renamed to ...
8842         (ld_ix86_gld_32_opt): This.
8843         (R_386_TLS_LDM reloc): Updated.
8844         (R_386_GOT32X reloc): New assembler/linker check.
8845         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8846         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8847         defined to 0.
8848         * config.in: Regenerated.
8849         * configure: Likewise.
8850         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8851         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8852         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8853         if ix86_force_load_from_GOT_p returns true.
8854         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8855         ix86_force_load_from_GOT_p returns true.
8856         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8857         the external function address via the GOT slot.
8858         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8859         HAVE_AS_IX86_GOT32X before returning false.
8860         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8861         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8863 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8865         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8867 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8869         * Makefile.in: Regenerate.
8870         * doc/install.texi: Document autoprofiledbootstrap.
8872 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8874         * config/i386/gcc-auto-profile: New file.
8876 2016-06-23  Martin Liska  <mliska@suse.cz>
8878         PR middle-end/71619
8879         * predict.c (predict_loops): Revert the hunk that was removed
8880         in r237103.
8882 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8884         * config.gcc: Add support for arm*-*-phoenix* targets.
8885         * config/arm/t-phoenix: New.
8886         * config/phoenix.h: New.
8888 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8889             H.J. Lu  <hongjiu.lu@intel.com>
8891         PR target/67400
8892         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8893         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8894         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8895         ix86_force_load_from_GOT_p returns true.
8896         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8897         ix86_force_load_from_GOT_p returns true.
8898         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8899         ix86_force_load_from_GOT_p returns true.
8900         (ix86_expand_move): Load the external function address via the
8901         GOT slot if ix86_force_load_from_GOT_p returns true.
8902         * config/i386/predicates.md (x86_64_immediate_operand): Return
8903         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8904         (x86_64_zext_immediate_operand): Ditto.
8906 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8908         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8910 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8912         PR c/70339
8913         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8914         * diagnostic.c (pedwarn_at_rich_loc): New function.
8915         * spellcheck.h (best_match::best_match): Add a
8916         "best_distance_so_far" optional parameter.
8917         (best_match::set_best_so_far): New method.
8918         (best_match::get_best_distance): New accessor.
8919         (best_match::get_best_candidate_length): New accessor.
8921 2016-06-22  Nick Clifton  <nickc@redhat.com>
8923         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8924         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8925         modes are accepted as well.
8926         (ucompare_loc_descriptor): Likewise.
8927         (minmax_loc_descriptor): Likewise.
8928         (clz_loc_descriptor): Likewise.
8929         (popcount_loc_descriptor): Likewise.
8930         (bswap_loc_descriptor): Likewise.
8931         (rotate_loc_descriptor): Likewise.
8932         (mem_loc_descriptor): Likewise.
8933         (loc_descriptor): Likewise.
8935 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8937         * common.opt (fdiagnostics-parseable-fixits): New option.
8938         * diagnostic.c: Include "selftest.h".
8939         (print_escaped_string): New function.
8940         (print_parseable_fixits): New function.
8941         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8942         (selftest::assert_print_escaped_string): New function.
8943         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8944         (selftest::test_print_escaped_string): New function.
8945         (selftest::test_print_parseable_fixits_none): New function.
8946         (selftest::test_print_parseable_fixits_insert): New function.
8947         (selftest::test_print_parseable_fixits_remove): New function.
8948         (selftest::test_print_parseable_fixits_replace): New function.
8949         (selftest::diagnostic_c_tests): New function.
8950         * diagnostic.h (struct diagnostic_context): Add field
8951         "parseable_fixits_p".
8952         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8953         -fdiagnostics-parseable-fixits.
8954         (-fdiagnostics-parseable-fixits): New option.
8955         * opts.c (common_handle_option): Handle
8956         -fdiagnostics-parseable-fixits.
8957         * selftest-run-tests.c (selftest::run_tests): Call
8958         selftest::diagnostic_c_tests.
8959         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8961 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8963         PR tree-optimization/71488
8964         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8965         comparison of boolean vectors.
8966         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8967         of boolean vectors using bitwise operations.
8969 2016-06-22  Andreas Schwab  <schwab@suse.de>
8971         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8972         Remove declaration.
8974 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8976         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8978 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8980         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8981         print FLAGS_REG.
8983 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8985         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8986         * config/arm/arm-cores.def (cortex-a73): New entry.
8987         (cortex-a73.cortex-a35): Likewise.
8988         (cortex-a73.cortex-a53): Likewise.
8989         * config/arm/arm-tables.opt: Regenerate.
8990         * config/arm/arm-tune.md: Likewise.
8991         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8992         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8993         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8994         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8995         * doc/invoke.texi (ARM Options): Document cortex-a73,
8996         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8998 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9000         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
9001         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
9002         (cortex-a73.cortex-a35): Likewise.
9003         (cortex-a73.cortex-a53): Likewise.
9004         * config/aarch64/aarch64-tune.md: Regenerate.
9005         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
9006         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
9007         -mcpu and -mtune.
9009 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9011         * configure.ac (gcc_cv_as_compress_debug): Remove
9012         --compress-debug-sections as extra as switch.
9013         Handle gas --compress-debug-sections=type.
9014         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
9015         Handle gld --compress-debug-sections=type.
9016         * configure: Regenerate.
9018 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9020         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
9022 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
9024         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
9025         (do_rewrite): likewise.
9027 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9029         * common/config/mep/mep-common.c: Remove.
9030         * config.gcc: Remove mep-* support.
9031         * config/mep/constraints.md: Remove.
9032         * config/mep/default.h: Remove.
9033         * config/mep/intrinsics.h: Remove.
9034         * config/mep/intrinsics.md: Remove.
9035         * config/mep/ivc2-template.h: Remove.
9036         * config/mep/mep-c5.cpu: Remove.
9037         * config/mep/mep-core.cpu: Remove.
9038         * config/mep/mep-default.cpu: Remove.
9039         * config/mep/mep-ext-cop.cpu: Remove.
9040         * config/mep/mep-intrin.h: Remove.
9041         * config/mep/mep-ivc2.cpu: Remove.
9042         * config/mep/mep-pragma.c: Remove.
9043         * config/mep/mep-protos.h: Remove.
9044         * config/mep/mep.c: Remove.
9045         * config/mep/mep.cpu: Remove.
9046         * config/mep/mep.h: Remove.
9047         * config/mep/mep.md: Remove.
9048         * config/mep/mep.opt: Remove.
9049         * config/mep/predicates.md: Remove.
9050         * config/mep/t-mep: Remove.
9051         * doc/install.texi: Remove mep-* documentation.
9052         * doc/md.texi: Likewise.
9054 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9056         * config.gcc: Remove support for avr-rtems.
9057         * config/avr/gen-avr-mmcu-specs.c: Likewise.
9058         * config/avr/rtems.h: Remove.
9059         * config/avr/t-rtems: Remove.
9061 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9063         * config.gcc: Remove m32r-rtems support.
9064         * config/m32r/rtems.h: Remove.
9066 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9068         * config.gcc: Remove h8300-rtems support.
9069         * config/h8300/rtems.h: Remove.
9070         * config/h8300/t-rtems: Remove.
9072 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9074         * config.gcc: Remove support for knetbsd.
9075         * configure.ac: Likewise.
9076         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
9077         * config/knetbsd-gnu.h: Remove.
9078         * configure: Regenerate.
9080 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9082         * config.gcc: Remove support for openbsd 2 and 3.
9083         * config/openbsd-oldgas.h: Remove.
9085 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9087         * config.gcc: Remove interix support.
9088         * config/i386/i386-interix.h: Remove.
9089         * config/i386/interix.opt: Remove.
9090         * config/i386/t-interix: Remove.
9091         * configure: Regenerate.
9092         * configure.ac: Remove interix support.
9093         * doc/install.texi: Remove interix documentation.
9095 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9097         * config/rs6000/rs6000.h: Add conditional preprocessing directives
9098         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9099         not defined.
9101 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9103         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9104         they are both PLACEHOLDER_EXPRs.
9106 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9108         * stor-layout.c (layout_type): Move setting complex MODE to
9109         layout_type, instead of setting it ahead of time by the caller.
9110         * tree.c (build_complex_type): Likewise.
9112 2016-06-21  Martin Liska  <mliska@suse.cz>
9114         * predict.c (force_edge_cold): Replace imposisble with
9115         impossible.
9117 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9119         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9120         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9122 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9124         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9126 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9127             Ilya Enkovich  <ilya.enkovich@intel.com>
9129         PR target/71549
9130         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9131         New member function to convert V1TImode register to SUBREG
9132         TImode in debug insn.
9133         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9134         after changing register mode to V1TImode.
9136 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
9138         * config/aarch64/aarch64-cores.def (vulcan): New core.
9139         * config/aarch64/aarch64-tune.md: Regenerate.
9140         * doc/invoke.texi: Document vulcan as an available option.
9142 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9144         * cse.c (canon_asm_operands): New function extracted from...
9145         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
9146         either standalone or member of a PARALLEL.
9148 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9150         PR target/30417
9151         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9152         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9153         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9155 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9157         PR target/71103
9158         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9159         constant addresses if can_create_pseudo_p.
9161 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
9163         PR tree-optimization/71588
9164         * tree-ssa-strlen.c (valid_builtin_call): New function.
9165         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9166         it.
9168 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9170         PR middle-end/71581
9171         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9172         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9173         for conversion of scalar user var to complex type and use the
9174         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
9175         punt.
9177         PR rtl-optimization/71591
9178         * toplev.c (toplev::run_self_tests): If no_backend, complain and
9179         don't run any tests.
9181 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
9183         PR target/71571
9184         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
9185         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
9186         space for PIC with non-v32 and the common non-PIC "jump".
9188 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9190         PR target/71559
9191         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
9192         returned values and add UN*/LTGT/*ORDERED cases with values matching
9193         D operand modifier on vcmp for AVX.
9195 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9197         * config/aarch64/aarch64.opt
9198         (mpc-relative-literal-loads): Rename internal option name.
9199         * config/aarch64/aarch64.c
9200         (aarch64_nopcrelative_literal_loads): Rename to
9201         aarch64_pcrelative_literal_loads.
9202         (aarch64_expand_mov_immediate): Likewise.
9203         (aarch64_secondary_reload): Likewise.
9204         (aarch64_can_use_per_function_literal_pools_p): Likewise.
9205         (aarch64_override_options_after_change_1): Rename and simplify logic.
9206         (aarch64_classify_symbol): Merge large model checks into switch,
9207         remove pc-relative load check.
9209 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9211         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
9212         costs relative to the cost of a register move.
9214 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9216         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
9217         (vcvt_n_f64_u64): Likewise.
9218         (vcvt_n_s64_f64): Likewise.
9219         (vcvt_n_u64_f64): Likewise.
9220         (vcvt_f64_s64): Likewise.
9221         (vrecpe_f64): Likewise.
9222         (vcvt_f64_u64): Likewise.
9223         (vrecps_f64): Likewise.
9225 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9227         * config/aarch64/aarch64.md
9228         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
9229         iterators.
9230         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
9231         attributes.
9232         * config/aarch64/aarch64-builtins.c
9233         (aarch64_types_binop_uss_qualifiers): Delete.
9234         (TYPES_BINOP_USS): Likewise.
9235         (aarch64_types_binop_sus_qualifiers): Likewise.
9236         (TYPES_BINOP_SUS): Likewise.
9237         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
9238         (TYPES_FCVTIMM_SUS): Likewise.
9239         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
9240         rather than BINOP.
9241         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
9242         (fcvtzs): Use SHIFTIMM rather than BINOP.
9243         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
9245 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9247         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
9248         costs relative to the cost of a register move.
9250 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9252         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
9253         Allow scalar/single vector modes to be tieable.
9255 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9257         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
9259 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9261         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9262         "alignement".
9263         * tree.h (TYPE_ALIGN): Likewise.
9265 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9267         PR target/71103
9268         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9270 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9272         * config/avr/avr.c (avr_print_operand): Fix "format not a string
9273         literal" build warnings.
9274         (avr_print_operand_address): Dito.
9276 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
9278         PR target/71375
9279         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9280         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9282 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
9284         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9286 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9288         PR bootstrap/71435
9289         * reload1.c (reload): Pass 0 to finish_spills when called because
9290         update_eliminables_and_spill returns true and remove did_spill.
9291         (finish_spills): Adjust comment and document GLOBAL parameter.
9293 2016-06-17  DJ Delorie  <dj@redhat.com>
9295         PR target/71338
9296         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9297         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9298         (umulqihi3_virt): Likewise.
9299         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9300         (umulqihi3_real): Likewise.
9302 2016-06-17  Martin Liska  <mliska@suse.cz>
9304         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9306 2016-06-17  Martin Liska  <mliska@suse.cz>
9308         * predict.def: PRED_LOOP_EXIT from 92 to 85.
9310 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
9312         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9313         __FAST_MATH__.
9314         (vaddq_f32): Likewise.
9315         (vmul_f32): Likewise.
9316         (vmulq_f32): Likewise.
9317         (vsub_f32): Likewise.
9318         (vsubq_f32): Likewise.
9320 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9322         PR tree-optimization/71347
9323         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
9324         cost for all uses in group.
9326 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9328         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
9329         insert gimple seq if it's not empty.
9331 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9333         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
9334         member OFFSET.
9335         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
9336         rather than OFFSET.
9337         (comp_dr_with_seg_len_pair): Ditto.
9338         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
9339         struct dr_with_seg_len_pair against DR_OFFSET.
9340         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
9341         DR_OFFSET directly.
9343 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9345         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
9347 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
9349         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
9350         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
9351         (pa_output_millicode_call): Likewise.
9352         (pa_output_call): Likewise.
9353         (pa_output_indirect_call): Likewise.
9354         (pa_asm_output_mi_thunk): Likewise.
9356 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9358         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
9360 2016-06-16  Martin Liska  <mliska@suse.cz>
9362         * predict.c (combine_predictions_for_insn): When we find a first
9363         match predictor, we should consider just predictors with
9364         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
9365         DS theory predictor.
9366         (combine_predictions_for_bb): Likewise.
9368 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9370         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
9371         with base of reference to struct.
9373 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9375         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
9377 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9379         PR target/71151
9380         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
9381         progmem_swtable_section.
9382         (progmem_swtable_section): Remove.
9383         (avr_asm_function_rodata_section): Remove.
9384         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9385         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
9387 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
9389         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9390         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
9391         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
9392         signature_CENTAUR_ebx.
9393         * config/i386/i386.c (ix86_option_override_internal): Add
9394         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
9395         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
9396         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
9398 2016-06-16  Martin Liska  <mliska@suse.cz>
9400         * predict.def: Add fortran loop preheader predictor.
9401         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
9402         fold IFN_BUILTIN_EXPECT with a known constant argument.
9404 2016-06-16  Martin Liska  <mliska@suse.cz>
9406         * predict.def: Add 'Fortran' to display text of all
9407         PRED_FORTRAN_* predictors.
9409 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9411         PR target/71242
9412         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
9413         [IA64_BUILTIN_NANSQ]: Ditto.
9414         (ia64_fold_builtin): New function.
9415         (TARGET_FOLD_BUILTIN): New define.
9416         (ia64_init_builtins) Declare const_string_type node.
9417         Add __builtin_nanq and __builtin_nansq builtin functions.
9418         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
9420 2016-06-16  Nick Clifton  <nickc@redhat.com>
9422         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
9423         MSP430_HWMULT_ prefix to enum values.
9424         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
9425         * config/msp430/msp430.c: Update use of enum values.
9426         * config/msp430/msp430.md: Likewise.
9427         * config/msp430/msp430.opt: Likewise.
9429 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
9431         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
9432         of comparsions in the last iteration.
9434 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9435             Joern Rennecke  <joern.rennecke@embecosm.com>
9437         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
9438         addresses.
9439         (arc_needs_pcl_p): Add GOTOFFPC.
9440         (arc_legitimate_pic_addr_p): Likewise.
9441         (arc_output_pic_addr_const): Likewise.
9442         (arc_legitimize_pic_address): Generate a pc-relative address using
9443         GOTOFFPC.
9444         (arc_output_libcall): Use @pcl syntax.
9445         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
9446         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
9447         (*movsi_insn): Use @pcl syntax.
9448         (doloop_begin_i): Likewise.
9450 2016-06-16  Martin Liska  <mliska@suse.cz>
9452         * predict.def: Define a new predictor.
9454 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9456         * config/arc/arc.opt (mtp-regno): Update text.
9458 2016-06-16  Renlin Li  <renlin.li@arm.com>
9460         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
9462 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9464         PR target/71554
9465         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
9466         (setcc + and peephole2): Likewise.
9468         PR rtl-optimization/71532
9469         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
9470         memory slots.
9472 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9474         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
9475         DImode constants with XXSPLTIB in vector registers.
9476         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
9477         vsx_extract_<mode>_internal{1,2} into a single insn that handles
9478         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
9479         extraction of the element at the top of the register as a scalar
9480         value.
9481         (vsx_extract_<mode>_internal1): Likewise.
9482         (vsx_extract_<mode>_internal2): Likewise.
9483         * config/rs6000/constraints.md (wi constraint): Remove a comment
9484         about DImode not being allowed in Altivec registers.
9485         (wB constraint): New constraint for constants that can be
9486         generated in Altivec registers with VSPLTISW/VUPKHSW.
9487         * config/rs6000/predicates.md (xxspltib_constant_split): Update
9488         comments.
9489         (xxspltib_constant_nosplit): Likewise.
9490         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
9491         support for -mupper-regs-di to enable DImode to go into Altivec
9492         registers.
9493         (POWERPC_MASKS): Likewise.
9494         (power7 cpu): Likewise.
9495         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
9496         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
9497         for DImode being allowed in Altivec registers.  Update wi/wj
9498         constraints.  Set scalar_in_vmx_p flag.
9499         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
9500         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
9501         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
9502         (rs6000_opt_masks): Add -mupper-regs-di.
9503         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
9504         direct move to use wi and not wj.
9505         (lfiwzx): Likewise.
9506         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
9507         alternative.
9508         (floatunssi<mode>2_lfiwzx_mem): Likewise.
9509         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
9510         any VSX register, instead of just Altivec registers, to allow
9511         either operand to be an Altivec register or both.
9512         (fixuns_trunc<mode>di2_fctiduz): Likewise.
9513         (movdi_internal32): Add support for -mupper-regs-di.  Add support
9514         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
9515         the alternatives and attributes to be lined up to be easier to
9516         read.
9517         (movdi_internal64): Likewise.
9518         (64-bit DImode splitters): Change predicates to only split loading
9519         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
9520         load constants in ISA 3.0 or ISA 2.07 respectively.
9521         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9522         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
9523         mention -mcpu=power9 sets these options.
9524         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
9525         wB constraint.
9527 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9529         PR target/67353
9530         * config/avr/avr.c (avr_set_current_function): Warn misspelled
9531         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
9532         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
9533         by default to warn misspelled interrupt/ signal handler.
9534         * doc/invoke.texi (AVR Options): Document it. Update description
9535         for -nodevicelib option.
9537 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9539         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
9540         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
9541         (aarch64_<sur>shll2_n<mode>): Likewise.
9543 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
9545         PR middle-end/71529
9546         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
9547         DECL_CONTEXT for copied arguments.
9549 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9551         PR tree-optimization/71483
9552         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9553         for slp
9555 2016-06-15  Martin Liska  <mliska@suse.cz>
9557         * predict.c (tree_predict_by_opcode): Call predict_edge_def
9558         instead of predict_edge w/o a probability.
9560 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9562         PR tree-optimization/71439
9563         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9564         live PHIs.
9566 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9568         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9569         register subregs in SET_SRC.
9571 2016-06-15  Richard Biener  <rguenther@suse.de>
9573         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9574         store restrictions.
9576 2016-06-15  Richard Biener  <rguenther@suse.de>
9578         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9579         not consider dependences between accesses that belong to the
9580         same group.
9581         (vect_analyze_data_ref_dependences): Do not analyze read-read
9582         or self-dependences.
9584 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9586         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9587         spellcheck.h.
9588         (find_closest_identifier): Reimplement in terms of
9589         best_match<tree,tree>.
9590         * spellcheck-tree.h: New file.
9591         * spellcheck.c (struct edit_distance_traits<const char *>): New
9592         struct.
9593         (find_closest_string): Reimplement in terms of
9594         best_match<const char *, const char *>.
9595         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9596         overload to spellcheck-tree.h.
9597         (find_closest_identifier): Likewise.
9598         (struct edit_distance_traits<T>): New template.
9599         (class best_match): New class.
9601 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9603         * selftest-run-tests.c (selftest::run_tests): Call
9604         selftest::spellcheck_tree_c_tests.
9605         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9606         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9607         (selftest::test_find_closest_identifier): New function.
9608         (selftest::spellcheck_tree_c_tests): New function.
9609         * spellcheck.c (selftest::test_find_closest_string): Verify that
9610         the order of the vec does not affect the results for this case.
9611         (selftest::test_data): New array.
9612         (selftest::test_metric_conditions): New function.
9613         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9614         Call selftest::test_metric_conditions.
9616 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9618         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9619         (BU_P9_MISC_1): Likewise.
9620         (BU_P9_64BIT_MISC_0): Likewise.
9621         (BU_P9_MISC_0): Likewise.
9623 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9625         * gcc-rich-location.c
9626         (gcc_rich_location::add_fixit_misspelled_id): New method.
9627         * gcc-rich-location.h
9628         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9630 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9632         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9633         FreeBSD 11 and above.
9635 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9637         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9639 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9641         * expmed.h: Close parenthesis in "at your option" in copyright
9642         boilerplate.
9643         * lower-subreg.h: Likewise.
9645 2016-06-14  Richard Biener  <rguenther@suse.de>
9647         PR middle-end/71526
9648         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9649         if available.
9651 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9653         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9654         New function.
9655         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9656         mask+shift version.
9657         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9658         New prototype.
9659         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9660         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9662 2016-06-14  Richard Biener  <rguenther@suse.de>
9664         PR tree-optimization/71522
9665         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9666         copying into float copying.
9668 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9670         PR tree-optimization/71520
9671         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9672         (replace_block_by): Move user labels from bb1 to bb2.
9674 2016-06-14  Richard Biener  <rguenther@suse.de>
9676         PR middle-end/71310
9677         PR bootstrap/71510
9678         * expr.h (get_bit_range): Declare.
9679         * expr.c (get_bit_range): Export.
9680         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9681         word_mode again to constrain the bitfield access.
9683 2016-06-14  Richard Biener  <rguenther@suse.de>
9685         PR tree-optimization/71521
9686         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9687         division int_const_binop against zero divisor.
9689 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9691         * config/i386/i386.md (signbittf2): New expander.
9692         * config/i386/sse.md (ptesttf2): New insn pattern.
9694 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9696         PR bootstrap/71481
9697         * input.c (selftest::test_reading_source_line): Avoid reading from
9698         __FILE__ by creating a tempfile with known content and reading
9699         from that instead.
9701 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9703         * pretty-print.c (assert_pp_format_colored): Skip the test if
9704         GCC_COLORS is set.
9705         (test_pp_format): Remove comment about GCC_COLORS.
9707 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9709         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9710         * pretty-print.c (assert_pp_format_va): Add location param and use
9711         it with ASSERT_STREQ_AT.
9712         (assert_pp_format): Add location param and pass it to
9713         assert_pp_format_va.
9714         (assert_pp_format_colored): Likewise.
9715         (ASSERT_PP_FORMAT_1): New.
9716         (ASSERT_PP_FORMAT_2): New.
9717         (ASSERT_PP_FORMAT_3): New.
9718         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9719         explicitly, or implicitly via the above macros.
9720         * selftest.c (selftest::pass): Use a selftest::location rather
9721         than file and line.
9722         (selftest::fail): Likewise.  Print the function name.
9723         (selftest::fail_formatted): Likewise.
9724         (selftest::assert_streq): Use a selftest::location rather than
9725         file and line.
9726         * selftest.h (selftest::location): New struct.
9727         (SELFTEST_LOCATION): New macro.
9728         (selftest::pass): Accept a const location & rather than file
9729         and line.
9730         (selftest::fail): Likewise.
9731         (selftest::fail_formatted): Likewise.
9732         (selftest::assert_streq): Likewise.
9733         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9734         (ASSERT_FALSE): Likewise.
9735         (ASSERT_EQ): Likewise.
9736         (ASSERT_NE): Likewise.
9737         (ASSERT_STREQ): Likewise.
9738         (ASSERT_PRED1): Likewise.
9739         (ASSERT_STREQ_AT): New macro.
9741 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9743         * selftest.c (selftest::fail_formatted): New function.
9744         (selftest::assert_streq): New function.
9745         * selftest.h (selftests::fail_formatted): New decl.
9746         (selftest::assert_streq): New decl.
9747         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9749 2016-06-13  Jeff Law  <law@redhat.com>
9751         PR tree-optimization/71403
9752         * tree-ssa-threadbackward.c
9753         (convert_and_register_jump_thread_path): No longer accept reference
9754         to path.  Do not pop items off the path anymore.
9755         (fsm_find_control_statement_thread_paths): Do not allow threading
9756         to a deeper loop nest.  Pop the last item off the path here rather
9757         than in convert_and_register_jump_thread_path.
9759 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9760             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9762         [AArch64] Emit division using the Newton series
9764         * config/aarch64/aarch64-protos.h
9765         (cpu_approx_modes): Add new member "division".
9766         (aarch64_emit_approx_div): Declare new function.
9767         * config/aarch64/aarch64.c
9768         (generic_approx_modes): New member "division".
9769         (exynosm1_approx_modes): Likewise.
9770         (xgene1_approx_modes): Likewise.
9771         (aarch64_emit_approx_div): Define new function.
9772         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9773         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9774         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9775         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9777 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9778             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9780         [AArch64] Emit square root using the Newton series
9782         * config/aarch64/aarch64-protos.h
9783         (aarch64_emit_approx_rsqrt): Replace with new function
9784         "aarch64_emit_approx_sqrt".
9785         (cpu_approx_modes): New member "sqrt".
9786         * config/aarch64/aarch64.c
9787         (generic_approx_modes): New member "sqrt".
9788         (exynosm1_approx_modes): Likewise.
9789         (xgene1_approx_modes): Likewise.
9790         (aarch64_emit_approx_rsqrt): Replace with new function
9791         "aarch64_emit_approx_sqrt".
9792         (aarch64_override_options_after_change_1): Handle new option.
9793         * config/aarch64/aarch64-simd.md
9794         (rsqrt<mode>2): Use new function instead.
9795         (sqrt<mode>2): New expansion and insn definitions.
9796         * config/aarch64/aarch64.md: Likewise.
9797         * config/aarch64/aarch64.opt
9798         (mlow-precision-sqrt): Add new option description.
9799         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9801 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9803         [AArch64] Add more choices for the reciprocal square root approximation
9805         Allow a target to prefer such operation depending on the operation mode.
9807         * config/aarch64/aarch64-protos.h
9808         (AARCH64_APPROX_MODE): New macro.
9809         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9810         (cpu_approx_modes): New structure.
9811         (tune_params): New member "approx_modes".
9812         * config/aarch64/aarch64-tuning-flags.def
9813         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9814         * config/aarch64/aarch64.c
9815         (generic_approx_modes): New core "cpu_approx_modes" structure.
9816         (exynosm1_approx_modes): Likewise.
9817         (xgene1_approx_modes): Likewise.
9818         (generic_tunings): New member "approx_modes".
9819         (cortexa35_tunings): Likewise.
9820         (cortexa53_tunings): Likewise.
9821         (cortexa57_tunings): Likewise.
9822         (cortexa72_tunings): Likewise.
9823         (exynosm1_tunings): Likewise.
9824         (thunderx_tunings): Likewise.
9825         (xgene1_tunings): Likewise.
9826         (use_rsqrt_p): New argument for the mode and use new member from
9827         "tune_params".
9828         (aarch64_builtin_reciprocal): Devise mode from builtin.
9829         (aarch64_optab_supported_p): New argument for the mode.
9830         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9832 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9834         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9835         RS6000_BTM_MODULO flag into the set of flags that are considered
9836         to be part of the common configuration.
9838 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9840         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9841         difference unsigned.
9842         (vec_absdb): New macro for vector absolute difference unsigned
9843         byte.
9844         (vec_absdh): New macro for vector absolute difference unsigned
9845         half-word.
9846         (vec_absdw): New macro for vector absolute difference unsigned word.
9847         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9848         (vadu<mode>3): New insn.
9849         (*p9_vadu<mode>3): New insn.
9850         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9851         definition.
9852         (vaduh): New built-in definition.
9853         (vaduw): New built-in definition.
9854         (vadu): New overloaded built-in definition.
9855         (vadub): New overloaded built-in definition.
9856         (vaduh): New overloaded built-in definition.
9857         (vaduw): New overloaded built-in definition.
9858         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9859         overloaded vector absolute difference unsigned functions.
9860         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9861         the ISA 3.0 vector absolute difference unsigned built-in functions.
9863 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9865         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9866         update shared_lookup_references only once after changing operands.
9868 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9870         PR middle-end/71373
9871         * tree-nested.c (convert_nonlocal_omp_clauses)
9872         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9874         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9875         * tree.def (CASE_LABEL_EXPR): Likewise.
9877 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9879         PR bootstrap/71481
9880         * input.c (test_builtins): Fix an assertion.
9882 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9884         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9885         (paritysi2): Ditto.
9886         (isinfxf2): Ditto.
9887         (isinf<mode>2): Ditto.
9889 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9891         * ggc-tests.c (test_finalization): Only test need_finalization_p
9892         for GCC_VERSION >= 4003.
9894 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9896         * config/s390/vecintrin.h: Fix file description in comment.
9898 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9900         * config/s390/s390-builtin-types.def: Change builtin type naming
9901         scheme to match builtin-types.def.
9903 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9905         * fold-const.c (optimize_minmax_comparison): Remove.
9906         (fold_comparison): Remove call to the above.
9907         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9908         New transformations.
9910 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9912         PR tree-optimization/71416
9913         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9914         multiple entries
9916 2016-06-13  Martin Liska  <mliska@suse.cz>
9918         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9919         (combine_predictions_for_insn): Likewise.
9920         (prune_predictions_for_bb): Likewise.
9921         (combine_predictions_for_bb): Likewise.
9923 2016-06-13  Richard Biener  <rguenther@suse.de>
9925         PR tree-optimization/71505
9926         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9927         assert match comment.
9929 2016-06-13  Marek Polacek  <polacek@redhat.com>
9931         PR middle-end/71476
9932         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9933         gimplify_switch_expr.
9934         (warn_switch_unreachable_r): New function.
9936 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9938         PR target/71379
9939         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9940         one.
9942 2016-06-13  Richard Biener  <rguenther@suse.de>
9944         PR middle-end/64516
9945         * fold-const.c (fold_unary_loc): Preserve alignment when
9946         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9948 2016-06-13  Martin Liska  <mliska@suse.cz>
9950         PR sanitizer/71458
9951         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9952         w/ -fsanitize=bounds.
9954 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9956         * config/i386/i386.c (ix86_init_builtins): Calculate
9957         FLOAT128_FTYPE_CONST_STRING function type only once.
9958         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9959         built-in functions are available for x86-32 and x86-64 targets.
9961 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9963         PR target/71241
9964         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9965         New primitive type.
9966         (FLOAT128_FTYPE_CONST_STRING): New function type.
9967         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9968         [IX86_BUILTIN_NANSQ]: Ditto.
9969         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9970         (ix86_init_builtin_types): Declare const_string_type_node.
9971         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9972         builtin functions.
9973         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9974         * doc/extend.texi (x86 Built-in Functions): Document
9975         __builtin_nanq and __builtin_nansq.
9977 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9979         PR target/71061
9980         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9981         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9982         length for pop patterns.
9983         (arm_attr_length_push_multi): Update comments.
9984         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9985         attribute.
9986         (*pop_multiple_with_writeback_and_return): Likewise.
9987         (*pop_multiple_with_return): Likewise.
9989 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9991         PR middle-end/71310
9992         * fold-const.c (optimize_bit_field_compare): Don't try to use
9993         word_mode unconditionally for reading the bit field, look at
9994         DECL_BIT_FIELD_REPRESENTATIVE instead.
9996 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9998         PR middle-end/71478
9999         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
10000         vector integer type.
10002 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
10004         PR middle-end/71494
10005         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
10006         without LABEL_DECL, set *handled_ops_p to false instead of true.
10008 2016-06-10  Martin Sebor  <msebor@redhat.com>
10010         PR c/71392
10011         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
10012         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
10013         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
10014         them.
10015         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
10016         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
10017         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
10018         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
10019         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
10020         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
10021         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
10022         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
10024 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10026         * config/arm/arm.h (pool_vector_label,
10027         return_used_this_function): Remove.
10029 2016-06-10  Jeff Law  <law@redhat.com>
10031         PR tree-optimization/71335
10032         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
10033         zero length paths here.
10034         (convert_and_register_jump_thread_path): Remove hacks related to
10035         duplicated blocks in the jump thread path.
10036         (fsm_find_control_statement_thread_paths): Avoid putting the same
10037         block on the thread path twice, but ensure the thread path is
10038         unchanged from the caller's point of view.
10040 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10042         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
10043         * predict.def (PRED_LOOP_BRANCH): Remove.
10045 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
10047         * Makefile.in (OBJS): Add ggc-tests.o.
10048         (GTFILES): Add ggc-tests.c.
10049         * ggc-tests.c: New file.
10050         * selftest-run-tests.c (selftest::run_tests): Call
10051         selftest::ggc_tests_c_tests.
10052         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
10054 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
10056         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
10058 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
10060         PR sanitizer/71480
10061         * varasm.c (place_block_symbol): Adjust alignment for asan protected
10062         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
10064 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10066         * profile.c: Include cfgloop.h.
10067         (branch_prob): Compute estimated number of iterations.
10068         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
10069         recompute estimate number of iterations from profile.
10071 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10073         PR inline-asm/68843
10074         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
10075         must be grouped on top of stack.  Don't force early clobber
10076         on ordinary reg outputs.
10078 2016-06-10  Richard Biener  <rguenther@suse.de>
10080         * targhooks.c (default_builtin_vectorization_cost): Adjust
10081         vec_construct cost.
10083 2016-06-10  Richard Biener  <rguenther@suse.de>
10085         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
10086         to fold the RHS to a constant if possible.
10088 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
10090         PR middle-end/71373
10091         * tree-nested.c (convert_nonlocal_omp_clauses)
10092         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
10093         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10094         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
10096         * gimplify.c (gimplify_adjust_omp_clauses): Discard
10097         OMP_CLAUSE_TILE.
10098         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10100         * omp-low.c (scan_sharing_clauses): Don't expect
10101         OMP_CLAUSE__CACHE_.
10103 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
10105         PR tree-optimization/71407
10106         PR tree-optimization/71416
10107         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10108         BIT_FIELD_REF type.
10110 2016-06-10  Richard Biener  <rguenther@suse.de>
10112         PR middle-end/71477
10113         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10115 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10117         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10119 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
10120             Jiong Wang  <jiong.wang@arm.com>
10122         PR rtl-optimization/70751
10123         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10124         spilled into memory.
10126 2016-06-09  Jonathan Yong  <10walls@gmail.com>
10128         Revert:
10129         2015-09-21  Jonathan Yong  <10walls@gmail.com>
10131         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10132         sysroot/usr/lib/32api for additional win32 libraries,
10133         fixes failing Cygwin bootstrapping.
10135 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
10137         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10138         Delete.
10140 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
10142         PR bootstrap/71471
10143         * pretty-print.c (pp_indent): Specify that %p is printed in a
10144         host-dependent manner.
10145         (test_pp_format): Remove the test for %p.
10147 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
10149         * config/mips/mips.c (mips_output_jump): Fix formatting.
10151 2016-06-09  Richard Biener  <rguenther@suse.de>
10153         PR tree-optimization/71462
10154         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10155         removed blocks.
10157 2016-06-09  Martin Liska  <mliska@suse.cz>
10159         * predict.c (dump_prediction): Add new argument.
10160         (enum predictor_reason): New enum.
10161         (struct predictor_hash): New struct.
10162         (predictor_hash::hash): New function.
10163         (predictor_hash::equal): Likewise.
10164         (not_removed_prediction_p): New function.
10165         (prune_predictions_for_bb): Likewise.
10166         (combine_predictions_for_bb): Prune predictions.
10168 2016-06-09  Martin Liska  <mliska@suse.cz>
10170         * predict.c (filter_predictions): New function.
10171         (remove_predictions_associated_with_edge): Use the filter
10172         function.
10173         (equal_edge_p): New function.
10175 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
10177         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10178         Correct usage of @samp vs @option, add @samp where appropriate.
10179         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10180         Add armv6s-m and document it, as it is no official ARM name.
10182 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10184         * ifcvt.c (struct noce_if_info): Add transform_name field.
10185         (noce_try_move): Set if_info->transform_name to the function name.
10186         (noce_try_ifelse_collapse): Likewise.
10187         (noce_try_store_flag): Likewise.
10188         (noce_try_inverse_constants): Likewise.
10189         (noce_try_store_flag_constants): Likewise.
10190         (noce_try_addcc): Likewise.
10191         (noce_try_store_flag_mask): Likewise.
10192         (noce_try_cmove): Likewise.
10193         (noce_try_cmove_arith): Likewise.
10194         (noce_try_minmax): Likewise.
10195         (noce_try_abs): Likewise.
10196         (noce_try_sign_mask): Likewise.
10197         (noce_try_bitop): Likewise.
10198         (noce_convert_multiple_sets): Likewise.
10199         (noce_process_if_block): Print if_info->transform_name to
10200         dump_file if transformation succeeded.
10202 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10204         * config/arm/cortex-a57.md (cortex_a57_alu):
10205         Handle csel type.
10207 2016-06-08  Martin Sebor  <msebor@redhat.com>
10208             Jakub Jelinek  <jakub@redhat.com>
10210         PR c++/70507
10211         PR c/68120
10212         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
10213         BUILT_IN_MUL_OVERFLOW_P): New builtins.
10214         * builtins.c: Include gimple-fold.h.
10215         (fold_builtin_arith_overflow): Handle
10216         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
10217         (fold_builtin_3): Likewise.
10218         * doc/extend.texi (Integer Overflow Builtins): Document
10219         __builtin_{add,sub,mul}_overflow_p.
10221 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
10223         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
10224         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
10226 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
10228         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
10229         Rewrite, looking one level down for records and arrays.
10231 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
10233         * pretty-print.c: Include "selftest.h".
10234         (pp_format): Fix comment.
10235         (identifier_to_locale): Likewise.
10236         (selftest::test_basic_printing): New function.
10237         (selftest::assert_pp_format): New function.
10238         (selftest::test_pp_format): New function.
10239         (selftest::pretty_print_c_tests): New function.
10240         * selftest-run-tests.c (selftest::run_tests): Call
10241         selftest::pretty_print_c_tests.
10242         * selftest.h (pretty_print_c_tests): New declaration.
10244 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10246         * invoke.texi (max-loop-headers-insns): Document.
10247         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
10248         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
10249         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
10251 2016-06-08  Richard Biener  <rguenther@suse.de>
10253         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
10254         on strided SLP loads and fall back to scalar loads in case
10255         we can't chunk them.
10257 2016-06-08  Richard Biener  <rguenther@suse.de>
10259         PR tree-optimization/71452
10260         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10261         type used for the SSA rewrite has enough precision to cover
10262         the dynamic type of the location.
10264 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
10265             Richard Biener  <rguenther@suse.de>
10267         PR c++/71448
10268         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10269         the same as DECL_P (base0) for indirect_base0.  Use equality_code
10270         in one further place.
10272 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
10274         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10275         to one word if the field is known to overlap other words.
10276         (extract_bit_field_1): Likewise.
10277         (store_split_bit_field): Remove compensating code.
10278         (extract_split_bit_field): Likewise.
10280 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
10282         PR debug/71432
10283         PR ada/71413
10284         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10286 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10288         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10289         VDQF.
10290         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10291         (arch64_addpv4sf): Delete.
10292         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10293         "gen_aarch64_addpv4sf".
10294         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
10295         builtin.
10296         (vpadds_f32): Likewise.
10297         (vpaddq_f32): Likewise.
10298         (vpaddq_f64): Likewise.
10300 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10302         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10303         VALLF.
10304         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10305         to VALLF.  Rename to "fabd<mode>3".
10306         "*fabd_scalar<mode>3): Delete.
10307         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10308         Use builtin.
10309         (vabdd_f64): Likewise.
10310         (vabd_f32): Likewise.
10311         (vabd_f64): Likewise.
10312         (vabdq_f32): Likewise.
10313         (vabdq_f64): Likewise.
10315 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10317         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10318         VALLF.
10319         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10320         "aarch64_rsqrts<mode>".
10321         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
10322         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
10323         builtin.
10324         (vrsqrtsd_f64): Likewise.
10325         (vrsqrts_f32): Likewise.
10326         (vrsqrts_f64): Likewise.
10327         (vrsqrtsq_f32): Likewise.
10328         (vrsqrtsq_f64): Likewise.
10330 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10332         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
10333         VALLF.
10334         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
10335         "aarch64_rsqrte<mode>".
10336         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
10337         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
10338         builtin.
10339         (vrsqrted_f64): Likewise.
10340         (vrsqrte_f32): Likewise.
10341         (vrsqrte_f64): Likewise.
10342         (vrsqrteq_f32): Likewise.
10343         (vrsqrteq_f64): Likewise.
10345 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10347         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
10348         (ucvtf): Likewise.
10349         (fcvtzs): Likewise.
10350         (fcvtzu): Likewise.
10351         * config/aarch64/aarch64-simd.md
10352         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
10353         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
10354         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
10355         Use builtin.
10356         (vcvt_n_f32_u32): Likewise.
10357         (vcvt_n_s32_f32): Likewise.
10358         (vcvt_n_u32_f32): Likewise.
10359         (vcvtq_n_f32_s32): Likewise.
10360         (vcvtq_n_f32_u32): Likewise.
10361         (vcvtq_n_f64_s64): Likewise.
10362         (vcvtq_n_f64_u64): Likewise.
10363         (vcvtq_n_s32_f32): Likewise.
10364         (vcvtq_n_s64_f64): Likewise.
10365         (vcvtq_n_u32_f32): Likewise.
10366         (vcvtq_n_u64_f64): Likewise.
10367         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
10368         (VSDQ_SDI): Likewise.
10369         (fcvt_target): Support V4DI, V4SI and V2SI.
10370         (FCVT_TARGET): Likewise.
10372 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10374         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
10375         (TYPES_BINOP_SUS): Likewise.
10376         (aarch64_simd_builtin_data): Update include file name.
10377         (aarch64_builtins): Likewise.
10378         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
10379         for conversion between scalar float-point and fixed-point.
10380         (ucvtf): Likewise.
10381         (fcvtzs): Likewise.
10382         (fcvtzu): Likewise.
10383         * config/aarch64/aarch64.md
10384         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
10385         pattern for conversion between scalar float to fixed-pointer.
10386         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
10387         (UNSPEC_FCVTZS): New UNSPEC enumeration.
10388         (UNSPEC_FCVTZU): Likewise.
10389         (UNSPEC_SCVTF): Likewise.
10390         (UNSPEC_UCVTF): Likewise.
10391         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
10392         Use builtin.
10393         (vcvtd_n_f64_u64): Likewise.
10394         (vcvtd_n_s64_f64): Likewise.
10395         (vcvtd_n_u64_f64): Likewise.
10396         (vcvtd_n_f32_s32): Likewise.
10397         (vcvts_n_f32_u32): Likewise.
10398         (vcvtd_n_s32_f32): Likewise.
10399         (vcvts_n_u32_f32): Likewise.
10400         * config/aarch64/iterators.md (fcvt_target): Support integer to float
10401         mapping.
10402         (FCVT_TARGET): Likewise.
10403         (FCVT_FIXED2F): New iterator.
10404         (FCVT_F2FIXED): Likewise.
10405         (fcvt_fixed_insn): New define_int_attr.
10407 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10409         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
10410         some statements was removed.
10412 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
10414         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
10415         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
10416         (vect_can_advance_ivs_p): likewise.
10417         (vect_update_ivs_after_vectorizer): likewise.
10418         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
10419         (vect_analyze_scalar_cycles_1): likewise.
10420         (vect_analyze_loop_operations): likewise.
10421         (report_vect_op): likewise.
10422         (vect_is_slp_reduction): likewise.
10423         (vect_is_simple_reduction): likewise.
10424         (get_initial_def_for_induction): likewise.
10425         (vect_transform_loop): likewise.
10426         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
10427         (vect_recog_sad_pattern): likewise.
10428         (vect_recog_widen_sum_pattern): likewise.
10429         (vect_recog_widening_pattern): likewise.
10430         (vect_recog_divmod_pattern): likewise.
10431         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
10432         (vect_analyze_slp_instance): likewise.
10433         (vect_transform_slp_perm_load): likewise.
10434         (vect_schedule_slp_instance): likewise.
10436 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10438         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
10439         (return_prediction): PRED_CONST_RETURN predict return as not taken.
10440         * predict.def (PRED_CONTINUE): Change hitrate 50->67
10441         (PRED_LOOP_BRANCH): Document predictor as broken.
10442         (PRED_LOOP_EXIT): Change hitrate 91->92.
10443         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
10444         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
10445         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
10446         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
10447         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
10448         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
10449         (PRED_CALL): Chane hitrate 71->67.
10450         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
10451         (PRED_GOTO): Document as unused right now.
10452         (PRED_CONST_RETURN): Change hitrate 67->69
10453         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
10454         (PRED_NULL_RETURN): Change hitrate 91->90.
10455         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
10456         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
10457         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
10459 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
10461         * config/rs6000/altivec.h: Add __builtin_vec_mul.
10462         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
10463         special case Altivec builtin.
10464         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10465         VSX_BUILTIN_VEC_MUL (replaced with special case code).
10466         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10467         code for ALTIVEC_BUILTIN_VEC_MUL.
10468         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10469         for __builtin_vec_mul.
10471 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
10473         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
10474         -mno-htm.
10476 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
10478         * spellcheck.c (selftest::test_find_closest_string): New function.
10479         (spellcheck_c_tests): Call the above.
10481 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10483         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
10485 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
10487         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
10488         Yv=Yv,C alternatives.
10490 2016-06-07  Richard Biener  <rguenther@suse.de>
10492         PR c/61564
10493         * common.opt (ffast-math): Make Optimization.
10495 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
10496             Prachi Godbole  <prachi.godbole@imgtec.com>
10498         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
10499         `fabs' and `fneg' type attributes.
10500         (p5600_fpu_fabs): Add `fmove' to the comment.
10502 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10504         * gimple.c: Include builtins.h
10505         (gimple_inexpensive_call_p): New function.
10506         * gimple.h (gimple_inexpensive_call_p): Declare.
10507         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
10508         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
10509         fix formatting.
10511 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
10513         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
10514         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
10515         warning_at_rich_loc, warning_n, pedwarn, permerror,
10516         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
10517         sorry, fatal_error, internal_error, internal_error_no_backtrace):
10518         Use the above.
10520 2016-06-07  Richard Biener  <rguenther@suse.de>
10522         PR tree-optimization/71428
10523         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
10524         BIT_FIELD_REF op vs. load.
10526 2016-06-07  Richard Biener  <rguenther@suse.de>
10528         PR middle-end/71423
10529         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
10530         for signed ops.
10532 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10534         * config/pa/pa.md (call): Generate indirect long calls to non-local
10535         functions on TARGET_64BIT.
10536         (call_value): Likewise.
10538 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10540         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
10541         pattern and subsequent splitters.
10542         (call_val_reg_64bit_post_reload): Likewise.
10544 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10546         PR middle-end/71408
10547         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
10548         propagate_op_to_single_use.
10550 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10552         PR middle-end/71281
10553         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10555 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
10557         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10558         (enum x86_dirflag_state): New enum.
10559         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10560         (machine_function): Remove needs_cld.
10561         (ix86_current_function_needs_cld): Remove.
10562         * config/i386/i386.c (ix86_set_func_type): Set
10563         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10564         (ix86_expand_prologue): Do not emit CLD here.
10565         (ix86_dirflag_mode_needed): New function.
10566         (ix86_dirflag_mode_entry): Ditto.
10567         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10568         (ix86_mode_after): Ditto.
10569         (ix86_mode_entry): Ditto.
10570         (ix86_mode_exit): Ditto.
10571         (ix86_emit_mode_set): Ditto.
10572         * config/i386/i386.md (strmov_singleop): Set
10573         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10574         Do not set ix86_current_function_needs_cld.
10575         (rep_mov): Ditto.
10576         (strset_singleop): Ditto.
10577         (rep_stos): Ditto.
10578         (cmpstrnqi_nz_1): Ditto.
10579         (cmpstrnqi_1): Ditto.
10580         (strlenqi_1): Ditto.
10582 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10584         PR tree-optimization/71259
10585         * tree-vect-slp.c (vect_get_constant_vectors): For
10586         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10587         one for constant op, and use COND_EXPR for non-constant.
10589 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10591         * Makefile.in (OBJS): Add function-tests.o,
10592         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10593         selftest-run-tests.o.
10594         (OBJS-libcommon): Add selftest.o.
10595         (OBJS-libcommon-target): Add selftest.o.
10596         (all.internal): Add "selftest".
10597         (all.cross): Likewise.
10598         (selftest): New phony target.
10599         (s-selftest): New target.
10600         (selftest-gdb): New phony target.
10601         (COLLECT2_OBJS): Add selftest.o.
10602         * bitmap.c: Include "selftest.h".
10603         (selftest::test_gc_alloc): New function.
10604         (selftest::test_set_range): New function.
10605         (selftest::test_clear_bit_in_middle): New function.
10606         (selftest::test_copying): New function.
10607         (selftest::test_bitmap_single_bit_set_p): New function.
10608         (selftest::bitmap_c_tests): New function.
10609         * common.opt (fself-test): New.
10610         * diagnostic-show-locus.c: Include "selftest.h".
10611         (make_range): New function.
10612         (test_range_contains_point_for_single_point): New function.
10613         (test_range_contains_point_for_single_line): New function.
10614         (test_range_contains_point_for_multiple_lines): New function.
10615         (assert_eq): New function.
10616         (test_get_line_width_without_trailing_whitespace): New function.
10617         (selftest::diagnostic_show_locus_c_tests): New function.
10618         * et-forest.c: Include "selftest.h".
10619         (selftest::test_single_node): New function.
10620         (selftest::test_simple_tree): New function.
10621         (selftest::test_disconnected_nodes): New function.
10622         (selftest::et_forest_c_tests): New function.
10623         * fold-const.c: Include "selftest.h".
10624         (selftest::assert_binop_folds_to_const): New function.
10625         (selftest::assert_binop_folds_to_nonlvalue): New function.
10626         (selftest::test_arithmetic_folding): New function.
10627         (selftest::fold_const_c_tests): New function.
10628         * function-tests.c: New file.
10629         * gimple.c: Include "selftest.h".
10630         Include "gimple-pretty-print.h".
10631         (selftest::verify_gimple_pp): New function.
10632         (selftest::test_assign_single): New function.
10633         (selftest::test_assign_binop): New function.
10634         (selftest::test_nop_stmt): New function.
10635         (selftest::test_return_stmt): New function.
10636         (selftest::test_return_without_value): New function.
10637         (selftest::gimple_c_tests): New function.
10638         * hash-map-tests.c: New file.
10639         * hash-set-tests.c: New file.
10640         * input.c: Include "selftest.h".
10641         (selftest::assert_loceq): New function.
10642         (selftest::test_accessing_ordinary_linemaps): New function.
10643         (selftest::test_unknown_location): New function.
10644         (selftest::test_builtins): New function.
10645         (selftest::test_reading_source_line): New function.
10646         (selftest::input_c_tests): New function.
10647         * rtl-tests.c: New file.
10648         * selftest-run-tests.c: New file.
10649         * selftest.c: New file.
10650         * selftest.h: New file.
10651         * spellcheck.c: Include "selftest.h".
10652         (selftest::levenshtein_distance_unit_test_oneway): New function,
10653         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10654         (selftest::levenshtein_distance_unit_test): Likewise.
10655         (selftest::spellcheck_c_tests): Likewise.
10656         * toplev.c: Include selftest.h.
10657         (toplev::run_self_tests): New.
10658         (toplev::main): Handle -fself-test.
10659         * toplev.h (toplev::run_self_tests): New.
10660         * tree.c: Include "selftest.h".
10661         (selftest::test_integer_constants): New function.
10662         (selftest::test_identifiers): New function.
10663         (selftest::test_labels): New function.
10664         (selftest::tree_c_tests): New function.
10665         * tree-cfg.c: Include "selftest.h".
10666         (selftest::push_fndecl): New function.
10667         (selftest::test_linear_chain): New function.
10668         (selftest::test_diamond): New function.
10669         (selftest::test_fully_connected): New function.
10670         (selftest::tree_cfg_c_tests): New function.
10671         * vec.c: Include "selftest.h".
10672         (selftest::safe_push_range): New function.
10673         (selftest::test_quick_push): New function.
10674         (selftest::test_safe_push): New function.
10675         (selftest::test_truncate): New function.
10676         (selftest::test_safe_grow_cleared): New function.
10677         (selftest::test_pop): New function.
10678         (selftest::test_safe_insert): New function.
10679         (selftest::test_ordered_remove): New function.
10680         (selftest::test_unordered_remove): New function.
10681         (selftest::test_block_remove): New function.
10682         (selftest::reverse_cmp): New function.
10683         (selftest::test_qsort): New function.
10684         (selftest::vec_c_tests): New function.c.
10685         * wide-int.cc: Include selftest.h and wide-int-print.h.
10686         (selftest::from_int <wide_int>): New function.
10687         (selftest::from_int <offset_int>): New function.
10688         (selftest::from_int <widest_int>): New function.
10689         (selftest::assert_deceq): New function.
10690         (selftest::assert_hexeq): New function.
10691         (selftest::test_printing <VALUE_TYPE>): New function template.
10692         (selftest::test_ops <VALUE_TYPE>): New function template.
10693         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10694         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10695         template.
10696         (selftest::wide_int_cc_tests): New function.
10698 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10700         PR middle-end/37780
10701         * ifcvt.c (noce_try_ifelse_collapse): New function.
10702         Declare prototype.
10703         (noce_process_if_block): Call noce_try_ifelse_collapse.
10704         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10705         (simplify_ternary_operation): Use the above to simplify
10706         conditional CLZ/CTZ expressions.
10708 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10710         PR middle-end/37780
10711         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10712         define_insn_and_split.
10714 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10716         PR middle-end/37780
10717         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10719 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10721         PR c/24414
10722         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10723         Implicitly clobber memory for basic asm with non-empty assembler
10724         string.  Use targetm.md_asm_adjust also here.
10725         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10726         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10727         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10728         non-empty assembler string.
10729         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10730         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10731         (decode_asm_operands): Handle basic asm in PARALLEL block.
10732         (extract_insn): Handle basic asm in PARALLEL block.
10733         * doc/extend.texi: Mention new behavior of basic asm.
10734         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10735         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10736         branch_needs_nop_p): Use asm_noperands.
10738 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10740         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10741         Include the M7 SPARC DFA scheduler.
10742         New attribute v3pipe.
10743         Annotate insns with v3pipe where appropriate.
10744         Define cpu_feature vis4.
10745         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10746         Add (V8QI "8") to vbits.
10747         Add insns {add,sub}v8qi3
10748         Add insns ss{add,sub}v8qi3
10749         Add insns us{add,sub}{v8qi,v4hi}3
10750         Add insns {min,max}{v8qi,v4hi,v2si}3
10751         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10752         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10753         * config/sparc/niagara4.md: Add a comment explaining the
10754         discrepancy between the documented latenty numbers and the
10755         implemented ones.
10756         * config/sparc/niagara7.md: New file.
10757         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10758         supports SPARC5 and VIS 4.0 instructions.
10759         * configure: Regenerate.
10760         * config.in: Likewise.
10761         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10762         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10763         TARGET_CPU_niagara7.
10764         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10765         (CPP_CPU_SPEC): Handle niagara7.
10766         (ASM_CPU_SPEC): Likewise.
10767         * config/sparc/sparc-opts.h (processor_type): Add
10768         PROCESSOR_NIAGARA7.
10769         (mvis4): New option.
10770         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10771         (AS_NIAGARA7_FLAG): Define.
10772         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10773         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10774         (CPP_CPU_SPEC): Handle niagara7.
10775         (ASM_CPU_SPEC): Likewise.
10776         * config/sparc/sparc.c (niagara7_costs): Define.
10777         (sparc_option_override): Handle niagara7 and adjust cache-related
10778         parameters with better values for niagara cpus.  Also support VIS4.
10779         (sparc32_initialize_trampoline): Likewise.
10780         (sparc_use_sched_lookahead): Likewise.
10781         (sparc_issue_rate): Likewise.
10782         (sparc_register_move_cost): Likewise.
10783         (dump_target_flag_bits): Support VIS4.
10784         (sparc_vis_init_builtins): Likewise.
10785         (sparc_builtins): Likewise.
10786         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10787         VIS4 4.0.
10788         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10789         UltraSparc M7.
10790         * config/sparc/sparc.opt (sparc_processor_type): New value
10791         niagara7.
10792         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10793         VIS4 builtins.
10794         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10795         -mvis4.
10796         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10797         VIS4 builtins.
10799 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10801         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10803 2016-06-06  Richard Biener  <rguenther@suse.de>
10805         PR tree-optimization/71398
10806         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10807         remove edges.
10809 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10811         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10812         ft32_expand_prolog, ft32_expand_epilogue):
10813         Handle pretend_args.
10814         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10815         * config/ft32/ft32.md: Add pretend_returner.
10817 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10819         PR target/71389
10820         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10821         Copy op1 RTX to avoid invalid sharing.
10822         (ix86_expand_vector_move_misalign): Ditto.
10824 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10826         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10827         ATTRIBUTE_UNUSED.
10829 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10831         * predict.c (predicted_by_loop_heuristics_p): New function.
10832         (predict_iv_comparison): Use it.
10833         (predict_loops): Walk from innermost loops; do not predict edges
10834         leaving multiple loops multiple times; implement
10835         PRED_LOOP_ITERATIONS_MAX heuristics.
10836         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10838 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10840         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10841         only edges out of BB are EH edges.
10843 2016-06-04  Martin Sebor  <msebor@redhat.com>
10844             Marcin Baczyński  <marbacz@gmail.com>
10846         PR c/48116
10847         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10848         a void expression in a void function.
10850 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10852         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10853         aux; dump reasons of decisions.
10854         (should_duplicate_loop_header_p): Likewise.
10855         (do_while_loop_p): Likewise.
10856         (ch_base::copy_headers): Dump asi num insns duplicated.
10858 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10860         PR tree-optimization/71405
10861         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10862         incompatible type, build a new clobber with the right type instead
10863         of building a VIEW_CONVERT_EXPR around it.
10865 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10867         PR tree-optimization/52171
10868         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10869         by_pieces_ninsns instead of move_by_pieces_ninsns.
10871 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10873         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10874         for reg+reg addressing mode.
10876 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10878         * rs6000-c.c (c/c-tree.h): Add #include.
10879         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10880         in C++ when found in the base position of vec_ld or vec_st.
10882 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10884         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10885         use of profile unless profile status is PROFILE_READ.
10886         * profile.c (compute_branch_probabilities): Set profile status
10887         only after reporting predictor hitrates.
10889 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10891         PR target/71276
10892         PR target/71277
10893         * common.opt (ffp-int-builtin-inexact): New option.
10894         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10895         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10896         (ceil@var{m}2): Document dependence on this option.
10897         * ipa-inline-transform.c (inline_call): Handle
10898         flag_fp_int_builtin_inexact.
10899         * ipa-inline.c (can_inline_edge_p): Likewise.
10900         * config/i386/i386.md (rintxf2): Do not test
10901         flag_unsafe_math_optimizations.
10902         (rint<mode>2_frndint): New define_insn.
10903         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10904         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10905         for 387 instead of extending and truncating.
10906         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10907         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10908         Change to frndint<mode>2_<rounding>.
10909         (frndintxf2_<rounding>_i387): Likewise.  Change to
10910         frndint<mode>2_<rounding>_i387.
10911         (<rounding_insn>xf2): Likewise.
10912         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10913         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10914         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10915         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10916         SSE.  Use ROUND_NO_EXC in constant operand of
10917         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10918         for 387 instead of extending and truncating.
10920 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10921             Julia Koval  <julia.koval@intel.com>
10923         PR target/66960
10924         PR target/67630
10925         PR target/67634
10926         PR target/67841
10927         PR target/68037
10928         PR target/68618
10929         PR target/68661
10930         PR target/69575
10931         PR target/69596
10932         PR target/69734
10933         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10934         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10935         all registers, except for function return registers if there are
10936         no caller-saved registers.
10937         (ix86_set_func_type): New function.
10938         (ix86_set_current_function): Call ix86_set_func_type to set
10939         no_caller_saved_registers and func_type.  Call reinit_regs if
10940         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10941         nor x87 instructions in interrupt handler nor function with
10942         no_caller_saved_registers attribute.
10943         (ix86_function_ok_for_sibcall): Return false if there are no
10944         caller-saved registers.
10945         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10946         handler.
10947         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10948         (ix86_function_arg): Return special arguments in interrupt handler.
10949         (ix86_promote_function_mode): Promote pointer to word_mode only
10950         for normal functions.
10951         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10952         interrupt handler.
10953         (ix86_epilogue_uses): New function.
10954         (ix86_hard_regno_scratch_ok): Likewise.
10955         (ix86_save_reg): Preserve all registers in interrupt handler
10956         after reload.  Preserve all registers, except for function return
10957         registers, if there are no caller-saved registers after reload.
10958         (find_drap_reg): Always use callee-saved register if there are
10959         no caller-saved registers.
10960         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10961         for interrupt handler.
10962         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10963         Emit cld instruction if stringops are used in interrupt handler
10964         or interrupt handler isn't a leaf function.
10965         (ix86_expand_epilogue): Generate interrupt return for interrupt
10966         handler and pop the 'ERROR_CODE' off the stack before interrupt
10967         return in exception handler.
10968         (ix86_expand_call): Disallow calling interrupt handler directly.
10969         If there are no caller-saved registers, mark all registers that
10970         are clobbered by the call which returns as clobbered.
10971         (ix86_handle_no_caller_saved_registers_attribute): New function.
10972         (ix86_handle_interrupt_attribute): Likewise.
10973         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10974         attributes.
10975         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10976         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10977         accumulation in interrupt function if stack may be realigned to
10978         avoid DRAP.
10979         (EPILOGUE_USES): New.
10980         (function_type): New enum.
10981         (machine_function): Add func_type and no_caller_saved_registers.
10982         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10983         (interrupt_return): New pattern.
10984         * doc/extend.texi: Document x86 interrupt and
10985         no_caller_saved_registers attributes.
10987 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10989         PR tree-optimization/52171
10990         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10991         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10992         Look for constant strings.  Move some code to emit_block_cmp_hints
10993         and use it.
10994         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10995         * defaults.h (COMPARE_MAX_PIECES): New macro.
10996         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10997         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10998         (clear_by_pieces_1): Don't declare.  Move definition before use.
10999         (can_do_by_pieces): New static function.
11000         (can_move_by_pieces): Use it.  Return bool.
11001         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
11002         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
11003         (class pieces_addr); New.
11004         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
11005         pieces_addr::adjust, pieces_addr::increment_address,
11006         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
11007         functions for it.
11008         (class op_by_pieces_d): New.
11009         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
11010         functions for it.
11011         (class move_by_pieces_d, class compare_by_pieces_d,
11012         class store_by_pieces_d): New subclasses of op_by_pieces_d.
11013         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
11014         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
11015         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
11016         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
11017         compare_by_pieces_d::finish_mode): New member functions.
11018         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
11019         functions.
11020         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
11021         (emit_block_cmp_hints): New function.
11022         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
11023         use the newly defined classes.
11024         * expr.h (by_pieces_constfn): New typedef.
11025         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
11026         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
11027         (move_by_pieces_ninsns): Don't declare.
11028         (can_move_by_pieces): Change return value to bool.
11029         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
11030         (compare_by_pieces_branch_ratio): New hook.
11031         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
11032         (by_pieces_ninsns): Declare.
11033         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
11034         COMPARE_BY_PIECES.
11035         (default_compare_by_pieces_branch_ratio): New function.
11036         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
11037         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
11038         * doc/tm.texi: Regenerate.
11039         * tree-ssa-strlen.c: Include "builtins.h".
11040         (handle_builtin_memcmp): New static function.
11041         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
11042         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
11044 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11046         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
11047         relevant stmts which are simple and invariant.
11048         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
11049         instead of simple and invariant
11051 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11053         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
11054         (vectorizable_reduction): Check for new relevant state.
11055         (vectorizable_live_operation): vectorize live stmts using
11056         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
11057         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
11058         (vect_stmt_relevant_p): Check for stmts which are only used live.
11059         (process_use): Use of a stmt does not inherit it's live value.
11060         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
11061         (vect_analyze_stmt): Check for new relevant state.
11062         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
11063         outside the loop, but not inside it.
11065 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11067         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
11068         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
11069         (vect_get_vec_def_for_operand): Split out code.
11071 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
11073         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
11075 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11077         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
11079 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11081         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
11083 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
11085         PR middle-end/71387
11086         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
11087         to noreturn e->callee->decl that has void return type and void
11088         arguments, adjust gimple_call_fntype and remove lhs even if it had
11089         previously addressable type.
11091 2016-06-02  Jeff Law  <law@redhat.com>
11093         PR tree-optimization/71328
11094         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
11095         error when checking for a jump back onto the copied path.
11097 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
11099         * config/microblaze/microblaze.c (get_branch_target): Add return
11100         NULL_RTX for the non-CALL_P case.
11101         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11102         (insert_wic): Remove unused local "j".
11104 2016-06-02  Martin Liska  <mliska@suse.cz>
11106         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11108 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11109             Julia Koval  <julia.koval@intel.com>
11111         * function.c (assign_parm_setup_stack): Force source into a
11112         register if needed.
11113         * target.def (function_incoming_arg): Update documentation to
11114         allow arbitrary address computation based on hard register.
11115         * doc/tm.texi: Regenerated.
11117 2016-06-02  Martin Liska  <mliska@suse.cz>
11119         * predict.c (combine_predictions_for_bb): Fix first match in
11120         cases where a first predictor contains more than one occurence
11121         in list of predictors.  Take the best value in such case.
11123 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11125         PR rtl-optimization/71295
11126         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11127         offset would go over the size of the inner mode reject it.
11129 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
11131         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11132         x=x,x and v=v,m instead of x=x,m.
11134         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11135         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
11136         alternative to v=rm,C.
11138         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11139         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
11140         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
11141         instead of vex for the last two above mentioned alternatives.
11143 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11145         PR target/70830
11146         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11148 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
11150         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11152 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
11154         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11155         from int to unsigned.
11157 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11159         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11160         alternatives, eliminating preferred register class.  Add support
11161         for the MTVSRDD instruction in ISA 3.0.
11162         (vsx_splat_v4si_internal): Use splat_input_operand instead of
11163         reg_or_indexed_operand.
11164         (vsx_splat_v4sf_internal): Likewise.
11166 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11168         PR target/71186
11169         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11170         for loading up all 0's or all 1's.
11172 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11174         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11176 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
11178         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11179         extension.
11180         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11181         * gcc.c (set_source_date_epoch_envvar): New function, sets
11182         the SOURCE_DATE_EPOCH environment variable to the current time.
11184 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11186         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
11187         the factor for live Phi nodes.
11189 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11191         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
11192         * tree-parloops.c (parallelize_loops): likewise.
11193         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
11194         tree_unswitch_outer_loop): likewise.
11196 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
11198         PR middle-end/71371
11199         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
11200         around creation of the temporary.
11202 2016-06-01  Richard Biener  <rguenther@suse.de>
11204         PR tree-optimization/71366
11205         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
11206         (unloop_loops): Move removing edges here ...
11207         (try_unroll_loop_completely): ... from here.
11208         (try_peel_loop): ... and here.
11209         (tree_unroll_loops_completely_1): Track parent loops via
11210         bitmap of header BBs.
11211         (tree_unroll_loops_completely): Adjust for that.
11213 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11215         * config/rs6000/altivec.h (vec_slv): New macro.
11216         (vec_srv): New macro.
11217         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
11218         (UNSPEC_VSRV): New value.
11219         (vslv): New insn.
11220         (vsrv): New insn.
11221         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
11222         (vsrv): New builtin definition.
11223         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
11224         define argument types for new builtin.
11225         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
11226         new builtin.
11227         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
11228         functions.
11230 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
11231             Jocelyn Mayer  <l_indien@magic.fr>
11233         PR target/67310
11234         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
11235         detect processor family for signature_CENTAUR_ebx.
11236         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
11237         signature_CENTAUR_ebx.
11238         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
11239         <default>: Pass x86-64 for has_longmode.
11241 2016-06-01  Nathan Sidwell  <nathan@acm.org>
11243         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
11244         undefined weak.
11246 2016-06-01  Richard Biener  <rguenther@suse.de>
11248         PR tree-optimization/71261
11249         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
11250         of stmts successfully put in the bool pattern.  Remove
11251         single-use restriction.
11252         (adjust_bool_pattern_cast): Add cast at the use site via the
11253         pattern def sequence.
11254         (adjust_bool_pattern): Remove recursion, maintain a hash-map
11255         of patterned defs.  Use the pattern def seqence instead of
11256         multiple independent patterns.
11257         (sort_after_uid): New qsort compare function.
11258         (adjust_bool_stmts): New function to process stmts in the bool
11259         pattern in IL order.
11260         (vect_recog_bool_pattern): Adjust.
11261         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11262         (ifcvt_walk_pattern_tree): Likewise.
11263         (stmt_is_root_of_bool_pattern): Likewise.
11264         (ifcvt_repair_bool_pattern): Likewise.
11265         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11267 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11269         * loop-unroll.c (decide_unroll_constant_iterations,
11270         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11271         likely upper bounds.
11272         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11274 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
11276         * tree-core.h (enum omp_clause_code): Remove
11277         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
11279 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11281         * config/arm/sync.md (arm_store_exclusive<mode>):
11282         Use 'H' output modifier on operands[2] rather than creating a new
11283         entry in out-of-bounds memory of the operands array.
11284         (arm_store_release_exclusivedi): Likewise.
11286 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11288         * config/arm/arm.c (arm_fusion_enabled_p): New function.
11289         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11290         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11291         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11293 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11295         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11296         into account live statements for mask producers.
11298 2016-06-01  Richard Biener  <rguenther@suse.de>
11300         PR tree-optimization/71311
11301         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11302         restrict to non-INTEGER_CST @0.
11304 2016-06-01  Richard Biener  <rguenther@suse.de>
11306         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11307         (relational patterns): Use :c to avoid pattern duplications.
11309 2016-06-01  Richard Biener  <rguenther@suse.de>
11311         * genmatch.c (comparison_code_p): New predicate.
11312         (swap_tree_comparison): New function.
11313         (commutate): Add for_vec parameter to append new for entries.
11314         Support commutating relational operators by swapping it alongside
11315         operands.
11316         (lower_commutative): Adjust.
11317         (dt_simplify::gen): Do not pass artificial operators to gen
11318         functions.
11319         (decision_tree::gen): Do not add artificial operators as parameters.
11320         (parser::parse_expr): Verify operator commutativity when :c is
11321         applied.  Allow :C to override this.
11322         * match.pd: Adjust patterns to use :C instead of :c where required.
11324 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
11326         PR tree-optimization/71077
11327         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
11328         the combining step, use boolean_false_node and boolean_true_node
11329         as the designated false/true return values.
11331 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11333         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
11334         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
11335         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
11336         PRED_LOOP_EXIT.
11338 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11340         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
11341         of flags impliying the register renaming.
11342         * toplev.c (process_options): Do not imply flag_rename_registers with
11343         loop peeling.
11345 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11347         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
11348         default implementation.
11350 2016-05-31  Nathan Sidwell  <nathan@acm.org>
11352         * dwarf2out.c (cur_line_info_table): Add GTY marker.
11354 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11356         * config/sh/constraints.md (b): Remove constraint.
11357         * config/sh/predicates.md (arith_reg_operand): Remove
11358         TARGET_REGISTER_P.
11359         * config/sh/sh-modes.def (PDI): Remove.
11360         * config/sh/sh.c (sh_target_reg_class,
11361         sh_optimize_target_register_callee_saved): Remove functions.
11362         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
11363         (sh_expand_epilogue): Update comment.
11364         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
11365         sh_secondary_reload): Remove TARGET_REGS related code.
11366         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
11367         TARGET_REGISTER_P): Remove macros.
11368         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
11369         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
11370         TR1_REG, TR2_REG): Remove constants.
11371         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
11373 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11375         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
11376         define_expand patterns.
11377         (adddi3_compact): Rename to adddi3.
11378         (subdi3_compact): Rename to subdi3.
11379         (*negdi2): Rename to negdi2.
11380         (*abs<mode>2): Rename to abs<mode>2.
11382 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11384         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
11385         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
11386         (atomic_sub_fetchsi): ... this new pattern.
11387         (mvtc): Add CC_REG clobber.
11389 2016-05-31  Marek Polacek  <polacek@redhat.com>
11391         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
11393 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11395         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
11396         aarch64_fusion_enabled_p to check for fusion capabilities.
11398 2016-05-31  Richard Biener  <rguenther@suse.de>
11400         PR tree-optimization/71352
11401         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
11402         minus one and a negate.
11404 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11406         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
11407         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11408         Delete prototype.
11409         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
11410         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
11411         Remove use of aarch64_simd_attr_length_move, set length attribute
11412         directly.
11413         (*aarch64_be_movoi): Likewise.
11414         (*aarch64_be_movci): Likewise.
11415         (*aarch64_be_movxi): Likewise.
11417 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11419         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
11420         It no longer does that.
11421         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
11423 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
11425         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
11426         attribute __unused__.
11428 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11430         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
11431         * config/arm/arm.c (arm_arch_thumb1): Define.
11432         (arm_option_override): Initialize arm_arch_thumb1.
11433         * config/arm/arm.h (arm_arch_thumb1): Declare.
11434         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
11435         support Thumb-1 ISA.
11437 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11439         PR target/71346
11440         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
11441         `Yv' for scalar operand.
11443 2016-05-31  Tom de Vries  <tom@codesourcery.com>
11445         PR tree-optimization/69068
11446         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
11447         phis with more than two args.
11449 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
11451         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
11452         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
11453         target.
11455 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
11457         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
11458         tune_64.
11459         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11460         support on SPARC.
11461         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
11462         cpu_32, cpu_64, tune_32 and tune_64.
11463         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
11465 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
11467         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
11469 2016-05-30  Andi Kleen  <ak@linux.intel.com>
11471         * auto-profile.c (read_profile): Replace asserts with errors
11472         when file does not exist.
11473         * gcov-io.c (gcov_read_words): Dito.
11475 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11477         * tree-cfg.c (print_loop): Print likely upper bounds.
11479 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11481         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
11482         * opts.c (default_options): Enable peel loops at -O3.
11483         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
11484         (try_peel_loop): Do not re-peel already peeled loops;
11485         use likely upper bounds; fix profile updating.
11486         (pass_complete_unroll::execute): Initialize peeled_loops.
11488 2016-05-30  Martin Liska  <mliska@suse.cz>
11490         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
11491         computed costs by frequency of BB they belong to.
11492         (get_scaled_computation_cost_at): New function.
11494 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
11495             Marc Glisse  <marc.glisse@inria.fr>
11497         PR tree-optimization/71289
11498         * match.pd (-1 / B < A, A > -1 / B): New transformations.
11500 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11502         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
11504 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11506         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
11507         for peeled copies; avoid underflow when updating estimates; correctly
11508         scale loop profile.
11510 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11512         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
11513         r236875. Corrected oe3 to oe2 as obvious.
11515 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11517         PR middle-end/71269
11518         PR middle-end/71252
11519         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
11520         that inserted stmt will not dominate stmts that defines its operand.
11521         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
11522         (rewrite_expr_tree_parallel): Likewise.
11524 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11526         PR middle-end/71252
11527         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
11528         all fields including stmt_to_insert are swapped.
11530 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11532         * predict.h (force_edge_cold): Declare.
11533         * predict.c (force_edge_cold): New function.
11534         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
11535         updating.
11536         (canonicalize_loop_induction_variables): Fix formating.
11538 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11540         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
11541         (visium_expand_copysign): Use gen_int_mode directly.
11542         (visium_compute_frame_size): Minor tweaks.
11544 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11546         * tree-vect-loop.c (vect_analyze_loop_2): Use
11547         likely_max_stmt_executions_int.
11549 2016-05-30  Tom de Vries  <tom@codesourcery.com>
11551         PR tree-optimization/69067
11552         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11554 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
11556         PR target/71245
11557         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11558         New peepholes to remove unneeded fild/fistp pairs.
11559         (define_peephole2 atomic_loaddi_fpu): Ditto.
11561 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11563         * predict.c (maybe_hot_frequency_p): Avoid division.
11565 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11567         * doc/install.texi: Use https for shop.fsf.org.
11569 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11571         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11572         likely_max_stmt_executions_int.
11574 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11576         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11577         likely_max_stmt_executions_int.
11579 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11581         * profile.c (compute_branch_probabilities): Do not report hitrates
11582         here.
11583         (branch_prob): Report hitrates here.
11584         * predict.c (gimple_predict_edge): Do not assert profile status;
11585         fix formatting issues.
11587 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11589         * predict.c (edge_predicted_by_p): New function.
11590         (predict_paths_for_bb): Do not put multiple predictions of the same type
11591         on one edge.
11593 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11595         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11596         commit.
11598 2016-05-28  Alan Modra  <amodra@gmail.com>
11600         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11602 2016-05-28  Alan Modra  <amodra@gmail.com>
11604         PR rtl-optimization/71275
11605         * ira.c (ira): Free dominance info.
11607 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11609         * doc/sourcebuild.texi: New address for upstream Go repository.
11611 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11613         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11614         (TARGET_ARM_V7M): Likewise.
11616 2016-05-26  Jeff Law  <law@redhat.com>
11618         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11619         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11620         * passes.def: Add jump threading passes before DOM/VRP.
11621         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11622         argument to a basic block from an edge.  Remove tests which are
11623         handled elsewhere.
11624         (pass_data_thread_jumps, class pass_thread_jumps): New.
11625         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11626         (make_pass_thread_jumps): Likewise.
11627         * tree-pass.h (make_pass_thread_jumps): Declare.
11629 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11631         * config/visium/visium-protos.h (split_double_move): Rename into...
11632         (visium_split_double_move): ...this.
11633         (visium_split_double_add): Declare.
11634         * config/visium/visium.c (split_double_move): Rename into...
11635         (visium_split_double_move): ...this.
11636         (visium_split_double_add): New function.
11637         (visium_expand_copysign): Renumber operands for consistency.
11638         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11639         (DFmode move splitter): Likewise.
11640         (*addi3_insn): Split by means of visium_split_double_add.
11641         (*adddi3_insn_flags): Delete.
11642         (*plus_plus_sltu<subst_arith>): New insn.
11643         (*subdi3_insn): Split by means of visium_split_double_add.
11644         (subdi3_insn_flags): Delete.
11645         (*minus_minus_sltu<subst_arith>): New insn.
11646         (*negdi2_insn): Split by means of visium_split_double_add.
11647         (*negdi2_insn_flags): Delete.
11649 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11651         * configure.ac: Treat a --with-headers option without argument
11652         the same as the default (i.e. consult sys-include directory).
11653         * configure: Regenerate.
11655 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11657         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11658         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11659         prototype.
11660         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11661         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11663 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11665         PR target/63596
11666         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11667         tree-stdarg analysis results.
11668         (aarch64_setup_incoming_varargs): Likewise.
11670 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11672         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11673         va_list_gpr_counter_field and va_list_fpr_counter_field.
11675 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11677         PR67609
11678         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11679         * config/aarch64/aarch64.c
11680         (aarch64_cannot_change_mode_class): Remove function.
11681         * config/aarch64/aarch64-protos.h
11682         (aarch64_cannot_change_mode_class): Remove.
11684 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11686         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11687         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11688         get_likely_max_loop_iterations_int): New.
11689         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11690         any_likely_upper_bound.
11691         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11692         Declare.
11693         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11694         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11695         upper bound.
11696         (unroll_loop_constant_iterations): Likewise.
11697         (unroll_loop_runtime_iterations): Likewise.
11698         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11699         * lto-streamer-out.c (output_cfg): Likewise.
11700         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11701         bounds.
11702         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11703         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11704         (likely_max_loop_iterations): New.
11705         (likely_max_loop_iterations_int): New.
11706         (likely_max_stmt_executions): New.
11707         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11708         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11709         likely_max_stmt_executions): Declare.
11711 2016-05-27  Marek Polacek  <polacek@redhat.com>
11713         PR middle-end/71308
11714         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11716 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11718         * config/s390/s390.md (2x risbg splitters): Use
11719         reg_overlap_mentioned_p instead of rtx_equal_p.
11721 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11723         * combine.c (make_compound_operation): Take known zero bits into
11724         account when checking for possible zero_extend.
11726 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11728         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11729         Use const_int_operand for operand 2 predicate.  Simplify expand code
11730         as a result.
11732 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11734         PR middle-end/71279
11735         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11736         into comparison.
11738 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11740         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11741         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11742         that returns CC_SESWPmode and CC_ZESWPmode.
11743         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11744         and CC_SESWPmode.
11745         (aarch64_rtx_costs): Likewise.
11747 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11749         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11750         for ISA 3.0 min/max support.
11751         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11752         conditional move support.
11753         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11754         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11755         available.
11756         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11757         conditional moves where the comparison type is different from move
11758         type.
11759         (fp_minmax): New code iterator for smin/smax.
11760         (minmax): New code attributes for min/max.
11761         (SMINMAX): Likewise.
11762         (smax<mode>3): Combine min, max insns into one insn using the
11763         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11764         instructions that don't need -ffast-math.
11765         (s<minmax><mode>3): Likewise.
11766         (smax<mode>3_vsx): Likewise.
11767         (smin<mode>3): Likewise.
11768         (s<minmax><mode>3_vsx): Likewise.
11769         (smin<mode>3_vsx): Likewise.
11770         (pre-VSX min/max splitters): Likewise.
11771         (s<minmax><mode>3_fpr): Likewise.
11772         (movsfcc): Rewrite floating point conditional moves to combine
11773         SFmode/DFmode into a single insn.
11774         (mov<mode>cc): Likewise.
11775         (movdfcc): Likewise.
11776         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11777         SFDF2 iterators to handle all combinations.
11778         (fseldfsf4): Likewise.
11779         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11780         (fseldfdf4): Likewise.
11781         (fselsfdf4): Likewise.
11782         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11783         comparison instructions that set a 0/-1 mask, and use it for
11784         floating point conditional move via XXSEL.
11785         (fpmask<mode>): Likewise.
11786         (xxsel<mode>): Likewise.
11787         * config/rs6000/predicates.md (min_max_operator): Delete, no
11788         longer used.
11789         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11790         instructions that generate a 0/-1 mask for use with XXSEL.
11791         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11792         say whether floating point min/max is available, either through
11793         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11794         (TARGET_MINMAX_DF): Likewise.
11796 2016-05-27  Alan Modra  <amodra@gmail.com>
11798         PR rtl-optimization/71275
11799         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11800         for update_equiv_regs and combine_and_move_insns.
11802 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11804         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11805         if_then_else or cond RTXes to calculate attribute value.
11806         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11807         <attr "length_immediate>: Ditto.
11808         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11809         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11810         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11811         <attr "type">: Ditto.
11812         <attr "prefix_data16">: Ditto.
11813         <attr "prefix_extra">: Ditto.
11814         <attr "length_immediate">: Ditto.
11815         <attr "prefix">: Ditto.
11816         (vec_set<mode>_0) <attr "isa">: Ditto.
11817         <attr "prefix_extra">: Ditto.
11818         <attr "length_immediate">: Ditto.
11819         <attr "prefix">: Ditto.
11820         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11821         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11822         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11823         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11824         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11825         <attr "length_immediate">: Ditto.
11826         <attr "prefix">: Ditto.
11827         (sse2_movsd) <attr "length_immediate">: Ditto.
11828         <attr "prefix">: Ditto.
11829         (vec_concatv2df)  <attr "isa">: Ditto.
11830         <attr "prefix">: Ditto.
11831         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11832         (*vec_extractv2di_1) <attr "isa">: Ditto.
11833         <attr "type">: Ditto.
11834         <attr "length_immediate">: Ditto.
11835         <attr "prefix_rex">: Ditto.
11836         <attr "prefix_extra">: Ditto.
11837         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11838         <attr "prefix_extra">: Ditto.
11839         <attr "length_immediate">: Ditto.
11840         (vec_concatv2di) <attr "isa">: Ditto.
11841         <attr "prefix_extra">: Ditto.
11842         <attr "length_immediate">: Ditto.
11843         <attr "prefix">: Ditto.
11845 2016-05-26  Martin Liska  <mliska@suse.cz>
11847         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11848         function.
11849         (operator+): Likewise.
11850         (operator-): Likewise.
11851         (comp_cost::operator+=): Likewise.
11852         (comp_cost::operator-=): Likewise.
11853         (comp_cost::operator/=): Likewise.
11854         (comp_cost::operator*=): Likewise.
11855         (operator<): Likewise.
11856         (operator==): Likewise.
11857         (operator<=): Likewise.
11858         (new_cost): Remove.
11859         (infinite_cost_p): Likewise.
11860         (add_costs): Likewise.
11861         (sub_costs): Likewise.
11862         (compare_costs): Likewise.
11863         (set_group_iv_cost): Use the newly introduced functions.
11864         (get_address_cost): Likewise.
11865         (get_shiftadd_cost): Likewise.
11866         (force_expr_to_var_cost): Likewise.
11867         (split_address_cost): Likewise.
11868         (ptr_difference_cost): Likewise.
11869         (difference_cost): Likewise.
11870         (get_computation_cost_at): Likewise.
11871         (determine_group_iv_cost_generic): Likewise.
11872         (determine_group_iv_cost_address): Likewise.
11873         (determine_group_iv_cost_cond): Likewise.
11874         (autoinc_possible_for_pair): Likewise.
11875         (determine_group_iv_costs): Likewise.
11876         (cheaper_cost_pair): Likewise.
11877         (iv_ca_recount_cost): Likewise.
11878         (iv_ca_set_no_cp): Likewise.
11879         (iv_ca_set_cp): Likewise.
11880         (iv_ca_cost): Likewise.
11881         (iv_ca_new): Likewise.
11882         (iv_ca_dump): Likewise.
11883         (iv_ca_narrow): Likewise.
11884         (iv_ca_prune): Likewise.
11885         (iv_ca_replace): Likewise.
11886         (try_add_cand_for): Likewise.
11887         (try_improve_iv_set): Likewise.
11888         (find_optimal_iv_set): Likewise.
11890 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11892         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11893         that internal functions will clobber all caller-saved registers.
11895 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11897         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11898         Return a better case_values_threshold when optimizing.
11900 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11902         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11903         Add ? to integer variant.
11904         (aarch64_combinez_be): Likewise.
11906 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11908         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11909         instead of x constraint.
11910         (vcvtps2ph256<mask_name>): Likewise.
11912         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11913         alternative.  Formatting fix.
11915         * config/i386/sse.md
11916         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11917         to ...
11918         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11919         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11920         maybe_evex prefix instead of vex.
11921         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11922         EXT_REX_SSE_REG_P (op0) case in the splitter.
11924 2016-05-25  Jeff Law  <law@redhat.com>
11926         PR tree-optimization/71272
11927         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11928         Update comments.  Add test for empty path.
11930 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11932         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11933         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11934         special case builtin.
11935         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11936         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11937         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11938         for __builtin_vec_cmpne.
11940 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11942         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11943         redundant test and bail out if the type of the new operand is not
11944         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11946 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11948         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11949         (x_ix86_target_flags_explicit): Remove.
11950         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11951         x_ix86_target_flags_explicit.
11952         (ix86_function_specific_restore): Ditto.
11954 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11955             H.J. Lu  <hongjiu.lu@intel.com>
11957         PR target/70738
11958         * common/config/i386/i386-common.c
11959         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11960         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11961         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11962         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11963         (-mgeneral-regs-only): Add new option.
11964         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11965         x87 instructions if only general registers are allowed.
11966         (ix86_target_string): Add ix86_flags argument. Handle additional
11967         flags options through ix86_flags argument.  Update all callers.
11968         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11970 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11972         PR rtl-optimization/66940
11973         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11974         decrementing desired_val will not overflow before performing these
11975         operations.
11977 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11979         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11980         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11981         * config/i386/i386.c (enum ix86_builtins): Add
11982         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11983         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11984         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11985         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11986         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11987         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11988         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11989         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11990         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11991         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11992         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11993         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11994         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11995         __builtin_ia32_cvtps2dq512_mask.
11996         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11997         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11998         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11999         * config/i386/sse.md
12000         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
12001         Rename to ...
12002         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
12003         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
12004         to ...
12005         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
12006         (avx512f_vec_pack_sfix_v8df): New define_expand.
12007         (avx512f_roundpd512): Rename to ...
12008         (avx512f_round<castmode>512): ... this.  Change iterator.
12009         (avx512f_roundps512_sfix): New define_expand.
12010         (round<mode>2_sfix): Change iterator.
12012 2016-05-25  Nick Clifton  <nickc@redhat.com>
12014         * config/msp430/msp430.c (msp430_attr): Produce an error if a
12015         static interrupt handler is detected.
12016         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
12017         default linker script.
12018         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
12019         the low part of a symbolic pointer.
12021 2016-05-25  Richard Biener  <rguenther@suse.de>
12023         PR tree-optimization/71261
12024         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
12025         interesting stmt instead of immediate uses when looking
12026         for the use operand to replace.
12028 2016-05-25  Martin Liska  <mliska@suse.cz>
12030         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
12032 2016-05-25  Richard Biener  <rguenther@suse.de>
12034         PR tree-optimization/71264
12035         * tree-vect-stmts.c (vect_init_vector): Properly deal with
12036         vector type val.
12038 2016-05-25  Martin Liska  <mliska@suse.cz>
12040         PR tree-optimization/71239
12041         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
12042         if DECL_SIZE is NULL.
12044 2016-05-25  Richard Biener  <rguenther@suse.de>
12046         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
12047         * tree-if-conv.c (pass_data_if_conversion): Use it.
12049 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12051         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
12052         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
12053         * varpool.c (varpool_node::get_availability): Likewise.
12055 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12057         * config/rs6000/altivec.md (VNEG iterator): New iterator for
12058         VNEGW/VNEGD instructions.
12059         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
12060         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
12061         support for ISA 3.0 VNEGW/VNEGD instructions.
12063 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12065         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
12066         pointers inside OACC_DATA regions.
12067         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
12068         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
12069         (gimplify_adjust_omp_clauses): Fix typo in comment.
12071 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12073         * config/rs6000/altivec.md (VParity): New mode iterator for vector
12074         parity built-in functions.
12075         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
12076         zeros.
12077         (p9v_parity<mode>2): Likewise.
12078         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
12079         parity.
12080         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
12081         (parity<mode>2): ISA 3.0 expander for vector parity.
12082         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
12083         power9 built-ins.
12084         (BU_P9_64BIT_MISC_0): Likewise.
12085         (BU_P9_MISC_0): Likewise.
12086         (BU_P9V_AV_1): Likewise.
12087         (BU_P9V_AV_2): Likewise.
12088         (BU_P9V_AV_3): Likewise.
12089         (BU_P9V_AV_P): Likewise.
12090         (BU_P9V_VSX_1): Likewise.
12091         (BU_P9V_OVERLOAD_1): Likewise.
12092         (BU_P9V_OVERLOAD_2): Likewise.
12093         (BU_P9V_OVERLOAD_3): Likewise.
12094         (VCTZB): Add vector count trailing zeros support.
12095         (VCTZH): Likewise.
12096         (VCTZW): Likewise.
12097         (VCTZD): Likewise.
12098         (VPRTYBD): Add vector parity support.
12099         (VPRTYBQ): Likewise.
12100         (VPRTYBW): Likewise.
12101         (VCTZ): Add overloaded vector count trailing zeros support.
12102         (VPRTYB): Add overloaded vector parity support.
12103         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12104         overloaded vector count trailing zeros and parity instructions.
12105         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12106         vector parity support.
12107         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12108         trailing zeros support.
12109         (vec_cntlz): Likewise.
12110         (vec_vctzb): Likewise.
12111         (vec_vctzd): Likewise.
12112         (vec_vctzh): Likewise.
12113         (vec_vctzw): Likewise.
12114         (vec_vprtyb): Add ISA 3.0 vector parity support.
12115         (vec_vprtybd): Likewise.
12116         (vec_vprtybw): Likewise.
12117         (vec_vprtybq): Likewise.
12118         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12119         the ISA 3.0 vector count trailing zeros and vector parity built-in
12120         functions.
12122 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12124         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12125         when there is stmt_to_insert.
12127 2016-05-24  Martin Sebor  <msebor@redhat.com>
12129         PR c++/71147
12130         * tree.h (complete_or_array_type_p): New inline function.
12132 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12134         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12135         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12136         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12138         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12139         Limit 1st alternative to noavx isa, split 2nd alternative into one
12140         noavx and one avx alternative, use *x and Bm in the former and
12141         x and m in the latter.
12143         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12144         of sse4 for the first alternative, drop %v from the template
12145         and d operand modifier.  Split second alternative into one sse4_noavx
12146         and one avx alternative, use *x instead of *v in the former and v
12147         instead of *v in the latter.
12148         (*sse4_1_extractps): Use noavx isa instead of * for the first
12149         alternative, drop %v from the template.  Split second alternative into
12150         one noavx and one avx alternative, use *x instead of *v in the
12151         former and v instead of *v in the latter.
12152         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12153         with noavx and the last one with avx.
12154         (sse4_1_phminposuw): Guard first alternative with noavx isa,
12155         split the second one into one noavx and one avx alternative,
12156         use *x and Bm in the former and x and m in the latter one.
12157         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12158         alternatives.
12160         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12161         first two alternatives to noavx, use *x instead of *v in the second
12162         one, add avx alternative without *.
12163         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12164         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12165         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12167 2016-05-24  Jeff Law  <law@redhat.com>
12169         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12170         New function, extracted from...
12171         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
12172         Allow simple copies and constant initializations in the SSA chain.
12174 2016-05-24  Marek Polacek  <polacek@redhat.com>
12176         PR c/71249
12177         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12178         scope.
12180 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12182         PR c++/71257
12183         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12184         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12185         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
12186         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
12187         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
12189 2016-05-24  Richard Biener  <rguenther@suse.de>
12191         PR tree-optimization/71240
12192         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
12193         has integral type.
12195 2016-05-24  Richard Biener  <rguenther@suse.de>
12197         PR tree-optimization/71230
12198         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
12200 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12202         * tree-vectorizer.h (vectorizable_comparison): Delete.
12203         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
12204         PURE_SLP_STMT check.
12205         * tree-vect-stmts.c (vectorizable_call): Likewise.
12206         (vectorizable_simd_clone_call): Likewise.
12207         (vectorizable_conversion): Likewise.
12208         (vectorizable_assignment): Likewise.
12209         (vectorizable_shift): Likewise.
12210         (vectorizable_operation): Likewise.
12211         (vectorizable_load): Likewise.
12212         (vectorizable_condition): Likewise.
12213         (vectorizable_store): Likewise.  Assert that we don't have
12214         hybrid SLP.
12215         (vectorizable_comparison): Make static.  Remove redundant
12216         PURE_SLP_STMT check.
12217         (vect_transform_stmt): Assert that we always have an slp_node
12218         if PURE_SLP_STMT.
12220 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12222         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
12223         operands[2] against 1 with comparison against CONST1_RTX.
12224         (<shift>di3_neon): Likewise.
12225         * config/arm/predicates.md (const0_operand): Replace with comparison
12226         against CONST0_RTX.
12228 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12230         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
12231         operands[2] against 1 with comparison against CONST1_RTX.
12232         (ashrdi3): Likewise.
12233         (lshrdi3): Likewise.
12234         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
12235         UINTVAL.
12236         (ashrsi3): Likewise.
12237         (lshrsi3): Likewise.
12238         (rotrsi3): Likewise.
12239         (define_split above *compareqi_eq0): Likewise.
12240         (define_split above "prologue"): Likewise.
12241         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
12242         * config/arm/predicates.md (shift_operator): Likewise.
12243         (shift_nomul_operator): Likewise.
12244         (sat_shift_operator): Likewise.
12245         (thumb1_cmp_operand): Likewise.
12246         (const_neon_scalar_shift_amount_operand): Replace manual range
12247         check with IN_RANGE.
12248         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
12249         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
12251 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12253         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
12254         with HOST_WIDE_INT_1.
12255         (insv): Likewise.
12256         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
12257         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
12258         (arm_canonicalize_comparison): Likewise.
12259         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12260         HOST_WIDE_INT_1.
12261         (thumb1_size_rtx_costs): Likewise.
12262         (vfp_const_double_index): Replace cast of 1 to unsigned
12263         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12264         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12265         HOST_WIDE_INT_1.
12266         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12267         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12268         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12269         HOST_WIDE_INT with HOST_WIDE_INT_1.
12271 2016-05-24  Marek Polacek  <polacek@redhat.com>
12273         * tree-cfg.h (should_remove_lhs_p): New predicate.
12274         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12275         * gimplify.c (gimplify_modify_expr): Likewise.
12276         * tree-cfg.c (verify_gimple_call): Likewise.
12277         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12278         * gimple-fold.c: Include "tree-cfg.h".
12279         (gimple_fold_call): Use should_remove_lhs_p.
12281 2016-05-24  Richard Biener  <rguenther@suse.de>
12283         PR tree-optimization/71253
12284         * cfganal.h (control_dependences): Make robust against edge
12285         and BB removal.
12286         (control_dependences::control_dependences): Remove edge_list argument.
12287         (control_dependences::get_edge): Remove.
12288         (control_dependences::get_edge_src): Add.
12289         (control_dependences::get_edge_dest): Likewise.
12290         (control_dependences::m_el): Make a vector of edge src/dest index.
12291         * cfganal.c (control_dependences::find_control_dependence): Adjust.
12292         (control_dependences::control_dependences): Likewise.
12293         (control_dependences::~control_dependence): Likewise.
12294         (control_dependences::get_edge): Remove.
12295         (control_dependences::get_edge_src): Add.
12296         (control_dependences::get_edge_dest): Likewise.
12297         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12298         get_edge_src.
12299         (perform_tree_ssa_dce): Adjust.
12300         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12301         get_edge_src.
12302         (pass_loop_distribution::execute): Adjust.  Do loop destroying
12303         conditional on changed.
12305 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12307         PR target/69857
12308         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12309         return.  Reindent transformation comment and mention the ARM state
12310         behavior.
12312 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12314         PR middle-end/71252
12315         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12316         after build_and_add_sum creates new use stmt.
12318 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12320         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12321         load_lanes/grouped_load classification comes first.  Don't check
12322         whether the vectorization factor is a multiple of the group size
12323         for load_lanes.
12325 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12327         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
12328         GROUP_GAP for single-element interleaving.
12329         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
12330         variable.
12332 2016-05-24  Richard Biener  <rguenther@suse.de>
12334         PR middle-end/70434
12335         PR c/69504
12336         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
12337         bases which are accessed with non-invariant indices.
12338         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
12339         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
12341 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12343         PR middle-end/71170
12344         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
12345         (add_to_ops_vec): Add stmt_to_insert.
12346         (add_repeat_to_ops_vec): Init stmt_to_insert.
12347         (insert_stmt_before_use): New.
12348         (transform_add_to_multiply): Remove mult_stmt insertion and add it
12349         to ops vector.
12350         (get_ops): Init stmt_to_insert.
12351         (maybe_optimize_range_tests): Likewise.
12352         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
12353         (rewrite_expr_tree_parallel): Likewise.
12354         (reassociate_bb): Likewise.
12356 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12358         PR target/71201
12359         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
12360         ISA 3.0 xxperm fusion alternative.
12361         (altivec_vperm_v8hiv16qi): Likewise.
12362         (altivec_vperm_<mode>_uns_internal): Likewise.
12363         (vperm_v8hiv4si): Likewise.
12364         (vperm_v16qiv8hi): Likewise.
12366 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12367             Kelvin Nilsen  <kelvin@gcc.gnu.org>
12369         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
12370         vpermr/xxpermr on ISA 3.0.
12371         (altivec_expand_vec_perm_le): Likewise.
12372         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
12373         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
12374         ISA 3.0.
12376 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
12378         * config/i386/i386.h (IS_STACK_MODE): Enable for
12379         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
12380         SSE_FLOAT_MODE_P macros.
12381         * config/i386/i386.c (ix86_preferred_reload_class): Use
12382         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
12383         Cleanup regclass processing for CONST_DOUBLE_P.
12384         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
12385         (ix86_rtx_costs): Remove redundant TARGET_80387 check
12386         with IS_STACK_MODE macro.
12387         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
12388         with TARGET_SSE2.
12389         (*movdf_internal): Use IS_STACK_MODE macro.
12390         (*movsf_internal): Ditto.
12392 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
12394         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
12395         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
12397 2016-05-23  Jeff Law  <law@redhat.com>
12399         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
12400         extracted from ...
12401         (fsm_find_control_statement_thread_paths): Call it.
12403 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12405         PR ipa/71234
12406         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
12407         from_global_constant if t is not NULL.
12409 2016-05-23  Marek Polacek  <polacek@redhat.com>
12411         PR c/49859
12412         * common.opt (Wswitch-unreachable): New option.
12413         * doc/invoke.texi: Document -Wswitch-unreachable.
12414         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
12415         warning.
12417 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
12419         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
12420         TMR_INDEX is non-NULL.
12422 2016-05-23  Richard Biener  <rguenther@suse.de>
12424         PR tree-optimization/71230
12425         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
12426         (try_special_add_to_ops): ... here.  Always test for single-use.
12428 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12430         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
12431         default block if a PHI node in the original one would be resized.
12433 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12435         PR tree-optimization/58135
12436         * tree-vect-slp.c: When group size is not multiple
12437         of vector size, allow splitting of store group at
12438         vector boundary.
12440 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
12442         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
12444 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
12446         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12447         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
12448         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
12449         of 64x2.
12451         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
12452         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
12453         v constraint instead of x and vinserti32x4 insn.
12455         * config/i386/sse.md (i128vldq): New mode iterator.
12456         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
12457         avx512dq and avx512vl alternatives.
12459         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
12460         constraint, use maybe_evex prefix instead of vex.
12461         (vec_dupv4sf): Use v constraint instead of x for output
12462         operand except for noavx alternative, use Yv constraint
12463         instead of x for input.  Use maybe_evex prefix instead of vex.
12464         (*vec_dupv4si): Likewise.
12465         (*vec_dupv2di): Likewise.
12467 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12469         PR middle-end/40921
12470         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
12471         (linearize_expr_tree): Call try_special_add_to_ops.
12472         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
12474 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12476         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
12477         to computed stack_usage.
12479 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12481         PR target/71103
12482         * config/avr/avr.md (define_expand "mov<mode>"): If the source
12483         operand is subreg (symbol_ref) then move the symbol ref to register.
12485 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
12487         * tree.c (array_at_struct_end_p): Look through MEM_REF.
12489 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
12491         PR middle-end/71179
12492         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
12493         VECTOR type.
12495 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12497         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
12498         ranges by calling get_single_symbol and tidy up.  Look more closely
12499         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
12501 2016-05-20  Jeff Law  <law@redhat.com>
12503         * bitmap.c (bitmap_find_bit): Remove useless test.
12505 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12507         * function.c (thread_prologue_and_epilogue_insns): Commit the
12508         insertion of the epilogue.
12510 2016-05-20  Martin Jambor  <mjambor@suse.cz>
12512         PR tree-optimization/70884
12513         * tree-sra.c (initialize_constant_pool_replacements): Do not check
12514         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
12515         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
12516         of constant pool data as a reason for scalarization.
12518 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12520         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
12521         for naked functions.
12522         (thumb1_expand_prologue): Likewise.
12524 2016-05-20  Nathan Sidwell  <nathan@acm.org>
12526         * config/nvptx/nptx.c (nvptx_option_override): Only set
12527         flag_toplevel_reorder, if not explicitly specified.  Set
12528         flag_no_common, unless explicitly specified.
12530 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12532         * calls.c (can_implement_as_sibling_call_p): Mark param
12533         reg_parm_stack_space with ATTRIBUTE_UNUSED.
12535 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
12537         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
12538         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
12539         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
12540         constants.
12541         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
12542         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
12543         and CASE_CONST_ANY.
12545 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
12547         * config/nvptx/nvptx.md (sincossf3): New pattern.
12549 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12551         * calls.c (maybe_complain_about_tail_call): New function.
12552         (initialize_argument_information): Call
12553         maybe_complain_about_tail_call when clearing *may_tailcall.
12554         (can_implement_as_sibling_call_p): Call
12555         maybe_complain_about_tail_call when returning false.
12556         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12557         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
12558         if tail-call optimization fails.
12559         * cfgexpand.c (expand_call_stmt): Initialize
12560         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12561         * gimple-pretty-print.c (dump_gimple_call): Dump
12562         gimple_call_must_tail_p.
12563         * gimple.c (gimple_build_call_from_tree): Call
12564         gimple_call_set_must_tail with the value of
12565         CALL_EXPR_MUST_TAIL_CALL.
12566         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12567         (gimple_call_set_must_tail): New function.
12568         (gimple_call_must_tail_p): New function.
12569         * print-tree.c (print_node): Update printing of TREE_STATIC
12570         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12571         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12572         trailing comment listing applicable flags.
12573         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12575 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12577         * calls.c (expand_call): Move "Rest of purposes for tail call
12578         optimizations to fail" to...
12579         (can_implement_as_sibling_call_p): ...this new function, and
12580         split into multiple "if" statements.
12582 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12584         * cfgloop.h (expected_loop_iterations_unbounded,
12585         expected_loop_iterations): Unconstify.
12586         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12587         profile with known upper bound; return 3 when profile is absent.
12588         (expected_loop_iterations): Update.
12590 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12592         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12593         and get_max_loop_iterations_int.
12595 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12597         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12598         realistic upper bounds here.
12600 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12602         PR c++/71210
12603         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12604         calls if the LHS is variable length or has addressable type.
12605         If targets[0]->decl is a noreturn call with void return type and
12606         zero arguments, adjust fntype and remove lhs in that case.
12608 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12610         PR tree-optimization/71079
12611         PR tree-optimization/71206
12612         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12614 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12616         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12617         (get_vec_alignment_for_array_decl): Likewise.
12618         (get_vec_alignment_for_record_decl): Likewise.
12619         (increase_alignment::execute): Move code to find alignment to
12620         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12621         (type_align_map): New hash_map.
12623 2016-05-20  Richard Guenther  <rguenther@suse.de>
12625         PR tree-optimization/29756
12626         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12627         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12628         * fold-const.c (operand_equal_p): Likewise.
12629         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12630         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12631         * tree-inline.c (estimate_operator_cost): Likewise.
12632         * tree-pretty-print.c (dump_generic_node): Likewise.
12633         * tree-ssa-operands.c (get_expr_operands): Likewise.
12634         * cfgexpand.c (expand_debug_expr): Likewise.
12635         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12636         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12637         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12638         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12639         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12640         (execute_update_addresses_taken): Do it.
12642 2016-05-20  Richard Biener  <rguenther@suse.de>
12644         PR tree-optimization/71185
12645         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12646         register operations.
12648 2016-05-20  Richard Biener  <rguenther@suse.de>
12650         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12651         gimple_seq_add_seq_without_update.
12652         (release_bb_predicate): Assert we have no operands to free.
12653         (if_convertible_loop_p_1): Calculate post dominators later.
12654         Do not free BB predicates here.
12655         (combine_blocks): Do not recompute BB predicates.
12656         (version_loop_for_if_conversion): Save BB predicates around
12657         loop versioning.
12659 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12661         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12662         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12663         code.  Ignore sibcalls on EDGE_IGNORE edges.
12664         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12665         on edges for sibcalls that run without prologue.  The rest of the
12666         function is combined from...
12667         (fix_fake_fallthrough_edge): ... this, and ...
12668         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12669         function argument, make it a local variable.
12671 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12673         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12674         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12675         for 32-bit mode and SEH for 64-bit.
12676         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12677         TARGET_64BIT_DEFAULT.
12679 2016-05-19  Ryan Burn  <contact@rnburn.com>
12681         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12682         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12684 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12686         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12687         force pending loads from memory.
12689 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12691         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12692         (UNSPEC_DARN_32): New unspec constant.
12693         (UNSPEC_DARN_RAW): New unspec constant.
12694         (darn_32): New instruction.
12695         (darn_raw): New instruction.
12696         (darn): New instruction.
12697         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12698         support and documentation for this macro.
12699         (BU_P9_MISC_1): New macro definition.
12700         (BU_P9_64BIT_MISC_0): New macro definition.
12701         (BU_P9_MISC_0): New macro definition.
12702         (darn_32): New builtin definition.
12703         (darn_raw): New builtin definition.
12704         (darn): New builtin definition.
12705         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12706         RS6000_BUILTIN_0 directives to surround each occurrence of
12707         #include "rs6000-builtin.def".
12708         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12709         RS6000_BTM_64BIT flags to the returned mask, depending on
12710         configuration.
12711         (def_builtin): Correct an error in the assignments made to the
12712         debugging variable attr_string.
12713         (rs6000_expand_builtin): Add support for no-operand built-in
12714         functions.
12715         (builtin_function_type): Remove fatal_error assertion that is no
12716         longer valid.
12717         (rs6000_common_init_builtins): Add support for no-operand built-in
12718         functions.
12719         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12720         definition.
12721         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12722         definition.
12723         (RS6000_BTM_64BIT): New macro definition.
12724         * doc/extend.texi: Document __builtin_darn (void),
12725         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12726         functions.
12728 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12730         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12731         max_loop_iterations_int.
12733 2016-05-19  Marek Polacek  <polacek@redhat.com>
12735         PR tree-optimization/71031
12736         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12737         condition and adjust the code a bit.
12739 2016-05-19  Martin Liska  <mliska@suse.cz>
12741         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12742         auto_vec instead of vec.
12744 2016-05-19  Martin Liska  <mliska@suse.cz>
12746         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12748 2016-05-19  Martin Liska  <mliska@suse.cz>
12750         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12752 2016-05-19  Martin Liska  <mliska@suse.cz>
12754         * ipa-pure-const.c (set_function_state): Remove an existing
12755         funct_state.
12756         (remove_node_data): Do not free it as it's released
12757         in set_function_state.
12759 2016-05-19  Martin Liska  <mliska@suse.cz>
12761         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12762         bitmap.
12764 2016-05-19  Martin Liska  <mliska@suse.cz>
12766         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12768 2016-05-19  Martin Liska  <mliska@suse.cz>
12770         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12771         an auto_vec instead of re-creating it.
12773 2016-05-19  Martin Liska  <mliska@suse.cz>
12775         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12776         auto_vec instead of vec.
12778 2016-05-19  Martin Liska  <mliska@suse.cz>
12780         * lto-section-in.c (lto_get_section_data): Call
12781         lto_check_version with additional argument.
12782         * lto-streamer.c (lto_check_version): Add new argument.
12783         * lto-streamer.h (lto_check_version): Likewise.
12785 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12787         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12788         Don't add cost of inner memory when handling sign-extended loads.
12790 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12792         PR rtl-optimization/71148
12793         * cse.c (cse_main): Free dominance info.
12794         (rest_of_handle_cse): Don't free dominance info.
12795         (rest_of_handle_cse2): Likewise.
12796         (rest_of_handle_cse_after_global_opts): Likewise.
12798 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12800         PR target/71056
12801         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12802         NULL_TREE early if NEON is not available.  Remove now redundant check
12803         in ARM_CHECK_BUILTIN_MODE.
12805 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12807         PR sanitizer/64354
12808         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12809         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12810         * doc/cpp.texi: Document new macros.
12812 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12814         PR tree-optimization/69848
12815         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12816         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12818 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12820         * function.c (thread_prologue_and_epilogue_insn): Move the
12821         "goto epilogue_done" one block later.
12823 2016-05-19  Richard Biener  <rguenther@suse.de>
12825         PR tree-optimization/70729
12826         * passes.def: Move LIM pass before PRE.  Remove no longer
12827         required copyprop and move first DCE out of the loop pipeline.
12829 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12831         PR driver/69265
12832         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12833         (OBJS-libcommon-target): ...here.
12834         * opts-common.c: Include spellcheck.h.
12835         (cmdline_handle_error): Build a vec of valid options and use it
12836         to suggest provide hints for misspelled arguments.
12838 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12840         PR c++/71100
12841         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12842         lhs if it has TREE_ADDRESSABLE type.
12844 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12846         PR target/71145
12847         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12848         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12850 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12852         PR ipa/69708
12853         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12854         input for NOP_EXPR pass-through functions.
12855         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12856         aggregate global constant VAR_DECLs in constant jump functions.
12858 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12860         PR ipa/69708
12861         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12862         from TREE_READONLY parameters.
12864 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12866         PR ipa/69708
12867         * cgraph.h (cgraph_indirect_call_info): New field
12868         guaranteed_unmodified.
12869         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12870         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12871         appropriate.
12872         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12873         pass the parameter value to ipa_find_agg_cst_for_param.
12874         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12875         guaranteed_unmodified, store AA results there instead of bailing out
12876         if present.
12877         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12878         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12879         (find_constructor_constant_at_offset): New function.
12880         (ipa_find_agg_cst_from_init): Likewise.
12881         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12882         static initializers of contants, report back through a new paameter
12883         from_global_constant if that was the case.
12884         (try_make_edge_direct_simple_call): Also pass parameter value to
12885         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12886         appropriate.
12887         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12888         (ipa_read_indirect_edge_info): Likewise.
12889         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12890         (ipa_load_from_parm_agg): Likewise.
12892 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12894         PR rtl-optimization/71150
12895         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12896         check.
12898 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12900         PR target/70915
12901         * config/rs6000/constraints.md (wE constraint): New constraint
12902         for a vector constant that can be loaded with XXSPLTIB.
12903         (wM constraint): New constraint for a vector constant of a 1's.
12904         (wS constraint): New constraint for a vector constant that can be
12905         loaded with XXSPLTIB and a vector sign extend instruction.
12906         * config/rs6000/predicates.md (xxspltib_constant_split): New
12907         predicates for wE/wS constraints.
12908         (xxspltib_constant_nosplit): Likewise.
12909         (easy_vector_constant): Add support for constants that can be
12910         loaded via XXSPLTIB.
12911         (all_ones_constant): New predicate for vector constant with all
12912         1's set.
12913         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12914         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12915         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12916         instruction and possibly with a sign extension.
12917         (output_vec_const_move): Add support for XXSPLTIB. If we are
12918         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12919         instead of XXLXOR/XXLORC.
12920         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12921         operations.
12922         (rs6000_legitimize_reload_address): Likewise.
12923         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12924         constants.
12925         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12926         combine VSX_M and VSX_M2 into one iterator.
12927         (VSX_M2): Likewise.
12928         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12929         (VSINT_842): Likewise.
12930         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12931         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12932         XXSPLTIB instruction.
12933         (xxspltib_<mode>_nosplit): Likewise.
12934         (xxspltib_<mode>_split): New insn to load up constants with
12935         XXSPLTIB and a sign extend instruction.
12936         (vsx_mov<mode>): Replace single move that handled all vector types
12937         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12938         moves (when -mvsx-timode is in effect) into the main vector
12939         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12940         preferred register class (<VSr>) is listed first, and the
12941         secondary register class (<VSa>) is listed second with a '?' to
12942         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12943         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12944         that if the register was involved in a slow operation, the
12945         clear/set operation does not wait for the slow operation to
12946         finish.  Adjust the length attributes for 32-bit mode.  Use
12947         rs6000_output_move_128bit and drop the use of the string
12948         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12949         spacing so that the alternatives and attributes don't generate
12950         long lines, and put things in columns, so that it is easier to
12951         match up the operands and attributes with the insn alternatives.
12952         (vsx_mov<mode>_64bit): Likewise.
12953         (vsx_mov<mode>_32bit): Likewise.
12954         (vsx_movti_64bit): Fold movti into normal vector moves.
12955         (vsx_movti_32bit): Likewise.
12956         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12957         splat instructions.
12958         (vsx_splat_v4si_internal): Likewise.
12959         (vsx_splat_v4sf_internal): Likewise.
12960         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12961         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12962         extend vector elements.
12963         (vsx_sign_extend_hi_<mode>): Likewise.
12964         (vsx_sign_extend_si_v2di): Likewise.
12965         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12966         declaration.
12967         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12968         constraints.  Add trailing period to wL documentation.
12970 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12972         PR middle-end/71020
12973         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12974         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12975         * tree-call-cdce.c: Include tree-dfa.h.
12976         (can_guard_call_p): New function, extracted from...
12977         (can_use_internal_fn): ...here.
12978         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12979         and return void.
12980         (shrink_wrap_one_built_in_call): Likewise.
12981         (use_internal_fn): Likewise.
12982         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12983         and return void.  Call replace_abnormal_ssa_names.
12984         (pass_call_cdce::execute): Check can_guard_call_p during the
12985         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12986         will always change something.
12988 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12990         PR ipa/70646
12991         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12992         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12994 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12996         PR ipa/70646
12997         * ipa-inline.h (condition): New field size.
12998         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12999         for comaprison and store it into the new condition.
13000         (evaluate_conditions_for_known_args): Use condition size to check
13001         access sizes for all but CHANGED conditions.
13002         (unmodified_parm_1): New parameter size_p, store access size into it.
13003         (unmodified_parm): Likewise.
13004         (unmodified_parm_or_parm_agg_item): Likewise.
13005         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
13006         (set_cond_stmt_execution_predicate): Extract access sizes and store
13007         them to conditions.
13008         (set_switch_stmt_execution_predicate): Likewise.
13009         (will_be_nonconstant_expr_predicate): Likewise.
13010         (will_be_nonconstant_predicate): Likewise.
13011         (inline_read_section): Stream condition size.
13012         (inline_write_summary): Likewise.
13014 2016-05-18  Richard Biener  <rguenther@suse.de>
13016         * tree-ssa-loop-im.c (determine_max_movement): Properly add
13017         condition cost to PHI cost instead of total_cost.
13019 2016-05-18  Martin Liska  <mliska@suse.cz>
13021         PR fortran/70856
13022         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
13023         merged variables.
13025 2016-05-18  Richard Biener  <rguenther@suse.de>
13027         * lto-streamer.h (LTO_major_version): Bump to 6.
13029 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13031         * function.c (make_split_prologue_seq, make_prologue_seq,
13032         make_epilogue_seq): New functions, factored out from...
13033         (thread_prologue_and_epilogue_insns): Here.
13035 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13037         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13038         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
13039         of before.  Add a comment.
13041 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
13043         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
13044         expression pointer, not pointer to the pointer.
13046 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
13048         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
13049         (avx2_pbroadcast<mode>): Add another alternative with v instead
13050         of x constraints in it, using <pbroadcast_evex_isa> isa.
13051         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
13053         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
13054         constraint x instead of v in second alternative, add avx512bw
13055         alternative.
13057         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
13058         constraint x instead of v in second alternative, add avx512bw
13059         alternative.
13061         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
13062         constraint x instead of v in second alternative, add avx512bw
13063         alternative.
13065         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
13066         avx512bw alternative.
13068 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13070         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
13071         array to 128 chars.
13072         (define_insn "*andnottf3"): Ditto.
13073         (define_insn "*<code><mode>3"/any_logic): Ditto.
13074         (define_insn "*<code>tf3"/any_logic): Ditto.
13075         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
13076         operand to block AVX-512VL insn variant emit when it is not enabled.
13078 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13080         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
13081         constraint fot SF mode.
13083 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
13084             Kirill Yukhin  <kirill.yukhin@intel.com>
13086         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
13087         modifiers.
13088         (define_insn "rsqrt14<mode>"): Ditto.
13089         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
13090         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13091         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
13092         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13093         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
13094         Ditto.
13095         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
13096         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13097         * config/i386/i386.c (ix86_print_operand): Expand check for size
13098         override codes for Intel syntax.
13100 2016-05-18  Richard Biener  <rguenther@suse.de>
13102         PR tree-optimization/71168
13103         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13104         initialization earlier.
13106 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
13108         * config/aarch64/aarch64-simd.md
13109         (aarch64_reduc_plus_internal<mode>): Rename to...
13110         (reduc_plus_scal): ...This, and remove previous implementation.
13112 2016-05-18  Richard Biener  <rguenther@suse.de>
13114         * passes.def: Put late dse and cd_dce in canonical order.
13116 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
13118         * ipa-inline-transform.c (preserve_function_body_p): Look for
13119         first non-thunk clone.
13120         (save_function_body): Save into first non-thunk.
13121         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13122         up call stmt id.
13123         (lto_output_node): Inline thunks don't need body in every
13124         partition.
13125         * lto-streamer-in.c: Do not fixup thunk clones.
13126         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13127         thunks.
13128         * tree-inline.c (copy_bb): Be prepared for target node to be new after
13129         folding suceeds.
13131 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13133         PR middle-end/63586
13134         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13135         (reassociate_bb): Call transform_add_to_multiply.
13137 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13139         * config/aarch64/aarch64.c (all_extensions): Removed unused
13140         static variable.
13142 2016-05-17  Nathan Sidwell  <nathan@acm.org>
13144         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13145         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13147 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
13149         PR tree-optimization/54579
13150         PR middle-end/55299
13151         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13153 2016-05-17  Marek Polacek  <polacek@redhat.com>
13155         PR ipa/71146
13156         * tree-inline.c (expand_call_inline): Call
13157         maybe_remove_unused_call_args.
13159 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
13161         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13162         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13163         * doc/md.texi (fmin@var{m}3): Likewise.
13165 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13167         * match.pd (X & C): New transformation.
13169 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13171         * match.pd (~X & Y): New transformation.
13173 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13175         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13176         information for new SSA_NAME.
13177         (simplify_conversion_using_ranges): Get range through get_range_info
13178         instead of get_value_range.
13180 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13182         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
13183         Remove inline assembly.
13184         (vmvn_s16): Likewise.
13185         (vmvn_s32): Likewise.
13186         (vmvn_u8): Likewise.
13187         (vmvn_u16): Likewise.
13188         (vmvn_u32): Likewise.
13189         (vmvnq_s8): Likewise.
13190         (vmvnq_s16): Likewise.
13191         (vmvnq_s32): Likewise.
13192         (vmvnq_u8): Likewise.
13193         (vmvnq_u16): Likewise.
13194         (vmvnq_u32): Likewise.
13195         (vmvn_p8): Likewise.
13196         (vmvnq_p16): Likewise.
13198 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13200         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
13201         Use builtin.
13202         (vmul_n_s16): Likewise.
13203         (vmul_n_s32): Likewise.
13204         (vmul_n_u16): Likewise.
13205         (vmul_n_u32): Likewise.
13206         (vmulq_n_f32): Likewise.
13207         (vmulq_n_f64): Likewise.
13208         (vmulq_n_s16): Likewise.
13209         (vmulq_n_s32): Likewise.
13210         (vmulq_n_u16): Likewise.
13211         (vmulq_n_u32): Likewise.
13213 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13215         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
13216         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
13218 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13220         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
13221         to *aarch64_fma4_elt_from_dup<mode>.
13222         (*aarch64_fnma4_elt_to_128df): Rename to
13223         *aarch64_fnma4_elt_from_dup<mode>.
13224         * config/aarch64/arm_neon.h (vfma_n_f64): New.
13225         (vfms_n_f32): Likewise.
13226         (vfms_n_f64): Likewise.
13227         (vfmsq_n_f32): Likewise.
13228         (vfmsq_n_f64): Likewise.
13230 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
13232         * wide-int.h: Change fixed_wide_int_storage from class to struct.
13234 2016-05-17  Richard Biener  <rguenther@suse.de>
13236         PR tree-optimization/71132
13237         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
13238         Only add control dependences for blocks in the loop.
13239         (build_rdg): Adjust.
13240         (generate_code_for_partition): Return whether loop should
13241         be destroyed and delay that.
13242         (distribute_loop): Likewise.
13243         (pass_loop_distribution::execute): Record loops to be destroyed
13244         and perform delayed destroying of loops.
13246 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13248         PR target/70809
13249         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
13251 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13253         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
13255 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
13257         PR target/71114
13258         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
13259         insertion point for instructions generated by validize_mem.
13261 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13263         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13264         in brackets.
13266 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13268         * config/aarch64/aarch64.c
13269         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13270         rather than a macro.
13272 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13274         * doc/invoke.texi (AArch64 Options): Various updates.
13276 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13278         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13279         into instrumentation thunks.
13280         * cif-code.def (CIF_CHKP): New.
13282 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
13284         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13286 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13288         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13289         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13291 2016-05-16  Marek Polacek  <polacek@redhat.com>
13293         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13294         commentary.
13296 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13298         PR hsa/70857
13299         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13300         the outlined kernel function.
13302 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13304         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13305         (ISA_HAS_DLSA): Ditto.
13307 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13309         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13311 2016-05-16  Nathan Sidwell  <nathan@acm.org>
13313         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13314         (nvptx_name_replacement): Restore.  Add comment.
13315         (write_fn_proto, write_fn_proto_from_insn,
13316         nvptx_output_call_insn): Restore
13317         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13319 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13321         * config/aarch64/aarch64.md
13322         (add<mode>3_compareC_cconly_imm): Remove use of %w.
13323         (add<mode>3_compareC_imm): Likewise.
13324         (<optab>si3_uxtw): Split into register and immediate variants.
13325         (andsi3_compare0_uxtw): Likewise.
13326         (and<mode>3_compare0): Likewise.
13327         (and<mode>3nr_compare0): Likewise.
13328         (stack_protect_test_<mode>): Don't use %x for memory operands.
13330 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13332         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
13334 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13336         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13337         Split integer shifts into shift_reg and bfm.
13338         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13339         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13340         (ror<mode>3_insn): Likewise.
13341         (<optab>si3_insn_uxtw): Likewise.
13342         (<optab><mode>3_insn): Change to rotate_imm.
13343         (extr<mode>5_insn_alt): Likewise.
13344         (extrsi5_insn_uxtw): Likewise.
13345         (extrsi5_insn_uxtw_alt): Likewise.
13347 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13349         * doc/tm.texi: Regenerate.
13350         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
13351         (TARGET_INVALID_RETURN_TYPE): Remove.
13352         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
13353         TARGET_INVALID_RETURN_TYPE.
13354         * target.def (invalid_parameter_type): Remove.
13355         (invalid_return_type): Remove.
13357 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13359         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
13360         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
13361         calls from thunk.
13362         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
13363         gimple body.
13364         (preserve_function_body_p): No need to preserve function body
13365         * cif-codes.def (CIF_THUNK): Remove.
13366         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
13368 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13370         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
13372 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13374         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
13375         for thunks.
13377 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13379         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
13380         (inline_small_functions): Do not look for function symbol when
13381         resetting caches.
13383 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13385         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
13386         of inline thunks
13388 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13389             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13390             Jiong Wang  <jiong.wang@arm.com>
13392         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
13393         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
13394         Define __ARM_FP16_ARGS when appropriate.
13395         * config/arm/arm.c (arm_invalid_parameter_type): Remove
13396         declaration.
13397         (arm_invalid_return_type): Likewise.
13398         (TARGET_INVALID_PARAMETER_TYPE): Remove.
13399         (TARGET_INVALID_RETURN_TYPE): Remove.
13400         (aapcs_vfp_sub_candidate): Allow HFmode.
13401         (aapcs_vfp_allocate): Add comment.  Support HFmode.
13402         (aapcs_vfp_allocate_return_reg): Likewise.
13403         (struct aapcs_cp_arg_layout): Slightly reword comments for
13404         is_return_candidate and allocate_return_reg.
13405         (output_mov_vfp): Update assert.
13406         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
13407         condition.
13408         (arm_invalid_parameter_type): Remove.
13409         (amr_invalid_return_type): Remove.
13410         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
13411         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
13412         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
13414 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13416         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13417         * config/aarch64/arch64-protos.h
13418         (aarch64_legitimize_reload_address): Remove.
13419         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
13420         Remove.
13422 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13424         * configure.ac: Add ACX_NONCANONICAL_HOST.
13425         * configure: Regenerate.
13426         * Makefile.in: Set host_noncanonical.
13428 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
13430         PR target/71097
13431         * config/i386/i386.md (*movtf_internal): Before register allocation,
13432         do not allow FP constants for CM_MEDIUM memory model, allow only
13433         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
13434         (*movxf_internal): Ditto.
13435         (*movdf_internal): Ditto.
13436         (*movsf_internal): Ditto.
13438 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13440         PR rtl-optimization/67483
13441         * combine.c (make_compound_operation): Don't call extract_left_shift
13442         with negative shift amounts.
13444 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
13446         PR bootstrap/71071
13447         * fold-const.c (fold_checksum_tree): Allow modification
13448         of TYPE_ALIAS_SET during folding.
13450         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
13451         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
13452         (ix86_split_to_parts): Likewise.  Fix up formatting.
13454 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13456         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
13457         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
13458         printf format.
13460 2016-05-13  Nathan Sidwell  <nathan@acm.org>
13462         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
13463         (nvptx_name_replacement): Delete.
13464         (write_fn_proto, write_fn_proto_from_insn,
13465         nvptx_output_call_insn): Remove nvptx_name_replacement call.
13466         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
13467         * langhooks.c (add_builtin_funcction_common): Call
13468         targetm.mangle_decl_assembler_name.
13470         * config/nvptx/nvptx.c (write_fn_proto): Handle
13471         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
13473 2016-05-13  Martin Liska  <mliska@suse.cz>
13475         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
13476         and PRIu64 in printf format.
13478 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13480         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
13481         comment.
13483 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13485         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13486         Change --param max-completely-peeled-times to
13487         --param max-completely-peel-times in dump file printing.
13489 2016-05-13  Richard Biener  <rguenther@suse.de>
13491         PR tree-optimization/42587
13492         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
13493         (find_bswap_or_nop_1): Likewise.
13494         (bswap_replace): Likewise.
13496 2016-05-13  Martin Liska  <mliska@suse.cz>
13498         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
13499         Initialize a variable with default value.
13501 2016-05-13  Martin Liska  <mliska@suse.cz>
13503         * doc/invoke.texi: Enhance explanation of error recovery
13504         of sanitizers.
13506 2016-05-13  Martin Liska  <mliska@suse.cz>
13508         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
13509         (struct cost_pair): Change inv_expr_id (int) to inv_expr
13510         (iv_inv_expr_ent *).
13511         (struct iv_inv_expr_ent): Comment struct fields.
13512         (sort_iv_inv_expr_ent): New function.
13513         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
13514         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
13515         a hash_map between iv_inv_expr_ent and number of usages.
13516         (niter_for_exit): Fix coding style.
13517         (tree_ssa_iv_optimize_init): Use renamed variable.
13518         (determine_base_object): Fix coding style.
13519         (alloc_iv): Likewise.
13520         (find_interesting_uses_outside): Likewise.
13521         (add_candidate_1): Likewise.
13522         (add_standard_iv_candidates): Likewise.
13523         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
13524         (prepare_decl_rtl): Fix coding style.
13525         (get_address_cost): Likewise.
13526         (get_shiftadd_cost): Likewise.
13527         (force_expr_to_var_cost): Likewise.
13528         (compare_aff_trees): Likewise.
13529         (get_expr_id): Restructure the function.
13530         (get_loop_invariant_expr_id): Renamed to
13531         get_loop_invariant_expr.
13532         (get_computation_cost_at): Replace usage of inv_expr_id with
13533         inv_expr.
13534         (get_computation_cost): Likewise.
13535         (determine_group_iv_cost_generic): Likewise.
13536         (determine_group_iv_cost_address): Likewise.
13537         (iv_period): Fix coding style.
13538         (iv_elimination_compare_lt): Likewise.
13539         (may_eliminate_iv): Likewise.
13540         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
13541         inv_expr.
13542         (determine_group_iv_costs): Dump invariant expressions.
13543         (iv_ca_recount_cost): Use the newly added hash_map.
13544         (iv_ca_set_remove_invariants): Fix coding style.
13545         (iv_ca_set_add_invariants): Fix coding style.
13546         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
13547         invariants.
13548         (iv_ca_set_cp): Likewise.
13549         (iv_ca_new): Initialize the newly added hash_map and remove
13550         initialization of fields.
13551         (iv_ca_free): Delete the hash_map.
13552         (iv_ca_dump): Dump invariant expressions.
13553         (iv_ca_extend): Fix coding style.
13554         (try_add_cand_for): Likewise.
13555         (create_new_ivs): Dump information about # of avg iterations and
13556         # of used invariant expressions.
13557         (rewrite_use_compare): Fix coding style.
13558         (free_loop_data): Set default value for max_inv_expr_id.
13560 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13562         * cse.c (rest_of_handle_cse): Use cleanup_cfg
13563         returned value cse_cfg_altered computation.
13564         (rest_of_handle_cse2): Likewise.
13565         (rest_of_handle_cse_after_global_opts): Likewise.
13567 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13569         PR target/53440
13570         * config/arm/arm.c (arm32_output_mi_thunk): New.
13571         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13572         to split Thumb1 vs TARGET_32BIT functionality.
13573         (arm_thumb1_mi_thunk): New.
13575 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13577         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13578         to true.
13580 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13582         PR target/71080
13583         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13585 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13587         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13588         (expand_builtin_trap): Emit a regular call.
13589         (set_builtin_user_assembler_name): Remove obsolete cases.
13590         * dse.c (scan_insn): Adjust.
13591         * except.c: Include calls.h.
13592         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13593         emit a regular call to setjmp.
13594         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13595         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13596         (emit_block_move_via_libcall): Delete.
13597         (block_move_fn): Delete.
13598         (init_block_move_fn): Likewise.
13599         (emit_block_move_libcall_fn): Likewise.
13600         (emit_block_op_via_libcall): New function.
13601         (set_storage_via_libcall): Tidy up and use memset builtin.
13602         (block_clear_fn): Delete.
13603         (init_block_clear_fn): Likewise.
13604         (clear_storage_libcall_fn): Likewise.
13605         (expand_assignment): Call emit_block_move_via_libcall.
13606         Do not include gt-expr.h.
13607         * expr.h (emit_block_op_via_libcall): Declare.
13608         (emit_block_copy_via_libcall): New inline function.
13609         (emit_block_move_via_libcall): Likewise.
13610         (emit_block_comp_via_libcall): Likewise.
13611         (block_clear_fn): Delete.
13612         (init_block_move_fn): Likewise.
13613         (init_block_clear_fn): Likewise.
13614         (emit_block_move_via_libcall): Likewise.
13615         (set_storage_via_libcall): Add default parameter value.
13616         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13617         (abort_libfunc): Delete.
13618         (memcpy_libfunc): Likewise.
13619         (memmove_libfunc): Likewise.
13620         (memcmp_libfunc): Likewise.
13621         (memset_libfunc): Likewise.
13622         (setbits_libfunc): Likewise.
13623         (setjmp_libfunc): Likewise.
13624         (longjmp_libfunc): Likewise.
13625         (profile_function_entry_libfunc): Likewise.
13626         (profile_function_exit_libfunc): Likewise.
13627         (gcov_flush_libfunc): Likewise.
13628         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13629         and DECL_VISIBILITY on the declaration.
13630         (init_optabs): Do not initialize obsolete libfuncs.
13631         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13632         * tree-core.h (ECF_RET1): Define.
13633         (ECF_TM_PURE): Adjust.
13634         (ECF_TM_BUILTIN): Likewise.
13635         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13636         (build_common_builtin_nodes): Initialize abort builtin.
13637         Add ECF_RET1 on memcpy, memmove and memset builtins.
13638         Pass final flags for alloca and alloca_with_align builtins.
13639         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13640         obsolete builtins.
13641         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13642         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13643         set_storage_via_libcall and call emit_block_copy_via_libcall.
13645 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13647         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13648         DImode before it is passed to ix86_output_call_operand.
13649         (*call_value_got_x32): Ditto for operand 1.
13651 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13653         PR rtl-optimization/70904
13654         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13655         reload for wide mode.
13657 2016-05-12  Marek Polacek  <polacek@redhat.com>
13659         PR c/70756
13660         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13661         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13662         * langhooks.h (incomplete_type_error): Likewise.
13663         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13664         parameter, pass it down to incomplete_type_error.
13665         * tree.h (size_in_bytes): New inline overload.
13666         (size_in_bytes_loc): Renamed from size_in_bytes.
13668 2016-05-12  Richard Biener  <rguenther@suse.de>
13670         PR tree-optimization/71059
13671         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13672         nary before looking up or entering the expression into the VN
13673         hashes.
13674         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13675         Make sure to re-use NARYs without result as inserted by
13676         phi-translation.
13678 2016-05-12  Richard Biener  <rguenther@suse.de>
13680         PR tree-optimization/71062
13681         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13682         field.
13683         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13684         vars_contains_restrict if the var is a restrict tag.
13685         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13686         do not disambiguate pointers against it.
13687         (dump_points_to_solution): Re-structure and adjust for new
13688         vars_contains_restrict flag.
13689         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13691 2016-05-12  Martin Liska  <mliska@suse.cz>
13693         * doc/invoke.texi: Explain connection between
13694         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13696 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13698         PR tree-optimization/71006
13699         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13700         consider COND_EXPR as a mask producer.
13702 2016-05-12  Marek Polacek  <polacek@redhat.com>
13704         PR driver/71063
13705         * opts.c (common_handle_option): Detect missing argument for --help^.
13707 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13709         PR target/70830
13710         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13711         when popping the PC and within an interrupt handler routine.
13712         Add missing tab to output of "ldmfd".
13713         (output_return_instruction): Output LDMFD with SP update rather
13714         than POP when returning from interrupt handler.
13716 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13718         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13719         TARGET_64BIT && TARGET_AVX512DQ.
13720         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13721         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13722         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13723         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13724         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13725         (*vec_extractv4si_zext): Add avx512dq alternative.
13726         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13727         use v instead of x constraint in other alternatives where possible.
13729         * config/i386/sse.md (sse2_loadld): Use v instead of x
13730         constraint in alternatives 0,1,4.
13732         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13733         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13734         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13736         PR target/71019
13737         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13738         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13739         is not emitted unless TARGET_AVX512BW.
13740         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13741         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13742         for the result operand.
13744         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13745         constraint instead of x in avx alternatives.  Use maybe_evex instead
13746         of vex prefix.
13748         * config/i386/constraints.md (Yv): New constraint.
13749         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13750         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13751         * config/i386/i386.md (avx512fvecmode): New mode attr.
13752         (*pushtf): Use v constraint instead of x.
13753         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13754         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13755         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13756         (*absnegtf2_sse): Likewise.
13757         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13758         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13759         avx512f alternatives.
13760         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13762 2016-05-12  Richard Biener  <rguenther@suse.de>
13764         PR tree-optimization/71060
13765         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13766         require exact match of DR_BASE_OBJECT but only matching address and
13767         type.
13769 2016-05-12  Richard Biener  <rguenther@suse.de>
13771         PR tree-optimization/70986
13772         * cfganal.c: Include cfgloop.h.
13773         (dfs_find_deadend): Prefer to take edges exiting loops.
13775 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13777         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13778         compile and run time.
13780 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13782         PR c/43651
13783         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13785 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13787         * config/i386/i386.c (legitimize_pic_address): Use
13788         copy_to_suggested_reg instead of gen_movsi.
13790 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13792         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13793         the code into quad_address_p and call it to share code with
13794         vsx_quad_dform_memory_operand.
13795         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13796         d-form support.
13797         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13798         bit instead of being a separate word.  Split -mpower9-dform into
13799         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13800         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13801         for the register class supporting 128-bit quad word memory offsets.
13802         (mode_supports_vsx_dform_quad): Helper function to return if the
13803         register class uses quad word memory offsets.
13804         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13805         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13806         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13807         instructions are enabled, set up the appropriate addr_masks for
13808         128-bit types.
13809         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13810         -mpower9-dform-scalar, instead of -mpower9-dform.
13811         (rs6000_option_override_internal): Split -mpower9-dform into two
13812         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13813         -mpower9-dform switch sets or clears both.  If we are not using
13814         the LRA register allocator, do not enable -mpower9-dform-vector by
13815         default.  If we are using LRA, enable -mpower9-dform-vector and
13816         -mvsx-timode if it is appropriate.  Issue a warning if either
13817         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13818         enabling LRA.
13819         (quad_address_offset_p): New helper function to return if the
13820         offset is legal for quad word memory instructions.
13821         (quad_address_p): New function to determin if GPR or vector
13822         register quad word memory addresses are legal.
13823         (mem_operand_gpr): Validate quad word address offsets.
13824         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13825         d-form (register + offset) instructions.
13826         (offsettable_ok_by_alignment): Likewise.
13827         (rs6000_legitimate_offset_address_p): Likewise.
13828         (legitimate_lo_sum_address_p): Likewise.
13829         (rs6000_legitimize_address): Likewise.
13830         (rs6000_legitimize_reload_address): Add more debug statements for
13831         -mdebug=addr.
13832         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13833         d-form instructions.
13834         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13835         d-form instructions.  Distinguish different cases in debug
13836         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13837         d-form instructions.
13838         (rs6000_preferred_reload_class): Likewise.
13839         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13840         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13841         of the ISA 2.06 indexed memory instructions.
13842         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13843         use them to save/restore the saved vector registers instead of
13844         using Altivec instructions.
13845         (rs6000_emit_epilogue): Likewise.
13846         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13847         (rs6000_opt_masks): Split -mpower9-dform into
13848         -mpower9-dform-scalar and -mpower9-dform-vector.
13849         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13850         was not selected.
13851         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13852         ISA 3.0 vector indexed memory instructions, and fold the code into
13853         the normal mov<mode> patterns.
13854         (p9_vecstore_<mode>): Likewise.
13855         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13856         instructions.
13857         (vsx_movti_64bit): Likewise.
13858         (vsx_movti_32bit): Likewise.
13859         * config/rs6000/constraints.md (wO constraint): New constraint for
13860         ISA 3.0 vector d-form support.
13861         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13862         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13863         include -mpower9-dform-vector until we switch over to LRA.
13864         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13865         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13866         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13867         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13868         for -mpower9-dform and -mlra.
13869         * doc/md.texi (wO constraint): Document wO constraint.
13871 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13873         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13874         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13875         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13876         Move handling of non-insn arguments inline into the sole user:
13877         (output_trans_func): ...here.
13878         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13879         in emitted function prototype.
13880         (output_internal_insn_latency_func): Ditto.  Simplify.
13881         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13882         always-unused argument.
13883         (output_insn_latency_func): Ditto.
13884         (output_maximal_insn_latency_func): Ditto.
13886 2016-05-11  Richard Biener  <rguenther@suse.de>
13888         PR tree-optimization/71055
13889         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13890         sth with precision not equal to access size verify we don't chop
13891         off bits.
13893 2016-05-11  Richard Biener  <rguenther@suse.de>
13895         PR debug/71057
13896         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13897         (dwarf2out_finish): Move retry_incomplete_types call ...
13898         (dwarf2out_early_finish): ... here.
13900 2016-05-11  Richard Biener  <rguenther@suse.de>
13902         PR middle-end/71002
13903         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13904         if the langhook insists on it.
13905         * fold-const.c (make_bit_field_ref): Add arg for the original
13906         reference and preserve its alias-set.
13907         (decode_field_reference): Take exp by reference and adjust it
13908         to the original memory reference.
13909         (optimize_bit_field_compare): Adjust callers.
13910         (fold_truth_andor_1): Likewise.
13911         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13913 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13915         PR middle-end/70807
13916         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13917         * cfgrtl.c (delete_insn_and_edges): Likewise.
13918         * config/i386/i386.c (convert_scalars_to_vector): Remove
13919         redundant code.
13920         * cse.c (cse_insn): Compute cse_cfg_altered.
13921         (delete_trivially_dead_insns): Likewise.
13922         (cse_cc_succs): Likewise.
13923         (rest_of_handle_cse): Free dominance info if required.
13924         (rest_of_handle_cse2): Likewise.
13925         (rest_of_handle_cse_after_global_opts): Likewise.
13927 2016-05-11  Alan Modra  <amodra@gmail.com>
13929         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13930         abi_v4_pass_in_fpr): New functions.
13931         (rs6000_function_arg_boundary): Exclude complex IBM long double
13932         from 64-bit alignment when ABI_V4.
13933         (rs6000_function_arg, rs6000_function_arg_advance_1,
13934         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13936 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13938         PR rtl-optimization/71028
13939         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13940         jump with just a return in the fallthrough block if the branch
13941         block contains just a return as well.
13943 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13945         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13946         * match.pd ((X & Y) ^ Y): ... this.
13947         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13948         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13950 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13952         * read-md.c (require_char_ws): New function.
13953         (read_string): Simplify using require_char_ws.
13954         (handle_constants): Likewise.
13955         (handle_enum): Likewise.
13956         (handle_file): Likewise.
13957         * read-md.h (require_char_ws): New declaration.
13958         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13959         (read_mapping): Likewise.
13960         (read_rtx_code): Likewise.
13961         (read_nested_rtx): Likewise.
13963 2016-05-10  James Norris  <jnorris@codesourcery.com>
13965         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13966         if offloading is enabled and -fopenacc or -fopenmp is specified.
13967         (CRTOFFLOADEND): Likewise.
13968         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13969         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13971 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13973         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13974         gotoff_operand code paths.  Use copy_to_suggested_regs and
13975         expand_simple_binop where appropriate.  Cleanup.
13977 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13979         PR target/70799
13980         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13981         integer constants.
13982         (dimode_scalar_chain::vector_const_cost): New.
13983         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13984         (dimode_scalar_chain::convert_op): Likewise.
13985         (dimode_scalar_chain::convert_insn): Likewise.
13987 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13989         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13990         unary operation, not a binary one.
13992 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13994         PR middle-end/70877
13995         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13996         calls with type casted fndecl.
13998 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14000         PR tree-optimization/70786
14001         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
14002         * calls.c (initialize_argument_information): Bind bounds
14003         with corresponding args passed by reference.
14005 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
14007         PR target/70927
14008         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
14009         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
14010         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
14011         accordingly.
14013 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14015         PR target/70963
14016         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
14017         code for a zero scale factor.
14018         (vsx_xvcvdpuxds_scale): Likewise.
14020 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
14022         * diagnostic-show-locus.c (layout::layout): Call show_ruler
14023         if show_ruler_p was set on the context.
14024         (layout::show_ruler): New method.
14025         * diagnostic.h (struct diagnostic_context): Add field
14026         "show_ruler_p".
14028 2016-05-10  Richard Biener  <rguenther@suse.de>
14030         PR tree-optimization/71039
14031         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
14032         (chk_uses): New function.
14033         (propagate_with_phi): Verify we can safely replicate the lhs of an
14034         aggregate assignment on all incoming edges.
14036 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
14038         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
14039         Forward declare.
14040         (rx_atomic_sequence): New class.
14041         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
14042         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
14043         non-inline.
14044         (rx_atomic_sequence::rx_atomic_sequence,
14045         rx_atomic_sequence::~rx_atomic_sequence): New functions.
14046         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
14047         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
14048         CTRLREG_INTB): New constants.
14049         (FETCHOP): New code iterator.
14050         (fethcop_name, fetchop_name2): New iterator code attributes.
14051         (QIHI): New mode iterator.
14052         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
14053         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
14054         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
14056 2016-05-10  Martin Liska  <mliska@suse.cz>
14058         * tree-inline.c (remap_dependence_clique): Do not remap
14059         debugging statements.
14061 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14063         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
14064         ("*fixuns_truncdfdi2_z13")
14065         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
14066         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
14067         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
14069 2016-05-10  Richard Biener  <rguenther@suse.de>
14071         PR tree-optimization/70497
14072         PR tree-optimization/28367
14073         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
14074         split out from ...
14075         (visit_reference_op_load): ... here.
14076         (vn_reference_lookup_3): Use it to handle subreg-like accesses
14077         with simplified BIT_FIELD_REFs.
14078         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
14079         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
14080         correctly.
14082 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
14084         * dwarf2out.c (add_abstract_origin_attribute): Adjust
14085         documentation comment.  For BLOCK nodes, add a
14086         DW_AT_abstract_origin attribute that points to the DIE generated
14087         for the origin BLOCK.
14088         (gen_lexical_block_die): Call add_abstract_origin_attribute for
14089         blocks from inlined functions.
14091 2016-05-10  Alan Modra  <amodra@gmail.com>
14093         PR target/70947
14094         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
14095         regrename modifying insns saving lr before __morestack call.
14096         * config/rs6000/rs6000.md (split_stack_return): Similarly for
14097         insns restoring lr after __morestack call.
14099 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
14101         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14102         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14103         expanders.
14104         * config/i386/sse.md (vec_interleave_high<mode>,
14105         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14106         <avx512>_vpermt2var<mode>3_maskz): Likewise.
14108 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14110         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14111         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14112         parallel reassociation for power8 and forward.
14114 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
14116         * config/i386/i386.md (absneg splitters with general regs): Use
14117         general_reg_operand predicate.
14118         (btsq peephole2): Use x86_64_immediate_operand to check if new
14119         value is suitable for immediate operand.  Generate emitted insn
14120         using RTL expressions.
14121         (btcq peephole2): Ditto.
14122         (btrq peephole2): Ditto.  Generate correct immediate operand
14123         for AND masking.
14125 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14127         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14128         bitpos.
14130 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14132         * tree-affine.c (wide_int_constant_multiple_p): Add missing
14133         pointer dereference.
14135 2016-05-09  Richard Biener  <rguenther@suse.de>
14137         PR tree-optimization/70985
14138         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14139         op0 isn't a gimple register.
14141 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
14143         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14144         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14145         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14146         (i6400_fpu_mult): New cpu units.
14147         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14148         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14149         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14150         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14151         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14152         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14153         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14154         (i6400_msa_long_float4, i6400_msa_long_float5)
14155         (i6400_msa_long_float8, i6400_msa_fdiv_df)
14156         (i6400_msa_fdiv_sf): New reservations.
14157         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14158         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14159         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14160         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14161         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14162         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14163         (msa_short_cmp, msa_short_float2, msa_short_logic3)
14164         (msa_short_store4, msa_long_load, msa_short_store)
14165         (msa_long_logic, msa_long_float2, msa_long_float4)
14166         (msa_long_float5, msa_long_float8, msa_long_mult)
14167         (msa_long_fdiv, msa_long_div): New reservations.
14169 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
14170             Sameera Deshpande  <sameera.deshpande@imgtec.com>
14171             Matthew Fortune  <matthew.fortune@imgtec.com>
14172             Graham Stott  <graham.stott@imgtec.com>
14173             Chao-ying Fu  <chao-ying.fu@imgtec.com>
14175         * config.gcc: Add MSA header file for mips*-*-* target.
14176         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14177         (Ubv8i, Urv8):  New constraints.
14178         * config/mips/mips-ftypes.def: Add function types for MSA
14179         builtins.
14180         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14181         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
14182         * config/mips/mips-msa.md: New file.
14183         * config/mips/mips-protos.h
14184         (mips_split_128bit_const_insns): New prototype.
14185         (mips_msa_idiv_insns): Likewise.
14186         (mips_split_128bit_move): Likewise.
14187         (mips_split_128bit_move_p): Likewise.
14188         (mips_split_msa_copy_d): Likewise.
14189         (mips_split_msa_insert_d): Likewise.
14190         (mips_split_msa_fill_d): Likewise.
14191         (mips_expand_msa_branch): Likewise.
14192         (mips_const_vector_same_val_p): Likewise.
14193         (mips_const_vector_same_bytes_p): Likewise.
14194         (mips_const_vector_same_int_p): Likewise.
14195         (mips_const_vector_shuffle_set_p): Likewise.
14196         (mips_const_vector_bitimm_set_p): Likewise.
14197         (mips_const_vector_bitimm_clr_p): Likewise.
14198         (mips_msa_vec_parallel_const_half): Likewise.
14199         (mips_msa_output_division): Likewise.
14200         (mips_ldst_scaled_shift): Likewise.
14201         (mips_expand_vec_cond_expr): Likewise.
14202         * config/mips/mips.c (enum mips_builtin_type): Add
14203         MIPS_BUILTIN_MSA_TEST_BRANCH.
14204         (mips_gen_const_int_vector_shuffle): New prototype.
14205         (mips_const_vector_bitimm_set_p): New function.
14206         (mips_const_vector_bitimm_clr_p): Likewise.
14207         (mips_const_vector_same_val_p): Likewise.
14208         (mips_const_vector_same_bytes_p): Likewise.
14209         (mips_const_vector_same_int_p): Likewise.
14210         (mips_const_vector_shuffle_set_p): Likewise.
14211         (mips_symbol_insns): Forbid loading symbols via immediate for
14212         MSA.
14213         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
14214         stores.
14215         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
14216         MSA.
14217         (mips_lx_address_p): Add support load indexed address for MSA.
14218         (mips_address_insns): Add calculation of instructions needed for
14219         stores and loads for MSA.
14220         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
14221         CONST_VECTOR for MSA and let it fall through.
14222         (mips_ldst_scaled_shift): New function.
14223         (mips_subword_at_byte): Likewise.
14224         (mips_msa_idiv_insns): Likewise.
14225         (mips_legitimize_move): Validate MSA moves.
14226         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
14227         calculation of costs for MSA division.
14228         (mips_split_move_p): Check if MSA moves need splitting.
14229         (mips_split_move): Split MSA moves if necessary.
14230         (mips_split_128bit_move_p): New function.
14231         (mips_split_128bit_move): Likewise.
14232         (mips_split_msa_copy_d): Likewise.
14233         (mips_split_msa_insert_d): Likewise.
14234         (mips_split_msa_fill_d): Likewise.
14235         (mips_output_move): Handle MSA moves.
14236         (mips_expand_msa_branch): New function.
14237         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
14238         Reinstate 'y' modifier.
14239         (mips_file_start): Add MSA .gnu_attribute.
14240         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
14241         FPRs.
14242         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
14243         (mips_class_max_nregs): Add register size for MSA supported mode.
14244         (mips_cannot_change_mode_class): Allow conversion between MSA
14245         vector modes and TImode.
14246         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
14247         instruction.
14248         (mips_secondary_reload_class): Force MSA loads/stores via memory.
14249         (mips_preferred_simd_mode): Add preffered modes for MSA.
14250         (mips_vector_mode_supported_p): Add MSA supported modes.
14251         (mips_autovectorize_vector_sizes): New function.
14252         (mips_msa_output_division): Likewise.
14253         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
14254         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
14255         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
14256         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
14257         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
14258         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
14259         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14260         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14261         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14262         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14263         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
14264         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
14265         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
14266         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
14267         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14268         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14269         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14270         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14271         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14272         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14273         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14274         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14275         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14276         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14277         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14278         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14279         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14280         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14281         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14282         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14283         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14284         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14285         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14286         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14287         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14288         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14289         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14290         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14291         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14292         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14293         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14294         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14295         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14296         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14297         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14298         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14299         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14300         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14301         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14302         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14303         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14304         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14305         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14306         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14307         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14308         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14309         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14310         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14311         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14312         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14313         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14314         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14315         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14316         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14317         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14318         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14319         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14320         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14321         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
14322         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
14323         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
14324         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
14325         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
14326         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
14327         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
14328         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
14329         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
14330         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
14331         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
14332         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
14333         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
14334         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
14335         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
14336         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
14337         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
14338         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
14339         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
14340         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
14341         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
14342         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
14343         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
14344         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
14345         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
14346         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
14347         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
14348         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
14349         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
14350         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
14351         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
14352         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
14353         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
14354         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
14355         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
14356         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
14357         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
14358         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
14359         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
14360         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
14361         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
14362         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
14363         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
14364         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
14365         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
14366         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
14367         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
14368         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
14369         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
14370         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
14371         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
14372         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
14373         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
14374         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
14375         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
14376         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
14377         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
14378         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
14379         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
14380         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
14381         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
14382         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
14383         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
14384         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
14385         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
14386         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
14387         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
14388         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
14389         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
14390         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
14391         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
14392         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
14393         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
14394         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
14395         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
14396         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
14397         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
14398         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
14399         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
14400         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
14401         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
14402         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
14403         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
14404         move_v builtins.
14405         (mips_get_builtin_decl_index): New array.
14406         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
14407         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
14408         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
14409         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
14410         (mips_init_builtins): Initialize mips_get_builtin_decl_index
14411         array.
14412         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14413         hook.
14414         (mips_expand_builtin_insn): Prepare operands for
14415         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
14416         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
14417         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
14418         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
14419         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
14420         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
14421         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
14422         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
14423         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
14424         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
14425         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
14426         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
14427         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
14428         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
14429         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
14430         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
14431         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
14432         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
14433         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
14434         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
14435         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
14436         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
14437         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
14438         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
14439         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
14440         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
14441         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
14442         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
14443         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
14444         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
14445         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
14446         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
14447         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
14448         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
14449         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
14450         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
14451         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
14452         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
14453         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
14454         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
14455         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
14456         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
14457         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
14458         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
14459         These are set implicitly and an error is reported if overridden.
14460         (mips_expand_builtin_msa_test_branch): New function.
14461         (mips_expand_msa_shuffle): Likewise.
14462         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
14463         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
14464         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
14465         (mips_expand_vec_unpack): Add support for MSA.
14466         (mips_expand_vector_init): Likewise.
14467         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
14468         instead of const0_rtx.
14469         (mips_msa_vec_parallel_const_half): New function.
14470         (mips_gen_const_int_vector): Likewise.
14471         (mips_gen_const_int_vector_shuffle): Likewise.
14472         (mips_expand_msa_cmp): Likewise.
14473         (mips_expand_vec_cond_expr): Likewise.
14474         * config/mips/mips.h
14475         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
14476         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
14477         specified.
14478         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
14479         (ISA_HAS_MSA): New macro.
14480         (UNITS_PER_MSA_REG): Likewise.
14481         (BITS_PER_MSA_REG): Likewise.
14482         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
14483         (MSA_REG_FIRST): New macro.
14484         (MSA_REG_LAST): Likewise.
14485         (MSA_REG_NUM): Likewise.
14486         (MSA_REG_P): Likewise.
14487         (MSA_REG_RTX_P): Likewise.
14488         (MSA_SUPPORTED_MODE_P): Likewise.
14489         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
14490         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
14491         * config/mips/mips.md: Include mips-msa.md.
14492         (alu_type): Add simd_add.
14493         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
14494         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
14495         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
14496         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
14497         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
14498         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
14499         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
14500         simd_move, simd_load, simd_store.  Choose "multi" for moves
14501         for "qword_mode".
14502         (qword_mode): New attribute.
14503         (insn_count): Add instruction count for quad moves.
14504         Increase the count for MIPS SIMD division.
14505         (UNITMODE): Add UNITMODEs for vector types.
14506         (addsub): New code iterator.
14507         * config/mips/mips.opt (mmsa): New option.
14508         * config/mips/msa.h: New file.
14509         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
14510         specified.
14511         * config/mips/mti-linux.h: Likewise.
14512         * config/mips/predicates.md
14513         (const_msa_branch_operand): New constraint.
14514         (const_uimm3_operand): Likewise.
14515         (const_uimm4_operand): Likewise.
14516         (const_uimm5_operand): Likewise.
14517         (const_uimm8_operand): Likewise.
14518         (const_imm5_operand): Likewise.
14519         (aq10b_operand): Likewise.
14520         (aq10h_operand): Likewise.
14521         (aq10w_operand): Likewise.
14522         (aq10d_operand): Likewise.
14523         (const_m1_operand): Likewise.
14524         (reg_or_m1_operand): Likewise.
14525         (const_exp_2_operand): Likewise.
14526         (const_exp_4_operand): Likewise.
14527         (const_exp_8_operand): Likewise.
14528         (const_exp_16_operand): Likewise.
14529         (const_vector_same_val_operand): Likewise.
14530         (const_vector_same_simm5_operand): Likewise.
14531         (const_vector_same_uimm5_operand): Likewise.
14532         (const_vector_same_uimm6_operand): Likewise.
14533         (const_vector_same_uimm8_operand): Likewise.
14534         (par_const_vector_shf_set_operand): Likewise.
14535         (reg_or_vector_same_val_operand): Likewise.
14536         (reg_or_vector_same_simm5_operand): Likewise.
14537         (reg_or_vector_same_uimm6_operand): Likewise.
14538         * doc/extend.texi (MIPS SIMD Architecture Functions): New
14539         section.
14540         * doc/invoke.texi (-mmsa): Document new option.
14542 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14544         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
14545         * configure: Regenerate.
14546         * config.in: Regenerate.
14547         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
14548         on -fvtable-verify.
14549         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14550         (ENDFILE_VTV_SPEC): Define.
14552 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
14554         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14555         registers in all interrupt handlers if necessary.
14556         (rl78_option_override): Add warning.
14557         (MUST_SAVE_MDUC_REGISTERS): New macro.
14558         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14559         * config/rl78/rl78.c (check_mduc_usage): New function.
14560         (mduc_regs): New structure to hold MDUC register data.
14561         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14562         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14563         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14564         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14565         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14566         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14568 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14570         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14571         (tree-ssa-loop-niter.h): Ditto.
14572         (idx_within_array_bound, ref_within_array_bound): New functions.
14573         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14574         Factor out check on writable base object to ...
14575         (base_object_writable): ... here.
14577 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14579         * config/arm/arm.md (probe_stack): Add modes to set source
14580         and destination.
14582 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14584         * regrename.c (base_reg_class_for_rename): New static function.
14585         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14587 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14589         * cgraph.c (thunk_adjust): Export.
14590         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14591         * cgraphunit.c (thunk_adjust): Export.
14592         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14593         thunks.
14594         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14595         inlinable.
14596         * tree-inline.c (expand_call_inline): Expand thunks inline.
14598 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14600         PR target/70998
14601         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14602         (*sse2_vd_cvtss2sd): Ditto.
14603         * config/i386/i386.md
14604         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14605         Generate *sse2_vd_cvtsd2ss pattern.
14606         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14607         Generate *sse2_vd_cvtss2sd pattern.
14609 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14611         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14612         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14613         users.
14615 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14617         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14618         * config/sh/sh.c: Define and declare variables on first use throughout
14619         the file.
14620         (current_function_interrupt): Change to bool type.
14621         (frame_insn): Rename to emit_frame_insn and update users.
14622         (push_regs): Use bool for 'interrupt_handler' argument.
14623         (save_schedule_s): Remove.
14624         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14625         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14626         targetm.asm_out.unaligned_op.di.
14627         (gen_far_branch): Remove redundant forward declaration.
14628         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14629         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14630         (sh_set_return_address, sh_function_ok_for_sibcall,
14631         scavenge_reg): Update comments.
14632         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14633         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14634         (sh_attr_renesas_p): Remove unnecessary parentheses.
14635         (branch_dest): Simplify.
14636         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14637         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14638         (CUMULATIVE_ARGS): Change macro to typedef.
14639         (current_function_interrupt): Change to bool type.
14640         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14641         Surround with __cplusplus ifdef.
14642         (sh_compare_op0, sh_compare_op1): Remove.
14643         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14645 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14647         * config/arm/arm.md: (arch): Add neon.
14648         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14649         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14650         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14651         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14652         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14653         (thumb2_movdf_vfp): Likewise.
14655 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14657         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14658         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14659         (*andqi_1): Add preferred_for_speed attribute to disparage
14660         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14661         (*<code>qi_1): Ditto.
14662         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14663         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14664         (*ashlqi3_1): Ditto.
14665         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14666         Add preferred_for_size attribute to disparage alternative 0 and
14667         preferred_for_speed attribute to disparage alternative 1 for
14668         TARGET_PARTIAL_REG_STALL targets.
14670 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14672         PR tree-optimization/70956
14673         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14674         def.
14676 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14678         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14679         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14680         * config/sh/sh.md (branch_zero): Remove define_attr.
14681         (define_delay): Disable delay slot if branch distance is one insn.
14683 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14685         * config/i386/i386.md (LEAMODE): New mode attribute.
14686         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14687         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14688         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14689         operand 2 predicate.
14690         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14691         (*lea<mode>_general_3): Ditto.
14692         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14694 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14696         * genmddump.c (main): Convert argv from char ** to const char **.
14698 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14700         * coretypes.h (OVERRIDE): New macro.
14701         (FINAL): New macro.
14703 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14705         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14706         allow coalescing if the types are compatible.
14708 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14710         * pass_manager.h (pass_manager::register_pass_name): New method.
14711         (pass_manager::get_pass_by_name): New method.
14712         (pass_manager::create_pass_tab): New method.
14713         (pass_manager::m_name_to_pass_map): New field.
14714         * passes.c (name_to_pass_map): Delete global in favor of field
14715         "m_name_to_pass_map" of pass_manager.
14716         (register_pass_name): Rename from a function to...
14717         (pass_manager::register_pass_name): ...this method, updating
14718         for renaming of global "name_to_pass_map" to field
14719         "m_name_to_pass_map".
14720         (create_pass_tab): Rename from a function to...
14721         (pass_manager::create_pass_tab): ...this method, updating
14722         for renaming of global "name_to_pass_map" to field.
14723         (get_pass_by_name): Rename from a function to...
14724         (pass_manager::get_pass_by_name): ...this method.
14725         (enable_disable_pass): Convert use of get_pass_by_name to
14726         a method call, locating the pass_manager singleton.
14728 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14730         * genattr-common.c (main): Convert argv from char ** to const char **.
14731         * genattr.c (main): Likewise.
14732         * genattrtab.c (main): Likewise.
14733         * genautomata.c (initiate_automaton_gen): Likewise.
14734         (main): Likewise.
14735         * gencodes.c (main): Likewise.
14736         * genconditions.c (main): Likewise.
14737         * genconfig.c (main): Likewise.
14738         * genconstants.c (main): Likewise.
14739         * genemit.c (main): Likewise.
14740         * genenums.c (main): Likewise.
14741         * genextract.c (main): Likewise.
14742         * genflags.c (main): Likewise.
14743         * genmddeps.c (main): Likewise.
14744         * genopinit.c (main): Likewise.
14745         * genoutput.c (main): Likewise.
14746         * genpeep.c (main): Likewise.
14747         * genpreds.c (main): Likewise.
14748         * genrecog.c (main): Likewise.
14749         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14750         (init_rtx_reader_args): Likewise.
14751         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14752         (init_rtx_reader_args): Likewise.
14753         * gentarget-def.c (main): Likewise.
14754         * read-md.c (read_md_files): Likewise.
14755         * read-md.h (read_md_files): Likewise.
14757 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14759         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14760         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14761         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14762         Remove unused predicate.
14763         (register_and_not_fp_reg_operand): Ditto.
14765 2016-05-06  Martin Liska  <mliska@suse.cz>
14767         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14768         instead of vec as the vector is local to the function.
14770 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14772         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14773         avx512bw alternative.
14775         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14776         before the ashr<mode>3 pattern.
14778         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14779         v instead of x in vex or maybe_vex alternatives, use
14780         maybe_evex instead of vex in prefix.
14782         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14783         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14784         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14785         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14786         in prefix.
14788         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14789         v instead of x in vex or maybe_vex alternatives, use
14790         maybe_evex instead of vex in prefix.
14792         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14793         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14794         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14795         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14796         alternatives, use maybe_evex instead of vex in prefix.
14798         * config/i386/sse.md (vec_interleave_lowv4sf,
14799         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14800         v instead of x in vex or maybe_vex alternatives, use
14801         maybe_evex instead of vex in prefix.
14803         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14804         v instead of x in vex or maybe_vex alternatives, use
14805         maybe_evex instead of vex in prefix.
14807         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14808         v constraint instead of x.
14810 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14812         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14813         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14814         equality first.
14816 2016-05-06  Richard Biener  <rguenther@suse.de>
14818         PR tree-optimization/70948
14819         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14820         Properly clobber all fields of va_list for __builtin_va_start.
14822 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14824         PR debug/70935
14825         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14826         loop latch destination.
14828 2016-05-06  Martin Liska  <mliska@suse.cz>
14830         * tree-ssa-uninit.c: Apply manual changes
14831         to the GNU coding style.
14832         (prune_uninit_phi_opnds): Rename from
14833         prune_uninit_phi_opnds_in_unrealizable_paths.
14835 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14837         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14838         mspace): Remove deprecated options.
14839         * doc/invoke.texi (SH options): Remove -mspace.
14841 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14843         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14845 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14847         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14848         corresponding combine split pattern.
14850 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14852         PR target/58219
14853         * config/sh/predicates.md (long_displacement_mem_operand): New.
14854         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14855         Add movi20, movi20s alternatives.  Adjust length attribute for
14856         alternatives.
14857         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14858         alternatives.
14859         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14860         attribute for alternatives.
14861         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14862         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14863         length attribute for alternatives.
14865 2016-05-06  Richard Biener  <rguenther@suse.de>
14867         PR tree-optimization/70960
14868         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14870 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14872         PR target/52933
14873         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14874         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14876 2016-05-06  Marek Polacek  <polacek@redhat.com>
14878         PR sanitizer/70875
14879         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14881 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14883         PR target/54089
14884         * config/sh/sh.md (*rotcr): Add another variant.
14886 2016-05-06  Richard Biener  <rguenther@suse.de>
14888         PR middle-end/70931
14889         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14891 2016-05-06  Richard Biener  <rguenther@suse.de>
14893         PR middle-end/70941
14894         * fold-const.c (split_tree): Always convert to the original type
14895         before negating.
14897 2016-05-06  Richard Biener  <rguenther@suse.de>
14899         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14900         (fwprop_addr): Likewise.
14902 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14904         PR target/70873
14905         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14906         New prototype.
14907         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14908         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14909         the splitter condition.
14910         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14911         the splitter condition.
14912         (FP float_extend load splitter): Ditto.
14914 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14916         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14917         to REGNO in all peephole2 patterns.
14918         (post-reload splitters): Change true_regnum to REGNO in
14919         post-reload splitters.
14920         (zero_extend splitters): Use general_reg_operand and
14921         nonimmediate_gr_operand predicates.
14923 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14925         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14926         v constraint instead of x.
14928 2016-05-05  Alan Modra  <amodra@gmail.com>
14930         PR target/68662
14931         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14932         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14933         TARGET_NO_FP_IN_TOC for -mrelocatable.
14934         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14935         TARGET_RELOCATABLE test.
14936         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14937         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14938         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14939         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14940         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14941         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14942         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14943         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14944         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14945         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14946         Likewise.
14947         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14948         (rs6000_stack_info): Likewise.
14949         (rs6000_elf_asm_out_constructor): Likewise.
14950         (rs6000_elf_asm_out_destructor): Likewise.
14951         (rs6000_elf_declare_function_name): Likewise.
14952         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14953         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14954         Don't define.
14956 2016-05-05  Alan Modra  <amodra@gmail.com>
14958         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14960 2016-05-05  Alan Modra  <amodra@gmail.com>
14962         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14963         out-of-line gpr restore for one or two regs if that would add
14964         a save of lr.
14966 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14968         PR target/70873
14969         * config/i386/i386.md
14970         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14971         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14972         as operand 0 predicate.
14973         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14974         Ditto.
14975         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14976         Ditto.  Emit the pattern using RTX.
14978         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14979         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14980         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14981         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14982         Ditto.
14983         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14984         sse_reg_operand as operand 0 predicate.
14986         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14987         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14988         instead of gen_rtx_REG.
14989         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14990         Ditto.
14992 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14994         * function.c (emit_use_return_register_into_block): Delete.
14995         (gen_return_pattern): Delete.
14996         (emit_return_into_block): Delete.
14997         (active_insn_between): Delete.
14998         (convert_jumps_to_returns): Delete.
14999         (emit_return_for_exit): Delete.
15000         (thread_prologue_and_epilogue_insns): Delete all code dealing with
15001         simple_return for shrink-wrapped blocks.
15002         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
15003         end of blocks that need one.
15004         (get_unconverted_simple_return): Delete.
15005         (convert_to_simple_return): Delete.
15006         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
15007         (convert_to_simple_return): Ditto.
15009 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15011         * cfgcleanup.c (bb_is_just_return): New function.
15012         (try_optimize_cfg): Simplify jumps to return, branches to return,
15013         and branches around return.
15015 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15017         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
15018         branch to a return.
15020 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15022         PR c++/70906
15023         PR c++/70933
15024         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
15025         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
15026         assert flags & OEP_HASH_CHECK, instead of asserting it
15027         never happens.  Handle TARGET_EXPR.
15028         * fold-const.c (operand_equal_p): For hash verification,
15029         or in OEP_HASH_CHECK into flags.
15031 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15033         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
15034         comment.
15035         (compute_samebase_partition_bases): Fix typo.
15037 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15039         * config/i386/sse.md (vec_interleave_highv8sf,
15040         vec_interleave_lowv8sf, vec_interleave_highv4df,
15041         vec_interleave_lowv4df): Remove constraints from expanders.
15043         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
15045 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15047         * tree-inline.c (expand_call_inline): Fix path dealing with
15048         making lhs of call statement undefined.
15050 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15052         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15053         Check availability on NODE, too.
15054         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
15055         (cgraph_node::call_for_symbol_and_aliases): Likewise.
15056         (varpool_node::call_for_symbol_and_aliase): Likewise.
15057         * ipa-pure-const.c (add_new_function): Analyze all bodies.
15058         (propagate_pure_const): Propagate across interposable functions, too.
15059         (skip_function_for_local_pure_const): Do not skip interposable bodies
15060         with aliases.
15061         (pass_local_pure_const::execute): Update.
15063 2016-05-04  Marek Polacek  <polacek@redhat.com>
15065         * doc/invoke.texi: Document -Wdangling-else.
15067 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15069         * config.gcc: Error out when conflicting multilib is detected.  Do not
15070         loop over multilibs since no combination is legal.
15072 2016-05-04  Alan Modra  <amodra@gmail.com>
15074         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
15075         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
15076         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15077         Align .toc.
15079 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15081         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
15082         Clean up p5600 comments.
15084 2016-05-04  Richard Biener  <rguenther@suse.de>
15086         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
15087         constructor simplifications.
15088         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
15090 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
15092         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
15093         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
15094         result.set_rtx is null instead of aborting.
15095         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
15096         Always enable.
15097         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15098         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15099         *mov<mode>_store_postinc): New patterns.
15101 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
15103         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
15104         as commutative.  Check both conversions are NOP.
15105         ((A & B) OP (C & B)): Remove.
15107 2016-05-04  Alan Modra  <amodra@gmail.com>
15109         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15111 2016-05-04  Alan Modra  <amodra@gmail.com>
15113         PR target/70866
15114         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15115         when cr2,3,4 are all fixed regs.
15117 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
15119         PR rtl-optimization/57193
15120         * opts.c (default_options_table): Revert OPT_frename_registers change.
15121         * doc/invoke.texi (-frename-registers, -O2): Likewise.
15123 2016-05-03  Martin Sebor  <msebor@redhat.com>
15125         PR c++/66561
15126         * builtins.c (fold_builtin_FILE): New function.
15127         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15128         (fold_builtin_0): Call them.
15129         * gimplify.c (gimplify_call_expr): Remove the handling of
15130         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15132         PR c++/66561
15133         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15134         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15135         constants.
15137         PR c++/66639
15138         * doc/extend.texi (Function Names as Strings): Update __func__,
15139         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15140         constants.
15142 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15143             Richard Biener  <rguenther@suse.de>
15145         PR tree-optimization/70916
15146         * tree-if-conv.c: Include cfganal.h.
15147         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15148         and remove_fake_exit_edges around the optimization pass.
15150 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
15152         * cgraph.c (symbol_table::create_edge): Set inline_failed.
15153         (cgraph_edge::make_direct): Likewise.
15154         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15155         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15156         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15157         (CIF_THUNK): New code.
15158         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15159         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15160         (compute_inline_parameters): Set inline_failed for thunks.
15161         (inline_analyze_function): Cleanup.
15162         * ipa-inline.c (can_inline_edge_p): Do not deal with
15163         call_stmt_cannot_inline_p.
15164         (can_early_inline_edge_p): Likewise.
15165         (early_inliner): Initialize inline_failed.
15166         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15168 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
15170         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15171         from nonimm_ssenomem_operand.
15172         (nonimm_ssenomem_operand): New predicate.
15173         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15174         as operand 0 predicate.
15175         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15176         Disable unsupported alternatives using "enabled" attribute.
15177         Use register_ssemem_operand as operand 0 predicate.
15178         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15180 2016-05-03  Marek Polacek  <polacek@redhat.com>
15182         PR c/70859
15183         * input.c (expansion_point_location): New function.
15184         * input.h (expansion_point_location): Declare.
15186 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
15188         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
15189         occurence with frame_offset_ ones.
15191 2016-05-03  Alan Modra  <amodra@gmail.com>
15193         PR rtl-optimization/70890
15194         * ira.c (combine_and_move_insns): When moving def_insn, remove
15195         equivs on use_insn.
15197 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15199         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
15200         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
15201         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
15202         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
15204 2016-05-03  Alan Modra  <amodra@gmail.com>
15206         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
15207         for SAVE_MULTIPLE/STORE_MULTIPLE.
15209 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15211         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
15212         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
15214 2016-05-03  Richard Biener  <rguenther@suse.de>
15216         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
15217         default true.
15218         (gimplify_arg): Likewise.
15219         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
15220         re-writing the result to a decl if required.
15221         (internal_get_tmp_var): Add allow_ssa parameter
15222         and override into_ssa with it.
15223         (get_formal_tmp_var): Adjust.
15224         (get_initialized_tmp_var): Add allow_ssa parameter.
15225         (gimplify_arg): Add allow_ssa parameter and avoid generating
15226         SSA names for the result false.
15227         (gimplify_call_expr): If the call may return twice do not
15228         gimplify parameters into SSA.
15229         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
15230         (gimplify_modify_expr): Adjust assert.  For noreturn calls
15231         with a SSA name LHS adjust its def.
15232         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
15233         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
15234         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
15235         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
15236         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
15237         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
15238         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
15239         (optimize_target_teams): Do not allow SSA names for clause operands.
15240         (gimplify_expr): Likewise for where we mark the result addressable.
15241         * passes.def (pass_init_datastructures): Remove.
15242         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
15243         (rewrite_stmt): Likewise.
15244         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
15245         (replace_locals_op): Replace SSA names.
15246         (copy_gimple_seq_and_replace_locals): Init src_cfun.
15247         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
15248         * cgraph.c (release_function_body): Free CFG annotations only
15249         when we have a CFG.  Simplify.
15250         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15251         force_gimple_operand instead of get_initialized_tmp_var.
15252         * tree-pass.h (make_pass_init_datastructures): Remove.
15253         * tree-ssa.c (execute_init_datastructures): Remove.
15254         (pass_data_init_datastructures): Likewise.
15255         (class pass_init_datastructures): Likewise.
15256         (make_pass_init_datastructures): Likewise.
15257         * omp-low.c (create_omp_child_function): Init SSA data structures.
15258         (grid_expand_target_grid_body): Likewise.
15259         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15260         name before adding it to names_to_release.
15261         (remove_bb): Always release SSA defs.
15262         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15263         before dereferencing it.
15264         * cgraphunit.c (init_lowered_empty_function): Always
15265         int SSA data structures.
15266         * tree-ssanames.c (release_defs): Remove assert that we are in
15267         SSA form.
15268         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15270 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15271             Uros Bizjak  <ubizjak@gmail.com>
15273         PR rtl-optimization/70467
15274         * config/i386/predicates.md (x86_64_hilo_int_operand,
15275         x86_64_hilo_general_operand): New predicates.
15276         * config/i386/constraints.md (Wd): New constraint.
15277         * config/i386/i386.md (mode attr di): Use Wd instead of e.
15278         (general_hilo_operand): New mode attr.
15279         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15280         instead of <general_operand>.
15281         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15282         x86_64_hilo_general_operand instead of <general_operand>.
15284 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15286         PR tree-optimization/70916
15287         * tree-if-conv.c (constant_or_ssa_name): Removed.
15288         (fold_build_cond_expr): Use is_gimple_val instead of
15289         constant_or_ssa_name.
15291         PR tree-optimization/70916
15292         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15293         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15295         PR target/49244
15296         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15297         (optimize_atomic_bit_test_and): New function.
15298         (pass_fold_builtins::execute): Use it.
15299         * optabs.def (atomic_bit_test_and_set_optab,
15300         atomic_bit_test_and_complement_optab,
15301         atomic_bit_test_and_reset_optab): New optabs.
15302         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15303         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15304         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15305         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15306         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15307         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15308         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15309         * doc/md.texi (atomic_bit_test_and_set@var{mode},
15310         atomic_bit_test_and_complement@var{mode},
15311         atomic_bit_test_and_reset@var{mode}): Document.
15312         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15313         atomic_bit_test_and_complement<mode>,
15314         atomic_bit_test_and_reset<mode>): New expanders.
15315         (atomic_bit_test_and_set<mode>_1,
15316         atomic_bit_test_and_complement<mode>_1,
15317         atomic_bit_test_and_reset<mode>_1): New insns.
15319 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
15321         PR rtl-optimization/70687
15322         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
15323         instead of unsigned HOST_WIDE_INT.
15325 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
15327         PR rtl-optimization/44281
15328         * hard-reg-set.h (struct target_hard_regs): New field
15329         x_fixed_nonglobal_reg_set.
15330         (fixed_nonglobal_reg_set): New macro.
15331         * reginfo.c (init_reg_sets_1): Initialize it.
15332         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
15333         of fixed_reg_set.
15334         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
15336 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15338         PR tree-optimization/56541
15339         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
15340         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
15341         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
15342         (any_complicated_phi): new static variable.
15343         (aggressive_if_conv): delete.
15344         (if_convertible_phi_p): support phis with more than two arguments.
15345         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
15346         critical pred edges.
15347         (ifcvt_split_critical_edges): support phis with more than two
15348         arguments by checking new parameter.  only split critical edges
15349         if needed.
15350         (tree_if_conversion): handle simd pragma marked loop using new
15351         local variable aggressive_if_conv.  check any_complicated_phi.
15353 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15355         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
15356         before using it.
15358 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15360         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
15361         cbase.
15363 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
15365         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
15366         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
15367         define_insn_and_split.
15368         (mulsi3_i): New define_insn_and_split.
15369         (mulsi3_call): Convert to define_insn.
15370         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
15371         Remove constraints.
15373 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15375         * machmode.h (mode_complex): Add support to give the complex mode
15376         for a given mode.
15377         (GET_MODE_COMPLEX_MODE): Likewise.
15378         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
15379         stored by build_complex_type and gfc_build_complex_type instead of
15380         trying to figure out the appropriate mode based on the size. Raise
15381         an assertion error, if the type was not set.
15382         * genmodes.c (struct mode_data): Add field for the complex type of
15383         the given type.
15384         (blank_mode): Likewise.
15385         (make_complex_modes): Remember the complex mode created in the
15386         base type.
15387         (emit_mode_complex): Write out the mode_complex array to map a
15388         type mode to the complex version.
15389         (emit_insn_modes_c): Likewise.
15390         * tree.c (build_complex_type): Set the complex type to use before
15391         calling layout_type.
15392         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
15393         support for __float128 complex datatypes.
15394         (rs6000_hard_regno_mode_ok): Likewise.
15395         (rs6000_setup_reg_addr_masks): Likewise.
15396         (rs6000_complex_function_value): Likewise.
15397         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
15398         __float128 and __ibm128 complex.
15399         (FLOAT128_IBM_P): Likewise.
15400         (ALTIVEC_ARG_MAX_RETURN): Likewise.
15401         * doc/extend.texi (Additional Floating Types): Document that
15402         -mfloat128 must be used to enable __float128.  Document complex
15403         __float128 and __ibm128 support.
15405 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15407         PR target/49244
15408         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
15409         char/short arguments promoted to int because of promote_prototypes.
15411 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15413         * config/i386/predicates.md (register_ssemem_operand): New predicate.
15414         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
15415         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
15416         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
15417         alternatives using "enabled" attribute.  Use register_ssemem_operand
15418         as operand 1 predicate.
15419         (*cmpi<unord>xf_i387): Split XFmode pattern from
15420         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
15421         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
15422         *absneg<mode>2_i387.  Disable unsupported alternatives using
15423         "enabled" attribute.
15424         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
15426 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15428         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
15429         marker.
15430         (oacc_loop_process): Check mask for loop termination.
15432 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15434         * cif-code.def (CIF_THUNK): Add.
15435         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
15436         accidental change.
15438 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15440         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
15441         (dump_inline_summary): Dump it.
15442         (fp_expression_p): New predicate.
15443         (estimate_function_body_sizes): Use it.
15444         (inline_merge_summary): Merge fp_expressions.
15445         (inline_read_section): Read fp_expressions.
15446         (inline_write_summary): Write fp_expressions.
15447         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
15448         codegen boundary if either caller or callee is !fp_expressions.
15449         * ipa-inline.h (inline_summary): Add fp_expressions.
15450         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
15451         to fp_expressions be sure the fp generation flags are updated.
15453 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15455         PR rtl-optimization/70467
15456         * cse.c (cse_insn): Handle no-op MEM moves after folding.
15458         PR rtl-optimization/70467
15459         * ipa-pure-const.c (check_call): Handle internal calls even in
15460         ipa mode like in local mode.
15462 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15464         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
15466 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15468         * match.pd (X u< X, X u> X): New transformations.
15470 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15472         * flag-types.h (enum warn_strict_overflow_code): Move ...
15473         * coretypes.h: ... here.
15474         * fold-const.h (fold_overflow_warning): Declare.
15475         * fold-const.c (fold_overflow_warning): Make non-static.
15476         (fold_comparison): Move the transformation of X +- C1 CMP C2
15477         into X CMP C2 -+ C1 ...
15478         * match.pd: ... here.
15479         * gimple-fold.c (fold_stmt_1): Protect with
15480         fold_defer_overflow_warnings.
15482 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15484         * omp-low.c (struct oacc_loop): Add 'inner' field.
15485         (new_oacc_loop_raw): Initialize it to zero.
15486         (oacc_loop_fixed_partitions): Initialize it.
15487         (oacc_loop_auto_partitions): Partition outermost loop to outermost
15488         available partitioning.
15490 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15492         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
15493         register_operand.
15494         (umulsidi3): Likewise.
15495         (indirect_jump): Fix jump instruction assembly patterns.
15497 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
15499         PR target/70860
15500         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
15501         (nvptx_function_value): Assert non-NULL cfun.
15503 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
15505         PR rtl-optimization/70886
15506         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
15508         * cselib.h (rtx_equal_for_cselib_1): Declare.
15509         (rtx_equal_for_cselib_p: New inline function.
15510         * cselib.c (rtx_equal_for_cselib_p): Delete.
15511         (rtx_equal_for_cselib_1): Make public.
15513 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15515         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
15516         (register_mixssei387nonimm_operand): Remove predicate.
15517         * config/i386/i386.md (*fop_<mode>_comm): Merge from
15518         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
15519         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
15520         for TARGET_MIX_SSE_I387 alternatives.
15521         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
15522         Disable unsupported alternatives using "enabled" attribute.  Use
15523         nonimm_ssenomem_operand as operand 1 predicate.  Also check
15524         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
15526 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15528         * tree.c (cst_and_fits_in_hwi): Simplify.
15530 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15532         * tree.h (wi::to_wide): New function.
15533         * expr.c (expand_expr_real_1): Use wi::to_wide.
15534         * fold-const.c (int_const_binop_1): Likewise.
15535         (extract_muldiv_1): Likewise.
15537 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15539         * wide-int.h: Update offset_int and widest_int documentation.
15540         (WI_SIGNED_SHIFT_RESULT): New macro.
15541         (wi::binary_shift): Define signed_shift_result_type for
15542         shifts on offset_int- and widest_int-like types.
15543         (generic_wide_int): Support <<= and >>= if << and >> are supported.
15544         * tree.h (int_bit_position): Use shift operators instead of wi::
15545          shifts.
15546         * alias.c (adjust_offset_for_component_ref): Likewise.
15547         * expr.c (get_inner_reference): Likewise.
15548         * fold-const.c (fold_comparison): Likewise.
15549         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15550         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15551         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15552         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15553         (stmt_kills_ref_p): Likewise.
15554         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15555         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15556         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15557         (ao_ref_init_from_vn_reference): Likewise.
15559 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15561         * wide-int.h: Update offset_int and widest_int documentation.
15562         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15563         (wi::binary_traits): Allow ordered comparisons between offset_int and
15564         offset_int, between widest_int and widest_int, and between either
15565         of these types and basic C types.
15566         (operator <, <=, >, >=): Define for the same combinations.
15567         * tree.h (tree_int_cst_lt): Use comparison operators instead
15568         of wi:: comparisons.
15569         (tree_int_cst_le): Likewise.
15570         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15571         (fold_nonarray_ctor_reference): Likewise.
15572         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15573         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15574         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15575         * tree-sra.c (completely_scalarize): Likewise.
15576         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15577         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15578         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15579         (check_for_binary_op_overflow): Likewise.
15580         (search_for_addr_array): Likewise.
15581         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15583 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15585         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15586         (arc_save_restore): Likewise.
15587         (arc_dwarf_register_span): Likewise.
15588         (arc_output_pic_addr_const): Initialize suffix variable.
15590 2016-05-02  Martin Liska  <mliska@suse.cz>
15592         * symbol-summary.h (function_summary::function_summary):
15593         Remove checking assert for all cgraph nodes.
15594         (function_summary::get): Check summary_uid.
15595         (symtab_insertion): Check summary_uid.
15597 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15599         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15600         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15601         bmaskn instruction.
15602         (arc_dwarf_register_span): Remove enum keyword.
15603         (compact_memory_operand_p): New function.
15604         * config/arc/arc.h (reg_class): Add code density register classes.
15605         (REG_CLASS_NAMES): Likewise.
15606         (REG_CLASS_CONTENTS): Likewise.
15607         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15608         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15609         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15610         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15611         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15612         constraints.
15613         (h, Rcd, Rsd, Rzd): New register constraints.
15614         (T): Use compact_memory_operand_p function.
15615         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15617 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15619         * config/sh/sh.md (*negnegt, *movtt): Remove.
15621 2016-05-02  Marek Polacek  <polacek@redhat.com>
15622             Tom de Vries  <tom@codesourcery.com>
15624         PR tree-optimization/70700
15625         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15626         bigger than FIRST_REF_NODE.
15628 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15630         PR target/52898
15631         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15632         TARGET_CMPEQDI_T.
15633         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15634         function is used when pseudos can be created.
15635         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15636         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15637         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15638         define_expand.  Allow it only when pseudos can be created.
15639         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15641 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15643         * config/i386/constraints.md (BC): Only allow -1 operands.
15644         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15645         Add "enabled" attribute.  Update XI mode attribute calculation.
15646         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15647         (*movoi_internal_avx): Update XI mode attribute calculation.
15648         (*movti_internal): Ditto.
15650 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15652         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15653         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15655 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15657         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15658         statement on instruction code.  Remove trailing spaces.
15659         (altivec_expand_stv_builtin): Likewise.
15661 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15663         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15664         (TARGET_FPU_DOUBLE): Simplify.
15665         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15666         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15667         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15668         with 'TARGET_FPU_DOUBLE'.
15669         * config/sh/sh.md: Likewise.
15671 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15673         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15674         SH_DIV_STR_FOR_SIZE): Remove.
15675         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15676         SH_DIV_STR_FOR_SIZE): Remove.
15678 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15680         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15681         logical_reg_operand): Delete.
15682         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15683         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15684         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15685         match_operand and match_test.
15686         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15687         variables on their first use.  Return bool values.
15688         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15689         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15690         arith_reg_operand for input operand.  Remove empty constraints.
15691         (xorsi3): Delete.
15692         (*xorsi3_compact): Rename to xorsi3.
15693         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15694         (*zero_extend<mode>si2_disp_mem): Update comment.
15695         (mov_nop): Delete.
15697 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15699         * config/sh/t-sh: Remove SH5 support.
15700         * config.gcc: Likewise.
15701         * configure: Likewise.
15703 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15705         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15707 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15709         * config/sh/sh.c (register_sh_passes, sh_option_override,
15710         sh_print_operand, prepare_move_operands,
15711         sh_can_follow_jump): Remove TARGET_SH1 checks.
15712         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15713         PROMOTE_MODE): Likewise.
15714         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15715         movdi): Likewise.
15717 2016-04-30  Alan Modra  <amodra@gmail.com>
15719         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15720         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15721         Check for user regs later to avoid unnecessary looping over regs.
15722         Merge user reg check with non-saved reg check.  Don't force
15723         inline VR restore when static chain used.
15724         (rs6000_frame_related): Omit eh_frame info for user regs when
15725         saving.
15726         (fixed_regs_p): Delete.
15728 2016-04-30  Alan Modra  <amodra@gmail.com>
15730         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15731         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15732         Update all uses.
15734 2016-04-30  Alan Modra  <amodra@gmail.com>
15736         PR target/69645
15737         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15738         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15739         Update all uses.
15741 2016-04-30  Alan Modra  <amodra@gmail.com>
15743         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15744         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15745         flag_pic test for Darwin.
15747 2016-04-30  Alan Modra  <amodra@gmail.com>
15749         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15750         throw_calls_crossed.
15751         (REG_FREQ_CALLS_CROSSED): Delete.
15752         (REG_N_THROWING_CALLS_CROSSED): Delete.
15753         * regstat.c (regstat_bb_compute_ri): Don't calculate
15754         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15755         (dump_reg_info): Don't print call cross frequency.
15756         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15757         and REG_N_THROWING_CALLS_CROSSED.
15759 2016-04-30  Alan Modra  <amodra@gmail.com>
15761         * regs.h (struct reg_info_t): Delete live_length.
15762         (REG_LIVE_LENGTH): Delete macro.
15763         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15764         local_live, local_processed and local_live_last_luid params.
15765         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15766         Formatting fixes.
15767         (regstat_compute_ri): Adjust for above.  Don't set
15768         REG_LIVE_LENGTH.
15769         (dump_reg_info): Don't print live length.
15770         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15771         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15772         Localize loop_depth var.
15774 2016-04-30  Alan Modra  <amodra@gmail.com>
15776         * ira.c (enum valid_equiv): New.
15777         (validate_equiv_mem): Return enum.
15778         (update_equiv_mem): Create replacement in more cases.
15779         (add_store_equivs): Update validate_equiv_mem call.
15781 2016-04-30  Alan Modra  <amodra@gmail.com>
15783         * ira.c (combine_and_move_insns): Rather than scanning insns,
15784         use DF infrastucture to find use and def insns.
15786 2016-04-30  Alan Modra  <amodra@gmail.com>
15788         ira.c (combine_and_move_insns): Move invariant conditions..
15789         (ira.c): ..to here.  Call combine_and_move_insns before
15790         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15791         req_equiv later using max_reg_num() rather than global max_regno.
15792         (contains_replace_regs): Delete.
15793         (add_store_equivs): Remove contains_replace_regs test.
15795 2016-04-30  Alan Modra  <amodra@gmail.com>
15797         * ira.c (struct equiv_mem_data): New.
15798         (equiv_mem, equiv_mem_modified): Delete static vars.
15799         (validate_equiv_mem_from_store): Use "data" param to communicate..
15800         (validate_equiv_mem): ..from here.
15802 2016-04-30  Alan Modra  <amodra@gmail.com>
15804         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15805         split out from..
15806         (update_reg_equivs): ..here.  Move allocation and freeing of
15807         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15808         end_alias_analysis to..
15809         (ira): ..here.
15811 2016-04-30  Alan Modra  <amodra@gmail.com>
15813         * ira.c (pdx_subregs): Delete.
15814         (struct equivalence): Add pdx_subregs field.
15815         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15816         pdx_subregs access.
15817         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15818         pdx_subregs access.
15820 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15822         * config/rs6000/altivec.h: Change definitions of vec_xl and
15823         vec_xst.
15824         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15825         (LD_ELEMREV_V2DI): New.
15826         (LD_ELEMREV_V4SF): New.
15827         (LD_ELEMREV_V4SI): New.
15828         (LD_ELEMREV_V8HI): New.
15829         (LD_ELEMREV_V16QI): New.
15830         (ST_ELEMREV_V2DF): New.
15831         (ST_ELEMREV_V2DI): New.
15832         (ST_ELEMREV_V4SF): New.
15833         (ST_ELEMREV_V4SI): New.
15834         (ST_ELEMREV_V8HI): New.
15835         (ST_ELEMREV_V16QI): New.
15836         (XL): New.
15837         (XST): New.
15838         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15839         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15840         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15841         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15842         (altivec_expand_builtin): Add handling for
15843         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15844         (rs6000_invalid_builtin): Add error-checking for
15845         RS6000_BTM_P9_VECTOR.
15846         (altivec_init_builtins): Define builtins used to implement vec_xl
15847         and vec_xst.
15848         (rs6000_builtin_mask_names): Define power9-vector.
15849         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15850         (RS6000_BTM_P9_VECTOR): Define.
15851         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15852         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15853         (vsx_ld_elemrev_v2df): Likewise.
15854         (vsx_ld_elemrev_v4sf): Likewise.
15855         (vsx_ld_elemrev_v4si): Likewise.
15856         (vsx_ld_elemrev_v8hi): Likewise.
15857         (vsx_ld_elemrev_v16qi): Likewise.
15858         (vsx_st_elemrev_v2df): Likewise.
15859         (vsx_st_elemrev_v2di): Likewise.
15860         (vsx_st_elemrev_v4sf): Likewise.
15861         (vsx_st_elemrev_v4si): Likewise.
15862         (vsx_st_elemrev_v8hi): Likewise.
15863         (vsx_st_elemrev_v16qi): Likewise.
15864         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15865         grammar.
15867 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15869         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15870         out into ...
15871         (simplify_control_stmt_condition_1): ... here.  Recurse into
15872         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15874 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15876         PR target/69810
15877         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15878         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15879         define_insn_and_split to define_insn.
15880         (zero_extendqi<mode>2_dot2): Same.
15881         (extendqi<mode>2_dot): Same.
15882         (extendqi<mode>2_dot2): Same.
15884 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15886         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15887         (probe_stack): New expander.
15888         (probe_stack_<mode>): New insn pattern.
15890 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15892         * config/i386/i386.md
15893         (operations with memory inputs setting flags peephole2):
15894         Remove uneeded REG_P checks.  Cleanup pattern generation.
15896 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15898         * tree-vect-loop.c (vect_transform_loop): Fix
15899         nb_iterations_upper_bound computation for vectorized loop.
15901 2016-04-29  Marek Polacek  <polacek@redhat.com>
15902             Jakub Jelinek  <jakub@redhat.com>
15904         PR sanitizer/70342
15905         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15906         TARGET_EXPR_SLOT as a base.
15908 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15910         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15911         with 'rCm2' constraints to limit possible immediate size.
15912         (*load_zeroextendqisi_update): Likewise.
15913         (*load_signextendqisi_update): Likewise.
15914         (*loadhi_update): Likewise.
15915         (*load_zeroextendhisi_update): Likewise.
15916         (*load_signextendhisi_update): Likewise.
15917         (*loadsi_update): Likewise.
15918         (*loadsf_update): Likewise.
15920 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15922         * config/i386/predicates.md (constm1_operand): Fix comparison.
15924 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15926         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15928 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15930         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15931         remaining SH5 related settings.
15932         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15933         shmedia_prepare_call_address): Delete.
15934         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15935         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15936         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15937         UNSUPPORTED_SH2A): Remove m5 checks.
15938         (sh_divide_strategy_e): Remove SH5 division strategies.
15939         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15940         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15942 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15944         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15946 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15948         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15949         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15950         Change lder to ldr.
15951         * config/s390/vector.md ("mov<mode>"): Likewise.
15953 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15955         * config/s390/constraints.md ("U", "W"): Invoke
15956         s390_mem_constraint with "ZR" and "ZT".
15957         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15958         addresses when using LRA.  Accept also short displacements for S
15959         and T constraints.  Do not check for long displacement target for
15960         S and T constraints.
15961         (s390_mem_constraint): Remove handling of U and W constraints.
15962         * config/s390/s390.md (various patterns): Remove the short
15963         displacement constraints (Q and R) if a long displacement
15964         constraint is present.  Add longdisp as required CPU capability.
15965         * config/s390/vector.md: Likewise.
15966         * config/s390/vx-builtins.md: Likewise.
15968 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15970         PR target/60040
15971         * reload1.c (reload): Call finish_spills before
15972         restarting reload loop. Skip select_reload_regs
15973         if update_eliminables_and_spill returns true.
15975 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15977         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15978         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15979         (umulhisi3_imm): Update predicates and constraint letters.
15980         (umulhisi3_reg): Declare instruction as commutative.
15981         * config/arc/constraints.md (J12, J16): New constraints.
15982         * config/arc/predicates.md (short_unsigned_const_operand): New
15983         predicate.
15984         (arc_short_operand): Likewise.
15985         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15987 2016-04-29  Richard Biener  <rguenther@suse.de>
15989         PR tree-optimization/13962
15990         PR tree-optimization/65686
15991         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15992         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15993         using PTA to compare pointers.
15994         * match.pd: Add pattern for pointer equality compare simplification
15995         using ptrs_compare_unequal.
15997 2016-04-29  Richard Biener  <rguenther@suse.de>
15999         * stor-layout.c (layout_type): Do not build a pointer-to-element
16000         type for arrays.
16002 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16004         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
16005         Use SWI mode iterator.  Use general_reg_operand predicate.
16006         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
16007         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
16008         predicates.
16010 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
16012         PR middle-end/70843
16013         * fold-const.c (operand_equal_p): Don't verify hash value equality
16014         if arg0 == arg1.
16015         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
16016         and OMP_CLAUSE.
16018 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16020         PR target/70858
16021         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
16022         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
16023         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
16024         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
16025         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
16027 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16029         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
16030         to info.  Don't initialize separate fields to 0.  Clean up
16031         formatting a bit.
16033 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16035         * config/i386/i386.md (peephole2s for operations with memory inputs):
16036         Use SWI mode iterator.
16037         (peephole2s for operations with memory outputs): Ditto.
16038         Do not check for stack checking probe.
16040         (probe_stack): Remove expander.
16042 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16043             Andrew Burgess  <andrew.burgess@embecosm.com>
16045         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
16046         operands as 32-bits.
16048 2016-04-28  Jason Merrill  <jason@redhat.com>
16050         * gdbinit.in: Skip line-map.h.
16052 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16053             Andrew Burgess  <andrew.burgess@embecosm.com>
16055         * config/arc/arc.c (arc_conditional_register_usage): Take
16056         TARGET_RRQ_CLASS into account.
16057         (arc_print_operand): Support printing 'p' and 's' operands.
16058         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
16059         as 0.
16060         (TARGET_RRQ_CLASS): Define.
16061         (IS_POWEROF2_OR_0_P): Define.
16062         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
16063         alternatives.
16064         (*tst_movb): New define_insn.
16065         (*tst): Avoid recognition if it could prevent '*tst_movb'
16066         combination; replace c/CnL with c/Chs alternative.
16067         (*tst_bitfield_tst): New define_insn.
16068         (*tst_bitfield_asr): New define_insn.
16069         (*tst_bitfield): New define_insn.
16070         (andsi3_i): Add Rrq variant.
16071         (extzv): New define_expand.
16072         (insv): New define_expand.
16073         (*insv_i): New define_insn.
16074         (*movb): New define_insn.
16075         (*movb_signed): New define_insn.
16076         (*movb_high): New define_insn.
16077         (*movb_high_signed): New define_insn.
16078         (*movb_high_signed + 1): New define_split pattern.
16079         (*mrgb): New define_insn.
16080         (*mrgb + 1): New define_peephole2 pattern.
16081         (*mrgb + 2): New define_peephole2 pattern.
16082         * config/arc/arc.opt (mbitops): New option for nps400, uses
16083         TARGET_NPS_BITOPS_DEFAULT.
16084         * config/arc/constraints.md (q): Make register class conditional.
16085         (Rrq): New register constraint.
16086         (Chs): New constraint.
16087         (Clo): New constraint.
16088         (Chi): New constraint.
16089         (Cbf): New constraint.
16090         (Cbn): New constraint.
16091         (C18): New constraint.
16092         (Cbi): New constraint.
16094 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16096         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16097         dst->popcount.
16098         (bitmap_intersection_of_preds): Ditto.
16099         (bitmap_union_of_succs): Ditto.
16100         (bitmap_union_of_preds): Ditto.
16101         * sbitmap.c (do_popcount): Delete.
16102         (BITMAP_DEBUGGING): Delete.
16103         (sbitmap_verify_popcount): Delete.
16104         (sbitmap_alloc): Don't initialize the popcount field.
16105         (sbitmap_alloc_with_popcount): Delete.
16106         (sbitmap_resize): Don't resize the popcount array.
16107         (sbitmap_vector_alloc): Don't initialize the popcount field.
16108         (bitmap_copy): Don't copy the popcount array.
16109         (bitmap_clear): Don't clear the popcount array.
16110         (bitmap_clear): Delete the popcount array handling.
16111         (bitmap_ior_and_compl): Delete the popcount assert.
16112         (bitmap_not): Ditto.
16113         (bitmap_and_compl): Ditto.
16114         (bitmap_and): Delete the popcount array handling.
16115         (bitmap_xor): Ditto.
16116         (bitmap_ior): Ditto.
16117         (bitmap_or_and): Delete the popcount assert.
16118         (bitmap_and_or): Ditto.
16119         (popcount_table): Delete.
16120         (sbitmap_elt_popcount): Delete.
16121         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16122         (bitmap_set_bit): Delete the popcount assert.
16123         (bitmap_clear_bit): Ditto.
16124         (sbitmap_free): Don't free the popcount array.
16125         (sbitmap_alloc_with_popcount): Delete declaration.
16126         (sbitmap_popcount): Ditto.
16128 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16129             Andrew Burgess  <andrew.burgess@embecosm.com>
16131         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16132         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16133         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16134         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16135         * config/arc/arc.opt (mcmem): New option.
16136         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16137         supply length for r/m alternative.
16138         (*extendqisi2_ac): Likewise.
16139         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16140         r/Uex alternative.
16141         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16142         (movhi_insn): Likewise.
16143         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16144         (*zero_extendqihi2_i): Add r/Ucm alternative.
16145         (*zero_extendqisi2_ac): Likewise.
16146         (*zero_extendhisi2_i): Likewise.
16147         * config/arc/constraints.md (Uex): New memory constraint.
16148         (Ucm): New define_constraint.
16149         * config/arc/predicates.md (long_immediate_loadstore_operand):
16150         Return 0 for MEM with cmem_address address.
16151         (cmem_address_0): New predicates.
16152         (cmem_address_1): Likewise.
16153         (cmem_address_2): Likewise.
16154         (cmem_address): Likewise.
16156 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16158         * config/rs6000/rs6000.c (machine_function): Rename
16159         insn_chain_scanned_p to spe_insn_chain_scanned_p.
16160         (rs6000_stack_info): Adjust.
16162 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16163             Andrew Burgess  <andrew.burgess@embecosm.com>
16165         * config/arc/constraints.md (Usd): Convert to define_constraint.
16166         (Us<): Likewise.
16167         (Us>): Likewise.
16169 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16171         PR target/70821
16172         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16173         Add new peephole2 where the first insn is *mov<mode>_or instead of
16174         *mov<mode>_internal.
16176 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
16178         * tracer.c (bb_seen): Make static.
16180 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
16182         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
16183         support, setup defaults.
16184         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
16185         * config/arc/arc.c (arc_init): Add NPS400 support.
16186         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
16187         (TARGET_ARC700): NPS400 is also an ARC700.
16188         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
16190 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16192         PR target/70668
16193         * config/nds32/nds32.md (casesi): Don't access the operands array
16194         out of bounds.
16196 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16198         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
16199         (or $-1,reg peephole2): Ditto.
16200         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
16202 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
16204         * doc/extend.texi (Common Function Attributes) [optimize]:
16205         Discourage use of the optimize attribute.
16207 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
16209         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
16210         special case builtin.
16211         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16212         ALTIVEC_BUILTIN_VEC_ADDE.
16213         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16214         support for ALTIVEC_BUILTIN_VEC_ADDE.
16215         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
16216         for __builtin_vec_adde.
16218 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16220         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
16221         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
16223 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16225         PR testsuite/70595
16226         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16227         attributes): Document cilkplus_runtime.
16229 2016-04-28  Martin Jambor  <mjambor@suse.cz>
16231         * tree-cfg.c (verify_expr): Verify that local declarations belong to
16232         this function.  Call verify_expr on MEM_REFs and bases of other
16233         handled_components.
16235 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16237         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
16238         for WORD_REGISTER_OPERATIONS to runtime check.
16240 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16242         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
16244 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16246         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
16247         big-endian compilation.
16248         * config/arc/arc.md (addf3): Likewise.
16249         (subdf3): Likewise.
16250         (muldf3): Likewise.
16252 2016-04-28  Richard Biener  <rguenther@suse.de>
16254         PR tree-optimization/70840
16255         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
16256         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
16257         Mark x * pow(x,c) -> pow(x,c+1) commutative.
16258         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16260 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16262         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16263         and explain why in a comment.
16265 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16267         * config/arc/arc.md (cpu_facility): Add fpx variant.
16268         (subdf3): Prohibit use reverse sub when assist operations option
16269         is enabled.
16270         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16271         instructions only when FPX is enabled.
16272         * testsuite/gcc.target/arc/trsub.c: New test.
16274 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16276         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16277         mult_operator when calculating "type" attribute.
16278         (*fop_<mode>_1_i387): Ditto.
16279         (*fop_xf_1_i387): Ditto.
16280         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16281         Use std::swap to swap operands.  Use RTL expressions to generate
16282         converted pattern.
16284 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16285             Joern Rennecke  <joern.rennecke@embecosm.com>
16287         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16288         declaration.
16289         (emit_pic_move): Remove.
16290         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16291         * config/arc/arc.c (emit_pic_move): Removed.
16292         (TARGET_HAVE_TLS): Define.
16293         (arc_conditional_register_usage): Test for arc_tp_regno.
16294         (arc_print_operand, arc_print_operand_address): Handle TLS
16295         unspecs.
16296         (arc_needs_pcl_p): New function.
16297         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16298         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16299         (arc_raw_symbolic_reference_mentioned_p): Likewise.
16300         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16301         (arc_legitimize_tls_address): Likewise.
16302         (DTPOFF_ZERO_SYM): Define.
16303         (arc_legitimize_pic_address): Make it static, handle TLS cases.
16304         (arc_output_pic_addr_const): Print TLS unspecs.
16305         (prepare_pic_move): New function, replaces emit_pic_move.
16306         (arc_legitimate_constant_p): Handle TLS unspecs.
16307         (arc_legitimate_address_p): Likewise.
16308         (arc_rewrite_small_data_p): Use assert for TLS constants.
16309         (prepare_move_operands): Use prepare_pic_move.
16310         (arc_legitimize_address): Legitimize tls addresses.
16311         (arc_epilogue_uses): Check for arc_tp_regno.
16312         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16313         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16314         Define.
16315         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16316         Likewise.
16317         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16318         %(arc_tls_extra_start_spec).
16319         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16320         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16321         (EH_USES): Define.
16322         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
16323         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
16324         (UNSPEC_TLS_OFF): Add.
16325         (R10_REG): Define.
16326         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
16327         (get_thread_pointersi): New patterns.
16328         * config/arc/arc.opt (mtp-regno): New option.
16329         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
16330         (move_dest_operand): Likewise.
16331         * configure: Regenerate.
16332         * configure.ac: Add arc*-*-* case to test for tls.
16333         * doc/invoke.texi (ARC options): Document mtp-regno.
16335 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16337         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
16338         the new ARC HS SIMD instructions.
16339         (arc_preferred_simd_mode): New function.
16340         (arc_autovectorize_vector_sizes): Likewise.
16341         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16342         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16343         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
16344         (arc_init_builtins): Add new SIMD builtin types.
16345         (arc_split_move): Handle 64 bit vector moves.
16346         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
16347         (TARGET_PLUS_QMACW): Define.
16348         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
16349         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
16350         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
16351         (VSUBADD4H): New builtins.
16352         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
16353         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
16355 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
16356             Matthias Klose  <doko@debian.org>
16358         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
16360 2016-04-28  Richard Biener  <rguenther@suse.de>
16362         PR middle-end/70777
16363         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
16364         canonicalization.
16366 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
16368         * common/config/sh/sh-common.c: Remove SH5 support.
16369         * config/sh/constraints.md: Likewise.
16370         * config/sh/config/sh/elf.h: Likewise.
16371         * config/sh/linux.h: Likewise.
16372         * config/sh/netbsd-elf.h: Likewise.
16373         * config/sh/predicates.md: Likewise.
16374         * config/sh/sh-c.c: Likewise.
16375         * config/sh/sh-protos.h: Likewise.
16376         * config/sh/sh.c: Likewise.
16377         * config/sh/sh.h: Likewise.
16378         * config/sh/sh.md: Likewise.
16379         * config/sh/sh.opt: Likewise.
16380         * config/sh/sync.md: Likewise.
16381         * config/sh/sh64.h: Delete.
16382         * config/sh/shmedia.h: Likewise.
16383         * config/sh/shmedia.md: Likewise.
16384         * config/sh/sshmedia.h: Likewise.
16385         * config/sh/t-netbsd-sh5-64: Likewise.
16386         * config/sh/t-sh64: Likewise.
16387         * config/sh/ushmedia.h: Likewise.
16389 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16391         * config/i386/i386.md (sign_extend to memory peephole2s): Use
16392         general_reg_operand instead of register_operand predicate.
16394 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16396         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
16398 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
16400         * match.pd (A - B > A, A + B < A): New transformations.
16402 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
16404         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
16405         which defaults to true.  Emit an outer pair of parentheses only if
16406         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
16407         don't emit parentheses for the right-hand operand.
16409 2016-04-27  Jeff Law  <law@redhat.com>
16411         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
16413 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16415         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
16416         (altivec_lvx_<mode>_internal): Document.
16417         (altivec_lvx_<mode>_2op): New define_insn.
16418         (altivec_lvx_<mode>_1op): Likewise.
16419         (altivec_lvx_<mode>_2op_si): Likewise.
16420         (altivec_lvx_<mode>_1op_si): Likewise.
16421         (altivec_stvx_<mode>): Remove.
16422         (altivec_stvx_<mode>_internal): Document.
16423         (altivec_stvx_<mode>_2op): New define_insn.
16424         (altivec_stvx_<mode>_1op): Likewise.
16425         (altivec_stvx_<mode>_2op_si): Likewise.
16426         (altivec_stvx_<mode>_1op_si): Likewise.
16427         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16428         Expand vec_ld and vec_st during parsing.
16429         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
16430         changes.
16431         (altivec_expand_stvx_be): Likewise.
16432         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
16433         address-masking behavior in RTL.
16434         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
16435         address-masking behavior in RTL.
16436         (altivec_expand_builtin): Change builtin code arguments for calls
16437         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
16438         (insn_is_swappable_p): Avoid incorrect swap optimization in the
16439         presence of lvx/stvx patterns.
16440         (alignment_with_canonical_addr): New function.
16441         (alignment_mask): Likewise.
16442         (find_alignment_op): Likewise.
16443         (recombine_lvx_pattern): Likewise.
16444         (recombine_stvx_pattern): Likewise.
16445         (recombine_lvx_stvx_patterns): Likewise.
16446         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
16447         stvx patterns from expand.
16448         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
16449         expansions.
16450         (vector_altivec_store_<mode>): Likewise.
16452 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
16454         * config/aarch64/aarch64.md
16455         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
16456         remove the "fp" attributes.
16457         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
16458         add the "simd" attributes.
16459         (*movdf_aarch64): Likewise.
16460         (*movtf_aarch64): Remove the "fp" attributes.
16461         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
16462         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
16464 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16466         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
16467         rtx to rtx_code_label *.
16468         * rtl.h (maybe_set_first_label_num): Likewise.
16470 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16472         * df-core.c (df_add_problem): Make the problem param be const.
16473         (df_remove_problem): Make local "problem" be const.
16474         * df-problems.c (problem_RD): Make const.
16475         (problem_LR): Likewise.
16476         (problem_LIVE): Likewise.
16477         (problem_MIR): Likewise.
16478         (problem_CHAIN): Likewise.
16479         (problem_WORD_LR): Likewise.
16480         (problem_NOTE): Likewise.
16481         (problem_MD): Likewise.
16482         * df-scan.c (problem_SCAN): Likewise.
16483         * df.h (struct df_problem): Make field "dependent_problem" be
16484         const.
16485         (struct dataflow): Likewise for field "problem".
16486         (df_add_problem): Make param const.
16488 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16490         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
16491         inter-unit moves to/from vector registers are enabled.  Do not disable
16492         for TARGET_MMX.
16494 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16496         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
16497         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
16498         #define to...
16499         (enum df_problem_id): ...this new enum.
16500         (struct df_problem): Convert field "id" from "int" to
16501         enum df_problem_id.
16503 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16505         * rtl.def: Update comment for "things in the instruction chain" to
16506         reflect the removal of the leading "i" field for INSN_UID in
16507         r210360.  Fix bogus apostrophe.
16509 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16511         * config/i386/i386.md
16512         (lea arith with mem operand + setcc peephole2): Set operator mode.
16514 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
16516         PR target/70155
16517         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
16518         (dimode_scalar_to_vector_candidate_p): This.
16519         (timode_scalar_to_vector_candidate_p): New function.
16520         (scalar_to_vector_candidate_p): Likewise.
16521         (timode_check_non_convertible_regs): Likewise.
16522         (timode_remove_non_convertible_regs): Likewise.
16523         (remove_non_convertible_regs): Likewise.
16524         (remove_non_convertible_regs): Renamed to ...
16525         (dimode_remove_non_convertible_regs): This.
16526         (scalar_chain::~scalar_chain): Make it virtual.
16527         (scalar_chain::compute_convert_gain): Make it pure virtual.
16528         (scalar_chain::mark_dual_mode_def): Likewise.
16529         (scalar_chain::convert_insn): Likewise.
16530         (scalar_chain::convert_registers): Likewise.
16531         (scalar_chain::add_to_queue): Make it protected.
16532         (scalar_chain::emit_conversion_insns): Likewise.
16533         (scalar_chain::replace_with_subreg): Likewise.
16534         (scalar_chain::replace_with_subreg_in_insn): Likewise.
16535         (scalar_chain::convert_op): Likewise.
16536         (scalar_chain::convert_reg): Likewise.
16537         (scalar_chain::make_vector_copies): Likewise.
16538         (scalar_chain::convert_registers): New pure virtual function.
16539         (class dimode_scalar_chain): New class.
16540         (class timode_scalar_chain): Likewise.
16541         (scalar_chain::mark_dual_mode_def): Renamed to ...
16542         (dimode_scalar_chain::mark_dual_mode_def): This.
16543         (timode_scalar_chain::mark_dual_mode_def): New function.
16544         (timode_scalar_chain::convert_insn): Likewise.
16545         (dimode_scalar_chain::convert_registers): Likewise.
16546         (scalar_chain::compute_convert_gain): Renamed to ...
16547         (dimode_scalar_chain::compute_convert_gain): This.
16548         (scalar_chain::replace_with_subreg): Renamed to ...
16549         (dimode_scalar_chain::replace_with_subreg): This.
16550         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16551         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16552         (scalar_chain::make_vector_copies): Renamed to ...
16553         (dimode_scalar_chain::make_vector_copies): This.
16554         (scalar_chain::convert_reg): Renamed to ...
16555         (dimode_scalar_chain::convert_reg ): This.
16556         (scalar_chain::convert_op): Renamed to ...
16557         (dimode_scalar_chain::convert_op): This.
16558         (scalar_chain::convert_insn): Renamed to ...
16559         (dimode_scalar_chain::convert_insn): This.
16560         (scalar_chain::convert): Call convert_registers.
16561         (convert_scalars_to_vector): Change to scalar_chain pointer to
16562         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16563         in 32-bit mode.  Delete scalar_chain pointer.  Call
16564         free_dominance_info in 64-bit mode.
16565         (pass_stv::gate): Remove TARGET_64BIT check.
16566         (ix86_option_override): Put the 64-bit STV pass before the CSE
16567         pass.
16569 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16571         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16572         dw_loc_frame_offset field.
16573         * dwarf2out.c (new_loc_descr): Likewise.
16574         (resolve_args_picking_1): Turn the VISITED hash set into a
16575         FRAME_OFFSET hash map. Use it to associate a frame offset to
16576         visited nodes. Remove uses of the CHECKING_P macro.
16577         (resolve_args_picking): Update call to resolve_args_picking_1.
16579 2016-04-27  Martin Liska  <mliska@suse.cz>
16581         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16582         (free_loop_data): Release vuses of groups.
16584 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16586         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16587         instead of redundant use_id and boolean have_use_for.
16588         (struct iv_use): Change sub_id into group_id.  Remove field next.
16589         Move fields: related_cands, n_map_members, cost_map and selected
16590         to ...
16591         (struct iv_group): ... here.  New structure.
16592         (struct iv_common_cand): Use structure declaration directly.
16593         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16594         (MAX_CONSIDERED_USES): Rename macro to ...
16595         (MAX_CONSIDERED_GROUPS): ... here.
16596         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16597         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16598         (dump_uses): Rename to ...
16599         (dump_groups): ... here.  Update all uses.
16600         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16601         (find_induction_variables): Refactor format of dump information.
16602         (record_sub_use): Delete.
16603         (record_use): Update all uses.
16604         (record_group): New function.
16605         (record_group_use, find_interesting_uses_op): Call above functions.
16606         Update all uses.
16607         (find_interesting_uses_cond): Ditto.
16608         (group_compare_offset): New function.
16609         (split_all_small_groups): Rename to ...
16610         (split_small_address_groups_p): ... here.  Update all uses.
16611         (split_address_groups):  Update all uses.
16612         (find_interesting_uses): Refactor format of dump information.
16613         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16614         base and step.
16615         (add_candidate, record_common_cand): Remove redundant assert.
16616         (add_iv_candidate_for_biv): Update use.
16617         (add_iv_candidate_derived_from_uses): Update all uses.
16618         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16619         (alloc_use_cost_map): Ditto.
16620         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16621         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16622         (determine_use_iv_cost_generic): Ditto.
16623         (determine_group_iv_cost_generic): Ditto.
16624         (determine_use_iv_cost_address): Ditto.
16625         (determine_group_iv_cost_address): Ditto.
16626         (determine_use_iv_cost_condition): Ditto.
16627         (determine_group_iv_cost_cond): Ditto.
16628         (determine_use_iv_cost): Ditto.
16629         (determine_group_iv_cost): Ditto.
16630         (set_autoinc_for_original_candidates): Update all uses.
16631         (find_iv_candidates): Update all uses.  Refactor dump information.
16632         (determine_use_iv_costs): Ditto.
16633         (determine_iv_costs): Ditto.
16634         (iv_ca_cand_for_use): Rename to ...
16635         (iv_ca_cand_for_group): ... here.  Update all uses.
16636         (iv_ca_add_use, iv_ca_add_group): Ditto.
16637         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16638         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16639         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16640         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16641         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16642         (create_new_iv, adjust_iv_update_pos): Ditto.
16643         (rewrite_use_address): Delete.
16644         (rewrite_use_address_1): Rename to ...
16645         (rewrite_use_address): ... here.
16646         (rewrite_use_compare): Update all uses.
16647         (rewrite_use): Delete.
16648         (rewrite_uses): Rename to ...
16649         (rewrite_groups): ... here.  Update all uses.
16650         (remove_unused_ivs, free_loop_data): Update all uses.
16651         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16653 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16655         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16656         for WORD_REGISTER_OPERATIONS to runtime check.
16658 2016-04-27  Richard Biener  <rguenther@suse.de>
16660         PR ipa/70760
16661         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16662         aggregate_value_p to determine if a function result is
16663         returned by reference.
16664         (ipa_pta_execute): Functions having their address taken are
16665         not automatically nonlocal.
16667 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16669         PR sanitizer/70683
16670         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16671         * fold-const.c (operand_equal_p): If flag_checking and
16672         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16673         and if it returns non-zero, assert iterative_hash_expr on both
16674         args is the same.
16676 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16678         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16680 2016-04-27  Nick Clifton  <nickc@redhat.com>
16682         PR middle-end/49889
16683         * varasm.c (merge_weak): Generate an error if an attempt is made
16684         to convert a non-weak static function into a weak, public function.
16686 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16688         * params.def (MAX_PARTITION_SIZE): New param.
16689         * doc/invoke.texi: Document lto-max-partition.
16691 2016-04-27  Richard Biener  <rguenther@suse.de>
16693         PR ipa/70785
16694         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16695         function cummulating used_from_other_partition, externally_visible
16696         and force_output from aliases.
16697         (refered_from_nonlocal_var): Likewise.
16698         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16699         node flags properly.
16701 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16703         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16704         (-Wmemset-elt-size): New item.
16706 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16708         PR ada/70759
16709         * stor-layout.h (internal_reference_types): Delete.
16710         * stor-layout.c (reference_types_internal): Likewise.
16711         (internal_reference_types): Likewise.
16712         (layout_type) <REFERENCE_TYPE>: Adjust.
16714 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16716         PR sanitizer/70683
16717         * tree.h (inchash::add_expr): Add FLAGS argument.
16718         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16719         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16720         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16721         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16722         if swap_tree_comparison (code) is smaller than code, hash that
16723         and arguments in the other order.  Hash CONVERT_EXPR the same
16724         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16725         of ADDR_EXPR of decl as the decl itself.  Add or remove
16726         OEP_ADDRESS_OF from recursive flags as needed.  For
16727         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16728         operands commutatively and only the third one normally.
16729         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16731 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16733         * config/rtems.h (LIB_SPEC): Add -latomic.
16735 2016-04-27  Joel Sherrill  <joel@rtems.org>
16737         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16738         xilink.ld and flags not relevant to RTEMS.
16740 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16742         * toplev.c (backend_init_target): Avoid calling init_reload when using
16743         LRA.
16745 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16747         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16748         for loops rather than one for the whole function.
16750 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16752         * match.pd (X + CST CMP X): New transformation.
16754 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16756         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16757         * fold-const.c (fold_binary_loc): Remove 2 transformations
16758         superseded by match.pd.
16759         * match.pd (x+x -> x*2): Generalize to integers.
16761 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16763         * config/i386/i386.md (operation on memory peephole): Duplicate an
16764         existing peephole and adapt it to match lea rather than an operation
16765         that clobbers CC.
16767         PR rtl-optimization/57193
16768         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16769         and above.
16770         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16772 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16774         * tree-if-conv.c (any_pred_load_store): New static variable.
16775         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16776         any_pred_load_store instead of and_mask_load_store.
16777         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16778         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16779         (combine_blocks, tree_if_conversion): Ditto.
16781 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16783         PR tree-optimization/70771
16784         PR tree-optimization/70775
16785         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16786         virtual PHI nodes.  Delete parameter.
16787         (if_convertible_loop_p_1): Delete argument to above function.
16788         (predicate_all_scalar_phis): Delete code handling single-argument
16789         PHIs.
16790         (tree_if_conversion): Mark and update virtual SSA.
16792 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16794         PR target/61821
16795         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16796         (x86_elf_aligned_common): Rename to ...
16797         (x86_elf_aligned_decl_common): ... this.
16798         Add decl arg.  Switch to .lbss for largecomm object.  Use
16799         LARGECOMM_SECTION_ASM_OP.
16800         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16801         renaming.
16802         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16803         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16804         Pass new decl arg.
16805         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16806         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16808 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16810         PR target/59407
16811         * config/i386/i386.c (SECTION_LARGE): Define.
16812         (x86_64_elf_select_section): Set it for large data/bss sections.
16813         Only clear SECTION_WRITE for .lrodata.
16814         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16815         data/bss sections.
16816         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16817         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16818         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16819         SECTION_MACH_DEP.
16820         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16821         * doc/tm.texi: Regenerate.
16823 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16825         PR bootstrap/70704
16826         * configure.ac (--enable-checking): Document extra flag, for
16827         non-release builds default to --enable-checking=yes,extra.
16828         If misc checking and extra checking, define CHECKING_P to 2 instead
16829         of 1.
16830         * common.opt (fchecking=): Add.
16831         * doc/invoke.texi (-fchecking=): Document.
16832         * doc/install.texi: Document --enable-checking changes.
16833         * configure: Regenerated.
16834         * config.in: Regenerated.
16836 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16838         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16839         attribute instead of which_alternative.
16840         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16841         Use EXT_REX_SSE_REG_P where appropriate.
16843 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16845         * config/i386/predicates.md (const0_operand): Do not match
16846         const_wide_int code.
16847         (const1_operand): Ditto.
16849 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16851         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16852         for SSE constm1 operands and TARGET_AVX512VL.
16853         (*movti_internal): Ditto.
16854         (*mov<mode>_or): Use constm1_operand predicate.
16855         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16856         for SSE vector_all_ones operands and TARGET_AVX512VL.
16857         * config/i386/predicates.md (constm1_operand): New predicate.
16858         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16859         emission of constant -1 load.
16861 2016-04-25  Jason Merrill  <jason@redhat.com>
16863         * gdbinit.in: Skip is-a.h.
16865         * attribs.c (register_scoped_attributes): Fix logic.
16866         * attribs.h: Declare register_scoped_attributes.
16868 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16870         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16871         stxvd2x and stxvw4x built-in functions.
16873 2016-04-25  DJ Delorie  <dj@redhat.com>
16875         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16876         (ashrhi3): Likewise.
16877         (lshrhi3): Likewise.
16879 2016-04-25  Richard Biener  <rguenther@suse.de>
16881         PR tree-optimization/70780
16882         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16883         wasn't visited yet.
16884         (compute_antic): Mark blocks with abnormal preds as visited as
16885         they have a final empty antic-in solution already.
16887 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16889         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16891 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16893         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16894         mode is VQI to improve mixed mode vectorization.
16895         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16896         define_insn to match low half of signed vaddw.
16897         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16898         define_insn to match high half of signed vaddw.
16899         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16900         define_insn to match low half of unsigned vaddw.
16901         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16902         define_insn to match high half of unsigned vaddw.
16903         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16904         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16905         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16906         for new function.
16907         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16908         * config/arm/predicates.md (vect_par_constant_high): Support
16909         big endian and simplify by calling
16910         arm_simd_check_vect_par_cnst_half
16911         (vect_par_constant_low): Likewise.
16913 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16915         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16916         predicate for operand 2.
16918 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16919             H.J. Lu  <hongjiu.lu@intel.com>
16921         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16922         machine_mode argument.
16923         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16924         constm1_rtx operands.  For VOIDmode constants, get mode from
16925         pred_mode.  Check mode size if the mode is supported by ABI.
16926         (standard_sse_constant_opcode): Do not use standard_constant_p.
16927         Strictly check ABI support for all-ones operands.
16928         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16929         immediates. Update calls to standard_sse_constant_p.
16930         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16931         (ix86_rtx_costs): Ditto.
16932         * config/i386/i386.md (*movxi_internal_avx512f): Use
16933         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16934         Use (v,BC) alternative instead of (v,C). Use register_operand
16935         checks instead of MEM_P.
16936         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16937         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16938         isa attribute.  Use register_operand checks instead of MEM_P.
16939         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16940         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16941         alternative and corresponding sse2 isa attribute.
16942         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16943         to standard_sse_constant_p.
16944         (FP constant splitters): Ditto.
16945         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16946         (C): Ditto.
16947         * config/i386/predicates.md (constm1_operand): Remove.
16948         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16949         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16950         vector_all_ones_operand instead of constm1_operand.
16952 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16954         * print-rtl.c (print_rtx_insn_vec): New function.
16955         * print-rtl.h: New prototype.
16956         * store-motion.c (struct st_expr): Make avail_stores a vector.
16957         (st_expr_entry): Adjust.
16958         (free_st_expr_entry): Likewise.
16959         (print_store_motion_mems): Likewise.
16960         (find_moveable_store): Likewise.
16961         (compute_store_table): Likewise.
16962         (delete_store): Likewise.
16963         (build_store_vectors): Likewise.
16965 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16967         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16969 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16971         * vec.h (vec_safe_contains): New function.
16972         (vec::contains): Likewise.
16973         (vec::begin): Likewise.
16974         (vec::end): Likewise.
16976 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16978         PR sanitizer/70712
16979         * cfgexpand.c (expand_stack_vars): Fix typo.
16981 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16983         * system.h (list, map, set, vector): Include conditionally.
16984         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16985         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16986         * ipa-icf.c (INCLUDE_LIST): Define.
16987         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16988         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16989         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16990         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16991         * cp/logic.cc (INCLUDE_LIST): Define.
16992         * fortran/trans-common.c (INCLUDE_MAP): Define.
16994 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16996         * auto-profile.c: Remove <string.h> include.
16997         * ipa-icf-gimple.c: Remove <list> include.
16998         * diagnostic.c: Remove <new> include.
16999         * genmatch.c: Likewise.
17000         * pretty-print.c: Likewise.
17001         * toplev.c: Likewise
17002         * c/c-objc-common.c: Likewise.
17003         * cp/error.c: Likewise.
17004         * fortran/error.c: Likewise.
17006 2016-04-22  Richard Biener  <rguenther@suse.de>
17008         * lto-streamer-in.c (input_ssa_names): Do not allocate
17009         GIMPLE_NOP for all SSA names.
17010         * lto-streamer-out.c (output_ssa_names): Do not output
17011         SSA names that should have been released.
17013 2016-04-22  Richard Biener  <rguenther@suse.de>
17015         PR tree-optimization/70740
17016         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
17017         VDEF.
17019 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
17021         PR target/70750
17022         * config/i386/predicates.md (call_insn_operand): Replace
17023         sibcall_memory_operand with memory_operand.
17025 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
17027         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
17028         has_single_use() tests.
17029         (register_edge_assert_for_1): Likewise.
17030         (find_assert_locations_1): Check the liveness bitmap instead of
17031         checking has_single_use().
17033 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17035         PR target/70728
17036         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
17037         Extract AVX-512BW constraint from AVX.
17039 2016-04-21  Richard Biener  <rguenther@suse.de>
17041         PR tree-optimization/70725
17042         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
17043         for phi_convertible_by_degenerating_args.
17044         (predicate_all_scalar_phis): Handle single-argument PHIs.
17046 2016-04-21  Richard Biener  <rguenther@suse.de>
17048         PR middle-end/70747
17049         * fold-const.c (fold_comparison): Return properly typed
17050         constant boolean.
17052 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
17054         PR tree-optimization/70715
17055         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
17056         after expanding BASE using expand_simple_operations.
17058 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17060         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
17061         New transformations.
17063 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17065         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
17067 2016-04-20  Jan Hubicka  <jh@suse.cz>
17069         * ipa-inline.c (can_inline_edge_p): Pass caller info to
17070         ultiimate_alias_target.
17071         (update_callee_keys): Likewise.
17072         (lookup_recursive_calls): Likewise.
17073         (speculation_useful_p): Likewise.
17075 2016-04-20  Jan Hubicka  <jh@suse.cz>
17077         PR ipa/70018
17078         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
17079         (set_nothrow_flag_1): ... this; handle interposition correctly;
17080         recurse on aliases and thunks.
17081         (cgraph_node::set_nothrow_flag): New.
17082         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
17083         functions compiled with non-call exceptions that binds to current
17084         def.
17085         (propagate_nothrow): Be safe WRT interposition.
17086         * cgraph.h (set_nothrow_flag): Update prototype.
17088 2016-04-18  Jan Hubicka  <jh@suse.cz>
17090         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17091         max_loop_iterations_int.
17092         (tree_unswitch_outer_loop): Likewise.
17094 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17096         PR tree-optimization/69489
17097         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17098         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17099         Revise dump message.
17100         (if_convertible_bb_p): Remove check on edge count of basic block's
17101         predecessors.
17103 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17105         PR tree-optimization/56625
17106         PR tree-optimization/69489
17107         * tree-data-ref.h (DR_INNERMOST): New macro.
17108         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17109         hashing struct innermost_loop_behavior.
17110         (ref_DR_map): Remove.
17111         (innermost_DR_map): New map.
17112         (baseref_DR_map): Revise comment.
17113         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17114         to innermost_DR_map accroding to its innermost loop behavior.
17115         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17116         to its innermost loop behavior.
17117         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17118         Add initialization for innermost_DR_map.  Record memory reference
17119         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17120         have innermost loop behavior.
17121         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
17122         innermost_DR_map.
17124 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
17126         * config/i386/i386.md (*lea<mode>_general_1): Rename from
17127         *lea_general_1.  Use explicit SWI12 mode interator.
17128         (*lea<mode>_general_2): Rename from *lea_general_2.
17129         Use explicit SWI12 mode interator.
17130         (*lea<mode>_general_3): Rename from *lea_general_3.
17131         Use explicit SWI12 mode interator.
17132         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17133         Use explicit SWI12 mode interator.
17134         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17135         Use explicit SWI48 mode interator.
17137 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17139         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17140         Short-cut unaligned load and store cases.  Handle all integer
17141         vector modes.
17142         (ix86_expand_vector_move_misalign): Short-cut unaligned load
17143         and store cases.  Call ix86_avx256_split_vector_move_misalign
17144         directly without checking mode class.
17146 2016-04-20  Andrew Pinski  <apinski@cavium.com>
17147             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17149         PR target/64971
17150         * config/aarch64/aarch64.md (sibcall): Force call
17151         address to be DImode for ILP32.
17152         (sibcall_value): Likewise.
17154 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17156         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17158 2016-04-20  Richard Biener  <rguenther@suse.de>
17160         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17161         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17162         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17163         (maybe_push_res_to_seq): Adjust.
17164         * gimple-fold.c (maybe_build_generic_op): Likewise.
17166 2016-04-20  Marek Polacek  <polacek@redhat.com>
17168         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17169         rather than true.
17171 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
17173         * config/i386/sse.md (vec_unpacks_lo_hi): Always
17174         use kmovw to support AVX512F target.
17176 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17178         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17180 2016-04-20  Marek Polacek  <polacek@redhat.com>
17182         PR tree-optimization/70725
17183         * tree-if-conv.c (is_false_predicate): New function.
17184         (predicate_mem_writes): Use it.
17186 2016-04-20  Richard Biener  <rguenther@suse.de>
17188         PR tree-optimization/70726
17189         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
17190         shift amounts from a pattern stmt operand.
17192 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17194         PR target/70674
17195         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
17196         stack_restore_from_fpr pattern when restoring r15.
17197         (s390_optimize_prologue): Strip away the memory barrier in the
17198         parallel when trying to get rid of restore insns.
17199         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
17200         definition for loading the stack pointer from an FPR.  Compared to
17201         the normal move insn this pattern includes a full memory barrier.
17203 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
17205         PR middle-end/70680
17206         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
17207         implicitly linear or lastprivate iterator on the outer context.
17209 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17211         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
17212         alignment check.
17213         * config/i386/i386.md (ssememalign): Removed.
17214         * config/i386/sse.md: Remove ssememalign attribute from patterns.
17216 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17218         PR target/69201
17219         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
17220         const short * to __builtin_ia32_loaddquhi512_mask.
17221         (_mm512_maskz_loadu_epi16): Likewise.
17222         (_mm512_mask_storeu_epi16): Pass short * to
17223         __builtin_ia32_storedquhi512_mask.
17224         (_mm512_mask_loadu_epi8): Pass const char * to
17225         __builtin_ia32_loaddquqi512_mask.
17226         (_mm512_maskz_loadu_epi8): Likewise.
17227         (_mm512_mask_storeu_epi8): Pass char * to
17228         __builtin_ia32_storedquqi512_mask.
17229         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
17230         const double * to __builtin_ia32_loadupd512_mask.
17231         (_mm512_mask_loadu_pd): Likewise.
17232         (_mm512_maskz_loadu_pd): Likewise.
17233         (_mm512_storeu_pd): Pass double * to
17234         __builtin_ia32_storeupd512_mask.
17235         (_mm512_mask_storeu_pd): Likewise.
17236         (_mm512_loadu_ps): Pass const float * to
17237         __builtin_ia32_loadups512_mask.
17238         (_mm512_mask_loadu_ps): Likewise.
17239         (_mm512_maskz_loadu_ps): Likewise.
17240         (_mm512_storeu_ps): Pass float * to
17241         __builtin_ia32_storeups512_mask.
17242         (_mm512_mask_storeu_ps): Likewise.
17243         (_mm512_mask_loadu_epi64): Pass const long long * to
17244         __builtin_ia32_loaddqudi512_mask.
17245         (_mm512_maskz_loadu_epi64): Likewise.
17246         (_mm512_mask_storeu_epi64): Pass long long *
17247         to __builtin_ia32_storedqudi512_mask.
17248         (_mm512_loadu_si512): Pass const int * to
17249         __builtin_ia32_loaddqusi512_mask.
17250         (_mm512_mask_loadu_epi32): Likewise.
17251         (_mm512_maskz_loadu_epi32): Likewise.
17252         (_mm512_storeu_si512): Pass int * to
17253         __builtin_ia32_storedqusi512_mask.
17254         (_mm512_mask_storeu_epi32): Likewise.
17255         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
17256         char * to __builtin_ia32_storedquqi256_mask.
17257         (_mm_mask_storeu_epi8): Likewise.
17258         (_mm256_mask_loadu_epi16): Pass const short * to
17259         __builtin_ia32_loaddquhi256_mask.
17260         (_mm256_maskz_loadu_epi16): Likewise.
17261         (_mm_mask_loadu_epi16): Pass const short * to
17262         __builtin_ia32_loaddquhi128_mask.
17263         (_mm_maskz_loadu_epi16): Likewise.
17264         (_mm256_mask_loadu_epi8): Pass const char * to
17265         __builtin_ia32_loaddquqi256_mask.
17266         (_mm256_maskz_loadu_epi8): Likewise.
17267         (_mm_mask_loadu_epi8): Pass const char * to
17268         __builtin_ia32_loaddquqi128_mask.
17269         (_mm_maskz_loadu_epi8): Likewise.
17270         (_mm256_mask_storeu_epi16): Pass short * to.
17271         __builtin_ia32_storedquhi256_mask.
17272         (_mm_mask_storeu_epi16): Pass short * to.
17273         __builtin_ia32_storedquhi128_mask.
17274         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17275         const double * to __builtin_ia32_loadupd256_mask.
17276         (_mm256_maskz_loadu_pd): Likewise.
17277         (_mm_mask_loadu_pd): Pass onst double * to
17278         __builtin_ia32_loadupd128_mask.
17279         (_mm_maskz_loadu_pd): Likewise.
17280         (_mm256_mask_storeu_pd): Pass double * to
17281         __builtin_ia32_storeupd256_mask.
17282         (_mm_mask_storeu_pd): Pass double * to
17283         __builtin_ia32_storeupd128_mask.
17284         (_mm256_mask_loadu_ps): Pass const float * to
17285         __builtin_ia32_loadups256_mask.
17286         (_mm256_maskz_loadu_ps): Likewise.
17287         (_mm_mask_loadu_ps): Pass const float * to
17288         __builtin_ia32_loadups128_mask.
17289         (_mm_maskz_loadu_ps): Likewise.
17290         (_mm256_mask_storeu_ps): Pass float * to
17291         __builtin_ia32_storeups256_mask.
17292         (_mm_mask_storeu_ps): ass float * to
17293         __builtin_ia32_storeups128_mask.
17294         (_mm256_mask_loadu_epi64): Pass const long long * to
17295         __builtin_ia32_loaddqudi256_mask.
17296         (_mm256_maskz_loadu_epi64): Likewise.
17297         (_mm_mask_loadu_epi64): Pass const long long * to
17298         __builtin_ia32_loaddqudi128_mask.
17299         (_mm_maskz_loadu_epi64): Likewise.
17300         (_mm256_mask_storeu_epi64): Pass long long * to
17301         __builtin_ia32_storedqudi256_mask.
17302         (_mm_mask_storeu_epi64): Pass long long * to
17303         __builtin_ia32_storedqudi128_mask.
17304         (_mm256_mask_loadu_epi32): Pass const int * to
17305         __builtin_ia32_loaddqusi256_mask.
17306         (_mm256_maskz_loadu_epi32): Likewise.
17307         (_mm_mask_loadu_epi32): Pass const int * to
17308         __builtin_ia32_loaddqusi128_mask.
17309         (_mm_maskz_loadu_epi32): Likewise.
17310         (_mm256_mask_storeu_epi32): Pass int * to
17311         __builtin_ia32_storedqusi256_mask.
17312         (_mm_mask_storeu_epi32): Pass int * to
17313         __builtin_ia32_storedqusi128_mask.
17314         * config/i386/i386-builtin-types.def (PCSHORT): New.
17315         (PINT64): Likewise.
17316         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17317         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17318         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17319         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17320         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17321         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
17322         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
17323         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
17324         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
17325         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
17326         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
17327         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
17328         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
17329         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
17330         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
17331         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
17332         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
17333         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
17334         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
17335         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
17336         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
17337         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
17338         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
17339         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
17340         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
17341         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
17342         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
17343         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
17344         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
17345         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
17346         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
17347         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
17348         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
17349         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
17350         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
17351         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
17352         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
17353         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
17354         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
17355         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
17356         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
17357         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
17358         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
17359         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
17360         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
17361         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
17362         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
17363         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
17364         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
17365         use UNSPEC_STOREU.
17366         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
17367         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
17368         load nor store.
17369         (ix86_expand_vector_move_misalign): Likewise.
17370         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
17371         to scalar function prototype for unaligned load/store builtins.
17372         (ix86_expand_special_args_builtin): Updated.
17373         * config/i386/sse.md (UNSPEC_LOADU): Removed.
17374         (UNSPEC_STOREU): Likewise.
17375         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
17376         (VI_ULOADSTORE_F_AVX512VL): Likewise.
17377         (ssescalarsize): Handle V4TI, V2TI and V1TI.
17378         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17379         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17380         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
17381         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
17382         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
17383         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
17384         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
17385         (<avx512>_storedqu<mode>_mask): Likewise.
17386         (*sse4_2_pcmpestr_unaligned): Likewise.
17387         (*sse4_2_pcmpistr_unaligned): Likewise.
17388         (*mov<mode>_internal): Renamed to ...
17389         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
17390         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
17391         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
17392         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
17394 2016-04-19  Richard Biener  <rguenther@suse.de>
17396         PR tree-optimization/70171
17397         * tree-ssa-phiprop.c: Include stor-layout.h.
17398         (phiprop_insert_phi): Handle the aggregate copy case.
17399         (propagate_with_phi): Likewise.
17401 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
17403         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
17404         instead of simplify_gen_subreg (... , 0).
17405         (ix86_delegitimize_address): Ditto.
17406         (ix86_split_divmod): Ditto.
17407         (ix86_split_copysign_const): Ditto.
17408         (ix86_split_copysign_var): Ditto.
17409         (ix86_expand_args_builtin): Ditto.
17410         (ix86_expand_round_builtin): Ditto.
17411         (ix86_expand_special_args_builtin): Ditto.
17412         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
17413         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
17414         (udivmodqi4): Ditto.
17415         (absneg splitters): Ditto.
17416         (*jcc_bt<mode>_1): Ditto.
17418 2016-04-19  Richard Biener  <rguenther@suse.de>
17420         PR tree-optimization/70724
17421         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
17422         restoring out from ...
17423         (free_scc_vn): ... here.
17424         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
17425         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
17426         tail merging.
17427         (pass_fre::execute): Restore SSA info.
17429 2016-04-19  Richard Biener  <rguenther@suse.de>
17431         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
17432         * gimple-walk.c (walk_gimple_op): Initialize it.
17433         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
17434         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
17435         remapping SSA names of defs.
17436         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
17437         adjustment.
17439 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
17441         PR middle-end/70689
17442         * lra-constraints.c (equiv_substition_p): New.
17443         (process_alt_operands): Use it.
17444         (swap_operands): Swap it.
17445         (curr_insn_transform): Update it.
17447 2016-04-18  Michael Matz  <matz@suse.de>
17449         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
17450         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
17451         * tree-core.h (tree_type_common.align): Use bit-field.
17452         (tree_type_common.spare): New.
17453         (tree_decl_common.off_align): Make smaller.
17454         (tree_decl_common.align): Use bit-field.
17456         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
17457         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
17458         (scan_sharing_clauses): Ditto.
17459         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17460         (omp_finish_file): Ditto.
17461         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
17462         (layout_decl): Ditto.
17463         (relayout_decl): Ditto.
17464         (finalize_record_size): Use SET_TYPE_ALIGN.
17465         (finalize_type_size): Ditto.
17466         (finish_builtin_struct): Ditto.
17467         (layout_type): Ditto.
17468         (initialize_sizetypes): Ditto.
17469         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
17470         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
17471         (lookup_field_for_decl): Use SET_DECL_ALIGN.
17472         (get_chain_field): Ditto.
17473         (get_trampoline_type): Ditto.
17474         (get_nl_goto_field): Ditto.
17475         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17476         SET_DECL_ALIGN.
17477         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
17478         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
17479         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17480         (build_qualified_type): Use SET_TYPE_ALIGN.
17481         (build_aligned_type, build_range_type_1): Ditto.
17482         (build_atomic_base): Ditto.
17483         (build_common_tree_nodes): Ditto.
17484         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
17485         (expand_one_stack_var_at): Ditto.
17486         * coverage.c (build_var): Use SET_DECL_ALIGN.
17487         * except.c (init_eh): Ditto.
17488         * function.c (assign_parm_setup_block): Ditto.
17489         * symtab.c (increase_alignment_1): Ditto.
17490         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
17491         * tree-vect-stmts.c (ensure_base_align): Ditto.
17492         * varasm.c (align_variable): Ditto.
17493         (assemble_variable): Ditto.
17494         (build_constant_desc): Ditto.
17495         (output_constant_def_contents): Ditto.
17497         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
17498         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
17499         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
17500         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
17501         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
17503 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
17505         PR target/70708
17506         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
17507         replace %vmovsd with "%vmovq".
17508         (vec_concatv2df): Likewise.
17510 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
17512         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
17513         (*vec_extractv2si_0): Ditto.
17514         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
17515         (zero_extended_scalar_load_operand splitters): Ditto.
17516         (vec_extract splitters): Ditto.
17517         (*vec_extractv4si_0_zext): Ditto.
17518         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
17519         and lowpart_subreg.
17520         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
17521         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
17522         (*sse4_1_extractps): Use lowpart_subreg.
17523         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
17525 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17527         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
17528         gld requirements.
17529         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
17530         Mention Solaris 11 packaging changes.
17531         Update gas and gld requirements.
17532         Remove reference to pre-Solaris 10 bug.
17533         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
17534         systems and bugs.
17535         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
17536         with cc.
17538 2016-04-17  Jan Hubicka  <jh@suse.cz>
17540         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
17541         max_loop_iterations_int.
17543 2016-04-18  Richard Biener  <rguenther@suse.de>
17545         PR tree-optimization/43434
17546         * tree-ssa-structalias.c (struct vls_data): New.
17547         (visit_loadstore): Handle all pointer-based accesses.
17548         (compute_dependence_clique): Compute a bitmap of restrict tags
17549         assigned bases and pass it to visit_loadstore.
17551 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
17553         PR target/70711
17554         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17555         armv8.1-a and armv8.1-a+crc.
17557 2016-04-18  Richard Biener  <rguenther@suse.de>
17559         PR tree-optimization/70701
17560         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17561         references after translating through a memcpy.
17563 2016-04-18  Richard Biener  <rguenther@suse.de>
17565         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17566         (compute_antic): ... here.  For partial antic use regular
17567         postorder and scrap iteration.
17568         (compute_partial_antic_aux): Remove unused return value.
17569         (init_pre): Do not allocate postorder.
17570         (fini_pre): Do not free postorder.
17572 2016-04-18  Richard Biener  <rguenther@suse.de>
17574         PR middle-end/37870
17575         * expmed.c (extract_bit_field_1): Remove broken case
17576         using a wider MODE_INT mode.
17578 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17580         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17581         unless compiling with at least GCC-4.8.
17583 2016-04-17  Jan Hubicka  <jh@suse.cz>
17585         PR bootstrap/70706
17586         * graphite.c (graphite_finalize): Update call to
17587         tree_estimate_probability.
17588         * predict.h (tree_estimate_probability): Update prototype.
17590 2016-04-17  Jan Hubicka  <jh@suse.cz>
17592         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17593         (tree_estimate_probability): Likewise.
17594         (pass_profile::execute): Update.
17595         (report_predictor_hitrates): New function.
17596         * profile.c (compute_branch_probabilities): Use it.
17597         * predict.h (report_predictor_hitrates): Declare.
17599 2016-04-17  Jan Hubicka  <jh@suse.cz>
17601         PR ipa/70018
17602         * cgraph.h (cgraph_node::set_const_flag,
17603         cgraph_node::set_pure_flag): Update prototype to return bool;
17604         update comment.
17605         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17606         of interposable symbol are interposable, too.
17607         (cgraph_set_const_flag_1): Rename to ...
17608         (set_const_flag_1): ... this one; change to self recursive function
17609         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17610         clearnig the flag in all variants and also virtual thunks of const
17611         functions are pure; track if any change was done.
17612         (cgraph_node::set_const_flag): Update.
17613         (struct set_pure_flag_info): New struct.
17614         (cgraph_set_pure_flag_1): Rename to ...
17615         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17616         rather than pointer encoded flags; track if any changes was done;
17617         handle correctly clearning flag and setting flag of aliases already
17618         declared const.
17619         (cgraph_node::set_pure_flag): Update.
17620         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17622 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17624         PR other/70433
17625         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17626         backslash in label.
17628 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17630         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17631         '{}<> ' as escape-for-record.
17633 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17635         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17636         structure.
17638 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17640         PR other/70185
17641         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17642         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17643         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17644         * passes.c (finish_optimization_passes): Only call
17645         finish_graph_dump_file if dfi->graph_dump_initialized.
17646         (execute_function_dump, pass_init_dump_file): Use
17647         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17649 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17651         PR tree-optimization/70256
17652         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17653         (debug_varmap): New function.
17655 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17657         PR other/70183
17658         * passes.c (pass_manager::register_pass): Propagate pflags.
17660 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17662         PR other/68875
17663         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17664         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17665         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17666         check if it's equal to p_start.
17667         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17669 2016-04-15  Jan Hubicka  <jh@suse.cz>
17671         PR ipa/70018
17672         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17673         function does not bind to current def.
17674         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17675         handle conservatively calls to functions that does not need to bind
17676         to current def.
17677         (check_call): Update call of worse_state.
17678         (ignore_edge_for_nothrow): Update.
17679         (ignore_edge_for_pure_const): Likewise.
17680         (propagate_pure_const): Update calls to worse_state.
17681         (skip_function_for_local_pure_const): Reformat comments.
17683 2016-04-15  Jan Hubicka  <jh@suse.cz>
17685         PR ipa/70018
17686         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17687         (cgraph_node::function_symbol): Likewise.
17688         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17689         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17690         (symtab_node::ultimate_alias_target): Add REF parameter.
17691         (symtab_node::binds_to_current_def_p): Declare.
17692         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17693         (cgraph_node::function_symbol): Likewise.
17694         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17695         (cgraph_node::get_availability): Likewise.
17696         (cgraph_edge::binds_to_current_def_p): New inline function.
17697         (varpool_node::get_availability): Add REF parameter.
17698         (varpool_node::ultimate_alias_target): Likewise.
17699         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17700         (symtab_node::binds_to_current_def_p): Likewise.
17701         * varpool.c (varpool_node::get_availability): Likewise.
17703 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17705         PR target/70662
17706         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17707         Fix mode size check.
17709 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17711         * BASE-VER: Set to 7.0.0.
17713 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17715         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17717 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17719         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17720         architecture revisions.
17722 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17724         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17725         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17726         * config/i386/i386.md (stack decrement to push peepholes): Guard
17727         with !x86_using_red_zone ().
17729 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17731         PR c++/70675
17732         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17733         to dump_generic_node.
17734         (NIY): Pass also flags to do_niy.
17736 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17738         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17739         (simd_clone_vector_of_formal_parm_types)
17740         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17741         (simd_clone_mangle, simd_clone_create)
17742         (simd_clone_adjust_return_type, create_tmp_simd_array)
17743         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17744         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17745         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17746         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17747         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17748         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17749         * omp-simd-clone.c: ... this new file.
17750         (simd_clone_vector_of_formal_parm_types): Make it static.
17751         * Makefile.in (OBJS): Add omp-simd-clone.o.
17753 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17755         PR target/70662
17756         * config/i386/sse.md: Use proper memory operand modifiers.
17759 2016-04-15  Richard Biener  <rguenther@suse.de>
17760         Alan Modra  <amodra@gmail.com>
17762         PR tree-optimization/70130
17763         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17764         when alignment stays not the same and no not use the realign
17765         scheme then.
17767 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17769         PR target/70669
17770         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17771         direct move handlers for KFmode. Change TFmode handlers test from
17772         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17774 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17776         PR c++/70594
17777         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17778         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17779         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17780         * tree-ssa-live.c (remove_unused_scope_block_p): When
17781         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17782         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17783         block_ultimate_origin is FUNCTION_DECL.
17784         (remove_unused_locals): If current_function_decl is
17785         polymorphic_ctor_dtor_p, pass initial true to
17786         remove_unused_scope_block_p' is_ctor_dtor_block.
17788 2016-04-14  Martin Sebor  <msebor@redhat.com>
17790         PR c++/69517
17791         PR c++/70019
17792         PR c++/70588
17793         * doc/extend.texi (Variable Length): Revert.
17795 2016-04-14  Marek Polacek  <polacek@redhat.com>
17796             Jan Hubicka  <hubicka@ucw.cz>
17798         PR c++/70029
17799         * tree.c (verify_type): Disable the canonical type of main variant
17800         check.
17802 2016-04-14  Jason Merrill  <jason@redhat.com>
17804         * cfgexpand.c, expr.c: Revert previous change.
17806 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17808         PR middle-end/70643
17809         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17810         when building a mem ref for the incoming reduction variable.
17812 2016-04-14  Richard Biener  <rguenther@suse.de>
17814         PR tree-optimization/70614
17815         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17816         loop if the evolution dropped to chrec_dont_know.
17817         (interpret_condition_phi): Likewise.
17819 2016-04-14  Richard Biener  <rguenther@suse.de>
17821         PR tree-optimization/70623
17822         * tree-ssa-pre.c (changed_blocks): Make global ...
17823         (compute_antic): ... local here.  Move and fix worklist
17824         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17825         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17826         worklist handling, dump when ANTIC_IN changed.
17827         (compute_partial_antic_aux): Remove worklist handling.
17828         (init_pre): Do not compute post dominators.  Add a comment about
17829         the CFG order chosen.
17830         (fini_pre): Do not free post dominators.
17832 2016-04-13  Martin Sebor  <msebor@redhat.com>
17834         PR c++/69517
17835         PR c++/70019
17836         PR c++/70588
17837         * doc/extend.texi (Variable Length): Document C++ specifics.
17839 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17841         PR c++/70641
17842         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17843         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17844         eh edges have been purged.
17846         PR c++/70594
17847         * tree-sra.c (create_access_replacement,
17848         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17849         gets fancy name.
17850         * tree-pretty-print.c (dump_fancy_name): New function.
17851         (dump_decl_name, dump_generic_node): Use it.
17853 2016-04-13  Jason Merrill  <jason@redhat.com>
17855         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17856         * expr.c (expand_expr_real_1): Likewise.
17858 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17860         * config/i386/i386.md (kunpckhi): Swap operands.
17861         (kunpcksi): Likewise.
17862         (kunpckdi): Likewise.
17863         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17864         (vec_pack_trunc_<mode>): Likewise.
17866 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17868         PR debug/70628
17869         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17871         PR middle-end/70633
17872         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17873         gimplification turns some element into non-constant.
17875         PR debug/70628
17876         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17877         * explow.c (convert_memory_address_addr_space_1): No longer static,
17878         add NO_EMIT argument and don't call convert_modes if true, pass
17879         it down recursively, remove break after return.
17880         (convert_memory_address_addr_space): Adjust caller.
17881         * simplify-rtx.c (simplify_unary_operation_1): Call
17882         convert_memory_address_addr_space_1 instead of convert_memory_address,
17883         if it returns NULL, don't simplify.
17885 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17887         PR target/70630
17888         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17890 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17892         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17893         Bump the upper SIMDLEN limits, so that if the return type or
17894         characteristic type if the return type is void can be passed in
17895         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17896         allowed.
17898 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17900         PR target/70640
17901         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17902         Do not use "=" constraint on an input constraint.
17903         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17904         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17905         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17906         generates (neg (abs ...)) instead of (abs ...).
17908 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17910         PR rtl-optimization/70596
17911         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17912         just invalidate LRA data and reset them.  Adjust dump wording.
17914 2016-04-12  Martin Liska  <mliska@suse.cz>
17916         Revert
17917         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17919         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17920         estimates here.
17921         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17922         max_loop_iterations_int.
17923         (tree_unswitch_outer_loop): Likewise.
17924         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17925         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17927 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17929         PR tree-optimization/68756
17930         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17931         instead of new_name.
17933 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17935         PR tree-optimization/70602
17936         * tree-sra.c (generate_subtree_copies): Don't write anything into
17937         constant pool decls.
17939         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17940         regardless whether there are depend clauses or not.
17942 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17944         PR target/70381
17945         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17946         target attribute and pragma from changing the -mfloat128
17947         and -mfloat128-hardware options.
17949         * doc/extend.texi (Additional Floating Types): Document PowerPC
17950         __float128 restrictions.
17952 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17954         PR target/70133
17955         * config/aarch64/driver-aarch64.c
17956         (aarch64_get_extension_string_for_isa_flags): New.
17957         (arch_extension): Rename to...
17958         (aarch64_arch_extension): ...This.
17959         (ext_to_feat_string): Rename to...
17960         (aarch64_extensions): ...This.
17961         (aarch64_core_data): Keep track of architecture extension flags.
17962         (cpu_data): Rename to...
17963         (aarch64_cpu_data): ...This.
17964         (aarch64_arch_driver_info): Keep track of architecture extension
17965         flags.
17966         (get_arch_name_from_id): Rename to...
17967         (get_arch_from_id): ...This, change return type.
17968         (host_detect_local_cpu): Update and reformat for renames, handle
17969         extensions through common infrastructure.
17971 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17973         PR target/70133
17974         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17975         track of a canonical flag name.
17976         (all_extensions): Likewise.
17977         (arch_to_arch_name): Also track extension flags enabled by the arch.
17978         (all_architectures): Likewise.
17979         (aarch64_parse_extension): Move to here.
17980         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17981         rework.
17982         (aarch64_rewrite_selected_cpu): Update for above change.
17983         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17984         are handled, such that the single explicit value enabled by an
17985         extension is kept seperate from the implicit values it also enables.
17986         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17987         to here.
17988         (aarch64_parse_extension): New.
17989         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17990         here to config/aarch64/aarch64-protos.h.
17991         (aarch64_parse_extension): Move from here to
17992         common/config/aarch64/aarch64-common.c.
17993         (aarch64_option_print): Update.
17994         (aarch64_declare_function_name): Likewise.
17995         (aarch64_start_file): Likewise.
17996         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17997         the canonical flag for extensions.
17998         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17999         flags.
18001 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18003         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
18004         AARCH64_FL_CRC.
18006 2016-04-09  Tom de Vries  <tom@codesourcery.com>
18008         PR tree-optimization/68953
18009         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
18010         first to last subscript.
18012 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
18014         PR tree-optimization/70586
18015         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
18016         for any calls.
18018 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
18020         PR lto/70289
18021         PR ipa/70348
18022         PR tree-optimization/70373
18023         PR middle-end/70533
18024         PR middle-end/70534
18025         PR middle-end/70535
18026         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
18027         clauses for acc parallel reductions as necessary.  Error on those
18028         that are private.
18029         * omp-low.c (scan_sharing_clauses): Don't install variables which
18030         are used in acc parallel reductions.
18031         (lower_rec_input_clauses): Remove dead code.
18032         (lower_oacc_reductions): Add support for reference reductions.
18033         (lower_reduction_clauses): Remove dead code.
18034         (lower_omp_target): Don't remap variables appearing in acc parallel
18035         reductions.
18036         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
18038 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
18040         PR middle-end/70593
18041         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
18042         with multiple SSA_NAME defs, force the outputs other than first
18043         to be live before calling live_track_process_def on each output.
18045         PR rtl-optimization/70574
18046         * fwprop.c (forward_propagate_and_simplify): Don't add
18047         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
18048         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
18049         paradoxical subregs within *loc.
18051 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
18053         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
18054         -ftree-parallelize-loops={0,1}.
18055         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18056         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18057         * config/ia64/hpux.h (LIB_SPEC): Likewise.
18058         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18059         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18061 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
18063         PR sanitizer/70541
18064         * asan.c (instrument_derefs): If we get unknown location, extract it
18065         with EXPR_LOCATION.
18066         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
18068 2016-04-08  Tom de Vries  <tom@codesourcery.com>
18070         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
18071         implicit firstprivate clause.
18073 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18075         PR target/70566
18076         * config/arm/thumb2.md (tst + branch-> lsls + branch
18077         peephole below *orsi_not_shiftsi_si): Require that condition
18078         register is dead after the peephole.
18079         (second peephole after the above): Likewise.
18081 2016-04-08  Alan Modra  <amodra@gmail.com>
18083         PR target/70117
18084         * builtins.c (fold_builtin_classify): For IBM extended precision,
18085         look at just the high-order double to test for NaN.
18086         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
18087         test just the high double for Inf but both doubles for subnormal
18088         limit.
18090 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
18092         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
18093         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
18094         node->simdclone->mask_mode != VOIDmode masks.
18095         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
18096         earlier, use it instead of node->simdclone.
18097         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18098         Set clonei->mask_mode.
18100 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18102         PR c/70436
18103         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18104         Pass it through to cp_parser_already_scoped_statement.
18105         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
18106         it through to cp_parser_statement.
18107         (cp_parser_statement): Pass IF_P through to
18108         cp_parser_iteration_statement.
18109         (cp_parser_pragma): Adjust call to
18110         cp_parser_iteration_statement.
18112 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18114         PR c/70436
18115         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18116         resolve a future -Wparentheses warning.
18117         * omp-low.c (scan_sharing_clauses): Likewise.
18118         * tree-parloops.c (eliminate_local_variables): Likewise.
18120 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
18122         PR rtl-optimization/70398
18123         * lra-constraints.c (process_address_1): Check zero scale and code
18124         for reloading with zero scale.
18126 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
18128         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18129         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18131 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
18133         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18134         Add support for AVX512F clones, include them by default for
18135         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
18136         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18137         up to 128.
18139         PR middle-end/70550
18140         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18141         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18142         firstprivate clauses.
18143         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18144         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18145         (lower_omp_target): Set TREE_NO_WARNING for
18146         non-addressable possibly uninitialized vars which are copied into
18147         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18149 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
18151         * config/pa/predicates.md (integer_store_memory_operand): Accept
18152         REG+D operands with a large offset when reload_in_progress is true.
18153         (floating_point_store_memory_operand): Likewise.
18155 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18157         PR c++/70336
18158         * match.pd (nested int casts): Limit to GIMPLE.
18160 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
18162         PR ipa/66223
18163         * ipa-devirt.c (maybe_record_node): Fix comment; use
18164         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18166 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18168         PR rtl-optimization/70542
18169         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18170         if there are any uses other than insn or debug insns.
18172 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
18173             Jakub Jelinek  <jakub@redhat.com>
18175         PR tree-optimization/70509
18176         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18177         Shift HOST_WIDE_INT_1U instead of 1.
18179 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
18181         PR tree-optimization/70509
18182         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
18183         of the vector base type for index.
18185 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
18187         PR target/70510
18188         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
18190 2016-04-05  Richard Biener  <rguenther@suse.de>
18192         PR tree-optimization/70526
18193         * tree-sra.c (build_ref_for_offset): Use prev_base to
18194         extract the alias pointer type.
18196 2016-04-05  Richard Biener  <rguenther@suse.de>
18198         * dse.c (struct store_info): Remove alias_set member.
18199         (struct read_info_type): Likewise.
18200         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
18201         spill_deleted, clear_alias_set_lookup): Remove.
18202         (get_group_info): Remove dead base == NULL_RTX case.
18203         (dse_step0): Remove initialization of removed variables.
18204         (delete_dead_store_insn): Reomve alias set dumping.
18205         (free_read_records): Remove alias_set handling.
18206         (canon_address): Remove alias_set_out parameter.
18207         (record_store): Remove spill_alias_set, it's always zero.
18208         (check_mem_read_rtx): Likewise.
18209         (dse_step2): Rename from ...
18210         (dse_step2_nospill): ... this.  Adjust.
18211         (scan_stores): Rename from ...
18212         (scan_stores_nospill): ... this.
18213         (scan_reads): Rename from ...
18214         (scan_reads_nospill): ... this.
18215         (scan_stores_spill, scan_reads_spill): Remove.
18216         (dse_step3_scan): Remove for_spills argument which is always false.
18217         (dse_step3): Likewise.
18218         (dse_step5): Rename from ...
18219         (dse_step5_nospill): ... this.  Remove alias_set handling.
18220         (rest_of_handle_dse): Adjust.
18222 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18224         PR target/70525
18225         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
18226         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
18227         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
18228         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
18230 2016-04-05  Richard Biener  <rguenther@suse.de>
18232         PR middle-end/70499
18233         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
18234         non-register type temporaries into SSA.
18236 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
18238         PR ipa/66223
18239         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
18240         calls when sanitizing.
18241         (possible_polymorphic_call_target_p): Fix formatting.
18243 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18244             Jakub Jelinek  <jakub@redhat.com>
18246         PR middle-end/70457
18247         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
18248         to ensure a call statement is compatible with a built-in's
18249         prototype.
18250         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
18251         Likewise.
18253 2016-04-04  Richard Biener  <rguenther@suse.de>
18255         PR rtl-optimization/70484
18256         * rtl.h (canon_output_dependence): Declare.
18257         * alias.c (canon_output_dependence): New function.
18258         * dse.c (record_store): Use canon_output_dependence rather
18259         than canon_true_dependence.
18261 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18263         PR ipa/68881
18264         * cgraph.h (symtab_node::copy_visibility_from): New function.
18265         * symtab.c (symtab_node::copy_visibility_from): New function.
18266         * ipa-visibility.c (optimize_weakref): New function.
18267         (function_and_variable_visibility): Use it.
18269 2016-04-04  Martin Liska  <mliska@suse.cz>
18271         PR hsa/70402
18272         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18273         value that is really in range handled by SBR instruction.
18274         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18275         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18276         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18278 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
18280         PR target/70416
18281         PR target/67391
18282         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18283         set, but not for SP_REG operands.
18285 2016-04-02  Martin Sebor  <msebor@redhat.com>
18287         PR c++/67376
18288         * fold-const.c (maybe_nonzero_address): New function.
18289         (fold_comparison): Call it.  Fold equality and relational
18290         expressions involving null pointers.
18291         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18293 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
18295         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18296         the "Y" constraint (scalar FP 0.0 immediate).
18298         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18299         Add the "const_double" to the list of operand constraints.
18301 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
18303         PR rtl-optimization/70467
18304         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18305         If low word of the last operand is 0, just emit addition/subtraction
18306         for the high word.
18308 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18310         PR target/70404
18311         * config/s390/s390.c (s390_expand_insv): Check for everything
18312         constant instead of just VOIDmode stuff.
18314 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18316         PR target/70496
18317         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18319 2016-04-01  Nathan Sidwell  <nathan@acm.org>
18321         * tree.def (TRY_CATCH_EXPR): Correct documentation.
18323 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
18325         PR rtl-optimization/70461
18326         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
18327         is necessary.
18329 2016-03-31  Martin Liska  <mliska@suse.cz>
18331         PR hsa/70399
18332         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
18333         a tree value or an immediate integer value to a buffer
18334         that is eventually copied to a BRIG section.
18335         (emit_immediate_operand): Call the function here.
18336         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
18337         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
18338         of class' fields that are removed.
18339         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
18340         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
18341         m_brig_repr_size fields.
18343 2016-03-31  Martin Liska  <mliska@suse.cz>
18345         PR hsa/70391
18346         * hsa-gen.c (hsa_function_representation::update_dominance): New
18347         function.
18348         (convert_addr_to_flat_segment): Likewise.
18349         (gen_hsa_memory_set): New alignment argument.
18350         (gen_hsa_ctor_assignment): Likewise.
18351         (gen_hsa_insns_for_single_assignment): Provide alignment
18352         to gen_hsa_ctor_assignment.
18353         (gen_hsa_insns_for_direct_call): Add new argument.
18354         (expand_lhs_of_string_op): New function.
18355         (expand_string_operation_builtin): Likewise.
18356         (expand_memory_copy): New function.
18357         (expand_memory_set): New function.
18358         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
18359         (convert_switch_statements): Change signature.
18360         (generate_hsa): Use a return value of the function.
18361         (pass_gen_hsail::execute): Do not call
18362         convert_switch_statements here.
18363         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
18364         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
18365         (hsa_function_representation::update_dominance): New function.
18367 2016-03-31  Martin Liska  <mliska@suse.cz>
18369         PR hsa/70391
18370         * hsa-brig.c (emit_directive_variable): Emit alignment
18371         according to hsa_symbol::m_align.
18372         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
18373         (dump_hsa_symbol): Dump alignment of HSA symbols.
18374         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
18375         (gen_hsa_addr_with_align): New function.
18376         (hsa_bitmemref_alignment): Use newly added function.
18377         (gen_hsa_insns_for_load): Likewise.
18378         (gen_hsa_insns_for_store): Likewise.
18379         (gen_hsa_memory_copy): New argument added.
18380         (gen_hsa_insns_for_single_assignment): Respect
18381         alignment for assignments processed via gen_hsa_memory_copy.
18382         (gen_hsa_insns_for_direct_call): Likewise.
18383         (gen_hsa_insns_for_return): Likewise.
18384         (gen_function_def_parameters): Set default alignment.
18385         * hsa.c (hsa_object_alignment): New function.
18386         (hsa_byte_alignment): Pasted function.
18387         * hsa.h (hsa_symbol::m_align): New field.
18389 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18391         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
18392         scratch field for goto case.
18394 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
18396         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
18398 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
18400         PR target/70442
18401         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
18402         (scalar_chain::convert_insn): Call convert_op for reg
18403         moves to handle undefined registers.
18405 2016-03-31  Nathan Sidwell  <nathan@acm.org>
18407         PR c++/70393
18408         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
18409         Assert we don't want to move backwards.
18411 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18413         PR target/70453
18414         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
18416 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
18418         PR rtl-optimization/70460
18419         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
18420         with operand from REG_LABEL_OPERAND, instead substitute
18421         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
18422         Don't do anything for REG_NON_LOCAL_GOTO jumps.
18424 2016-03-31  Martin Liska  <mliska@suse.cz>
18426         * passes.c (execute_one_pass): Do not call
18427         todo_after for a discarded function.
18429 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18431         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
18432         (no_cost, infinite_cost): Initialize the new field.
18433         (get_computation_cost_at): Record setup cost.
18434         (determine_use_iv_cost_address): Skip cost computation for sub
18435         uses if we can estimate it without losing accuracy.
18437 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18439         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18440         estimates here.
18441         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18442         max_loop_iterations_int.
18443         (tree_unswitch_outer_loop): Likewise.
18444         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18445         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18447 2016-03-30  Richard Biener  <rguenther@suse.de>
18449         PR middle-end/70450
18450         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
18452 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
18454         PR target/70421
18455         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
18456         in gen_blendm expander.
18458 2016-03-30  Nick Clifton  <nickc@redhat.com>
18460         PR target/62254
18461         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
18462         case where we are already provided with an SImode SUBREG.
18464 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18466         PR target/70439
18467         * config/i386/i386.c (ix86_expand_epilogue): Properly check
18468         conflict between DRAP register and __builtin_eh_return.
18470 2016-03-30  Michael Matz  <matz@suse.de>
18471             Richard Biener  <rguenther@suse.de>
18473         PR ipa/12392
18474         * ipa-polymorphic-call.c (struct type_change_info): Change
18475         speculative to an unsigned allowing to limit the work we do.
18476         (csftc_abort_walking_p): New inline function..
18477         (check_stmt_for_type_change): Limit the number of may-defs
18478         skipped for speculative devirtualization to
18479         max-speculative-devirt-maydefs.
18480         * params.def (max-speculative-devirt-maydefs): New param.
18481         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
18483 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
18485         PR target/63890
18486         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
18487         and TARGET_MACHO.
18489 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
18491         PR tree-optimization/59124
18492         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
18493         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
18495 2016-03-29  Jeff Law  <law@redhat.com>
18497         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
18499 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18501         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
18502         to HOST_WIDE_INT.
18504 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
18506         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
18507         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
18508         gcrt0.o if linking dynamically.
18510 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18512         PR ipa/70283
18513         * ipa-devirt.c (methods_equal_p): New function.
18514         (compare_virtual_tables): Use it.
18515         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
18516         * cgraphclones.c (clone_function_name_1): Use
18517         symbol_table::symbol_suffix_separator.
18518         * coverage.c (build_var): Likewise.
18519         * symtab.c (symbol_table::symbol_suffix_separator): New.
18521 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
18523         PR rtl-optimization/70429
18524         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
18525         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
18526         mode != result_mode.
18528         PR c++/70353
18529         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
18531         PR tree-optimization/70405
18532         * ssa-iterators.h (num_imm_uses): Add missing braces.
18534 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18536         PR rtl-optimization/68695
18537         * ira-color.c (allocno_copy_cost_saving): New.
18538         (improve_allocation): Use it.
18540 2016-03-29  Richard Henderson  <rth@redhat.com>
18542         PR middle-end/70355
18543         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
18545 2016-03-29  Richard Biener  <rguenther@suse.de>
18547         PR middle-end/70424
18548         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18549         use alignment returned by get_pointer_alignment_1 if it is
18550         bigger than BITS_PER_UNIT.
18551         * builtins.c (get_pointer_alignment_1): Do not return true
18552         for alignment extracted from SSA info.
18554 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
18556         * config/ft32/ft32.opt (mnodiv): New.
18557         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18558         * doc/invoke.texi (FT32 Options -mnodiv): New.
18560 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
18562         PR target/70406
18563         * config/i386/i386.md (define_split, andn): Fix modes.
18565 2016-03-26  Richard Biener  <rguenther@suse.de>
18566             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18568         PR ipa/70366
18569         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18570         instead of
18571         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18572         as 2nd argument to cl_optimization_restore().
18574 2016-03-25  Richard Henderson  <rth@redhat.com>
18576         PR target/70120
18577         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18578         * config/aarch64/aarch64-protos.h: Declare it.
18579         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18581 2016-03-25  Alan Modra  <amodra@gmail.com>
18583         PR target/70052
18584         * config/rs6000/constraints.md (j): Simplify.
18585         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18586         decimal float 0.D.
18587         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18588         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18589          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18590         in all constraint alternatives.
18591         (movtd_64bit_nodm): Delete "j" constraint alternative.
18593 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18595         * tree-ssa-propagate.c: Enhance docs for
18596         SSA_PROP_NOT_INTERESTING.
18598 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18600         * doc/extend.texi: Fix typo in documentation to pure attribute.
18602 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18604         PR target/70319
18605         * config/pa/pa.md (bswapdi2): Use a scratch register.
18607 2016-03-24  Richard Henderson  <rth@redhat.com>
18609         PR middle-end/69845
18610         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18611         overflow.
18613 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18615         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18616         using ix86_expand_binary_operator instead of gen_andsi3.
18618 2016-03-24  Richard Biener  <rguenther@suse.de>
18620         PR tree-optimization/70396
18621         * tree-vect-stmts.c (vectorizable_comparison): Use
18622         get_vectype_for_scalar_type.
18624 2016-03-24  Richard Biener  <rguenther@suse.de>
18626         PR middle-end/70370
18627         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18628         with register bases.
18630 2016-03-24  Richard Biener  <rguenther@suse.de>
18632         PR tree-optimization/70372
18633         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18634         build_all_ones_cst to also handle vector types correctly.
18636 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18638         PR target/70381
18639         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18640         -mfloat128 here.
18642 2016-03-23  Marek Polacek  <polacek@redhat.com>
18644         PR c++/69884
18645         * doc/invoke.texi: Document -Wignored-attributes.
18647 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18649         PR tree-optimization/69042
18650         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18651         parameter from 30 to 40.
18653 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18655         PR tree-optimization/69042
18656         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18657         for use with constant offset stripped in base.
18659 2016-03-23  Richard Biener  <rguenther@suse.de>
18661         PR middle-end/70251
18662         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18663         mode compatibility check.
18664         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18666 2016-03-23  Jeff Law  <law@redhat.com>
18668         PR tree-optimization/64058
18669         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18670         CONFLICT_COUNT.
18671         (struct ssa_conflicts): Move up earlier in the file.
18672         (conflicts_, var_map_): New static variables.
18673         (initialize_conflict_count): New function to initialize the
18674         CONFLICT_COUNT field for each conflict pair.
18675         (compare_pairs): Lazily initialize the conflict count and use it
18676         as the first tie-breaker.
18677         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18678         and wipe conflicts_ and map_ around the call to qsort.  Remove
18679         special case for 2 coalesce pairs.
18680         * bitmap.c (bitmap_count_unique_bits): New function.
18681         (bitmap_count_bits_in_word): New function, extracted from
18682         bitmap_count_bits.
18683         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18684         * bitmap.h (bitmap_count_unique_bits): Declare it.
18686 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18688         PR target/69917
18689         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18690         transparent alias chain for decl assembler name.
18691         * config/sol2.c (solaris_assemble_visibility): Likewise.
18693 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18695         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18696         duration.
18697         (v10_fdivs): Likewise.
18698         (v10_fdivd): Likewise.
18700 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18702         PR driver/70132
18703         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18704         to not call fclose twice on file.
18706 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18708         PR tree-optimization/70354
18709         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18710         oprnd0 is wider than oprnd1 and there is a cast from the wider
18711         type to oprnd1, mask it with the mask of the narrower type.
18713         PR target/70321
18714         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18715         Optimize TARGET_STV splitters, if high or low word of last argument
18716         is 0 or -1.
18718 2016-03-22  Jeff Law  <law@redhat.com>
18720         PR target/70232
18721         tree-ssa-threadbackward.c
18722         (fsm_find_control_statement_thread_paths): Correctly distinguish
18723         between old style jump threads vs FSM jump threads.
18725 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18727         PR target/70302
18728         * config/i386/i386.c (scalar_chain::convert_op): Support
18729         uninitialized register usage case.
18731 2016-03-22  Richard Biener  <rguenther@suse.de>
18733         PR middle-end/70251
18734         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18735         int...
18736         (capture::gen_transform): ... to change behavior when substituting
18737         a condition into cond or not-cond expr context.
18738         (dt_simplify::gen_1): Adjust.
18739         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18740         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18741         last change and instead change to
18742         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18743         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18745 2016-03-22  Anthony Green  <green@moxielogic.com>
18747         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18748         issue for moxiebox targets.
18749         (CC1PLUS_SPEC): Ditto.
18751 2016-03-22  Richard Biener  <rguenther@suse.de>
18753         PR middle-end/70333
18754         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18755         in the wide type.
18757 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18759         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18761 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18763         PR target/70325
18764         * config/i386/i386.c (def_builtin): Handle
18765         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18766         bits.
18767         (const struct builtin_description bdesc_special_args[]):
18768         Remove duplicate ISA bits.
18770 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18772         PR target/70329
18773         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18774         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18775         in a way that works also for AVX512BW.
18777         PR target/70300
18778         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18779         instead of source if operands[1] is xmm16 and above and
18780         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18781         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18783         PR c++/70295
18784         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18785         on assign if (*from_p) is a comparison, set it to
18786         TREE_NO_WARNING (*from_p).
18788 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18790         PR middle-end/70326
18791         * lra.c (restore_scratches): Ignore deleted insns.
18793 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18794             Jakub Jelinek  <jakub@redhat.com>
18796         PR tree-optimization/70317
18797         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18798         to HONOR_NANS.
18800 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18802         PR target/70327
18803         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18804         of ix86_expand_move.
18805         (movoi): Ditto.
18806         (movti): Use general_operand for operand 1 predicate.
18808 2016-03-21  Martin Liska  <mliska@suse.cz>
18810         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18811         insns.
18812         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18814 2016-03-21  Martin Liska  <mliska@suse.cz>
18816         PR ipa/70306
18817         * ipa-icf.c (sem_function::parse): Skip static
18818         constructors and destructors.
18820 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18822         PR target/70296
18823         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18824         function-like macro, peek following token(s) if it is followed
18825         by CPP_OPEN_PAREN token with optional padding in between, and
18826         if not, don't treat it like a macro.
18828 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18829             Alexander Monakov  <amonakov@ispras.ru>
18831         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18832         for the stabs debug format.
18834 2016-03-21  Richard Biener  <rguenther@suse.de>
18836         PR tree-optimization/70310
18837         * tree-vect-generic.c (expand_vector_condition): Fold the built
18838         condition.
18840 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18842         PR target/70293
18843         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18844         Block third alternative for AVX-512VL target,
18846 2016-03-21  Martin Liska  <mliska@suse.cz>
18848         PR hsa/70234
18849         * hsa-brig.c (emit_function_directives): Mark unemitted
18850         global variables for emission.
18851         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18852         (get_symbol_for_decl): Likewise.
18853         * hsa.h (struct hsa_symbol): New flag.
18855 2016-03-21  Richard Biener  <rguenther@suse.de>
18857         PR tree-optimization/70288
18858         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18859         we do not estimate unsimplified all-constant conditionals or
18860         switches as optimized away.
18862 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18864         PR rtl-optimization/69102
18865         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18866         when we have a readonly dependency context.
18868 2016-03-18  Jeff Law  <law@redhat.com>
18870         PR rtl-optimization/70263
18871         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18872         (update_equiv_regs): When trying to move a store to after the insn
18873         that sets the source of the store, make sure the store occurs after
18874         the insn that sets the source of the store.  When successful note
18875         the REG_EQUIV note created in the dump file.
18877 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18878             Bernd Schmidt  <bschmidt@redhat.com>
18880         * doc/extend.texi: Document more potential problems with basic asms.
18882 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18884         PR rtl-optimization/70278
18885         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18886         VOIDmode.
18888 2016-03-18  Jason Merrill  <jason@redhat.com>
18890         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18892 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18894         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18895         values to 128b regs.
18897 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18899         PR tree-optimization/70252
18900         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18901         boolean vector has a proper number of elements.
18902         (supportable_narrowing_operation): Likewise.
18904 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18906         PR ipa/70269
18907         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18909 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18911         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18912         instead of replace_rtx for DEBUG_INSNs.
18914 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18916         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18917         load type reservations.
18919 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18921         PR target/70188
18922         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18923         define_constraint for "Q" and "T" constraints.
18925 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18927         Tweak the pipeline model for Exynos M1
18929         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18930         model.
18932 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18934         PR c/70264
18935         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18936         where one or both locations aren't within a line_map.
18938 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18940         PR driver/70192
18941         * opts.c (finish_options): Don't set flag_pie to the default if
18942         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18943         if it is -1.
18945 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18947         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18948         true as ALL_REGS argument to replace_rtx.
18950 2016-03-17  Richard Biener  <rguenther@suse.de>
18952         PR debug/70271
18953         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18954         last.
18956 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18958         PR target/70245
18959         * rtl.h (replace_rtx): Add ALL_REGS argument.
18960         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18961         equality and assert mode is the same, instead of just rtx pointer
18962         equality.
18963         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18964         true as ALL_REGS argument to replace_rtx.
18966 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18968         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18969         for boolean vector with vector mode only.
18970         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18972 2016-03-17  Nick Clifton  <nickc@redhat.com>
18974         PR target/70162
18975         * config/rx/rx.c (rx_print_integer): Print negative constants in
18976         decimal.
18978 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18980         PR target/70261
18981         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18983 2016-03-16  Richard Henderson  <rth@redhat.com>
18984             Richard Biener  <rguenth@suse.de>
18986         PR middle-end/70240
18987         PR middle-end/68215
18988         PR tree-opt/68714
18989         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18990         first operand as is_gimple_condexpr.
18992         PR middle-end/70240
18993         PR middle-end/68215
18994         Revert r231575
18995         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18996         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18997         Do not gimplify the result.
18998         (do_unop): Adjust call to tree_vec_extract.
18999         (do_binop): Likewise.
19000         (do_compare): Likewise.
19001         (do_plus_minus): Likewise.
19002         (do_negate): Likewise.
19003         (expand_vector_condition): Likewise.
19004         (do_cond): Likewise.
19006 2016-03-16  Richard Henderson  <rth@redhat.com>
19008         PR target/70048
19009         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
19010         (aarch64_classify_address): Use it.
19011         (aarch64_legitimize_address): Force all subexpressions of PLUS
19012         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
19014 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
19015             Richard Biener  <rguenth@suse.de>
19017         PR target/70245
19018         * rtlanal.c (replace_rtx): For REG, if from is a REG,
19019         return to even if only REGNO is equal, and assert
19020         mode is the same.
19022 2016-03-11  Jeff Law  <law@redhat.com>
19024         PR rtl-optimization/70224
19025         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
19027 2016-03-16  Richard Henderson  <rth@redhat.com>
19029         PR middle-end/70199
19030         * function.h (struct function): Add has_forced_label_in_static.
19031         * gimplify.c (force_labels_r): Set it.
19032         * lto-streamer-in.c (input_struct_function_base): Read it.
19033         * lto-streamer-out.c (output_struct_function_base): Write it.
19034         * tree-inline.c (has_label_address_in_static_1): Remove.
19035         (copy_forbidden): Remove fndecl parameter; test
19036         has_forced_label_in_static.
19037         (inline_forbidden_p): Update call to copy_forbidden.
19038         (tree_versionable_function_p): Likewise.
19039         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
19040         (chkp_versioning): Likewise.
19041         * tree-inline.h (copy_forbidden): Update decl.
19043 2016-03-16  Marek Polacek  <polacek@redhat.com>
19045         PR c/70093
19046         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
19047         function being thunked if the result type doesn't have fixed size.
19048         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
19049         doesn't have fixed size.
19051 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
19053         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
19054         reporting malformed loop nest.
19056 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19058         PR lto/70187
19059         * ipa-devirt.c (possible_polymorphic_call_targets): Move
19060         nodes.length () == 1 test to before first nodes[0] access.
19062 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19064         PR tree-optimization/68715
19065         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
19066         single_pred_p test.
19068 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19070         PR tree-optimization/68809
19071         * graphite-scop-detection.c (same_close_phi_node): Test if result types
19072         are the same.
19074 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
19075             Sandra Loosemore  <sandra@codesourcery.com>
19077         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
19078         on leaf attribute. Mention ELF interposition problems.
19080 2016-03-16  Alan Modra  <amodra@gmail.com>
19082         PR rtl-optimization/69195
19083         PR rtl-optimization/47992
19084         * ira.c (indirect_jump_optimize): Ignore artificial defs.
19085         Add comments.
19087 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19089         PR bootstrap/69513
19090         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
19092 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19094         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
19096 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
19098         PR rtl-optimization/70222
19099         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19100         optimization if mode is different from result_mode, queue up masking
19101         of the result in outer_op.  Formatting fix.
19103         PR middle-end/70239
19104         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19105         of safe_grow.
19107 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19109         PR rtl-optimization/69032
19110         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19111         looping backwards over basic block insns.
19113 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19115         PR target/66660
19116         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19117         to non-speculative when propagating trap bits.
19119 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19121         PR rtl-optimization/63384
19122         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19123         DEBUG_INSN_P insns.
19125 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19127         PR target/64411
19128         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19129         factored out from ...
19130         (sched_analyze_insn): ... here.
19131         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19132         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19133         get_implicit_reg_pending_clobbers in it.
19134         (setup_id_reg_sets): Use setup_id_implicit_regs.
19135         (deps_init_id): Ditto.
19137 2016-03-15  Tom de Vries  <tom@codesourcery.com>
19139         PR ipa/70161
19140         * cgraph.c (cgraph_node::get_body): Save, reset and restore
19141         dump_file_name.
19142         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19143         execute_function_dump.
19144         (execute_one_pass): Don't dump function if it will be dumped after ipa
19145         transform.
19147 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
19149         * genrecog.c (match_pattern_2): If pred is NULL don't call
19150         safe_predicate_mode on it.
19152 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
19154         PR middle-end/70219
19155         * lra-constraints.c (delete_move_and_clobber): Change assertion
19156         to also allow dregno == 0.
19158 2016-03-14  Richard Henderson  <rth@redhat.com>
19160         PR tree-opt/68714
19161         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19162         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19163         (reassociate_bb): Use optimize_vec_cond_expr; avoid
19164         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19165         on vectors.
19167 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
19169         PR target/70083
19170         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19171         regs.
19172         (lra_create_live_ranges_1): initialize hard register biggest_mode to
19173         VOIDmode.
19174         * lra-constraints.c (split_reg): For hard regs, try to find the
19175         biggest single-register mode used in the function.
19177 2016-03-14  Richard Biener  <rguenther@suse.de>
19179         PR tree-optimization/56365
19180         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19181         constants to compare against.
19183 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
19185         PR target/70098
19186         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
19187         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
19188         (define_split for the GPR case): Use int_reg_operand instead of
19189         gpc_reg_operand for the output.
19191 2016-03-14  Tom de Vries  <tom@codesourcery.com>
19193         PR tree-optimization/70045
19194         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
19195         create_empty_if_region_on_edge argument.
19197 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
19199         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
19200         (STACK_CHECK_PROTECT): Likewise.
19201         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19202         (STACK_CHECK_PROTECT): Likewise.
19203         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19204         (STACK_CHECK_PROTECT): Likewise.
19205         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
19206         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19207         (STACK_CHECK_PROTECT): Likewise.
19209 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
19211         PR rtl-optimization/69307
19212         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
19213         registers in modes that span more than one register.
19215 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
19217         PR target/69614
19218         * lra-constraints.c (delete_move_and_clobber): New.
19219         (remove_inheritance_pseudos): Use it.
19221 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
19223         PR ada/70017
19224         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
19225         the libcall is LCT_THROW.
19226         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
19227         for the checking routine.
19229 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19231         PR target/70131
19232         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
19233         optimization if we have direct move.
19234         (roundu32<mode>2_fprs): Likewise.
19236 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
19238         PR target/70123
19239         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
19240         be rematerialized.
19241         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
19242         Arguments swapped.  All callers changed.  Take reg_renumber into
19243         account, and Calculate and compare register ranges for hard regs.
19245 2016-03-11  Jeff Law  <law@redhat.com>
19247         PR tree-optimization/70190
19248         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19249         Handle cases where we can not extract the taken edge, even though we
19250         found a constant value.
19252         PR tree-optimization/64058
19253         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
19254         (num_coalesce_pairs): Move up earlier in file.
19255         (find_coalesce_pair): Initialize the INDEX field for each pair
19256         discovered.
19257         (compare_pairs): No longer sort on the elements in each pair.
19258         Instead break ties with the index of the coalesce pair.
19260 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19262         PR target/70002
19263         * config/aarch64/aarch64-protos.h
19264         (aarch64_save_restore_target_globals): New prototype.
19265         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19266         Call the above when popping pragma.
19267         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19268         New function.
19269         (aarch64_set_current_function): Rewrite using the above.
19271 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19273         PR tree-optimization/70177
19274         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19275         (extract_ops_from_tree): ... this.  In the 2 argument
19276         overload remove _1 suffix.
19277         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19278         (extract_ops_from_tree): ... this.
19279         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19280         Adjust callers.
19281         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19282         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19283         extract_ops_from_tree instead of 2 operand one.
19285 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
19287         PR tree-optimization/70013
19288         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19289         for constant-pool entries.
19291 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19293         PR rtl-optimization/70174
19294         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19295         followed by gen_lowpart on force_reg instead of just gen_lowpart.
19297         PR tree-optimization/70169
19298         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19299         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
19300         for unknown codes.
19302 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19303             Jakub Jelinek  <jakub@redhat.com>
19305         PR target/70160
19306         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19307         of uninitialized values.
19309 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19311         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19312         define_expand.
19313         ("*trunctddd2"): New pattern definition.
19314         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19315         TD->DD truncation.
19317 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19319         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19320         definitions for BFP and DFP rounding modes.
19321         ("fixuns_truncdddi2", "fixuns_trunctddi2")
19322         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
19323         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
19324         ("fix_trunctf<mode>2"): Use the new constants instead of magic
19325         numbers.
19327 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19329         * config/s390/constraints.md: Adjust comment.
19330         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
19331         s390_decompose_addrstyle_without_index.
19332         * config/s390/predicates.md (shift_count_or_setmem_operand):
19333         Rename to setmem_operand.
19334         * config/s390/s390-protos.h
19335         (s390_decompose_shift_count): Rename to
19336         s390_decompose_addrstyle_without_index.
19337         * config/s390/s390.c (s390_decompose_shift_count)
19338         (s390_mem_constraint, print_shift_count_operand)
19339         (print_operand_address, print_operand): Rename
19340         s390_decompose_shift_count to
19341         s390_decompose_addrstyle_without_index and rename
19342         print_shift_count_operand to print_addrstyle_operand troughout the
19343         file.
19344         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
19345         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
19346         Rename shift_count_or_setmem_operand to setmem_operand.
19347         * config/s390/vx-builtins.md ("vec_insert<mode>")
19348         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
19349         nonmemory_operand.
19351 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19353         PR target/70168
19354         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19355         Handle overlapping retval and newval.
19357 2016-03-10  Nick Clifton  <nickc@redhat.com>
19359         PR target/7044
19360         * config/aarch64/aarch64.c
19361         (aarch64_override_options_after_change_1): When forcing
19362         flag_omit_frame_pointer to be true, use a special value that can
19363         be detected if this function is called again, thus preventing
19364         flag_omit_leaf_frame_pointer from being forced to be false.
19366 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19368         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19369         Set x_flag_omit_leaf_frame_pointer when handling
19370         -momit-leaf-frame-pointer.
19372 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19374         PR lto/69589
19375         * cgraph.c (cgraph_node::dump): Dump split_part and
19376         indirect_call_target.
19377         * cgraph.h (cgraph_node): Add indirect_call_target flag.
19378         * ipa.c (has_addr_references_p): Cleanup.
19379         (is_indirect_call_target_p): New.
19380         (walk_polymorphic_call_targets): Do not mark virtuals that may be
19381         called indirectly as local.
19382         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
19384 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19386         PR ipa/69630
19387         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19388         on cxa_pure_virtual.
19390 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19392         PR lto/69589
19393         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
19395 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19397         PR lto/69589
19398         * tree.c (need_assembler_name_p): Only record main variant type names.
19400 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19402         PR target/70113.
19403         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
19404         Always define to 0 or 1.
19405         (TARGET_FIX_ERR_A53_843419): New macro.
19406         * config/aarch64/aarch64-elf-raw.h
19407         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
19408         * config/aarch64/aarch64-linux.h: Likewise.
19409         * config/aarch64/aarch64.c
19410         (aarch64_override_options_after_change_1): Do not default
19411         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
19412         843419 is on.
19413         (aarch64_attributes): Handle fix-cortex-a53-843419.
19414         (aarch64_can_inline_p): Likewise.
19415         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
19417 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
19418             Jakub Jelinek  <jakub@redhat.com>
19420         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
19421         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
19422         DECL_COMMONS if flag_unconstrained_commons is set.
19423         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19424         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
19425         (funconstrained-commons): Document.
19427 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19429         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
19430         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
19432 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
19434         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
19435         has a proper number of elements.
19437 2016-03-10  Alan Modra  <amodra@gmail.com>
19439         PR rtl-optimization/69195
19440         PR rtl-optimization/47992
19441         * ira.c (recorded_label_ref): Delete.
19442         (update_equiv_regs): Return void.
19443         (indirect_jump_optimize): New function.
19444         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
19445         before regstat_compute_ri.  Don't rebuild_jump_labels here.
19446         Delete update_regstat.
19448 2016-03-10  Richard Biener  <rguenther@suse.de>
19450         PR tree-optimization/70128
19451         * tree-ssa-structalias.c (set_uids_in_ptset): Set
19452         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
19454 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19456         PR tree-optimization/70152
19457         * tree-sra.c (replace_removed_params_ssa_names): Copy over
19458         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
19460         PR target/70086
19461         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
19462         instead of gen_sse2_loadlpd.
19463         * config/i386/sse.md (*vec_concatv2df): Rename to...
19464         (vec_concatv2df): ... this.
19466         PR tree-optimization/70127
19467         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
19469 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19471         PR c/68473
19472         PR c++/70105
19473         * diagnostic-show-locus.c (compatible_locations_p): New function.
19474         (layout::layout): Sanitize ranges using compatible_locations_p.
19476 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19478         PR c/68473
19479         PR c++/70105
19480         * diagnostic-show-locus.c (layout_range::layout_range): Replace
19481         location_range param with three const expanded_locations * and a
19482         bool.
19483         (layout::layout): Replace call to
19484         rich_location::lazily_expand_location with get_expanded_location.
19485         Extract the range and perform location expansion here, passing
19486         the results to the layout_range ctor.
19487         * diagnostic.c (source_range::debug): Delete.
19488         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
19489         of rich_location::get_expanded_location.
19490         * gcc-rich-location.c (get_range_for_expr): Delete.
19491         (gcc_rich_location::add_expr): Reimplement to avoid the
19492         rich_location::add_range overload that took a location_range,
19493         passing a location_t instead.
19495 2016-03-09  Richard Biener  <rguenther@suse.de>
19496         Jakub Jelinek  <jakub@redhat.com>
19498         PR tree-optimization/70138
19499         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19500         Also skip vect_double_reduction_def.
19502 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19504         PR target/70049
19505         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
19506         if the operand is "m".
19508 2016-03-09  Nathan Sidwell  <nathan@acm.org>
19510         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
19512 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19514         * config/i386/i386.c (processor_target_table): Fix cost table
19515         intialization order for znver1.
19517 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19519         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
19520         - becuase -> because.
19521         * ipa-reference.c (ignore_module_statics): Likewise.
19522         * cgraph.c (cgraph_node::get_body): Likewise.
19523         * ipa-inline.c (early_inliner): Likewise.
19524         * ipa-devirt.c (types_same_for_odr): Likewise.
19525         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
19526         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
19528 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19530         * tree-ssa-math-opts.c: Fix typo in comment.
19532 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19534         PR target/70110
19535         * config/i386/i386.c (scalar_chain::make_vector_copies,
19536         scalar_chain::convert_reg): Call end_sequence in between
19537         get_insns and emit_conversion_insns rather than after both
19538         calls.
19540 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
19542         PR target/70064
19543         * config/i386/i386.h (machine_function): Add
19544         pc_thunk_call_expanded flag.
19545         (ix86_pc_thunk_call_expanded): New define.
19546         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
19547         (*set_got): Rename insn pattern from set_got.
19548         (*set_got_labelled): Rename inst pattern from set_got_labelled.
19549         * config/i386/i386.c (ix86_compute_frame_layout): Use
19550         ix86_pc_thunk_call_expanded to prevent red-zone.
19552 2016-03-07  Martin Jambor  <mjambor@suse.cz>
19554         * hsa.h (hsa_get_ctor_statements): Declare.
19555         (hsa_get_dtor_statements): Likewise.
19556         (hsa_get_kernel_dispatch_type): Likewise.
19557         * hsa.c (hsa_get_ctor_statements): New function.
19558         (hsa_get_dtor_statements): Likewise.
19559         (hsa_get_kernel_dispatch_type): Likewise.
19560         * hsa-brig.c (hsa_cdtor_statements): Removed.
19561         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19562         hsa_get_dtor_statements.
19563         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19564         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19566 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19568         * config/arm/arm-cores.def (cortex-r8): New.
19569         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19570         * config/arm/arm-tune.md: Likewise.
19571         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19573 2016-03-07  Martin Sebor  <msebor@redhat.com>
19575         PR rtl-optimization/19705
19576         * doc/invoke.texi (Options That Control Optimization): Clarify
19577         -fno-branch-count-reg.
19579 2016-02-26  Richard Biener  <rguenther@suse.de>
19580             Jeff Law  <law@redhat.com>
19582         PR tree-optimization/69740
19583         * cfghooks.c (remove_edge): Request loop fixups if we delete
19584         an edge that might turn an irreducible loop into a natural
19585         loop.
19586         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19587         Move after definition of loops_state_clear.
19589 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19591         PR rtl-optimization/69052
19592         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19593         to CONST_WIDE_INT.
19595 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19597         PR tree-optimization/70116
19598         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19599         is_tm_ending stmts and ubsan/asan internal functions.
19600         (find_duplicate): Use it.  Don't test is_tm_ending here.
19602 2016-03-07  Richard Biener  <rguenther@suse.de>
19604         PR tree-optimization/70115
19605         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19606         (propagate_constants_for_unrolling): Use replace_uses_by.
19608 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19610         PR middle-end/69916
19611         * omp-low.c (struct oacc_loop): Add ifns.
19612         (new_oacc_loop_raw): Initialize it.
19613         (finish_oacc_loop): Clear mask & flags if no ifns.
19614         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19615         (oacc_loop_xform_loop): Add ifns arg & adjust.
19616         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19618 2016-03-07  Richard Henderson  <rth@redhat.com>
19620         PR rtl-opt/70061
19621         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19622         (insert_value_copy_on_edge): Likewise.
19624 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19626         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19628 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19630         PR target/62281
19631         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19633 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19635         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19637 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19639         Fix sseimul type attribute.
19640         * config/i386/znver1.md
19641         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19642         znver1_sseimul_avx256_load) : Fix the type attribute.
19643         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19644         pipe usage and latency.
19646 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19648         PR c++/70084
19649         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19650         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19651         to the right type.
19653 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19655         PR c/69973
19656         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19658         PR rtl-optimization/69941
19659         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19660         the reg share its mode.
19662 2016-03-04  Jeff Law  <law@redhat.com>
19664         PR tree-optimization/69196
19665         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19666         If the both SSA_NAMEs are anonymous, then consider them unassociated
19667         and include the PHI in the statement count.
19669 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19671         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19672         construct in oacc routine.  Check for oacc region in oacc routine.
19674 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19676         PR target/70062
19677         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19678         2016-02-22 changes, instead don't recurse if RECUR is already true.
19679         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19680         to pass true to the new argument.
19681         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19683         PR target/70059
19684         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19685         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19686         fixes.
19687         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19689 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19691         PR rtl-optimization/57676
19692         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19693         with flag_checking.
19695 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19697         * tree-vect-patterns.c (search_type_for_mask): Handle
19698         comparison of booleans.
19700 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19702         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19703         Fix @xref usage.
19705         PR debug/69947
19706         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19707         all other ops that have dw_val_class_die_ref operands,
19708         and DW_OP_GNU_entry_value.
19710 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19712         PR rtl-optimization/69904
19713         * config/arm/arm.c (arm_cannot_copy_insn_p):
19714         Return true for load-exclusive instructions.
19716 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19718         PR target/70021
19719         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19720         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19721         the pattern no matter if it is used just by non-pattern, pattern
19722         or mix thereof.
19723         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19724         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19725         oprnd1 def_stmt is in pattern, don't look through it.
19727 2016-03-03  Marek Polacek  <polacek@redhat.com>
19729         PR middle-end/70050
19730         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19732 2016-03-03  Martin Liska  <mliska@suse.cz>
19734         PR tree-optimization/70043
19735         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19736         previous statement if we see a debug statement.
19738 2016-03-03  Richard Biener  <rguenther@suse.de>
19740         PR tree-optimization/55936
19741         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19742         parameter and guard unsafe equivalence use.
19743         (vrp_evaluate_conditional_warnv_with_ops): Always use
19744         safe equivalences but not via the quadratic compare_names
19745         helper.
19747 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19749         PR target/70014
19750         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19751         for operand 1 to s_register_operand. Change predicate for operand
19752         2 to arm_not_immediate_operand.
19754 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19756         * doc/tm.texi: Regenerated.
19758 2016-03-02  Richard Henderson  <rth@redhat.com>
19760         PR rtl-opt/67145
19761         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19762         simplification when all args are positive non-fixed registers.
19764 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19766         * target.def (lra_p): Specify that new ports should use LRA.
19768 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19770         PR libgomp/69555
19771         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19772         gimplify_type_sizes the type they refer to.
19773         (omp_notice_variable): Handle reference vars to VLAs.
19774         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19775         reference to VLA decls in the second pass instead of first pass.
19777 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19779         PR tree-optimization/68659
19780         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19781         new_expr == NULL_TREE.
19782         (get_new_name): Handle ADDR_EXPR.
19784 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19786         PR rtl-optimization/69052
19787         * loop-invariant.c (canonicalize_address): New function.
19788         (inv_can_prop_to_addr_use): Check validity of address expression
19789         which is canonicalized by above function.
19791 2016-03-02  Alan Modra  <amodra@gmail.com>
19793         PR ipa/69990
19794         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19795         larger alignment.
19797 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19799         PR target/70028
19800         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19801         (*movhi_internal): Put mask moves from and to memory separately
19802         from moves from/to GPRs.
19804 2016-03-02  Richard Biener  <rguenther@suse.de>
19806         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19807         GENERIC expressions in GIMPLE.
19809 2016-03-02  Richard Biener  <rguenther@suse.de>
19811         * config/i386/i386.c (type_natural_mode): Fix typo.
19813 2016-03-02  Nick Clifton  <nickc@redhat.com>
19815         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19817 2016-03-02  Richard Biener  <rguenther@suse.de>
19818             Uros Bizjak  <ubizjak@gmail.com>
19820         PR target/67278
19821         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19823 2016-03-02  Richard Biener  <rguenther@suse.de>
19825         PR middle-end/67278
19826         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19828 2016-03-02  Marek Polacek  <polacek@redhat.com>
19830         PR c/67854
19831         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19832         "is promoted to" warning.
19834 2016-03-01  DJ Delorie  <dj@redhat.com>
19836         * config.gcc: Deprecate mep-*.
19838 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19840         PR middle-end/70025
19841         * lra-constraints.c (regno_val_use_in): New.
19842         (match_reload): Use it instead of regno_use_in.
19844 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19846         PR rtl-optimization/70007
19847         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19848         references present in REG_EQUAL notes attached to non-SET patterns.
19850 2016-03-01  Jeff Law  <law@redhat.com>
19852         PR tree-optimization/69196
19853         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19854         Appropriately clamp the number of statements to copy when the
19855         thread path does not traverse a loop backedge.
19857         PR tree-optimization/69196
19858         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19859         Do count some PHIs in the thread path against the insn count.  Decrease
19860         final statement count by one as the control statement in the last
19861         block will get removed.  Remove special cased code for handling PHIs
19862         in the last block.
19864 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19866         PR target/70027
19867         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19868         asm dialect alternatives to explicit GOTPCREL calls.
19870 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19872         PR ada/70017
19873         * ira.c (do_reload): Issue warning for generic stack checking here...
19874         * reload1.c (reload): ...instead of here and streamline it.
19876 2016-03-01  Nick Clifton  <nickc@redhat.com>
19878         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19880 2016-03-01  Richard Biener  <rguenther@suse.de>
19882         PR tree-optimization/69983
19883         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19884         types and fall back to operand_equal_p.
19886 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19888         Revert
19889         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19891         * config/s390/constraints.md ("jm8"): New constraint.
19892         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19893         predicate.
19894         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19895         into ...
19896         ("*setmem_long<setmem_and>"): New pattern.
19897         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19898         into ...
19899         ("*setmem_long_31z<setmem_and>"): New pattern.
19900         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19901         New substitution rules with the required attributes.
19904 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19906         Revert
19907         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19909         * gensupport.c (process_substs_on_one_elem): Split loop to
19910         complete mark_operands_used_in_match_dup on all expressions in the
19911         vector first.
19912         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19913         and remove function.
19915 2016-03-01  Richard Biener  <rguenther@suse.de>
19917         PR middle-end/70022
19918         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19919         vector BIT_FIELD_REF extract.
19921 2016-03-01  Richard Biener  <rguenther@suse.de>
19923         PR tree-optimization/69994
19924         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19926 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19928         PR tree-optimization/69956
19929         * tree-vect-stmts.c (supportable_widening_operation): Support
19930         multi-step conversion of boolean vectors.
19931         (supportable_narrowing_operation): Likewise.
19933 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19935         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19936         anymore.
19938 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19940         * config/s390/subst.md (DSI_VI): New mode iterator.
19941         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19942         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19943         the insn definition.
19944         ("*vec_set<mode>"): Change predicate and add alternative to
19945         support only either register or const_int operands as element
19946         selector.
19947         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19948         operands.
19949         ("vec_extract<mode>"): New expander.
19950         ("*vec_extract<mode>"): New insn definition supporting reg and
19951         const_int element selectors.
19952         ("*vec_extract<mode>_plus"): New insn definition supporting
19953         reg+const_int element selectors.
19954         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19955         following expander+insn definition.
19956         ("<vec_shifts_name><mode>3"): New expander.
19957         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19959 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19961         * config/s390/s390.md ("*tabort_1"): Change predicate to
19962         nonmemory_operand.  Add a second alternative to cover
19963         register as well as const int operands.
19964         ("*tabort_1_plus"): New pattern definition.
19966 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19968         * config/s390/s390.md ("*ashrdi3_cc_31")
19969         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19970         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19971         Merge insn definitions into ...
19972         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19973         New pattern definition.
19974         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19975         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19976         ("*ashr<mode>3_and"): Merge insn definitions into ...
19977         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19978         New pattern definition.
19979         * config/s390/subst.md ("addr_style_op_cc_subst")
19980         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19981         substitutions patterns plus attributes.
19982         Add ashiftrt to SUBST iterator.
19984 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19986         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19987         op2 to nonmemory_operand.
19988         ("*<shift>di3_31", "*<shift>di3_31_and"):
19989         Merge into single pattern definition ...
19990         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19991         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19992         pattern definition ...
19993         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19994         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19995         iterator.
19997 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19999         * config/s390/predicates.md (const_int_6bitset_operand): New
20000         predicate.
20001         * config/s390/s390.md: Include subst.md.
20002         ("rotl<mode>3"): New expander.
20003         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
20004         ...
20005         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
20006         * config/s390/subst.md: New file.
20008 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20010         * config/s390/s390.md ("op_type", "atype", "length" attributes):
20011         Remove RRR type.  It doesn't really exist.
20012         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
20013         attributes.
20014         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
20015         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20016         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
20017         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
20018         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
20019         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
20020         `enabled' attribute.
20022 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20024         * gensupport.c (process_substs_on_one_elem): Split loop to
20025         complete mark_operands_used_in_match_dup on all expressions in the
20026         vector first.
20027         (adjust_operands_numbers): Inline into process_substs_on_one_elem
20028         and remove function.
20030 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20032         PR target/69706
20033         * config/sparc/sparc.c (NWORDS_UP): Rename to...
20034         (CEIL_NWORDS): ...this.  Use CEIL macro.
20035         (compute_fp_layout): Adjust to above renaming.
20036         (function_arg_union_value): Likewise.
20037         (sparc_arg_partial_bytes): Likewise.
20038         (sparc_function_arg_advance): Likewise.
20040 2016-02-29  Jeff Law  <law@redhat.com>
20042         PR tree-optimization/70005
20043         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
20044         where an object with a boolean range is compared against a value
20045         outside [0..1].
20047         PR tree-optimization/69999
20048         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
20049         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
20050         loop cleanups.
20052 2016-02-29  Richard Biener  <rguenther@suse.de>
20054         PR tree-optimization/69994
20055         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
20056         (get_unary_op): Look through nop conversions.
20057         (ops_equal_values_p): New function, look for equality diregarding
20058         nop conversions.
20059         (eliminate_plus_minus_pair): Use ops_equal_values_p
20060         (repropagate_negates): Do not use get_unary_op here.
20062 2016-02-29  Martin Liska  <mliska@suse.cz>
20064         * system.h: Poison ENABLE_CHECKING macro.
20066 2016-02-29  Martin Liska  <mliska@suse.cz>
20068         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
20069         is presented in dump flags.
20070         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20071         (hsa_regalloc): Likewise.
20073 2016-02-19  Richard Biener  <rguenther@suse.de>
20075         PR tree-optimization/69980
20076         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
20077         permutation of those we need to keep.
20079 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20081         PR target/69706
20082         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
20083         (NWORDS_UP): ...this
20084         (init_cumulative_args): Minor tweaks.
20085         (sparc_promote_function_mode): Likewise.
20086         (scan_record_type): Delete.
20087         (traverse_record_type): New function template.
20088         (classify_data_t): New structure type.
20089         (classify_registers): New inline function.
20090         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
20091         exhausted.  Instantiate traverse_record_type on classify_registers and
20092         deal with the case of a structure passed in slot #15 with no FP field
20093         in the first word.
20094         (assign_data_t): New structure type.
20095         (compute_int_layout): New static function.
20096         (compute_fp_layout): Likewise.
20097         (count_registers): New inline function.
20098         (assign_int_registers): New static function.
20099         (assign_fp_registers): Likewise.
20100         (assign_registers): New inline function.
20101         (function_arg_record_value_1): Delete.
20102         (function_arg_record_value_2): Likewise.
20103         (function_arg_record_value_3): Likewise.
20104         (function_arg_record_value): Adjust to above changes.  Instantiate
20105         traverse_record_type on count_registers to first count the number of
20106         registers to be used and then on assign_registers to assign them.
20107         (function_arg_union_value): Adjust to above renaming.
20108         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
20109         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
20110         case of a structure passed in slot #15
20111         (sparc_function_arg_advance): Likewise.
20112         (function_arg_padding): Minor tweak.
20114 2016-02-29  Richard Biener  <rguenther@suse.de>
20116         PR tree-optimization/69720
20117         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20118         the adjustment_def path for possibly vectorized defs.
20119         (vect_create_epilog_for_reduction): Handle vectorized initial
20120         defs properly.
20122 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
20124         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20126 2016-02-27  Jeff Law  <law@redhat.com>
20128         Revert
20129         2016-02-26  Richard Biener  <rguenther@suse.de>
20130                     Jeff Law  <law@redhat.com>
20132         PR tree-optimization/69740
20133         * cfghooks.c (remove_edge): Request loop fixups if we delete
20134         an edge that might turn an irreducible loop into a natural
20135         loop.
20137 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
20139         PR rtl-optimization/69896
20140         * tree-vect-generic.c (get_compute_type): Avoid single element
20141         vector types.
20143 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
20145         Rename the AArch64 tuning option and related functions to enable the
20146         Newton series for the reciprocal square root to reflect its
20147         approximative characteristic.
20149         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20150         function to "aarch64_emit_approx_rsqrt".
20151         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20152         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20153         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20154         (xgene1_tunings): Likewise.
20155         (use_rsqrt_p): Likewise.
20156         (aarch64_emit_swrsqrt): Use new function name.
20157         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20158         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20159         text explaining this option.
20160         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20162 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20164         PR target/69969
20165         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20166         complain about -mallow-movmisalign without -mvsx if
20167         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20169 2016-02-26  Joel Sherrill  <joel@rtems.org>
20171         * config.gcc: Add x86_64-*-rtems*.
20172         * config/i386/rtems-64.h: New file.
20174 2016-02-26  Joel Sherrill  <joel@rtems.org>
20176         * config.gcc: Add aarch64-*-rtems*.
20177         * config/aarch64/rtems.h: New file.
20179 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
20181         PR target/69946
20182         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
20183         shift amount using %h.  Add comment.
20185 2016-02-26  Richard Biener  <rguenther@suse.de>
20186             Jeff Law  <law@redhat.com>
20188         PR tree-optimization/69740
20189         * cfghooks.c (remove_edge): Request loop fixups if we delete
20190         an edge that might turn an irreducible loop into a natural
20191         loop.
20193 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20195         PR middle-end/69920
20196         * tree-sra.c (sra_modify_assign): Do not remove loads of
20197         uninitialized aggregates to SSA_NAMEs.
20199 2016-02-26  Richard Henderson  <rth@redhat.com>
20201         PR target/69709
20202         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
20203         pseudo in case the target rtx matches the source of the left
20204         shift.
20206 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20208         PR hsa/69568
20209         * hsa.h (hsa_type_packed_p): Declare.
20210         * hsa.c (hsa_type_packed_p): New function.
20211         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
20212         loads.
20213         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
20214         * hsa-brig.c (emit_basic_insn): Likewise.
20216 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20218         pr hsa/69674
20219         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
20220         pointers.
20221         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
20223 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20225         * hsa.h (is_a_helper): New overload for hsa_op_immed for
20226         hsa_op_with_type operands.
20227         (hsa_unsigned_type_for_type): Declare.
20228         * hsa.c (hsa_unsigned_type_for_type): New function.
20229         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
20230         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
20231         the finalizer.  Do not emit extra move.
20233 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20235         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
20236         atomic operations in private segment.
20238 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20240         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
20241         statements to wi->info.  Also disallow omp simd constructs.
20242         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
20243         for not gridifying.  Dump special string for omp_for.
20245 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20247         PR target/69245
20248         * config/aarch64/aarch64.c (aarch64_set_current_function):
20249         Save/restore target globals when switching to
20250         target_option_default_node.
20252 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20254         PR target/69613
20255         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
20256         Return 0 if !SHIFT_COUNT_TRUNCATED.
20258 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20259             Eric Botcazou  <ebotcazou@adacore.com>
20261         PR rtl-optimization/69891
20262         * dse.c (scan_insn): If we can't figure out memset arguments
20263         or they are non-constant, call clear_rhs_from_active_local_stores.
20265 2016-02-26  Martin Liska  <mliska@suse.cz>
20267         * doc/extend.texi: Mention clog10, clog10f an clog10l
20268         in Builtins section.
20270 2016-02-26  Martin Liska  <mliska@suse.cz>
20272         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20273         CHECKING_P.
20274         (resolve_args_picking_1): Likewise.
20275         * dwarf2out.h (struct GTY): Likewise.
20277 2016-02-26  Martin Liska  <mliska@suse.cz>
20279         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20280         with flag_checking.
20281         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20283 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20284             Martin Liska  <mliska@suse.cz>
20286         * doc/install.texi: Mention --enable-valgrind-annotations.
20288 2016-02-26  Richard Biener  <rguenther@suse.de>
20290         PR tree-optimization/69551
20291         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20292         looking through aliases adjust DECL_PT_UID to refer to the
20293         ultimate alias target.
20295 2016-02-25  Martin Liska  <mliska@suse.cz>
20297         PR middle-end/69919
20298         * alloc-pool.c (after_memory_report): New variable.
20299         * alloc-pool.h (base_pool_allocator ::release): Do not use
20300         the infrastructure if after_memory_report.
20301         * toplev.c (toplev::main): Mark after memory report.
20303 2016-02-25  Richard Biener  <rguenther@suse.de>
20305         PR tree-optimization/48795
20306         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20308 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
20310         PR driver/68463
20311         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
20312         offloading is enabled and -fopenacc or -fopenmp is specified.
20313         (CRTOFFLOADEND): Likewise.
20314         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20315         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20316         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20317         (offload_objects_file_name): New static var.
20318         (tool_cleanup): Remove offload_objects_file_name file.
20319         (find_offloadbeginend): Replace with ...
20320         (find_crtoffloadtable): ... this.
20321         (run_gcc): Remove offload_argc and offload_argv.
20322         Get offload_objects_file_name from -foffload-objects=... option.
20323         Read names of object files with offload from this file, pass them to
20324         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
20325         don't pass offloadbegin and offloadend to the linker.  Don't pass
20326         offload non-LTO files to the linker, because now they're not claimed.
20328 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
20330         PR ipa/69630
20331         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20332         on builtin_unreachable.
20334 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
20336         PR rtl-optimization/69896
20337         * regcprop.c: Include cfgrtl.h.
20338         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
20339         than remembered mode, either delete it (if noop_move_p), or
20340         treat like copy_p but not noop_p instruction.
20342 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20344         PR debug/69705
20345         * dwarf2out.c (gen_variable_die): Work around buggy LTO
20346         - allow NULL decl for Fortran DW_TAG_common_block variables.
20348 2016-02-24  Jason Merrill  <jason@redhat.com>
20350         * common.opt (flifetime-dse): Add -flifetime-dse=1.
20352 2016-02-24  Richard Biener  <rguenther@suse.de>
20353             Jakub Jelinek  <jakub@redhat.com>
20355         PR middle-end/69760
20356         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
20357         conditionally executed ops to well-defined overflow behavior.
20359 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20361         PR middle-end/69915
20362         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
20363         elements.
20365 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20367         PR rtl-optimization/69886
20368         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
20369         argument.  Use it when checking validity of set instructions.
20370         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
20371         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
20372         callsite.
20373         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
20374         * store-motion.c (find_moveable_store): Update
20375         can_assign_to_reg_without_clobbers_p callsite.
20377 2016-02-24  Richard Biener  <rguenther@suse.de>
20379         PR middle-end/68963
20380         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
20381         bogus check.
20382         (record_nonwrapping_iv): Do not fall back to the low/high bound
20383         for non-constant IV bases if the stmt is not always executed.
20385 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20387         * config/arm/arm-cores.def (cortex-a32): New entry.
20388         * config/arm/arm-tables.opt: Regenerate.
20389         * config/arm/arm-tune.md: Regenerate.
20390         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
20391         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
20392         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
20393         for -mcpu and -mtune.
20395 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20397         PR target/69875
20398         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
20399         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
20400         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
20401         (atomic_loaddi_1): Delete.
20402         (atomic_loaddi): Rewrite expander using the above changes.
20404 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20406         PR c/69918
20407         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
20408         2 to 3.
20410 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20411             Richard Biener  <rguenth@suse.de>
20413         PR middle-end/69909
20414         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
20415         set_mem_attributes if tem is SSA_NAME which got expanded
20416         as a MEM.
20418 2016-02-24  Richard Biener  <rguenther@suse.de>
20420         PR tree-optimization/69907
20421         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
20422         end of permutations for BB vectorization.
20424 2016-02-24  Christian Bruel  <christian.bruel@st.com>
20426         * config/arm/arm-c.c (arm_option_override): Initialize
20427         target_option_current_node.
20428         * config/arm/arm.c (arm_pragma_target_parse): Replace
20429         build_target_option_node call by target_option_current_node.
20430         Set target_option_current_node.
20431         Fix comments.
20433 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
20435         PR target/69810
20436         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
20437         define_insn_and_split to define_insn.
20438         (zero_extendqi<mode>2_dot2): Same.
20439         (extendqi<mode>2_dot): Same.
20440         (extendqi<mode>2_dot2): Same.
20442 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20444         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
20445         and add bypass for AES{D,E} and AESMC pairs.
20446         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
20447         and AESMC pairs.
20449 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20451         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
20452         series for reciprocal square root in Exynos M1.
20454 2016-02-23  Martin Sebor  <msebor@redhat.com>
20456         PR c/69759
20457         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
20458         __builtin_alloca_with_align.
20460 2016-02-23  Richard Henderson  <rth@redhat.com>
20462         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
20463         (ix86_register_pragmas): Remove __seg_tls.
20464         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
20465         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
20466         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
20467         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
20468         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
20469         * doc/extend.texi (__seg_tls): Remove item.
20471 2016-02-23  Richard Biener  <rguenther@suse.de>
20473         * alloc-pool.h (struct allocation_object): Make id member
20474         conditional on CHECKING_P again.
20475         (get_instance): Adjust.
20476         (base_pool_allocator): Likewise.
20478 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
20480         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
20481         (parallelize_loops): In OpenACC kernels mode, set n_threads to
20482         zero.
20483         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
20484         flag_openacc.
20485         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
20487 2016-02-23  Richard Biener  <rguenther@suse.de>
20489         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
20490         * bitmap.h (struct bitmap_usage): Likewise.
20491         (bitmap_move): Declare.
20492         * bitmap.c (register_overhead): Take size_t argument.
20493         (bitmap_move): New function.
20494         * df-problems.c (df_rd_transfer_function): Use bitmap_move
20495         to properly account overhead.
20496         * tree.c (free_node): Use tree_size.
20498 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
20500         PR c++/69902
20501         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
20502         when inverting comparison.
20504         PR c/69900
20505         * common.opt (Wunreachable-code): Add Warning flag.
20507 2016-02-23  Mark Wielaard  <mjw@redhat.com>
20508             Jakub Jelinek  <jakub@redhat.com>
20510         PR c/69911
20511         * cgraphunit.c (check_global_declaration): Check main_input_filename
20512         and DECL_SOURCE_FILE are not NULL.
20514 2016-02-23  Martin Jambor  <mjambor@suse.cz>
20516         PR tree-optimization/69666
20517         * tree-sra.c (sra_modify_assign): Do not attempt to create
20518         default_def replacements for unscalarizable regions.
20520 2016-02-20  Mark Wielaard  <mjw@redhat.com>
20522         PR c/28901
20523         * cgraphunit.c (check_global_declaration): Check level of
20524         warn_unused_const_variable and main_input_filename.
20525         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
20526         (-Wunused-variable): For C implies -Wunused-const-variable=1.
20527         (-Wunused-const-variable): Explain levels 1 and 2.
20529 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20531         PR target/69888
20532         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
20533         identical arguments.  Formatting and spelling fixes.
20535         PR target/69885
20536         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
20537         be specified.
20539         PR target/69894
20540         PR target/69895
20541         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
20542         and m68k-devices.def.
20543         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
20544         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
20546 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
20548         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20549         and HImode registers.
20551 2016-02-22  Richard Biener  <rguenther@suse.de>
20553         PR tree-optimization/69882
20554         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20555         preserve permutations present because of gaps.
20556         (vect_supported_load_permutation_p): Always continue checking
20557         permutations after vect_attempt_slp_rearrange_stmts.
20559 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
20561         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20562         min_profitable_estimate, rather than min_profitable_iters.
20564 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20566         PR target/69885
20567         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20568         SImode for last match_operand.
20570 2016-02-22  Martin Liska  <mliska@suse.cz>
20572         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20573         return bitsize - 1 as the return value.
20575 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20577         PR target/69806
20578         PR target/54089
20579         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20580         Handle negative shift counts.
20581         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20582         force_reg on the shift constant.
20583         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20584         (lshrsi3_d): Handle negative shift counts.
20586 2016-02-22  Richard Biener  <rguenther@suse.de>
20587             Tom de Vries  <tom@codesourcery.com>
20589         * graph.c: Include dumpfile.h.
20590         (print_graph_cfg): Split into three overloads.
20591         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20593 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20595         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20596         dump-fn.
20598 2016-02-22  Richard Biener  <rguenther@suse.de>
20600         PR ipa/37448
20601         * ipa-inline-transform.c (inline_call): When not updating
20602         overall summaries adjust self size by the growth estimate.
20603         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20604         hash-set, do not update overall summaries here.  Renamed from ...
20605         (inline_to_all_callers): ... this which is now wrapping the
20606         above and performing delayed overall summary update.
20607         (early_inline_small_functions): Delay updating of the overall
20608         summary.
20610 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20612         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20613         variable.
20615 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20617         PR driver/69805
20618         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20619         :%* in %:gt() argument.
20620         (greater_than_spec_func): Adjust for expecting only numbers,
20621         if there are more than two numbers, compare the last two.
20623 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20625         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20626         -Wnarrowing with -std.
20628 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20630         PR c++/69851
20631         * expr.c (store_field): Don't use bit-field path if exp is
20632         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20633         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20634         and the assignment can be performed by bitwise copy.  Formatting
20635         fix.
20637         PR middle-end/69838
20638         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20639         call copy_reg_eh_region_note_forward on before and/or after sequences
20640         and remove note from insn if it no longer can throw.
20642         PR target/69820
20643         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20644         if TARGET_AVX512BW.
20646 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20648         * config/s390/vector.md: Add missing commutative operand markers
20649         to the patterns which qualify for one.
20650         * config/s390/vx-builtins.md: Likewise.
20652 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20654         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20655         types to mode iterators.
20656         (vec_double): ... and mode attribute.
20657         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20659 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20661         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20662         Change the predicate of op2 from nonimmediate to general and let
20663         reload fix it if necessary.
20665 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20667         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20669 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20671         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20672         mode.
20674 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20676         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20677         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20678         * config/s390/s390.md ("movstr<P:mode>"): Call
20679         s390_expand_vec_movstr.
20681 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20683         * config/s390/s390.md: Add missing output modifier for operand 1
20684         to print it as address properly.
20686 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20688         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20689         * config/s390/2964.md: New file.
20690         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20691         of insn grouping attributes depending on the CPU level.
20692         (s390_get_unit_mask): New function.
20693         (s390_sched_score): Remove the OOO from the scheduling macros.
20694         Add loop to calculate a score for the instruction mix.
20695         (s390_sched_reorder): Likewise plus improve debug output.
20696         (s390_sched_variable_issue): Rename macros as above.  Calculate
20697         the unit distances after actually scheduling an insn.  Improve
20698         debug output.
20699         (s390_sched_init): Clear last_scheduled_unit_distance array.
20700         * config/s390/s390.md: Include 2964.md.
20702 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20704         PR target/69671
20705         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20706         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20707         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20708         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20709         *avx512f_<code>v8div16qi2_mask_1): New insns.
20711 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20713         PR target/68404
20714         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20715         2016-02-09 change.
20717         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20718         earlyclobber from target.  Use wF constraint for fused memory
20719         address.
20720         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20722 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20723             Martin Liska  <mliska@suse.cz>
20725         PR sanitizer/69863
20726         * cfgexpand.c (asan_sanitize_stack_p): New function.
20727         (partition_stack_vars): Use the function.
20728         (expand_stack_vars): Likewise.
20729         (defer_stack_allocation): Likewise.
20730         (expand_used_vars): Likewise.
20732 2016-02-18  Richard Biener  <rguenther@suse.de>
20734         PR middle-end/69553
20735         * fold-const.c (operand_equal_p): Properly compare offsets for
20736         IMAGPART_EXPR and ARRAY_REF.
20738 2016-02-18  Nick Clifton  <nickc@redhat.com>
20740         PR target/62254
20741         PR target/69610
20742         * config/arm/arm.c (arm_option_override_internal): Disable
20743         interworking if the target does not support thumb instructions.
20744         (arm_reload_in_hi): Handle the case where a register to register
20745         move needs reloading because there is no simple pattern to handle
20746         it.
20747         (arm_reload_out_hi): Likewise.
20749 2016-02-18  Richard Biener  <rguenther@suse.de>
20751         PR middle-end/69854
20752         * match.pd: Don't use fold_binary or fold_unary for folding
20753         constants.
20755 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20757         PR c++/69850
20758         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20759         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20760         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20761         warn on gimple_no_warning_p statements.
20763 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20765         * doc/extend.texi (C++ Attributes): Correct description of
20766         warn_unused type attribute.
20768 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20770         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20771         correct instruction.
20773 2016-02-17  Richard Biener  <rguenther@suse.de>
20775         PR rtl-optimization/69609
20776         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20777         (find_traces_1_round): When ending a trace update cached priority
20778         of successors.
20779         (bb_to_key): Use cached priority when available.
20780         (copy_bb): Initialize cached priority.
20781         (reorder_basic_blocks_software_trace_cache): Likewise.
20783 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20785         PR target/69161
20786         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20787         New predicate.
20788         (aarch64_comparison_operator): Break overly long line into two.
20789         (aarch64_comparison_operation): Likewise.
20790         * config/aarch64/aarch64.md (cstorecc4): Use
20791         aarch64_comparison_operator_mode instead of
20792         aarch64_comparison_operator.
20793         (cstore<mode>4): Likewise.
20794         (aarch64_cstore<mode>): Likewise.
20795         (*cstoresi_insn_uxtw): Likewise.
20796         (cstore<mode>_neg): Likewise.
20797         (*cstoresi_neg_uxtw): Likewise.
20799 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20801         PR target/69161
20802         * config/arm/predicates.md (arm_comparison_operator_mode):
20803         New predicate.
20804         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20805         instead of arm_comparison_operator.
20806         (*mov_negscc): Likewise.
20807         (*mov_notscc): Likewise.
20808         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20809         (*thumb2_mov_negscc): Likewise.
20810         (*thumb2_mov_negscc_strict_it): Likewise.
20811         (*thumb2_mov_notscc): Likewise.
20812         (*thumb2_mov_notscc_strict_it): Likewise.
20814 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20816         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20817         Add missing return.
20819 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20821         * config/visium/visium.c (machine_libfunc_index): New enum.
20822         (machine_libfuncs): New structure.
20823         (visium_libfuncs): New static variable.
20824         (TARGET_INIT_LIBFUNCS): Define to...
20825         (visium_init_libfuncs): ...this.  New function.
20826         (expand_block_move_4): Use the appropriate libfunc.
20827         (expand_block_move_2): Likewise.
20828         (expand_block_move_1): Likewise.
20829         (expand_block_set_4): Likewise.
20830         (expand_block_set_2): Likewise.
20831         (expand_block_set_1): Likewise.
20832         (visium_trampoline_init): Likewise.
20834 2016-02-17  Nick Clifton  <nickc@redhat.com>
20836         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20837         TI's devices.csv file as of March 2016.
20839 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20841         PR Target/48344
20842         * opts-global.c (handle_common_deferred_options): Introduce and
20843         initialize two global variables to remember command-line options
20844         specifying a stack-limiting register.
20845         * opts.h: Add extern declarations of the two new global variables.
20846         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20847         variable based on the values of the two new global variables.
20849 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20851         PR c/69835
20852         * common.opt (Wnonnull-compare): New warning.
20853         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20854         of arguments against NULL.
20855         (-Wnonnull-compare): Document.
20856         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20857         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20858         * passes.def (pass_warn_nonnull_compare): Add.
20859         * gimple-ssa-nonnull-compare.c: New file.
20861 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20863         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20864         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20866 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20868         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20869         reciprocal sqrt for -mlow-precision-recip-sqrt.
20871 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20872             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20874         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20875         always use lane loads to construct non-constant vectors.
20877 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20879         * config/aarch64/aarch64.md
20880         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20881         constraints for operand 3.
20882         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20884 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20885             Richard Biener  <rguenther@suse.de>
20887         PR tree-optimization/69820
20888         * tree-vect-patterns.c (type_conversion_p): Return false if
20889         *orig_type is unsigned single precision or boolean.
20890         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20891         Formatting fix.
20893 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20895         PR rtl-optimization/69764
20896         PR rtl-optimization/69771
20897         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20898         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20900 2016-02-16  Richard Biener  <rguenther@suse.de>
20902         PR tree-optimization/69776
20903         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20904         sets from caller.
20905         (indirect_refs_may_alias_p): Likewise.
20906         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20907         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20908         according to tbaa_p.
20909         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20910         (optimize_stmt): For redundant store discovery do not allow tbaa.
20912 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20914         PR tree-optimization/69714
20915         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20916         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20918 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20920         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20921         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20922         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20923         * config/arc/arc.c (arc_init): Check FPU options.
20924         (get_arc_condition_code): Handle new CC_FPU* modes.
20925         (arc_select_cc_mode): Likewise.
20926         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20927         register pair only. Allow access for ARCv2 accumulator.
20928         (gen_compare_reg): Whenever we have FPU support use FPU compare
20929         instructions.
20930         (arc_reorg): Don't generate brcc insns when FPU compare
20931         instructions are involved.
20932         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20933         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20934         floating point emulation.
20935         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20936         (REVERSE_CONDITION): Add new CC_FPU* modes.
20937         (TARGET_FP_SP_BASE): Define.
20938         (TARGET_FP_DP_BASE): Likewise.
20939         (TARGET_FP_SP_FUSED): Likewise.
20940         (TARGET_FP_DP_FUSED): Likewise.
20941         (TARGET_FP_SP_CONV): Likewise.
20942         (TARGET_FP_DP_CONV): Likewise.
20943         (TARGET_FP_SP_SQRT): Likewise.
20944         (TARGET_FP_DP_SQRT): Likewise.
20945         (TARGET_FP_DP_AX): Likewise.
20946         * config/arc/arc.md (ARCV2_ACC): New constant.
20947         (type): New fpu type attribute.
20948         (SDF): Conditional iterator.
20949         (cstore<mode>, cbranch<mode>): Change expand condition.
20950         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20951         handles FPU/FPX cases as well.
20952         * config/arc/arc.opt (mfpu): New option.
20953         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20954         Renamed.
20955         (adddf3, muldf3, subdf3): Removed.
20956         * config/arc/predicates.md (proper_comparison_operator): Recognize
20957         CC_FPU* modes.
20958         * config/arc/fpu.md: New file.
20959         * doc/invoke.texi (ARC Options): Document mfpu option.
20961 2016-02-16  Richard Biener  <rguenther@suse.de>
20963         PR rtl-optimization/69291
20964         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20965         noce_operand_ok check.
20967 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20969         PR lto/67709
20970         * omp-low.c (simd_clone_create): Remove call to
20971         symtab->call_cgraph_insertion_hooks.
20973 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20975         PR tree-optimization/69802
20976         * tree-ssa-reassoc.c (update_range_test): If op is
20977         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20978         op == 1 test of precision 1 integral op, otherwise handle
20979         that case as op itself.  Fix up formatting.
20980         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20981         up formatting.
20983 2016-02-16  Richard Biener  <rguenther@suse.de>
20985         PR tree-optimization/69586
20986         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20987         types for conversion sources.
20989 2016-02-16  Richard Biener  <rguenther@suse.de>
20991         PR middle-end/69801
20992         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20993         mask OEP_ADDRESS_OF.
20995 2016-02-16  Alan Modra  <amodra@gmail.com>
20997         PR target/68973
20998         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20999         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
21000         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
21001         (p8_mtvsrwz): New.
21002         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
21003         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
21004         (p8_fmrgow_<mode>): Likewise.
21005         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
21006         changes.
21007         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
21008         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
21009         to use movdi_internal64.  Remove op0_di.
21010         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
21012 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
21014         Add support for the FCCMP insn types
21016         * config/aarch64/aarch64.md (fccmp): Change insn type.
21017         (fccmpe): Likewise.
21018         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
21019         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
21020         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
21021         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
21022         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
21023         * config/arm/types.md (fccmps): Add new insn type.
21024         (fccmpd): Likewise.
21026 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21028         * alias.c (get_alias_set): Fix a typo in comment.
21030 2016-02-15  Richard Biener  <rguenther@suse.de>
21032         PR tree-optimization/69595
21033         * match.pd: Complete range test simplification to true.
21035 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
21037         PR rtl-optimization/69648
21038         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
21039         pic_offset_table_rtx.
21041         PR rtl-optimization/69752
21042         * ira.c (update_equiv_regs): When looking for more than a single SET,
21043         also take other side effects into account.
21045 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21047         * config/s390/s390.c (s390_function_profiler): Add a new sequence
21048         for z900+ CPUs in 31-bit mode.
21050 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21052         * common/config/s390/s390-common.c (s390_supports_split_stack):
21053         New function.
21054         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
21055         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
21056         * config/s390/s390.c (struct machine_function): New field
21057         split_stack_varargs_pointer.
21058         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
21059         in s390_emit_prologue.
21060         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
21061         vararg pointer.
21062         (morestack_ref): New global.
21063         (SPLIT_STACK_AVAILABLE): New macro.
21064         (s390_expand_split_stack_prologue): New function.
21065         (s390_live_on_entry): New function.
21066         (s390_va_start): Use split-stack vararg pointer if appropriate.
21067         (s390_asm_file_end): Emit the split-stack note sections.
21068         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
21069         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
21070         (UNSPECV_SPLIT_STACK_CALL): New unspec.
21071         (UNSPECV_SPLIT_STACK_DATA): New unspec.
21072         (split_stack_prologue): New expand.
21073         (split_stack_space_check): New expand.
21074         (split_stack_data): New insn.
21075         (split_stack_call): New expand.
21076         (split_stack_call_*): New insn.
21077         (split_stack_cond_call): New expand.
21078         (split_stack_cond_call_*): New insn.
21080 2016-02-15  Richard Biener  <rguenther@suse.de>
21082         PR tree-optimization/69783
21083         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21084         Add trivially correct cases.
21086 2016-02-15  Tom de Vries  <tom@codesourcery.com>
21088         PR lto/69655
21089         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
21090         do_force_output.
21091         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
21093 2016-02-15  Richard Biener  <rguenther@suse.de>
21095         PR tree-optimization/69776
21096         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21097         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21098         indicate whether we can use TBAA to disambiguate against stores.
21099         Use alias-set zero if not.
21100         (visit_reference_op_store): Do not use TBAA when looking up
21101         redundant stores.
21102         * tree-ssa-pre.c (compute_avail): Use TBAA here.
21103         (eliminate_dom_walker::before_dom_children): But not when looking
21104         up redundant stores.
21106 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
21108         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21110 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21112         *  config/i386/znver1.md
21113         (znver1_pop, znver1_pop_mem,
21114         znver1_load_imov_double_store,
21115         znver1_load_imov_direct_store,
21116         znver1_load_imov_direct_load,
21117         znver1_load_imov_double_load): Add new.
21118         (znver1_insn, znver1_insn_load): Add icmov type.
21119         (znver1_sseavx_fma,
21120         znver1_sseavx_fma_load,
21121         znver1_avx256_fma,
21122         znver1_avx256_fma_load): Fix pipe usage.
21124 2016-02-14  Alan Modra  <amodra@gmail.com>
21126         PR target/68973
21127         * reload.c (find_reloads_address_1): For pre/post-inc/dec
21128         with an invalid hard reg, reload just the reg not the entire
21129         pre/post-inc/dec address expression.
21131 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21133         PR target/67260
21134         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21135         fixed R1_REG scratch reg.
21136         (sibcall_value_pcrel_fdpic): Likewise.
21138 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21140         PR target/67636
21141         PR target/64345
21142         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21144 2016-02-12  Walter Lee  <walt@tilera.com>
21146         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21147         * config/tilegx/t-tilegx: Likewise.
21149 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21151         PR other/69554
21152         * diagnostic-show-locus.c (struct line_span): New struct.
21153         (layout::get_first_line): Delete.
21154         (layout::get_last_line): Delete.
21155         (layout::get_num_line_spans): New member function.
21156         (layout::get_line_span): Likewise.
21157         (layout::print_heading_for_line_span_index_p): Likewise.
21158         (layout::get_expanded_location): Likewise.
21159         (layout::calculate_line_spans): Likewise.
21160         (layout::m_first_line): Delete.
21161         (layout::m_last_line): Delete.
21162         (layout::m_line_spans): New field.
21163         (layout::layout): Update comment.  Replace m_first_line and
21164         m_last_line with m_line_spans, replacing their initialization
21165         with a call to calculate_line_spans.
21166         (diagnostic_show_locus): When printing source lines and
21167         annotations, rather than looping over a single span
21168         of lines, instead loop over each line_span within
21169         the layout, with an inner loop over the lines within them.
21170         Call the context's start_span callback when changing line spans.
21171         * diagnostic.c (diagnostic_initialize): Initialize start_span.
21172         (diagnostic_build_prefix): Break out the building of the location
21173         part of the string into...
21174         (diagnostic_get_location_text): ...this new function, rewriting
21175         it from nested ternary expressions to a sequence of "if"
21176         statements.
21177         (default_diagnostic_start_span_fn): New function.
21178         * diagnostic.h (diagnostic_start_span_fn): New typedef.
21179         (diagnostic_context::start_span): New field.
21180         (default_diagnostic_start_span_fn): New prototype.
21182 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21184         PR driver/69779
21185         * gcc.c (driver::finalize): Fix cleanup of "specs".
21187 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21189         PR driver/69265
21190         PR driver/69453
21191         * gcc.c (driver::driver): Initialize m_option_suggestions.
21192         (driver::~driver): Clean up m_option_suggestions.
21193         (suggest_option): Convert to...
21194         (driver::suggest_option): ...this, and split out into
21195         driver::build_option_suggestions and find_closest_string.
21196         (driver::build_option_suggestions): New function, from
21197         first half of suggest_option.  Special-case
21198         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
21199         the sanitizer_opts array.  For options of enum types, add the
21200         various enum values to the candidate strings.
21201         (driver::handle_unrecognized_options): Remove "const".
21202         * gcc.h (driver::handle_unrecognized_options): Likewise.
21203         (driver::build_option_suggestions): New decl.
21204         (driver::suggest_option): New decl.
21205         (driver::m_option_suggestions): New field.
21206         * opts-common.c (add_misspelling_candidates): New function.
21207         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
21208         and make non-static.
21209         * opts.h (sanitizer_opts): New array decl.
21210         (add_misspelling_candidates): New function decl.
21211         * spellcheck.c (find_closest_string): New function.
21212         * spellcheck.h (find_closest_string): New function decl.
21214 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21216         PR rtl-optimization/69764
21217         PR rtl-optimization/69771
21218         * optabs.c (expand_binop_directly): For shift_optab_p, force
21219         convert_modes with VOIDmode if xop1 has VOIDmode.
21221 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
21223         PR target/69729
21224         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
21225         to correctly determine instrumentation thunks.
21227 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21229         PR ipa/69241
21230         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
21231         type by reference, force lhs on the call.
21233         PR ipa/68672
21234         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
21235         Compute retval and retbnd early in all cases if split_part_return_p
21236         and return_bb is not EXIT.  Remove all clobber stmts and reset
21237         all debug stmts that refer to SSA_NAMEs defined in split part,
21238         except if it is retval, in that case replace the old retval with the
21239         lhs of the call to the split part.
21241 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21243         revert:
21244         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21246         PR middle-end/66726
21247         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21248         whose result is used in PHI.
21249         (maybe_optimize_range_tests): Likewise.
21250         (final_range_test_p): Likweise.
21252 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21254         PR middle-end/66726
21255         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21256         whose result is used in PHI.
21257         (maybe_optimize_range_tests): Likewise.
21258         (final_range_test_p): Likweise.
21260 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21262         * cgraph.c: Spelling fixes - behaviour -> behavior and
21263         neighbour -> neighbor.
21264         * target.def: Likewise.
21265         * sel-sched.c: Likewise.
21266         * config/mips/mips.c: Likewise.
21267         * config/arc/arc.md: Likewise.
21268         * config/arm/cortex-a57.md: Likewise.
21269         * config/arm/arm.c: Likewise.
21270         * config/arm/neon.md: Likewise.
21271         * config/arm/arm-c.c: Likewise.
21272         * config/vms/vms-c.c: Likewise.
21273         * config/s390/s390.c: Likewise.
21274         * config/i386/znver1.md: Likewise.
21275         * config/i386/i386.c: Likewise.
21276         * config/ia64/hpux-unix2003.h: Likewise.
21277         * config/msp430/msp430.md: Likewise.
21278         * config/rx/rx.c: Likewise.
21279         * config/rx/rx.md: Likewise.
21280         * config/aarch64/aarch64-simd.md: Likewise.
21281         * config/aarch64/aarch64.c: Likewise.
21282         * config/nvptx/nvptx.c: Likewise.
21283         * config/bfin/bfin.c: Likewise.
21284         * config/cris/cris.opt: Likewise.
21285         * config/rs6000/rs6000.c: Likewise.
21286         * target.h: Likewise.
21287         * spellcheck.c: Likewise.
21288         * ira-build.c: Likewise.
21289         * tree-inline.c: Likewise.
21290         * builtins.c: Likewise.
21291         * lra-constraints.c: Likewise.
21292         * explow.c: Likewise.
21293         * hwint.h: Likewise.
21294         * targhooks.c: Likewise.
21295         * tree-vect-data-refs.c: Likewise.
21296         * expr.c: Likewise.
21297         * doc/tm.texi: Likewise.
21298         * doc/extend.texi: Likewise.
21299         * doc/install.texi: Likewise.
21300         * doc/md.texi: Likewise.
21301         * tree-ssa-tail-merge.c: Likewise.
21302         * sched-int.h: Likewise.
21303         * match.pd: Likewise.
21304         * sched-ebb.c: Likewise.
21305         * target.def (omit_struct_return_reg): Likewise.
21306         * gimple-ssa-isolate-paths.c: Likewise.
21307         (find_implicit_erroneous_behaviour): Renamed to...
21308         (find_implicit_erroneous_behavior): ... this.
21309         (find_explicit_erroneous_behaviour): Renamed to...
21310         (find_explicit_erroneous_behavior): ... this.
21311         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21313 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
21315         PR rtl-optimization/64682
21316         PR rtl-optimization/69567
21317         PR rtl-optimization/69737
21318         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21319         in I2 as well, just lose it.
21321 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21323         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
21324         New variable.
21325         (aarch64_last_printed_tune_string): Likewise.
21326         (aarch64_declare_function_name): Only output .arch assembler
21327         directive if it will be different from the previously output
21328         directive.  Same for .tune comment but only if -dA is set.
21329         (aarch64_start_file): New function.
21330         (TARGET_ASM_FILE_START): Define.
21332 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
21334         PR plugins/69758
21335         * Makefile.in (PLUGIN_HEADERS): Add params.list.
21337 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
21339         PR target/65313
21340         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
21341         -Wmaybe-uninitialized warning.
21343 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
21345         PR target/69713
21346         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
21348 2016-02-11  Richard Biener  <rguenther@suse.de>
21350         PR rtl-optimization/69291
21351         * ifcvt.c (noce_try_store_flag_constants): Do not allow
21352         subexpressions affected by changing the result.
21354 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21356         PR target/69148
21357         * lra-constraints.c (curr_insn_transform): Find in/out operands
21358         for secondary memory moves.  Update dups.
21360 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
21362         PR tree-optimization/69652
21363         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
21364         to nested loop, did source re-formatting, skip debug statements,
21365         add check on statement with volatile operand, remove dead scalar
21366         statements.
21368 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
21369             Patrick Palka  <ppalka@gcc.gnu.org>
21371         PR ipa/69241
21372         PR c++/69649
21373         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
21374         calls if the return type is TREE_ADDRESSABLE.
21375         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
21376         * ipa-split.c (split_function): Fix doubled "we" in comment.
21377         Use void return type for the split part even if
21378         !split_point->split_part_set_retval.
21380 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
21382         PR tree-optimization/68021
21383         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
21384         when computing the value of biv cand by itself.
21386 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21388         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
21389         (cortexa57_tunings): Likewise.
21390         (cortexa72_tunings): Likewise.
21391         (arch_macro_fusion_pair_p): Add support for AES fusion.
21392         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
21393         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
21394         Allow virtual registers before reload so early scheduling works.
21395         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
21396         correct latency and pipeline.
21397         (cortex_a57_crypto_complex): Likewise.
21398         (cortex_a57_crypto_xor): Likewise.
21399         (define_bypass): Add AES bypass.
21401 2016-02-10  Richard Biener  <rguenther@suse.de>
21403         PR tree-optimization/69726
21404         * passes.def: Add DCE pass before late uninit.
21405         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
21406         really fixup if-conversions job.
21408 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21410         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
21411         (arm_cortex_a57_tune): Likewise.
21412         (aarch_macro_fusion_pair_p): Add support for AES fusion.
21413         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
21415 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
21417         * timevar.def (TV_PHASE_DBGINFO): Delete.
21418         (TV_PHASE_CHECK_DBGINFO): Likewise.
21419         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
21421 2016-02-10  Richard Biener  <rguenther@suse.de>
21423         PR tree-optimization/69719
21424         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21425         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
21427 2016-02-09  Andrew Pinski  <apinski@cavium.com>
21429         PR tree-opt/69282
21430         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
21431         get_vcond_mask_icode returns false.
21433 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21435         PR target/68404
21436         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
21437         an ADDIS that adds a pointer to a large constant that sets the
21438         upper16 bits with a load operation.
21440 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21442         PR target/68532
21443         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
21444         order.
21445         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
21446         endian.
21447         (vzipq_s16): Likewise.
21448         (vzipq_s32): Likewise.
21449         (vzipq_f32): Likewise.
21450         (vzipq_u8): Likewise.
21451         (vzipq_u16): Likewise.
21452         (vzipq_u32): Likewise.
21453         (vzipq_p8): Likewise.
21454         (vzipq_p16): Likewise.
21456 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21458         PR target/68532
21459         * config/arm/arm.c (neon_endian_lane_map): New function.
21460         (neon_vector_pair_endian_lane_map): New function.
21461         (arm_evpc_neon_vuzp): Allow for big endian lane order.
21462         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
21463         endian.
21464         (vuzpq_s16): Likewise.
21465         (vuzpq_s32): Likewise.
21466         (vuzpq_f32): Likewise.
21467         (vuzpq_u8): Likewise.
21468         (vuzpq_u16): Likewise.
21469         (vuzpq_u32): Likewise.
21470         (vuzpq_p8): Likewise.
21471         (vuzpq_p16): Likewise.
21473 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
21475         PR target/69634
21476         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
21477         debug insns.
21479 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
21481         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
21482         truncate const_int operand 1 to QImode.
21484 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21486         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
21487         corresponding to an abnormal edge.
21489 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21491         PR tree-optimization/69599
21492         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
21493         function.
21494         (find_func_aliases_for_builtin_call, find_func_clobbers)
21495         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
21496         partition.
21498 2016-02-09  Richard Biener  <rguenther@suse.de>
21500         PR tree-optimization/69715
21501         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
21502         LHS on calls as non-rewritable.
21504 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21506         PR lto/69707
21507         * lto-wrapper.c (append_diag_options): New function.
21508         (compile_offload_image): Call append_diag_options.
21510 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
21512         PR other/69722
21513         * doc/extend.texi (Flag Output Operands): Correct sectioning.
21514         Minor copy-edit to fix verb tenses.
21516 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
21518         PR tree-optimization/69209
21519         * ipa-split.c (split_function): If split part is not
21520         returning retval, retval has gimple type but is not
21521         gimple value, force it into a SSA_NAME first.
21523 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
21525         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
21526         outdated section.
21528 2016-02-08  Jason Merrill  <jason@redhat.com>
21530         PR c++/69631
21531         * convert.c (convert_to_integer_1): Check dofold on truncation
21532         distribution.
21533         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
21534         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
21535         Rename from *_nofold.
21536         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
21537         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
21539 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
21541         PR target/60410
21542         * tree.c (build_common_tree_nodes): Remove short_double argument.
21543         All callers changed.
21544         * tree.h (build_common_tree_nodes): Adjust declaration.
21545         * doc/invoke.texi (-fshort-double): Remove documentation.
21546         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21547         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
21548         * lto-wrapper.c (merge_and_complain, append_compiler_options)
21549         (append_linker_options): Don't handle OPT_fshort_double.
21551         PR rtl-optimization/68730
21552         * lra-remat.c (insn_to_cand_activation): New static variable.
21553         (lra_remat): Allocate and free it.
21554         (create_cand): New arg activation. Initialize a field in
21555         insn_to_cand_activation if it is nonnull.
21556         (create_cands): Pass the activation insn to create_cand when making
21557         a candidate involving an output reload.  Reorganize code a little.
21558         (do_remat): Keep track of active status of candidates in a separate
21559         bitmap.
21561 2016-02-08  Richard Biener  <rguenther@suse.de>
21563         PR tree-optimization/69719
21564         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21565         Properly use absolute of the difference of the two offsets to
21566         compare or adjust the segment length.
21568 2016-02-08  Richard Biener  <rguenther@suse.de>
21569             Jeff Law  <law@redhat.com>
21571         PR target/68273
21572         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21573         types for anonymous SSA names.
21575 2016-02-08   Richard Biener  <rguenther@suse.de>
21577         PR rtl-optimization/69274
21578         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21580 2016-02-08  Jeff Law  <law@redhat.com>
21582         PR tree-optimization/65917
21583         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21584         equivalences from if (x == y) style conditionals.
21585         (loop_depth_of_name): Remove.
21586         (record_equality): Remove loop depth check.
21587         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21588         (const_and_copies::record_const_or_copy_raw): New member function.
21589         * tree-ssa-scopedtables.c
21590         (const_and_copies::record_const_or_copy_raw): New, factored out of
21591         (const_and_copies::record_const_or_copy): Call new member function.
21593 2016-02-05  Jeff Law  <law@redhat.com>
21595         PR tree-optimization/68541
21596         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21597         (count_stmts_in_block): New function.
21598         (poor_ifcvt_candidate_code): Likewise.
21599         (is_feasible_trace): Add some heuristics to determine when path
21600         splitting is profitable.
21601         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21602         is a diamond with a single exit.
21604 2016-02-05  Martin Sebor  <msebor@redhat.com>
21606         PR c++/69662
21607         * doc/invoke.texi: Update -Wplacement-new to take an optional
21608         argument.
21610 2016-02-06  Richard Henderson  <rth@redhat.com>
21612         PR c/69643
21613         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21614         out of non-standard address spaces.
21616 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21618         PR rtl-optimization/69691
21619         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21621 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21623         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21624         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21625         (*ieee128_mfvsrd_64bit): Likewise.
21626         (*ieee128_mfvsrd_32bit): Likewise.
21628 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21630         PR target/69369
21631         Revert r232560:
21632         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21634         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21635         instrumented_version.
21637 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21639         * doc/invoke.texi (Optimize Options): In table of --param options
21640         rename second occurrence of tracer-min-branch-ratio to
21641         tracer-min-branch-probability, rename
21642         tracer-min-branch-ratio-feedback to
21643         tracer-min-branch-probability-feedback and clarify description,
21644         rename sched-spec-state-edge-prob-cutoff to
21645         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21646         to selsched-insns-to-rename, rename lto-minpartition to
21647         lto-min-partition, delete reorder-blocks-duplicate and
21648         reorder-blocks-duplicate-feedback.
21650 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21652         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21653         superfluous loops.
21655 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21657         * doc/extend.texi: S/390: Correct some typos.
21659 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21661         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21663 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21665         PR target/69625
21666         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21667         (s390_register_info_gprtofpr): Use new macros above.
21668         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21669         its name.
21670         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21671         its name.  Adjust restore and save gpr ranges.
21672         (s390_register_info_set_ranges): New function.
21673         (s390_register_info): Use new macros above.  Call
21674         s390_register_info_set_ranges.
21675         (s390_optimize_register_info): Likewise.
21676         (s390_hard_regno_rename_ok): Use new macros.
21677         (s390_hard_regno_scratch_ok): Likewise.
21678         (s390_emit_epilogue): Likewise.
21679         (s390_can_use_return_insn): Likewise.
21680         (s390_optimize_prologue): Likewise.
21681         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21683 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21685         PR bootstrap/69677
21686         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21687         alignment fixes.
21688         (ix86_option_override_internal): Disable TARGET_STV even for
21689         -m{incoming,preferred}-stack-boundary=3.
21691 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21693         * config.gcc: Mark deprecated rtems targets as obsolete.
21695 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21697         PR rtl-optimization/64682
21698         PR rtl-optimization/69567
21699         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21700         before I2 only if the register is both used and set in I2.
21702 2016-02-04  DJ Delorie  <dj@redhat.com>
21704         * config/msp430/msp430.c (msp430_start_function): Add function type.
21706 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21708         PR fortran/69368
21709         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21711 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21713         PR rtl-optimization/69577
21714         Revert:
21715         2015-10-29  Richard Henderson  <rth@redhat.com>
21717         PR target/68124
21718         PR rtl-opt/67609
21719         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21720         sse check to the exact conditions of PR 67609.
21722 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21724         PR target/69667
21725         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21726         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21727         not allowed into the traditional Altivec registers.
21728         (movtd_64bit_nodm): Likewise.
21729         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21731 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21733         * config/aarch64/cortex-a57-fma-steering.c
21734         (aarch64_register_fma_steering): Remove "static" from arguments
21735         to register_pass.
21737 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21739         PR target/69619
21740         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21741         twice when complex.
21743 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21745         * doc/invoke.texi: Delete -mno-fma4.
21747 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21749         PR rtl-optimization/69577
21750         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21751         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21752         definitions.
21754 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21756         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21757         * config/arm/arm.c (neon_reinterpret): Remove.
21758         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21759         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21760         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21761         vreinterpretti): Remove.
21762         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21763         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21764         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21765         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21766         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21767         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21768         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21769         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21770         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21771         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21772         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21773         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21774         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21775         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21776         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21777         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21778         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21779         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21780         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21781         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21782         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21783         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21784         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21785         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21786         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21787         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21788         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21789         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21790         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21791         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21792         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21793         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21794         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21795         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21796         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21797         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21798         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21799         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21800         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21801         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21802         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21803         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21804         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21805         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21806         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21807         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21808         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21809         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21810         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21811         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21812         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21813         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21814         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21815         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21816         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21817         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21818         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21819         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21820         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21821         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21822         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21823         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21824         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21825         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21826         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21827         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21828         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21829         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21830         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21831         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21832         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21833         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21834         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21835         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21836         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21837         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21838         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21839         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21840         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21841         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21842         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21843         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21844         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21845         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21846         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21847         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21848         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21849         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21850         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21851         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21852         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21853         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21854         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21855         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21856         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21857         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21858         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21859         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21860         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21861         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21862         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21863         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21864         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21866 2016-02-04  Martin Liska  <mliska@suse.cz>
21868         PR sanitizer/69276
21869         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21870         that are gimple_store_p.
21871         (maybe_instrument_call): Likewise.
21873 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21875         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21876         register scaling out of memory reference and comment why.
21878 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21880         PR target/65932
21881         PR target/67714
21882         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21883         folding the source of a SET.
21885 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21887         PR target/65932
21888         PR target/67714
21889         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21890         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21892 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21894         PR target/65932
21895         PR target/67714
21896         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21897         HImode.
21899 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21901         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21902         * config/arm/arm.c (arm_set_current_function): Likewise.
21904 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21905             Ilya Enkovich  <enkovich.gnu@gmail.com>
21906             H.J. Lu  <hongjiu.lu@intel.com>
21908         PR target/69454
21909         * config/i386/i386.c (convert_scalars_to_vector): Remove
21910         stack alignment fixes.
21911         (ix86_option_override_internal): Disable TARGET_STV if stack
21912         might not be aligned enough.
21913         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21915 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21917         * config/i386/x86-tune.def: Disable default prefetching
21918         for -march=znver1.
21920 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21921             Vladimir Makarov  <vmakarov@redhat.com>
21923         PR target/69461
21924         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21925         in validating fused toc addresses.
21927 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21929         PR c/69627
21930         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21931         range->m_caret fields if range->m_show_caret_p is false.
21933         PR target/69644
21934         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21935         Force oldval into register if it does not satisfy reg_or_short_operand
21936         predicate.  Fix up formatting.
21938 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21939             Alexandre Oliva  <aoliva@redhat.com>
21941         PR target/69461
21942         * lra-constraints.c (simplify_operand_subreg): Check additionally
21943         address validity after potential reloading.
21944         (process_address_1): Check insns validity.  In case of failure do
21945         nothing.
21947 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21949         PR target/69118
21950         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21951         Fix target.
21953 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21955         * wide-int.cc (canonize_uhwi): New function.
21956         (wi::divmod_internal): Use it.
21958 2016-02-02  James Norris  <jnorris@codesourcery.com>
21960         * gimplify.c (omp_notice_variable): Add usage check.
21962 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21964         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21965         like LE, GE, LT, GT when emitting relational operator.
21967 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21969         * ira-costs.c (find_costs_and_classes): Add extra argument.
21970         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21971         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21972         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21973         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21974         Add best_class parameter, and return it if not ALL_REGS.
21975         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21976         Add parameter.
21977         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21978         Update target hook.
21980 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21982         * config/aarch64/aarch64.c
21983         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21984         (aarch64_ira_change_pseudo_allocno_class): New function.
21986 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21988         PR target/67032
21989         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21991 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21993         * config/avr/avr.c (avr_option_override): Set
21994         PARAM_ALLOW_STORE_DATA_RACES to 1.
21996 2016-02-02  Richard Biener  <rguenther@suse.de>
21998         PR tree-optimization/69595
21999         * match.pd: Add range test simplifications to true/false.
22001 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
22003         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
22004         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
22005         instead.
22007 2016-02-02  Richard Biener  <rguenther@suse.de>
22009         PR tree-optimization/69606
22010         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
22011         info on the result before moving a stmt.
22013 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
22015         PR middle-end/68542
22016         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
22017         branch with vector comparison.
22018         * config/i386/sse.md (VI48_AVX): New mode iterator.
22019         (define_expand "cbranch<mode>4): Add support for conditional branch
22020         with vector comparison.
22021         * tree-vect-loop.c (optimize_mask_stores): New function.
22022         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
22023         has_mask_store field of vect_info.
22024         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
22025         vectorized loops having masked stores after vec_info destroy.
22026         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
22027         correspondent macros.
22028         (optimize_mask_stores): Add prototype.
22030 2016-02-02  Alan Modra  <amodra@gmail.com>
22032         PR target/69548
22033         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
22034         allow subregs.
22036 2016-02-02  Alan Modra  <amodra@gmail.com>
22038         PR target/68662
22039         * config/rs6000/rs6000.c (need_toc_init): New var, set it
22040         whenever toc_label_name used.
22041         (rs6000_file_start): Don't set up toc section here,
22042         (rs6000_output_function_epilogue): do so here instead,
22043         (rs6000_xcoff_file_start): and here.
22044         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
22045         (load_toc_aix_di): Likewise.
22047 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22049         PR rtl-optimization/69592
22050         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
22051         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
22052         (num_sign_bit_copies_binary_arith_p): New inline function.
22053         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
22055 2016-02-01  Jeff Law  <law@redhat.com>
22057         PR tree-optimization/69580
22058         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
22059         * tree-ssa-threadbackward.c
22060         (fsm_find_control_statement_thread_paths): Do not try to walk
22061         through large PHI nodes.
22063 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22065         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
22066         when count is incremented above limit, don't analyze further
22067         insns afterwards.
22069         * omp-low.c (oacc_parse_default_dims): Avoid
22070         -Wsign-compare warning, make sure value fits into int
22071         rather than just unsigned int.
22073 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
22075         PR tree-optimization/67921
22076         * fold-const.c (split_tree): New parameters.  Convert pointer
22077         type variable part to proper type before negating.
22078         (fold_binary_loc): Pass new arguments to split_tree.
22080 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
22082         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
22083         (nvptx_goacc_validate_dims): Extend to handle global defaults.
22084         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
22085         * doc/tm.texti: Rebuilt.
22086         * doc/invoke.texi (fopenacc-dim): Document.
22087         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
22088         (append_compiler_options): Likewise.
22089         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
22090         (oacc_parse_default_dims): New.
22091         (oacc_validate_dims): Add USED arg.  Select non-unity default when
22092         possible.
22093         (oacc_loop_fixed_partitions): Return mask of used partitions.
22094         (oacc_loop_auto_partitions): Emit dump info.
22095         (oacc_loop_partition): Return mask of used partitions.
22096         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
22097         loop partitioning and validation calls.
22099 2016-02-01  Richard Biener  <rguenther@suse.de>
22101         PR middle-end/69556
22102         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22104 2016-02-01  Richard Biener  <rguenther@suse.de>
22106         PR tree-optimization/69574
22107         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22108         of asserting return chrec_dont_know.
22110 2016-02-01  Martin Liska  <mliska@suse.cz>
22112         * mem-stats-traits.h: Add copyright header.
22113         * mem-stats.h: Likewise.
22115 2016-02-01  Richard Biener  <rguenther@suse.de>
22117         PR tree-optimization/69579
22118         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22119         Do not propagate through abnormal PHI results.
22121 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
22123         * postreload.c (reload_cse_simplify): Remove dead code.
22125 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22127         PR rtl-optimization/69570
22128         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22129         if there is more than one set, not if there is a single set.
22131 2016-02-01  Richard Henderson  <rth@redhat.com>
22133         PR rtl-opt/69535
22134         * combine.c (make_compound_operation): When looking through a
22135         subreg, make sure to re-extend to the width of the outer mode.
22137 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
22139         PR tree-optimization/69546
22140         * wide-int.cc (wi::divmod_internal): For unsigned division
22141         where both operands fit into uhwi, if o1 is 1 and o0 has
22142         msb set, if divident_prec is larger than bits per hwi,
22143         clear another quotient word and return 2 instead of 1.
22144         Similarly for remainder with msb in HWI set, if dividend_prec
22145         is larger than bits per hwi.
22147 2016-01-29  Martin Jambor  <mjambor@suse.cz>
22149         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22150         Use short lowercase names.
22151         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
22152         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22153         acq_rel one.  Protect warning agains segfaults if
22154         get_memory_order_name returns NULL.
22155         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22156         with release semantics.  Do not warn if get_memory_order already did.
22157         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22158         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
22159         if get_memory_order already did.
22161 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
22163         * doc/install.texi: Document that isl-0.16 is supported.
22165 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22167         PR target/69299
22168         * config/i386/constraints.md (Bm): Describe as special memory
22169         constraint.
22170         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22171         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22172         * genpreds.c (struct constraint_data): Add is_special_memory.
22173         (have_special_memory_constraints, special_memory_start): New
22174         static vars.
22175         (special_memory_end): Ditto.
22176         (add_constraint): Add new arg is_special_memory.  Add code to
22177         process its true value.  Update have_special_memory_constraints.
22178         (process_define_constraint): Pass the new arg.
22179         (process_define_register_constraint): Ditto.
22180         (choose_enum_order): Process special memory.
22181         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
22182         function insn_extra_special_memory_constraint.
22183         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22184         * gensupport.c (process_rtx): Process
22185         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22186         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
22187         * ira-lives.c (single_reg_class): Use
22188         insn_extra_special_memory_constraint.
22189         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
22190         * lra-constraints.c (process_alt_operands): Ditto.
22191         (curr_insn_transform): Use insn_extra_special_memory_constraint.
22192         * recog.c (asm_operand_ok, preprocess_constraints): Process
22193         CT_SPECIAL_MEMORY.
22194         * reload.c (find_reloads): Ditto.
22195         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
22196         * stmt.c (parse_input_constraint): Use
22197         insn_extra_special_memory_constraint.
22199 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22201         PR target/69530
22202         * lra-splill.c (lra_final_code_change): Revert r229087 by
22203         removing all sub-registers.
22205 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
22207         PR target/65604
22208         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
22210 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
22212         PR target/69551
22213         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
22214         SSE1, copy target into the temporary reg first before recursing
22215         on it.
22217 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22219         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
22220         with vm.
22222 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22224         * ginclude/stdarg.h: Test __cplusplus instead of
22225         __GXX_EXPERIMENTAL_CXX0X__.
22227 2016-01-29  Richard Biener  <rguenther@suse.de>
22229         PR tree-optimization/69547
22230         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
22231         Do not mark clobbers necessary.
22232         (mark_all_reaching_defs_necessary_1): Likewise.
22234 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22236         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
22237         declaration name with %qs and print it in both error messages.
22238         Also fix indentation.
22240 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22242         PR other/69006
22243         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
22244         trailing blank line from error message.
22246 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22248         PR c++/69462
22249         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
22250         for C++-11.
22252 2016-01-29  Richard Biener  <rguenther@suse.de>
22254         PR middle-end/69537
22255         * match.pd: Allow all integral types when simplifying a
22256         widening or sign-changing conversion.
22258 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22260         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22261         back to setting codegen_error to fail codegen.
22263 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
22265         PR target/69459
22266         * config/i386/constraints.md (C): Only accept constant zero operand.
22267         (BC): New constraint.
22268         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22269         instead of C constraint.
22270         * doc/md.texi (Machine Constraints): Update description
22271         of C constraint.
22273 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22275         PR target/68400
22276         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22278 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
22280         PR middle-end/69542
22281         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22282         non-debug insns.
22284 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22286         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22287         branches if using guessed profile.
22289 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
22291         * graphite-optimize-isl.c (optimize_isl): Fix dump.
22293 2016-01-28  Richard Henderson  <rth@redhat.com>
22295         PR target/69305
22296         * config/aarch64/aarch64-modes.def (CC_Cmode): New
22297         * config/aarch64/aarch64-protos.h: Update.
22298         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22299         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22300         (aarch64_get_condition_code_1): Handle CC_Cmode.
22301         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22302         (*add<mode>3_compareC_cconly_imm): New.
22303         (*add<mode>3_compareC_cconly): New.
22304         (*add<mode>3_compareC_imm): New.
22305         (add<mode>3_compareC): New.
22306         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22307         to be first.  Use aarch64_carry_operation.
22308         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22309         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22310         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22311         (subti3): Use subdi3_compare1.
22312         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22313         (sub<mode>3_compare1): New.
22314         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22315         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22316         (*subsi3_carryin_uxtw): Likewise.
22317         (*ngc<mode>, *ngcsi_uxtw): Likewise.
22318         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22319         * config/aarch64/iterators.md (DWI): New.
22320         * config/aarch64/predicates.md (aarch64_carry_operation): New.
22321         (aarch64_borrow_operation): New.
22323 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22325         * graphite-optimize-isl.c (optimize_isl): Print a different debug
22326         message when isl does not return a valid schedule.
22328 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22330         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
22331         Remove comments from class declarations: they are already in the code
22332         close by the defs.
22334 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22336         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
22337         codegen_error_p.
22338         (ternary_op_to_tree): Same.
22339         (unary_op_to_tree): Same.
22340         (nary_op_to_tree): Same.
22341         (gcc_expression_from_isl_expr_op): Same.
22342         (gcc_expression_from_isl_expression): Same.
22343         (graphite_create_new_loop): Same.
22344         (graphite_create_new_loop_guard): Same.
22345         (build_iv_mapping): Same.
22346         (graphite_create_new_guard): Same.
22347         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
22348         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
22350 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22352         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
22353         instead of setting codegen_error to fail codegen.
22355 2016-01-28  Jason Merrill  <jason@redhat.com>
22357         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
22359 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22361         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22362         Remove CONST_INT_P check in CCMP cost calculation.
22364 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22366         * config/aarch64/aarch64.c (generic_vector_cost):
22367         Set vec_permute_cost.
22368         (cortexa57_vector_cost): Likewise.
22369         (exynosm1_vector_cost): Likewise.
22370         (xgene1_vector_cost): Likewise.
22371         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
22372         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
22373         Add vec_permute_cost entry.
22375 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22377         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
22378         immediate as %1.
22379         (add<mode>3_compare0): Likewise.
22380         (addsi3_compare0_uxtw): Likewise.
22381         (add<mode>3nr_compare0): Likewise.
22382         (compare_neg<mode>): Likewise.
22383         (<optab><mode>3): Likewise.
22385 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
22387         * tree-vect-stmts.c (vectorizable_comparison): Add
22388         NULL check for vectype.
22390 2016-01-28  Richard Biener  <rguenther@suse.de>
22392         PR tree-optimization/69466
22393         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
22394         Account for PHIs we couldn't duplicate.
22396 2016-01-28  Martin Liska  <mliska@suse.cz>
22398         PR pch/68758
22399         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
22400         instead of ENABLE_VALGRIND_CHECKING.
22402 2016-01-27  Richard Henderson  <rth@redhat.com>
22404         PR rtl-opt/69447
22405         * lra-remat.c (subreg_regs): New.
22406         (dump_candidates_and_remat_bb_data): Dump it.
22407         (operand_to_remat): Reject if operand in subreg_regs.
22408         (set_bb_regs): Collect subreg_regs.
22409         (lra_remat): Init and free subreg_regs.  Compute
22410         calculate_local_reg_remat_bb_data before create_cands.
22412 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
22414         PR target/68986
22415         * config/i386/i386.c (ix86_update_stack_boundary): Don't
22416         change stack_alignment_needed for __tls_get_addr call.
22418 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
22420         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
22422 2016-01-27  Jeff Law  <law@redhat.com>
22424         PR tree-optimization/68398
22425         PR tree-optimization/69196
22426         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
22427         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
22428         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22429         Only count PHIs in the last block in the path.  The others will
22430         const/copy propagate away.  Add heuristic to allow more irreducible
22431         subloops to be created when it is likely profitable to do so.
22433         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22434         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
22435         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
22437 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22439         PR lto/69254
22440         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
22441         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
22442         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
22443         * tree-streamer-in.c: Include asan.h.
22444         (streamer_get_builtin_tree): For builtins in sanitizer
22445         range call initialize_sanitizer_builtins and retry.
22447 2016-01-27  Ian Lance Taylor  <iant@google.com>
22449         * common.opt (fkeep-gc-roots-live): New undocumented option.
22450         * tree-ssa-loop-ivopts.c (add_candidate_1): If
22451         -fkeep-gc-roots-live, skip pointers.
22452         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
22453         NULL.
22455 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
22457         PR target/69512
22458         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
22459         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
22461 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
22463         PR target/68380
22464         * configure.ac: NetBSD provides SSP in its C library.
22465         * configure: Updated.
22467 2016-01-27  Richard Biener  <rguenther@suse.de>
22469         PR tree-optimization/69166
22470         * tree-vect-loop.c (vect_is_simple_reduction): Always check
22471         reduction code for commutativity / associativity.
22473 2016-01-27  Martin Jambor  <mjambor@suse.cz>
22475         PR tree-optimization/69355
22476         * tree-sra.c (analyze_access_subtree): Correct hole detection when
22477         total_scalarization fails.
22479 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
22481         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
22482         power9.
22484 2016-01-27  Christian Bruel  <christian.bruel@st.com>
22486         PR target/69245
22487         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
22488         Move arm_reset_previous_fndecl and set_target_option_current_node in
22489         the conditional part.  Call save_restore_target_globals.
22490         * config/arm/arm.c (arm_set_current_function):
22491         Refactor to better support #pragma target and attribute mix.
22492         Call save_restore_target_globals.
22493         * config/arm/arm-protos.h (save_restore_target_globals): New function.
22495 2016-01-27  Martin Liska  <mliska@suse.cz>
22497         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
22498         reference for an HSA kernel and its host function.
22500 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22502         PR tree-optimization/69399
22503         * wide-int.h (wi::lrshift): For larger precisions, only
22504         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
22506 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
22508         * config/arc/predicates.md (proper_comparison_operator): Reject
22509         constant-constant comparison.
22511 2016-01-26  Tom de Vries  <tom@codesourcery.com>
22513         PR tree-optimization/69110
22514         * tree-data-ref.c (initialize_data_dependence_relation): Handle
22515         DR_NUM_DIMENSIONS == 0.
22517 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22518             Sebastian Pop  <s.pop@samsung.com>
22520         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
22521         isl_ast_op_cond and isl_ast_op_select.
22522         (gcc_expression_from_isl_expr_op): Same.
22524 2016-01-26  Jason Merrill  <jason@redhat.com>
22526         PR c++/68782
22527         * tree.c (recompute_constructor_flags): Split out from
22528         build_constructor.
22529         (verify_constructor_flags): New.
22530         * tree.h: Declare them.
22532 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
22534         PR rtl-optimization/69217
22535         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
22536         are no TYPE_FIELDS set for the record type.
22538 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22540         PR target/68662
22541         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
22542         toc_label_name unconditionally.
22543         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
22544         SYMBOL_REF string.  Use toc_label_name instead of constructing
22545         LCTOC1.
22546         (rs6000_elf_declare_function_name): Use toc_label_name instead of
22547         constructing LCTOC1.
22549 2016-01-26  Martin Sebor  <msebor@redhat.com>
22551         PR other/69477
22552         * doc/extend.texi (Common Type Attributes): Move text that talks about
22553         attribute packed from attribute aligned to the section discussing
22554         the former attribute for clarity.
22556 2016-01-26  Richard Henderson  <rth@redhat.com>
22558         PR middle-end/60908
22559         * trans-mem.c (tm_region_init): Mark entry block as visited.
22561 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
22563         PR other/69006
22564         * diagnostic-show-locus.c (layout::print_source_line): Replace
22565         call to pp_newline with call to layout::print_newline.
22566         (layout::print_annotation_line): Likewise.
22567         (layout::move_to_column): Likewise.
22568         (layout::print_any_fixits): After printing any fixits, print a
22569         trailing newline, if necessary.
22570         (layout::print_newline): New method, resetting any colorization
22571         before a newline.
22572         (diagnostic_show_locus): Move the pp_newline to before the
22573         early bailout.  Remove dummy block enclosing the layout instance.
22574         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22575         of pp_newline_and_flush with pp_flush.
22576         (diagnostic_append_note): Delete use of pp_newline.
22577         (diagnostic_append_note_at_rich_loc): Delete.
22578         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22579         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22580         when newline characters are added to the buffer.
22582 2016-01-26  Michael Matz  <matz@suse.de>
22584         * configure.ac (ac_cv_std_swap_in_utility): New test.
22585         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22586         * configure: Regenerate.
22587         * config.in: Regenerate.
22589 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22591         * config/arc/arc.md (cstoresi4): Force operand into register.
22592         (arcset<code>): Fix predicate.
22593         (arcsetltu): Likewise.
22594         (arcsetgeu): Likewise.
22595         (arcsethi): Likewise.
22596         (arcsetls): Likewise.
22598 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22600         PR tree-optimization/69483
22601         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22602         if base has error_mark_node type.
22604 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22606         PR target/68620
22607         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22608         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22609         New helper macros.
22610         (vget_lane_f16): Handle big-endian.
22611         (vgetq_lane_f16): Likewise.
22612         (vset_lane_f16): Likewise.
22613         (vsetq_lane_f16): Likewise.
22614         * config/arm/iterators.md (VQXMOV): Add V8HF.
22615         (VDQ): Add V4HF and V8HF.
22616         (V_reg): Handle V4HF and V8HF.
22617         (Is_float_mode): Likewise.
22618         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22619         neon_vdup_nv8hf): New patterns.
22620         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22621         Use VD_LANE iterator.
22622         (neon_vld1_dup<mode>): Use VQ2 iterator.
22624 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22626         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22627         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22628         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22629         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22630         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22631         (oacc_validate_dims): Add LEVEL arg, don't return level.
22632         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22633         oacc_validate_dims.
22634         (execute_oacc_device_lower): Adjust, add more dump output.
22635         * tree-ssa-loop.c (gate_oacc_kernels): Use
22636         oacc_fn_attrib_kernels_p.
22637         * tree-parloops.c (create_parallel_loop): Adjust
22638         set_oacc_fn_attrib call.
22640 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22642         PR lto/69254
22643         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22644         (append_compiler_options): Handle -fcilkplus.
22645         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22647 2016-01-26  Nick Clifton  <nickc@redhat.com>
22649         PR target/66655
22650         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22651         been marked as DECL_ONE_ONLY but we do not the means to make it
22652         so, then do not allow it to bind locally.
22654 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22656         PR lto/69254
22657         * opts.h (parse_sanitizer_options): New prototype.
22658         * opts.c (sanitizer_opts): New array.
22659         (parse_sanitizer_options): New function.
22660         (common_handle_option): Use parse_sanitizer_options.
22662 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22664         PR target/68986
22665         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22666         alignment adjustment to ...
22667         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22668         __tls_get_addr.
22669         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22670         if __tls_get_addr is called.
22672 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22674         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22676 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22678         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22680 2016-01-26  Richard Biener  <rguenther@suse.de>
22682         PR middle-end/69467
22683         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22685 2016-01-26  Richard Biener  <rguenther@suse.de>
22687         PR tree-optimization/69452
22688         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22689         (move_computations_dom_walker::before_dom_children): Rename
22690         to ...
22691         (move_computations_worker): This.
22692         (move_computations): Perform an RPO rather than a DOM walk.
22694 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22696         PR target/69442
22697         * combine.c (combine_instructions): For REG_EQUAL note with
22698         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22699         to the underlying register.
22700         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22701         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22703 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22705         PR target/67896
22706         * config/aarch64/aarch64-builtins.c
22707         (aarch64_init_simd_builtin_types): Do not set structural
22708         equality to __Poly{8,16,64,128}_t types.
22710 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22712         PR tree-optimization/69400
22713         * wide-int.cc (wi_pack): Take the precision as argument and
22714         perform canonicalization here rather than in the callers.
22715         Use the main loop to handle all full-width HWIs.  Add a
22716         zero HWI if in_len isn't a full result.
22717         (wi::divmod_internal): Update accordingly.
22718         (wi::mul_internal): Likewise.  Simplify.
22720 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22721             Sebastian Pop  <s.pop@samsung.com>
22723         * graphite-poly.c (apply_poly_transforms): Simplify.
22724         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22725         (print_isl_map): Same.
22726         (print_isl_union_map): Same.
22727         (print_isl_schedule): New.
22728         (debug_isl_schedule): New.
22729         * graphite-dependences.c (scop_get_reads): Do not call
22730         isl_union_map_add_map that is undocumented isl functionality.
22731         (scop_get_must_writes): Same.
22732         (scop_get_may_writes): Same.
22733         (scop_get_original_schedule): Remove.
22734         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22735         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22736         (compute_deps): Remove.
22737         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22738         (debug_schedule_ast): New.
22739         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22740         set_separate_option.
22741         (graphite_regenerate_ast_isl): Add dump.
22742         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22743         from scop->transformed_schedule.
22744         (graphite_regenerate_ast_isl): Add more dump.
22745         * graphite-optimize-isl.c (optimize_isl): Set
22746         scop->transformed_schedule.  Check whether schedules are equal.
22747         (apply_poly_transforms): Move here.
22748         * graphite-poly.c (apply_poly_transforms): ... from here.
22749         (free_poly_bb): Static.
22750         (free_scop): Static.
22751         (pbb_number_of_iterations_at_time): Remove.
22752         (print_isl_ast): New.
22753         (debug_isl_ast): New.
22754         (debug_scop_pbb): New.
22755         * graphite-scop-detection.c (print_edge): Move.
22756         (print_sese): Move.
22757         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22758         (build_scop_scattering): Remove.
22759         (create_pw_aff_from_tree): Assert instead of bailing out.
22760         (add_condition_to_pbb): Remove unused code, do not fail.
22761         (add_conditions_to_domain): Same.
22762         (add_conditions_to_constraints): Remove.
22763         (build_scop_context): New.
22764         (add_iter_domain_dimension): New.
22765         (build_iteration_domains): Initialize pbb->iterators.
22766         Call add_conditions_to_domain.
22767         (nested_in): New.
22768         (loop_at): New.
22769         (index_outermost_in_loop): New.
22770         (index_pbb_in_loop): New.
22771         (outermost_pbb_in): New.
22772         (add_in_sequence): New.
22773         (add_outer_projection): New.
22774         (outer_projection_mupa): New.
22775         (add_loop_schedule): New.
22776         (build_schedule_pbb): New.
22777         (build_schedule_loop): New.
22778         (embed_in_surrounding_loops): New.
22779         (build_schedule_loop_nest): New.
22780         (build_original_schedule): New.
22781         (build_poly_scop): Call build_original_schedule.
22782         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22783         (free_poly_dr): Remove.
22784         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22785         (free_poly_bb): Remove.
22786         (debug_loop_vec): Remove.
22787         (print_isl_ast): Declare.
22788         (debug_isl_ast): Declare.
22789         (scop_do_interchange): Remove.
22790         (scop_do_strip_mine): Remove.
22791         (scop_do_block): Remove.
22792         (flatten_all_loops): Remove.
22793         (optimize_isl): Remove.
22794         (pbb_number_of_iterations_at_time): Remove.
22795         (debug_scop_pbb): Declare.
22796         (print_schedule_ast): Declare.
22797         (debug_schedule_ast): Declare.
22798         (struct scop): Remove schedule.  Add original_schedule,
22799         transformed_schedule.
22800         (free_gimple_poly_bb): Remove.
22801         (print_generated_program): Remove.
22802         (debug_generated_program): Remove.
22803         (unify_scattering_dimensions): Remove.
22804         * sese.c (print_edge): ... here.
22805         (print_sese): ... here.
22806         (debug_edge): ... here.
22807         (debug_sese): ... here.
22808         * sese.h (print_edge): Declare.
22809         (print_sese): Declare.
22810         (dump_edge): Declare.
22811         (dump_sese): Declare.
22813 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22814             Sebastian Pop  <s.pop@samsung.com>
22816         * Makefile.in: Set ISLVER in site.exp.
22818 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22820         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22821         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22822         through DECL_VALUE_EXPR for expansion.
22824 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22826         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22827         the frame info after reload completed.
22829 2016-01-25  Jeff Law  <law@redhat.com>
22831         PR tree-optimization/69196
22832         PR tree-optimization/68398
22833         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22834         tree-ssa-threadupdate.c.
22835         (determine_bb_domination_status): Prototype
22836         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22837         (determine_bb_domination_status): No longer static.
22838         (valid_jump_thread_path): Remove code to detect characteristics
22839         of the jump thread path not associated with correctness.
22840         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22841         Correct test for thread path length.  Count PHIs for real operands as
22842         statements that need to be copied.  Do not count ASSERT_EXPRs.
22843         Look at all the blocks in the thread path.  Compute and selectively
22844         filter thread paths based on threading through the latch, threading
22845         a multiway branch or crossing a multiway branch.
22847 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22849         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22850         decl with __attribute__ ((unused)) annotation.
22852 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22854         PR target/69421
22855         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22856         of operands is compatible with a statement vectype.
22858 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22860         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22861         improve wording for mixed storage order support.
22863 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22865         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22866         (vcvt_u64_f64): Likewise.
22867         (vcvta_s64_f64): Likewise.
22868         (vcvta_u64_f64): Likewise.
22869         (vcvtm_s64_f64): Likewise.
22870         (vcvtm_u64_f64): Likewise.
22871         (vcvtn_s64_f64): Likewise.
22872         (vcvtn_u64_f64): Likewise.
22873         (vcvtp_s64_f64): Likewise.
22874         (vcvtp_u64_f64): Likewise.
22876 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22878         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22879         (arc_init): Check validity mll64 option.
22880         (arc_save_restore): Use double load/store instruction.
22881         (arc_expand_movmem): Likewise.
22882         (arc_split_move): Don't split if we have double load/store
22883         instructions. Returns a boolean.
22884         (arc_process_double_reg_moves): Change function to return boolean
22885         instead of a sequence of instructions.
22886         (arc_dwarf_register_span): New function.
22887         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22888         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22889         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22890         (*movdf_insn): Likewise.
22891         * config/arc/arc.opt (mll64): New option.
22892         * config/arc/predicates.md (even_register_operand): New predicate.
22893         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22895 2016-01-25  Richard Biener  <rguenther@suse.de>
22897         PR lto/69393
22898         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22899         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22900         DECL_NAMELESS.
22901         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22903 2016-01-25  Richard Biener  <rguenther@suse.de>
22905         PR tree-optimization/69376
22906         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22907         flag.
22908         (VN_INFO_ANTI_RANGE_P): New inline.
22909         (VN_INFO_RANGE_TYPE): Likewise.
22910         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22911         SSA_NAME_ANTI_RANGE_P.
22912         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22913         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22914         Properly query VN_INFO_RANGE_TYPE.
22916 2016-01-25  Nick Clifton  <nickc@redhat.com>
22918         PR target/66655
22919         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22921 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22923         PR tree-optimization/69426
22924         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22925         removed clobber.
22927 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22929         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22930         "the the" with "the" in the comments.
22931         * ipa-devirt.c (build_type_inheritance_graph,
22932         update_type_inheritance_graph): Likewise.
22933         * tree.c (build_function_type_list_1): Likewise.
22934         * cfgloopmanip.c (scale_loop_profile): Likewise.
22935         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22936         * gimple-ssa-split-paths.c
22937         (find_block_to_duplicate_for_splitting_paths): Likewise.
22938         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22939         * expr.c (convert_move): Likewise.
22940         * var-tracking.c (vt_stack_adjustments): Likewise.
22941         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22942         * tree-vrp.c (test_for_singularity): Likewise.
22944         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22945         directly instead of building a temporary tree.
22947         PR bootstrap/69434
22948         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22949         remove <algorithm> include.
22951 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22953         PR target/69432
22954         * config/i386/i386.c: Include dojump.h.
22955         (expand_small_movmem_or_setmem,
22956         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22957         fixes.
22958         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22959         if dynamic_check != -1.
22961 2016-01-21  Jeff Law  <law@redhat.com>
22963         PR middle-end/69347
22964         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22965         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22966         into dominated_by_p.
22967         (cprop_into_successor_phis): Avoid unnecessary tests.
22969 2016-01-22  Richard Henderson  <rth@redhat.com>
22971         PR target/69416
22972         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22973         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22975 2016-01-22  Michael Matz  <matz@suse.de>
22977         * system.h (string, algorithm): Include only conditionally.
22978         (new): Include always under C++.
22979         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22980         * final.c (toplevel): Ditto.
22981         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22982         * genconditions.c (write_header): Make gencondmd.c define
22983         INCLUDE_STRING.
22984         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22986         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22987         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22989 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22991         PR target/68674
22992         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22994 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22996         PR target/69403
22997         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22998         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22999         get assigned the same register.
23001 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23003         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
23005 2016-01-22  Christian Bruel  <christian.bruel@st.com>
23007         * config/arm/arm-c.c (arm_pragma_target_parse):
23008         Remove warn_builtin_macro_redefined overwrite.
23010 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23012         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
23013         flag_non_call_exceptions compatibility.
23015 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
23017         PR debug/66668
23018         * dwarf2out.c (add_child_die_after): New function.
23019         (dwarf_qual_info_t): New type.
23020         (dwarf_qual_info): New variable.
23021         (qualified_die_p): New function.
23022         (modified_type_die): For -fdebug-types-section, ensure
23023         canonical order of qualifiers.  Put qualified DIEs adjacent
23024         to the corresponding non-qualified type DIE and search there
23025         for existing qualified DIEs.
23027 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23029         * doc/extend.texi (scalar_storage_order type attribute): Document
23030         restriction on type punning and aliasing, and remove future tense.
23032 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
23034         PR target/69252
23035         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
23036         first stage.
23038 2016-01-21  Jeff Law  <law@redhat.com>
23040         PR middle-end/69347
23041         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
23042         useless call to record_temporary_equivalences.
23043         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
23044         allocate 10 slots in the bb_path vector and let it grow as needed.
23045         (fsm_find_control_statement_thread_paths): Similarly for the next_path
23046         vector.
23048 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23050         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
23051         Detangle.
23052         * configure: Regenerate.
23054 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
23056         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
23057         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
23059 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
23061         PR middle-end/66178
23062         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
23063         drop EXPAND_INITIALIZER.
23064         * rtl.h (contains_symbolic_reference_p): Declare.
23065         * rtlanal.c (contains_symbolic_reference_p): New function.
23066         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
23067         a subtraction into a NOT if symbolic constants are involved.
23069 2016-01-21  Anton Blanchard  <anton@samba.org>
23070             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23072         PR target/63354
23073         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
23074         #define.
23075         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
23076         function.
23078 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23080         * config/microblaze/microblaze.c
23081         (get_branch_target): New.
23082         (insert_wic_for_ilb_runout): New.
23083         (insert_wic): New.
23084         (microblaze_machine_dependent_reorg): New.
23085         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
23086         * config/microblaze/microblaze.md
23087         (UNSPEC_IPREFETCH): Define.
23088         (iprefetch): New pattern
23089         * config/microblaze/microblaze.opt
23090         (mxl-prefetch): New flag.
23092 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23094         * config/microblaze/microblaze.h
23095         (FIXED_REGISTERS): Update in macro.
23096         (CALL_USED_REGISTERS): Update in macro.
23098 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
23100         PR rtl-optimization/68920
23101         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23102         moves.
23104 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
23106         PR rtl-optimization/68990
23107         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23108         pseudo instead of inheritance ones.
23110 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23111             Nick Clifton  <nickc@redhat.com>
23113         PR target/69129
23114         PR target/69012
23115         * config/mips/mips.c (mips_compute_frame_info): Initialise
23116         args_size and hard_frame_pointer_offset fields of the frame
23117         structure before calling mips_global_pointer.
23119 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23121         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23122         label reference.
23123         * configure: Regenerate.
23125 2016-01-21  Richard Biener  <rguenther@suse.de>
23127         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23129 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23131         * config/s390/s390.c (s390_asm_declare_function_size): Add code
23132         to actually emit the .size directive.
23134 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
23135              Jakub Jelinek  <jakub@redhat.com>
23137         PR target/69187
23138         PR target/65624
23139         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23140         args array size by one to avoid buffer overflow.
23142 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23144         * config/s390/s390.md (pool_section_start): Use switch_to_section
23145         to select proper read-only data section instead of hardcoding
23146         .rodata.
23147         (pool_section_end): Use switch_to_section to match the above.
23149 2016-01-21  Richard Biener  <rguenther@suse.de>
23151         PR tree-optimization/69378
23152         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23153         (set_ssa_val_to): Use it for dominance checks taking into
23154         account not executable edges.
23156 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23158         PR c++/69355
23159         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23160         for bitsize instead of GET_MODE_PRECISION (mode).
23162 2016-01-20  Martin Sebor  <msebor@redhat.com>
23164         PR c/52291
23165         * extend.texi (__sync Builtins): Clarify the semantics of
23166         __sync_fetch_and_OP built-ins on pointers.
23167         (__atomic Builtins): Same.
23169 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23170             Sebastian Pop  <s.pop@samsung.com>
23172         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23173         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23174         (is_valid_rename): Same.
23175         (translate_isl_ast_to_gimple::get_rename): Same.
23176         (translate_isl_ast_to_gimple::rename_all_uses): Same.
23177         (translate_isl_ast_to_gimple::rename_uses): Same.
23178         (get_new_name): Check for close_phi nodes.
23179         (copy_loop_phi_args): Use phi_node_kind.
23180         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23181         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
23183 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23184             Sebastian Pop  <s.pop@samsung.com>
23186         Revert commit r229783.
23187         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
23188         Remove use of parameter_rename_map.
23189         (copy_def): Remove.
23190         (copy_internal_parameters): Remove.
23191         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
23192         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
23193         (free_sese_info): Do not free parameter_rename_map.
23194         (set_rename): Do not use parameter_rename_map.
23195         (rename_uses): Update call to set_rename.
23196         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
23197         * sese.h (parameter_rename_map_t): Remove.
23198         (struct sese_info_t): Remove field parameter_rename_map.
23200 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23201             Sebastian Pop  <s.pop@samsung.com>
23203         * graphite-isl-ast-to-gimple.c: Fix comment.
23204         * graphite-scop-detection.c (defined_in_loop_p): New.
23205         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
23206         names defined in loop.
23208 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23209             Sebastian Pop  <s.pop@samsung.com>
23211         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
23212         Discard unstructured if-then-else regions.
23214 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23215             Sebastian Pop  <s.pop@samsung.com>
23217         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
23218         (cleanup_loop_iter_dom): Remove.
23219         (build_loop_iteration_domains): Remove.
23220         (build_scop_context): Remove.
23221         (build_scop_iteration_domain): Remove.
23222         (add_loop_constraints): New.
23223         (build_iteration_domains): New.
23224         (build_poly_scop): Call build_iteration_domains.
23226 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23227             Sebastian Pop  <s.pop@samsung.com>
23229         * graphite-scop-detection.c
23230         (scop_detection::harmful_loop_in_region): Free dom and loops.
23231         (scop_detection::loop_body_is_valid_scop): Free bbs.
23233 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23234             Sebastian Pop  <s.pop@samsung.com>
23236         * graphite-scop-detection.c (record_loop_in_sese): New.
23237         (gather_bbs::before_dom_children): Call record_loop_in_sese.
23238         (build_scops): Remove call to build_sese_loop_nests.
23239         * sese.c (sese_record_loop): Remove.
23240         (build_sese_loop_nests): Remove.
23241         (new_sese_info): Remove region->loops.
23242         (free_sese_info): Same.
23243         * sese.h (sese_contains_loop): Same.
23244         (build_sese_loop_nests): Remove.
23245         (sese_contains_loop): Remove.
23247 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23248             Sebastian Pop  <s.pop@samsung.com>
23250         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
23251         loop_is_valid_in_scop.
23252         (scop_detection::harmful_stmt_in_region): Renamed
23253         harmful_loop_in_region.
23254         Call loop_is_valid_in_scop.
23256 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23257             Sebastian Pop  <s.pop@samsung.com>
23259         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23260         isl_ast_node_mark.
23262 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23263             Sebastian Pop  <s.pop@samsung.com>
23265         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23266         * graphite.h (struct poly_bb): Remove field is_reduction.
23267         (PBB_IS_REDUCTION): Remove.
23269 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23270             Sebastian Pop  <s.pop@samsung.com>
23272         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23273         (add_pdr_constraints): Same.
23274         (scop_get_reads): Same.
23275         (scop_get_must_writes): Same.
23276         (scop_get_may_writes): Same.
23277         (scop_get_original_schedule): Same.
23278         (extend_schedule): Same.
23279         (apply_schedule_on_deps): Same.
23280         (carries_deps): Same.
23281         (compute_deps): Same.
23282         (scop_get_dependences): Same.
23283         * graphite-isl-ast-to-gimple.c
23284         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23285         * graphite-optimize-isl.c (get_schedule_for_band): Same.
23286         (get_schedule_for_band_list): Same.
23287         (get_schedule_map): Same.
23288         (apply_schedule_map_to_scop): Same.
23289         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23290         (build_loop_iteration_domains): Same.
23291         (add_condition_to_pbb): Same.
23292         (add_param_constraints): Same.
23293         (pdr_add_memory_accesses): Same.
23294         (pdr_add_data_dimensions): Same.
23296 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23298         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23299         requirements.
23301 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23303         * common.opt (feliminate-dwarf2-dups): Replace references to
23304         "DWARF 2" with just "DWARF".
23305         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23306         * doc/extend.texi: Likewise.
23307         * doc/cpp.texi: Likewise.
23308         * doc/invoke.texi: Likewise.
23309         (Option Summary): Add -gdwarf to list of Debugging Options.
23310         (Debugging Options): Document -gdwarf.
23311         * doc/contrib.texi: Spell "DWARF" like that.
23313 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23315         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23316         warning.  Fix up formatting.
23318         PR middle-end/67653
23319         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23320         attempt to mark memory input operand addressable and
23321         call prepare_gimple_addressable in that case.  Don't adjust
23322         input_location for diagnostics, use error_at instead.
23324 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
23326         * config/rs6000/ppc-auxv.h: New file.
23327         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
23328         (cpu_is): Likewise.
23329         (cpu_supports): Likewise.
23330         * config/rs6000/rs6000.c: include "ppc-auxv.h".
23331         (cpu_is_info): New variable.
23332         (cpu_supports_info): Likewise.
23333         (tcb_verification_symbol): Likewise.
23334         (cpu_builtin_p): Likewise.
23335         (cpu_expand_builtin): New function.
23336         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
23337         (rs6000_init_builtins): Likewise.
23338         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
23339         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
23340         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
23341         * configure: Regenerate.
23342         * config.in: Likewise.
23343         * doc/extend.texi (PowerPC Built-in Functions): Document
23344         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
23346 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
23348         PR target/68609
23349         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
23350         domain check.
23351         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
23352         for V4SFmode.
23354 2016-01-20  Richard Henderson  <rth@redhat.com>
23356         PR bootstrap/69343
23357         PR bootstrap/69339
23358         PR tree-opt/68964
23359         Revert:
23360         * tree.c (tm_define_builtin): New.
23361         (find_tm_vector_type): New.
23362         (build_tm_vector_builtins): New.
23363         (build_common_builtin_nodes): Call it.
23365 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
23367         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
23368         (arm_fp_ok): Likewise.
23369         (arm_fp): Likewise.
23370         (arm_crypto): Likewise.
23372 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23373             Richard Biener  <rguenther@suse.de>
23375         PR tree-optimization/69328
23376         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
23377         vectors have same number of elements.
23378         (vectorizable_condition): Fix masked version recognition.
23380 2016-01-20  Richard Biener  <rguenther@suse.de>
23382         PR tree-optimization/69345
23383         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
23384         (VN_INFO_PTR_INFO): Likewise.
23385         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
23386         info when it is equal between non-dominating SSA names.
23387         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23388         Make sure to look at original SSA infos.
23390 2016-01-20  Jeff Law  <law@redhat.com>
23392         PR target/25114
23393         * config/m68k/predicates.md (pow2_m1_operand): New predicate
23394         extracted from ...
23395         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
23396         (pc_or_label_operand): New predicate.
23397         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
23398         tests for small integers that are 2^n - 1.
23400 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
23402         * doc/invoke.texi (Options Summary): Add '.' after @xref.
23404 2016-01-19  Jeff Law  <law@redhat.com>
23406         PR middle-end/69347
23407         * tree-ssa-threadbackwards.c
23408         (fsm_find_control_statement_thread_paths): Do not try to lookup
23409         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
23411 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23413         * doc/lto.texi: Remove text that says only Gold has linker plugin
23414         support.
23416 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
23418         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
23419         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
23420         the DIE accordingly.
23421         (modified_type_die): Add REVERSE parameter and pass it recursively,
23422         as well as to base_type_die.  Adjust presence check accordingly.
23423         (base_type_for_mode): Adjust call to modified_type_die.
23424         (add_type_attribute): Add REVERSE parameter and pass it to
23425         modified_type_die.
23426         (generic_parameter_die): Adjust call to add_type_attribute.
23427         (add_scalar_info): Likewise.
23428         (add_subscript_info): Likewise.
23429         (gen_array_type_die): Likewise.
23430         (gen_descr_array_type_die): Likewise.
23431         (gen_entry_point_die): Likewise.
23432         (gen_enumeration_type_die): Likewise.
23433         (gen_formal_parameter_die): Likewise.
23434         (gen_subprogram_die): Likewise.
23435         (gen_variable_die ): Likewise.
23436         (gen_const_die): Likewise.
23437         (gen_field_die): Likewise.
23438         (gen_pointer_type_die): Likewise.
23439         (gen_reference_type_die): Likewise.
23440         (gen_ptr_to_mbr_type_die): Likewise.
23441         (gen_inheritance_die): Likewise.
23442         (gen_subroutine_type_die): Likewise.
23443         (gen_typedef_die): Likewise.
23444         (force_type_die): Adjust call to modified_type_die.
23446 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
23448         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
23449         flow throughout the file.  Fix broken link to Objective-C 2.0
23450         documentation.
23451         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
23452         errors.
23454 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23456         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
23458 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23460         PR ipa/66223
23461         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
23462         (maybe_record_node): Record cxa_pure_virtual as the only possible
23463         target if there are not ohter candidates.
23464         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
23466 2016-01-19  Richard Biener  <rguenther@suse.de>
23468         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
23469         (get_memory_order): Likewise.
23471 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23473         * tree-vect-stmts.c (vectorizable_store): Check
23474         rhs vectype.
23476 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
23478         PR jit/68446
23479         * gcc.c (driver::decode_argv): Add call to
23480         init_opts_obstack before init_options_struct.
23481         * opts.c (init_opts_obstack): Remove idempotency.
23482         (init_options_struct): Replace call to init_opts_obstack
23483         with a gcc_assert to verify that it has already been called.
23484         * toplev.c (toplev::main): Add call to init_opts_obstack before
23485         calls to init_options_struct.
23486         (toplev::finalize): Move cleanup of opts_obstack next to
23487         cleanup of save_decoded_options, clearing the latter, and
23488         save_decoded_options_count.
23490 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23492         PR target/69135
23493         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
23494         attribute to unconditional.  Remove %? from output template.
23496 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23497             Jiong Wang  <jiong.wang@arm.com>
23499         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
23500         generated from different expand order.
23502 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23504         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23505         Add support for CCMP costing.
23507 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23509         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
23510         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
23511         (fccmpe<mode>): Likewise.
23512         (fcmp): Rename to fcmp and globalize pattern.
23513         (fcmpe): Likewise.
23514         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
23515         (aarch64_gen_ccmp_next): Add FP support.
23517 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23519         * target.def (gen_ccmp_first): Update documentation.
23520         (gen_ccmp_next): Likewise.
23521         * doc/tm.texi (gen_ccmp_first): Update documentation.
23522         (gen_ccmp_next): Likewise.
23523         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
23524         expand_ccmp_expr_1.  Improve comments.
23525         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
23526         (ccmp_ior<mode>): Remove pattern.
23527         (cmp<mode>): Remove expand.
23528         (cmp): Globalize pattern.
23529         (cstorecc4): Use cc_register.
23530         (mov<mode>cc): Remove ccmp_cc_register check.
23531         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
23532         Simplify after removal of CC_DNE/* modes.
23533         (aarch64_ccmp_mode_to_code): Remove.
23534         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
23535         In 'k' case use integer as condition.
23536         (aarch64_nzcv_codes): Remove inverted cases.
23537         (aarch64_code_to_ccmode): Remove.
23538         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
23539         comparison with CC register to be used in folowing CCMP/branch/CSEL.
23540         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
23541         pattern.  Return the comparison with CC register.  Invert conditions
23542         when bitcode is OR.
23543         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
23544         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
23546 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23548         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23549         instrumented_version.
23551 2016-01-19  Richard Biener  <rguenther@suse.de>
23553         PR tree-optimization/69336
23554         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23555         handled components with get_ref_base_and_extent.
23556         (equal_mem_array_ref_p): Adjust.
23558 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23560         PR debug/65779
23561         * shrink-wrap.c: Include valtrack.h.
23562         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
23563         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23564         in between insn and where it will be moved to.  Call
23565         dead_debug_insert_temp.
23566         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23567         first and dead_debug_local_finish at the end.
23568         For uses and defs bitmap, handle all regs in between REGNO and
23569         END_REGNO, not just the first one.
23571 2016-01-19  Richard Biener  <rguenther@suse.de>
23573         PR tree-optimization/69352
23574         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23575         (equal_mem_array_ref_p): Constrain size and max size properly.
23576         Compare the reverse flag.
23578 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23580         * ira.c (ira): Update regstat data if we deleted insns.
23582 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23584         PR rtl-optimization/68955
23585         PR rtl-optimization/64557
23586         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23587         here.  Fix up formatting.
23588         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23590 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23592         PR lto/69133
23593         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23594         assume that the node has body.
23595         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23596         check.
23598 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23600         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23601         thunks.
23603 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23605         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23606         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23608 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23609             Martin Liska  <mliska@suse.cz>
23610             Michael Matz  <matz@suse.de>
23612         * Makefile.in (OBJS): Add new source files.
23613         (GTFILES): Add hsa.c.
23614         * common.opt (disable_hsa): New variable.
23615         (-Whsa): New warning.
23616         * config.in (ENABLE_HSA): New.
23617         * configure.ac: Treat hsa differently from other accelerators.
23618         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23619         $enable_offloading.
23620         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23621         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23622         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23623         --with-hsa-kmt-lib.
23624         * doc/invoke.texi (-Whsa): Document.
23625         (hsa-gen-debug-stores): Likewise.
23626         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23627         to invoke offload compiler for hsa acclerator.
23628         * opts.c (common_handle_option): Determine whether HSA offloading
23629         should be performed.
23630         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23631         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23632         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23633         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23634         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23635         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23636         GF_OMP_FOR_KIND_GRID_LOOP.
23637         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23638         (pp_gimple_stmt_1): Likewise.
23639         * gimple-walk.c (walk_gimple_stmt): Likewise.
23640         * gimple.c (gimple_build_omp_grid_body): New function.
23641         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23642         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23643         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23644         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23645         GF_OMP_TEAMS_GRID_PHONY.
23646         (gimple_statement_omp_single_layout): Updated comments.
23647         (gimple_build_omp_grid_body): New function.
23648         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23649         (gimple_omp_for_grid_phony): New function.
23650         (gimple_omp_for_set_grid_phony): Likewise.
23651         (gimple_omp_parallel_grid_phony): Likewise.
23652         (gimple_omp_parallel_set_grid_phony): Likewise.
23653         (gimple_omp_teams_grid_phony): Likewise.
23654         (gimple_omp_teams_set_grid_phony): Likewise.
23655         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23656         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23657         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23658         (BUILT_IN_GOMP_TARGET): Updated type.
23659         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23660         (adjust_for_condition): New function.
23661         (get_omp_for_step_from_incr): Likewise.
23662         (extract_omp_for_data): Moved parts to adjust_for_condition and
23663         get_omp_for_step_from_incr.
23664         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23665         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23666         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23667         (scan_omp_parallel): Do not create child functions for phony
23668         constructs.
23669         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23670         (scan_omp_1_op): Checking assert we are not remapping to
23671         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23672         (parallel_needs_hsa_kernel_p): New function.
23673         (expand_parallel_call): Register apprpriate parallel child
23674         functions as HSA kernels.
23675         (grid_launch_attributes_trees): New type.
23676         (grid_attr_trees): New variable.
23677         (grid_create_kernel_launch_attr_types): New function.
23678         (grid_insert_store_range_dim): Likewise.
23679         (grid_get_kernel_launch_attributes): Likewise.
23680         (get_target_argument_identifier_1): Likewise.
23681         (get_target_argument_identifier): Likewise.
23682         (get_target_argument_value): Likewise.
23683         (push_target_argument_according_to_value): Likewise.
23684         (get_target_arguments): Likewise.
23685         (expand_omp_target): Call get_target_arguments instead of looking
23686         up for teams and thread limit.
23687         (grid_expand_omp_for_loop): New function.
23688         (grid_arg_decl_map): New type.
23689         (grid_remap_kernel_arg_accesses): New function.
23690         (grid_expand_target_kernel_body): New function.
23691         (expand_omp): Call it.
23692         (lower_omp_for): Do not emit phony constructs.
23693         (lower_omp_taskreg): Do not emit phony constructs but create for them
23694         a temporary variable receiver_decl.
23695         (lower_omp_taskreg): Do not emit phony constructs.
23696         (lower_omp_teams): Likewise.
23697         (lower_omp_grid_body): New function.
23698         (lower_omp_1): Call it.
23699         (grid_reg_assignment_to_local_var_p): New function.
23700         (grid_seq_only_contains_local_assignments): Likewise.
23701         (grid_find_single_omp_among_assignments_1): Likewise.
23702         (grid_find_single_omp_among_assignments): Likewise.
23703         (grid_find_ungridifiable_statement): Likewise.
23704         (grid_target_follows_gridifiable_pattern): Likewise.
23705         (grid_remap_prebody_decls): Likewise.
23706         (grid_copy_leading_local_assignments): Likewise.
23707         (grid_process_kernel_body_copy): Likewise.
23708         (grid_attempt_target_gridification): Likewise.
23709         (grid_gridify_all_targets_stmt): Likewise.
23710         (grid_gridify_all_targets): Likewise.
23711         (execute_lower_omp): Call grid_gridify_all_targets.
23712         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23713         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23714         (tree_omp_clause): Added union field dimension.
23715         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23716         * tree.c (omp_clause_num_ops): Added number of arguments of
23717         OMP_CLAUSE__GRIDDIM_.
23718         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23719         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23720         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23721         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23722         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23723         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23724         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23725         * tree-pass.h (make_pass_gen_hsail): Declare.
23726         (make_pass_ipa_hsa): Likewise.
23727         * ipa-hsa.c: New file.
23728         * lto-section-in.c (lto_section_name): Add hsa section name.
23729         * lto-streamer.h (lto_section_type): Add hsa section.
23730         * timevar.def (TV_IPA_HSA): New.
23731         * hsa-brig-format.h: New file.
23732         * hsa-brig.c: New file.
23733         * hsa-dump.c: Likewise.
23734         * hsa-gen.c: Likewise.
23735         * hsa.c: Likewise.
23736         * hsa.h: Likewise.
23737         * toplev.c (compile_file): Call hsa_output_brig.
23738         * hsa-regalloc.c: New file.
23740 2016-01-18  Jeff Law  <law@redhat.com>
23742         PR tree-optimization/69320
23743         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23744         ranged object, do nothing if the RHS constant is not [0..1].
23745         (optimize_stmt): Comparing a boolean ranged object against a
23746         constant outside [0..1] results in a compile-time constant.
23748         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23749         test.
23751 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23753         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23754         (Option Summary): Update to reflect new section and moved options.
23755         (C++ Dialect Options): Move -fstats to new section.
23756         (Debugging Options): Move all dump, statistics, and other GCC
23757         developer options to new section.  Rewrite section introduction
23758         and re-order remaining options to put the more basic ones first.
23759         (Optimization Options): Move -fira-verbose and -flto-report* to
23760         new section.
23761         (Developer Options): New section incorporating moved options.
23762         * doc/cppopts.texi (-dM): Update cross-reference.
23764 2016-01-18  Richard Henderson  <rth@redhat.com>
23766         PR target/69176
23767         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23768         operands to pseudo only if CSE is expected.  Split long immediate
23769         operands only after reload, and for the stack pointer.
23770         (*add<GPI>3_pluslong): Remove.
23771         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23772         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23773         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23774         (*add<GPI>3 peepholes): New.
23775         (*add<GPI>3 splitters): New.
23776         * config/aarch64/constraints.md (Upl): New.
23777         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23779 2016-01-18  Richard Biener  <rguenther@suse.de>
23781         PR tree-optimization/69297
23782         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23783         stmt at most once.
23784         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23786 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23788         PR middle-end/68542
23789         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23790         of mixind vector and scalar types.
23791         (fold_relational_const): Add handling of vector
23792         comparison with boolean result.
23793         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23794         comparison of vector operands with boolean result for EQ/NE only.
23795         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23796         (verify_gimple_cond): Likewise.
23797         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23798         valid type of VAL.
23800 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23802         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23803         !TARGET_OCTEON.
23805 2016-01-18  Richard Biener  <rguenther@suse.de>
23807         PR middle-end/69308
23808         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23810 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23812         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23814 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23816         * omp-low.c (set_oacc_fn_attrib): Make extern.
23817         * omp-low.h (set_oacc_fn_attrib): Declare.
23818         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23819         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23820         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23821         Add and handle function parameter oacc_kernels_p.
23822         (find_reduc_addr, get_omp_data_i_param): New function.
23823         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23824         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23825         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23826         Calculate dominance info.  Skip loops that are not in a kernels region
23827         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23828         (pass_parallelize_loops::execute): Call parallelize_loops with
23829         oacc_kernels_p argument.
23830         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23831         New member function.
23832         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23833         * passes.def: Add argument to pass_parallelize_loops instantation.
23835 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23837         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23838         pass_parallelize_loops to be run outside the loop pipeline.
23840 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23842         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23843         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23845 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23847         PR target/63679
23848         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23849         using get_ref_base_and_extent.
23850         (equal_mem_array_ref_p): New.
23851         (hashable_expr_equal_p): Add call to previous.
23853 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23855         PR target/63679
23856         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23857         (sra_initialize): Allocate disqualified_constants.
23858         (sra_deinitialize): Free disqualified_constants.
23859         (disqualify_candidate): Update disqualified_constants when appropriate.
23860         (create_access): Scan for constant-pool entries as we go along.
23861         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23862         (maybe_add_sra_candidate): Allow constant-pool entries.
23863         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23864         (initialize_constant_pool_replacements): New.
23865         (sra_modify_assign): Avoid mangling assignments created by previous,
23866         and don't generate writes into constant pool.
23867         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23869 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23871         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23872         andnot instruction.
23873         (scalar_chain::convert_op): Likewise.
23874         * config/i386/i386.md (*andndi3_doubleword): New.
23876 2016-01-18  Richard Biener  <rguenther@suse.de>
23878         PR tree-optimization/69170
23879         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23880         building a vector from scalar results of a pattern stmt.
23882 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23884         * haifa-sched.c (autopref_multipass_init): Work around
23885         -Wmaybe-uninitialized warning.
23887 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23889         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23890         against the constant 0.
23892 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23894         PR tree-optimization/68799
23895         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23896         look up phi candidates in the statement-candidate map.
23897         (phi_add_costs): Likewise.
23898         (record_phi_increments): Likewise.
23899         (phi_incr_cost): Likewise.
23900         (ncd_with_phi): Likewise.
23901         (all_phi_incrs_profitable): Likewise.
23903 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23905         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23906         -Wmaybe-uninitialized warning.
23908 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23910         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23911         (Option Summary): Update to reflect new section and moved options.
23912         (C++ Dialect Options): Move -fvtable-verify and related options.
23913         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23914         and profiling-related options.
23915         (Optimization Options): Move profile generation options and
23916         -fstack-protector and related options.
23917         (Instrumentation Options): New section incorporating moved options.
23918         (Code Generation Options): Move -finstrument-functions and
23919         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23921 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23923         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23925 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23927         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23929 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23931         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23932         that checks whether the table is already empty.  Rename the
23933         original implementation to...
23934         (hash_table::empty_slot): ...this new private function.
23936 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23938         PR diagnostic/68899
23939         * diagnostic-show-locus.c (layout::print_source_line): Move x
23940         offset of line until after call to
23941         get_line_width_without_trailing_whitespace.
23943 2016-01-15  Jeff Law  <law@redhat.com>
23945         PR tree-optimization/69270
23946         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23947         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23948         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23949         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23950         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23951         ssa_name_has_boolean_range and constant_boolean_node.
23953 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23955         PR rtl-optimization/69030
23956         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23957         returning bool.
23958         (spill_pseudos): Delete debug insn for dead pseudo.
23959         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23961 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23963         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23964         New.
23965         (TYPES_UNOPUS): Likewise.
23966         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23967         builtin type, from UNOP to UNOPUS.
23968         (lbtruncuv4sf): Likewise.
23969         (lbtruncuv2df): Likewise.
23970         (lrounduv2sf): Likewise.
23971         (lrounduv4sf): Likewise.
23972         (lrounduv2df): Likewise.
23973         (lroundusf): Likewise.
23974         (lroundusf): Likewise.
23975         (lceiluv2sf): Likewise.
23976         (lceiluv4sf): Likewise.
23977         (lceiluv2df): Likewise.
23978         (lceilusf): Likewise.
23979         (lceiludf): Likewise.
23980         (lflooruv2sf): Likewise.
23981         (lflooruv4sf): Likewise.
23982         (lflooruv2df): Likewise.
23983         (lfloorusf): Likewise.
23984         (lfloorudf): Likewise.
23985         (lfrintnuv2sf): Likewise.
23986         (lfrintnuv4sf): Likewise.
23987         (lfrintnuv2df): Likewise.
23988         (lfrintnusf): Likewise.
23989         (lfrintnudf): Likewise.
23990         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23991         conversion.
23992         (vcvtq_u32_f32): Likewise.
23993         (vcvtq_u64_f64): Likewise.
23994         (vcvta_u32_f32): Likewise.
23995         (vcvtaq_u32_f32): Likewise.
23996         (vcvtaq_u64_f64): Likewise.
23997         (vcvtm_u32_f32): Likewise.
23998         (vcvtmq_u32_f32): Likewise.
23999         (vcvtmq_u64_f64): Likewise.
24000         (vcvtn_u32_f32): Likwise.
24001         (vcvtnq_u32_f32): Likewise.
24002         (vcvtnq_u64_f64): Likewise.
24003         (vcvtp_u32_f32): Likewise.
24004         (vcvtpq_u32_f32): Likewise.
24005         (vcvtpq_u64_f64): Likewise.
24006         (vcvtmd_u64_f64): Likewise.
24007         (vcvtms_u32_f32): Likewise.
24008         (vcvtad_u64_f64): Likewise.
24009         (vcvtas_u32_f32): Likewise.
24010         (vcvtnd_u64_f64): Likewise.
24011         (vcvtns_u32_f32): Likewise.
24012         (vcvtpd_u64_f64): Likewise.
24013         (vcvtps_u32_f32): Likewise.
24015 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24017         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
24018         CSEL of zero_extended registers.
24020 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24022         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24023         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
24025 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24027         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
24028         false when argument string is not found in the attributes table
24029         at all.
24031 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
24033         PR target/68609
24034         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
24035         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
24036         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
24037         precision estimate.
24039 2016-01-15  Richard Biener  <rguenther@suse.de>
24041         PR tree-optimization/66856
24042         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
24043         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
24044         (vect_create_new_slp_node): Increment stmt reference count.
24045         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
24046         an SLP tree before swapping operands.
24047         (vect_build_slp_tree): Likewise.
24048         (destroy_bb_vec_info): Free stmt info after SLP instances.
24049         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
24050         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
24051         (STMT_VINFO_NUM_SLP_USES): New macro.
24053 2016-01-15  Richard Biener  <rguenther@suse.de>
24055         PR debug/69137
24056         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
24057         (add_linkage_name): ... here.
24058         (gen_typedef_die): Use add_linkage_name_raw instead of
24059         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
24060         if necessary.
24062 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
24064         * gimplify.c (oacc_default_clause): Decode reference and pointer
24065         types for both kernels and parallel regions.
24067 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
24069         PR middle-end/69246
24070         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
24072 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24074         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
24075         (convert_scalars_to_vector): Likewise.
24077 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
24079         * doc/extend.texi (Type Traits): Fix grammar.
24081 2016-01-15  Martin Jambor  <mjambor@suse.cz>
24083         * tree-inline.c (remap_decl): Use existing dclarations if
24084         remapping a type and prevent_decl_creation_for_types.
24085         (replace_locals_stmt): Do an initial remapping of non-VLA typed
24086         decls first.  Do real remapping with
24087         prevent_decl_creation_for_types set.
24088         * tree-inline.h (copy_body_data): New field
24089         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
24090         padding.
24092 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24094         * config/s390/s390.opt (mmvcle): More verbose help text.
24096 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24098         * config/s390/s390.opt: Add period to -mzvector option text.
24100 2016-01-15  Richard Biener  <rguenther@suse.de>
24102         PR tree-optimization/68961
24103         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24104         of invariants in stores again.
24106 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24108         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24110 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24112         * config/i386/i386.c (ix86_expand_branch): Don't split
24113         DI mode xor instruction to SI mode.
24115 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24117         PR ipa/68148
24118         * ipa-icf.c (sem_function::merge): Virtual functions may become
24119         reachable even if they address is not taken and there are no
24120         idrect calls.
24122 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24124         * lto-streamer-out.c (subtract_estimated_size): New function.
24125         (get_symbol_initial_value): Use it.
24127 2016-01-15  Christian Bruel  <christian.bruel@st.com>
24129         PR target/65837
24130         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24131         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24132         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24133         use add_builtin_function_ext_scope instead of add_builtin_function.
24134         (neon_set_p, neon_crypto_set_p): Remove.
24135         (arm_init_builtins): Always call arm_init_neon_builtins and
24136         arm_init_crypto_builtins.
24137         (arm_expand_builtin): Check that builtins are allowed for the arch.
24138         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24139         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24140         arm_init_neon_builtins call.
24142 2016-01-15  Richard Biener  <rguenther@suse.de>
24144         PR tree-optimization/69117
24145         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24146         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24147         of the leader conservatively.
24148         (free_scc_vn): Restore original SSA name infos.
24150 2016-01-14  Jeff Law  <law@redhat.com>
24152         PR tree-optimization/69270
24153         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24154         single bit of precision, verify it's also unsigned.
24155         (record_edge_info): Use constant_boolean_node rather than fold_convert
24156         to convert boolean_true/boolean_false to the right type.
24158 2016-01-14  Richard Henderson  <rth@redhat.com>
24160         PR rtl-opt/69014
24161         * loop-doloop.c (record_reg_sets): New.
24162         (doloop_optimize): Reject the transform if the sequence
24163         clobbers registers live at the end of the loop block.
24164         (doloop_optimize_loops): Enable df_live if needed.
24166 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24168         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24169         * config/rs6000/rs6000.c: Likewise.
24170         * config/rs6000/rs6000.h: Likewise.
24171         * config/rs6000/rs6000.md: Likewise.
24172         * doc/extend.texi: Likewsie.
24174 2016-01-14  Jeff Law  <law@redhat.com>
24176         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24177         typo.
24179 2016-01-14  Richard Henderson  <rth@redhat.com>
24181         PR c/69272
24182         PR tree-opt/68964
24183         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
24184         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
24185         instead of builtin_decl_declared_p to test for declaration.
24187 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
24189         * doc/loop.texi (Loop Analysis and Representation): Document
24190         loop_depth function.
24192 2016-01-14  Tom de Vries  <tom@codesourcery.com>
24194         PR tree-optimization/68773
24195         * omp-low.c (expand_omp_target): Don't set force_output.
24196         * varpool.c (varpool_node::get_create): Same.
24197         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
24198         offload_funcs with force_output.
24200 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24202         PR debug/69244
24203         * lra-eliminations.c (move_plus_up): Don't change anything if either
24204         the outer or inner subreg mode is not MODE_INT.
24205         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
24206         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
24208 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24210         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
24211         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
24212         reduc_uplus_@var{m}): Remove.
24213         * expr.c (expand_expr_real_2): Remove expansion path for
24214         reduc_[us](min|max|plus) optabs.
24215         * optabs-tree.c (scalar_reduc_to_vector): Remove.
24216         * optabs-tree.h (scalar_reduc_to_vector): Remove.
24217         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
24218         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
24219         * tree-vect-loop.c (vectorizable_reduction): Remove test for
24220         reduc_[us](min|max|plus) optabs.
24222 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24224         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
24225         (reduc_plus_scal_v2sf): New.
24226         (reduc_smax_v2sf): Rename to...
24227         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
24228         (reduc_smin_v2sf): Rename to...
24229         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
24231 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
24233         * alias.c (compare_base_symbol_refs): New function.
24234         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
24235         it.
24237 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24239         PR middle-end/68146
24240         PR tree-optimization/69155
24241         * tree-complex.c: Include cfganal.h.
24242         (phis_to_revisit): New variable.
24243         (extract_component): Add phiarg_p argument.  Assert that returned
24244         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
24245         (update_phi_components): Partly rewrite to use loop over real/imag
24246         components instead of code duplication.  If extract_component returns
24247         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
24248         create_tmp_reg into the PHI node instead, and mention the phi triplet
24249         in phis_to_revisit.
24250         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
24251         in phis_to_revisit at the end.
24253 2016-01-14  Richard Biener  <rguenther@suse.de>
24255         PR tree-optimization/68060
24256         * tree-vect-loop.c (vect_is_simple_reduction): Check the
24257         outer loop reduction is only used in the inner loop before
24258         detecting a double reduction.
24260 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24262         PR target/68269
24263         * combine.c (expand_field_assignment): Punt if compute_mode is
24264         unsupported scalar mode.
24266 2016-01-14  Richard Biener  <rguenther@suse.de>
24268         PR tree-optimization/66856
24269         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24270         SLP node only if it built successfully.
24271         (vect_analyze_slp_instance): Adjust.
24273 2016-01-14  Jeff Law  <law@redhat.com>
24275         PR tree-optimization/69270
24276         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24277         (record_edge_info): Use it.  Convert boolean_{true,false}_node
24278         to the type of op0.
24280 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
24282         PR ipa/66487
24283         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24284         use block_ultimate_origin
24285         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24287 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24289         * doc/invoke.texi (Submodel Options): Rename section to
24290         "Machine-Dependent Options" to better reflect its content.
24291         Rewrite introductory text to remove archaic CPU names.
24292         Update references.
24294 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24296         * doc/invoke.texi (Code Gen Options): Move section up in file,
24297         before target-specific options.  Update menu and option summary
24298         to reflect the new section ordering.
24300 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24302         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24303         (C++ Dialect Options): Add cross-reference to -std option.
24304         * doc/standards.texi (C++ Language): Document C++14 support.
24306 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24308         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24309         for pack/unpack functions for __ibm128.
24310         (PACK_IF): Likewise.
24311         (UNPACK_IF): Likewise.
24313         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24314         support for __ibm128 pack/unpack functions.
24315         (rs6000_invalid_builtin): Likewise.
24316         (rs6000_init_builtins): Likewise.
24317         (rs6000_opt_masks): Likewise.
24319         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24320         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24321         functions
24322         (RS6000_BTM_COMMON): Likewise.
24324         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
24325         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
24326         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
24327         128-bit floating point.  Add support for the double values to be
24328         in Altivec registers for TF/IF packing and unpacking, but restrict
24329         TD packing sub-fields to be FPR registers.  Don't allow overlapped
24330         register support for packing.  Allow pack inputs to be memory
24331         locations.  Don't build generator functions for unpack<mode>_dm
24332         and unpack<mode>_nodm.
24333         (unpack<mode>_dm): Likewise.
24334         (unpack<mode>_nodm): Likewise.
24335         (pack<mode>): Likewise.
24337         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
24338         built-in functions to pack/unpack explicit __ibm128 values.
24339         (__builtin_unpack_ibm128): Likewise.
24341         * doc/extend.texi (PowerPC Built-in Functions): Document
24342         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
24344 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
24346         PR c/66208
24347         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
24348         Add new arg loc and pass it down as context.
24349         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
24350         to the location to use for the warning.
24351         (check_function_arguments): New arg loc.  All callers changed.  Pass
24352         it to check_function_nonnull.
24353         * c-common.h (check_function_arguments): Adjust declaration.
24355 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
24357         PR tree-optimization/69156
24358         * gimple.c (validate_type): Removed.
24359         (gimple_builtin_call_types_compatible_p): Use
24360         useless_type_conversion_p instead of validate_type.
24361         * value-prof.c (gimple_stringop_fixed_value): Fold
24362         icall_size to correct type.
24364 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24366         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
24367         effects.
24369 2016-01-13  Richard Henderson  <rth@redhat.com>
24371         PR tree-opt/68964
24372         * target.def (builtin_tm_load, builtin_tm_store): Remove.
24373         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
24374         (ix86_builtin_tm_store): Remove.
24375         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24376         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24377         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24378         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24379         * doc/tm.texi: Rebuild.
24381         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
24382         (BUILT_IN_TM_MEMCPY_RTWN): New.
24383         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
24384         fallback from vector to integer helpers.
24385         (build_tm_load): Handle vector types directly, instead of
24386         via target hook.
24387         (build_tm_store): Likewise.
24388         (expand_assign_tm): Prepare for register types not handled by
24389         the above.  Copy them to memory and use memcpy.
24390         * tree.c (tm_define_builtin): New.
24391         (find_tm_vector_type): New.
24392         (build_tm_vector_builtins): New.
24393         (build_common_builtin_nodes): Call it.
24395 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
24397         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
24398         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
24400 2016-01-13  Tom de Vries  <tom@codesourcery.com>
24402         PR tree-optimization/69169
24403         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
24404         handled_struct_type param.
24405         (create_variable_info_for, intra_create_variable_infos): Call
24406         create_variable_info_for_1 with extra arg.
24408 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
24410         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
24411         and "armv8.1-a+crc" entries.
24413 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
24415         PR target/69228
24416         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
24417         Change first operand predicate from register_or_constm1_operand
24418         to register_operand.
24419         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
24420         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
24421         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
24422         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
24423         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
24424         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
24425         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
24426         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
24427         comparison with constm1_rtx from vec_prefetch_gen part.
24429 2016-01-13  Richard Biener  <rguenther@suse.de>
24431         PR tree-optimization/69013
24432         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
24433         Exchange assert for a test.
24435 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24437         PR target/69247
24438         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
24440 2016-01-13  Richard Biener  <rguenther@suse.de>
24442         PR tree-optimization/69242
24443         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
24444         assert with a check.
24446 2016-01-13  Richard Biener  <rguenther@suse.de>
24448         PR tree-optimization/69186
24449         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24450         Properly guard vect_update_misalignment_for_peel call.
24452 2016-01-12  Jeff Law  <law@redhat.com>
24454         PR tree-optimization/pr67755
24455         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
24456         "need_profile_correction".
24457         (thread_block_1): Initialize new field to false by default.  If we
24458         have multiple thread paths through a common joiner to different
24459         final targets, then set new field to true.
24460         (compute_path_counts): Only do count adjustment when it's really
24461         needed.
24463 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24465         * doc/invoke.texi (Spec Files): Move section down in file, past
24466         all command-line option descriptions.
24468 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24470         PR middle-end/54809
24471         * doc/gty.texi: Remove documentation of mark_hook.
24472         * gengtype.c (struct write_types_data): Remove code to support
24473         mark_hook attribute.
24474         (walk_type): Likewise.
24475         (write_func_for_structure): Likewise.
24477 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24479         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
24480         Directory Options, and -specs= to Overall Options.
24481         (Overall Options): Adjust similarly.  Reorder to group related
24482         options together.  Make -specs= cross-reference the spec file details.
24483         (Directory Options): Adjust similarly.
24485 2016-01-12  Jeff Law  <law@redhat.com>
24487         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
24489 2016-01-12  Olivier Hainque  <hainque@adacore.com>
24491         * gcc.c (spec_undefvar_allowed): New global.
24492         (process_command): Set to true when running for --version or --help,
24493         alone or together.
24494         (getenv_spec_function): When the variable is not defined, use the
24495         variable name as the variable value if we're allowed not to issue
24496         a fatal error.
24498 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
24500         PR tree-optimization/68911
24501         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
24502         information computed for expression "init + nit * step".
24504 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24506         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
24507         about name of GCC executable.  Remove deleted node from menu.
24508         (Directory Options) <-B>: Remove cross-reference to deleted node.
24509         (Target Options): Delete section.
24511 2016-01-12  Christian Bruel  <christian.bruel@st.com>
24513         PR target/69180
24514         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
24515         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
24517 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
24519         PR target/69198
24520         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
24521         aligned_mem is properly set for AVX512-VL floating point masked
24522         stores.
24524         PR target/69175
24525         * ifcvt.c (cond_exec_process_if_block): When removing the last
24526         insn from then_bb, remove also any possible barriers that follow it.
24528 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24530         PR target/68456
24531         PR target/69226
24532         * config/i386/iamcu.h (SIZE_TYPE): New macro.
24533         (PTRDIFF_TYPE): Likewise.
24534         (WCHAR_TYPE): Likewise.
24535         (WCHAR_TYPE_SIZE): Likewise.
24536         (STDINT_LONG32): Likewise.
24538 2016-01-12  Richard Biener  <rguenther@suse.de>
24540         PR tree-optimization/69053
24541         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
24542         convert initial value for cond reductions.
24544 2016-01-12  Richard Biener  <rguenther@suse.de>
24546         PR tree-optimization/69007
24547         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
24548         widen_sum after dot_prod and sad.
24550 2016-01-12  Richard Biener  <rguenther@suse.de>
24552         PR tree-optimization/69168
24553         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24554         pattern stmt SLP type.
24555         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24556         end up unused so cope with that case.
24558 2016-01-12  Richard Biener  <rguenther@suse.de>
24560         PR tree-optimization/69157
24561         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24562         stmts def type only during analyze phase.
24563         (vectorizable_call): Likewise.
24564         (vectorizable_simd_clone_call): Likewise.
24565         (vectorizable_conversion): Likewise.
24566         (vectorizable_assignment): Likewise.
24567         (vectorizable_shift): Likewise.
24568         (vectorizable_operation): Likewise.
24569         (vectorizable_store): Likewise.
24570         (vectorizable_load): Likewise.
24572 2016-01-12  Richard Biener  <rguenther@suse.de>
24574         PR tree-optimization/69174
24575         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24576         space.
24577         (vectorizable_load): Properly compute the number of loads needed
24578         for permuted strided SLP loads and do not spuriously assign
24579         to SLP_TREE_VEC_STMTS.
24581 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24583         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24584         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24585         (MD_EXEC_PREFIX): Remove.
24586         (MD_STARTFILE_PREFIX) Removee.
24587         (FILE_NAME_ABSOLUTE_P): Remove.
24588         (CPP_SPEC): Do not read macros from sys/version.h.
24589         (LINK_COMMAND_SPEC): Remove.
24590         (LOCAL_INCLUDE_DIR): Remove.
24591         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24592         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24593         (POST_LINK_SPEC): Define to invoke stubify after linker
24594         (LIBSTDCXX): Remove define
24595         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24596         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24597         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24598         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24599         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24600         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24601         (i386_djgpp_asm_named_section): Add propotype of new procedure
24603         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24604         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24605         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24606         in config/i386/djgpp.h).
24607         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24608         STANDARD_STARTFILE_PREFIX_1.
24609         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24610         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24611         installation errors.
24612         (MAX_OFILE_ALIGNMENT): Define to 128.
24613         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24615         * config/i386/djgpp.c: New file. Add implementation of
24616         i386_djgpp_asm_named_section.
24618         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24620         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24621         Add rule for building djgpp.o.
24623 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24625         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24626         (rtx_is_swappable_p): Reductions are swappable.
24627         (insn_is_swappable_p): V2DF reductions are swappable.
24629 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24631         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24632         reloads for other unsupported memory operands.
24634 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24635             Jim Wilson  <jim.wilson@linaro.org>
24637         PR target/69194
24638         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24639         copy_to_mode_reg instead of force_reg.
24641 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24643         PR target/69225
24644         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24645         TARGET_80387 is true.
24647 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24649         PR target/69071
24650         * lra-eliminations.c (move_plus_up): Only move plus up
24651         if subreg of the constant can be simplified into constant
24652         and use the simplified subreg of the constant instead of
24653         the original constant.
24655         * fold-const.c (fold_convertible_p): Don't return true
24656         for conversion of VECTOR_TYPE to same sized integral type.
24657         (fold_convert_loc): Fix up formatting.  Fold conversion of
24658         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24659         instead of NOP_EXPR.
24661         PR tree-optimization/69214
24662         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24663         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24664         Formatting fix.
24666         PR tree-optimization/69207
24667         * tree-vect-slp.c (vect_get_constant_vectors): For
24668         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24669         fold_convertible_p to vector_type's element type, and always
24670         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24672 2016-01-11  Richard Biener  <rguenther@suse.de>
24674         PR tree-optimization/69173
24675         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24676         fixup the cycle if all stmts are in a pattern.
24678 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24680         PR middle-end/68999
24681         * alias.c (base_alias_check): Move check for addresses with
24682         alignment ANDs before the call for compare_base_decls.
24683         (memrefs_conflict_p): Return -1 for different decls
24684         that went through alignment adjustments.
24686 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24688         PR rtl-optimization/68796
24689         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24690         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24691         and QImode comparisons against zero with CC_NZmode.
24692         * config/aarch64/iterators.md (short_mask): New mode_attr.
24694 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24696         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24697         (<avx512>_store<mode>_mask): Likewise.
24699 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24700             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24702         PR rtl-optimization/68841
24703         * ifcvt.c (struct noce_if_info): Add orig_x field.
24704         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24705         Don't record conflicts on to_rename if it's present.
24706         Allow memory destinations in sets.
24707         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24708         blocks, passing orig_x to the checks.
24709         (noce_process_if_block): Set if_info->orig_x appropriately.
24711 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24713         PR tree-optimization/69069
24714         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24716 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24718         PR rtl-optimization/68920
24719         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24720         of conditional moves for  RTL if-conversion to 1 for
24721         TARGET_ONE_IF_CONV_INSN.
24722         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24723         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24724         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24725         parameter to restirct number of conditional moves for
24726         RTL if-conversion.
24727         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24728         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24729         conditionl moves.
24731 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24733         PR bootstrap/69123
24734         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24735         onepart vars.  Fix typo in comment.  Fix reversed condition in
24736         unshare test.
24737         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24739         PR bootstrap/69123
24740         * var-tracking.c (dump_onepart_variable_differences): New.
24741         (dataflow_set_different): If a detailed dump is requested,
24742         delay early returns and dump differences between onepart
24743         variables present before and after, and added variables.
24745 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24747         PR target/69010
24748         * expr.c (expand_expr_real_1): For boolean vector constants
24749         with a scalar mode use const_scalar_mask_from_tree.
24750         (const_scalar_mask_from_tree): New.
24751         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24752         assigned to a mask type to handle constants.
24754 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24756         PR ipa/69044
24757         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24758         useless parameters if we cannot change function signature.
24760 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24762         PR ipa/66616
24763         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24764         flag.
24766 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24768         PR tree-optimization/69109
24769         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24770         latch with phi.
24772 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24774         PR tree-optimization/69108
24775         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24776         res is not used in a phi.
24778 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24780         PR 67425
24781         * common.opt (frandom-seed): Fix parameter name.
24782         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24784 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24786         PR tree-optimization/69058
24787         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24788         not supported.
24790 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24792         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24793         (mcode-density): Likewise.
24795 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24797         PR tree-optimization/69062
24798         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24799         (parallelize_loops): Don't paralelize loop that has phi with address
24800         arg.
24802 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24804         PR tree-optimization/69039
24805         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24806         phi for reduction.
24808 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24810         PR middle-end/68743
24811         * match.pd: Require target has function_c99_misc before doing
24812         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24814 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24816         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24817         use GMPINC.
24818         * configure: Regenerate.
24820 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24822         PR middle-end/50865
24823         PR tree-optimization/69097
24824         * fold-const.h (expr_not_equal_to): New prototype.
24825         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24826         (expr_not_equal_to): New function.
24827         * match.pd (X % -Y is the same as X % Y): Don't optimize
24828         unless X is known not to be equal to minimum or Y is known
24829         not to be equal to -1.
24830         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24831         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24832         (simplify_stmt_using_ranges): Adjust caller.
24833         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24834         substitute_and_fold.
24836 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24838         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24839         w/o DECL_NAME.
24841 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24843         PR tree-optimization/69167
24844         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24845         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24846         ops[0] comparison.
24847         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24849 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24850             Richard Biener  <rguenther@suse.de>
24852         PR tree-optimization/68707
24853         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24854         instances that can be handled via vect_load_lanes.
24856 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24858         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24859         if we can't determine address equivalence.
24860         * alias.c (compare_base_decl): Update for changed return value of
24861         symtab_node::equal_address_to.
24863 2016-01-08  Jason Merrill  <jason@redhat.com>
24865         PR c++/68983
24866         PR c++/67557
24867         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24868         * expr.c (store_field): Not here.
24869         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24870         call with TREE_ADDRESSABLE type.
24871         * tree-cfg.c (verify_gimple_call): Adjust.
24873 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24875         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24876         libc_internal.
24878 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24880         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24881         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24882         (reduc_smin_v2sf): Rename to...
24883         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24884         (reduc_splus_v2sf): Rename to...
24885         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24887 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24889         PR tree-optimization/69162
24890         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24891         valist argument in another argument.
24892         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24893         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24894         to determine the va_list type, build a MEM_REF instead of
24895         build_fold_indirect_ref.
24897         PR tree-optimization/69172
24898         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24899         gimple_build.
24901 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24903         PR tree-optimization/67781
24904         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24905         and cmpnop in two steps: first the ones not accessed in original
24906         gimple expression in a endian independent way and then the ones not
24907         accessed in the final result in an endian-specific way.
24909 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24911         PR tree-optimization/69083
24912         * tree-vect-slp.c (vect_get_constant_vectors): For
24913         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24914         element type.  If op is fold_convertible_p to vector_type's element
24915         type, use NOP_EXPR instead of VCE.
24917 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24919         PR rtl-optimization/67778
24920         PR rtl-optimization/68634
24921         PR rtl-optimization/68909
24922         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24923         block from the stack until done with it.  Remove a superfluous
24924         bitmap set.  Remove a superfluous bitmap test.
24926 2016-01-07  Martin Sebor  <msebor@redhat.com>
24928         PR c/68966
24929         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24930         constraint on the type of arguments.
24932 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24934         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24935         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24936         unaligned_access on the gcc_options set.
24937         * config/arm/arm.c (arm_option_override_internal): Use
24938         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24940 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24942         PR target/69140
24943         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24944         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24946 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24948         Revert
24949         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24951         PR target/69140
24952         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24953         depending on frame_pointer_needed before remaining integer and SSE
24954         registers are saved.
24956 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24958         PR 1078
24959         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24961 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24963         PR target/69171
24964         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24965         Use the "xBm" constraint.
24966         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24967         Likewise.
24968         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24969         (sse_cvtsi2ssq<round_name>): Likewise.
24970         (sse_cvtss2si<round_name>): Likewise.
24971         (sse_cvtss2siq<round_name>): Likewise.
24972         (sse2_cvtsi2sdq<round_name>): Likewise.
24973         (sse2_cvtsd2si<round_name>): Likewise.
24974         (sse2_cvtsd2siq<round_name>): Likewise.
24975         * config/i386/subst.md (round_nimm_scalar_predicate): New
24976         predicate.
24978 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24980         PR middle-end/67639
24981         * varasm.c (make_decl_rtl): Mark invalid register vars as
24982         DECL_EXTERNAL.
24984         PR rtl-optimization/66206
24985         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24986         All callers changed.
24988 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24990         PR tree-optimization/69141
24991         * tree-ssa-pre.c: Include langhooks.h.
24992         (eliminate_dom_walker::before_dom_children): Use
24993         lang_hooks.decl_printable_name instead of
24994         cgraph_node::get ()->name ().
24996         PR middle-end/68960
24997         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24998         it and DECL_ALIGN too.
25000 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
25002         * config/mips/mips-ftypes.def: Sort to lexicographical order.
25004 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
25006         PR target/69140
25007         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25008         depending on frame_pointer_needed before remaining integer and SSE
25009         registers are saved.
25011 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25013         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
25014         mode iterator with VSX_M2.
25015         (*p9_vecstore_<mode>): Likewise.
25016         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
25017         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
25018         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
25019         (define_split for VSX_LE128 stores): Likewise.
25020         (define_peephole2 for TImode LE swaps): Likewise.
25021         (define_split for VSX_LE128 post-reload stores): Likewise.
25023 2016-01-06  Marek Polacek  <polacek@redhat.com>
25025         PR sanitizer/69099
25026         * convert.c (convert_to_integer_1): Adjust call to
25027         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
25028         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
25029         EXPR instead of ARG.
25030         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
25032 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25034         PR 1078
25035         * doc/extend.texi (RL78 Variable Attributes): New section.
25037 2016-01-05  Marek Polacek  <polacek@redhat.com>
25039         PR c/69104
25040         * builtins.c (get_memmodel): Use expansion point location rather than
25041         the input location.  Call warning_at rather than warning.
25042         (expand_builtin_atomic_compare_exchange): Likewise.
25043         (expand_builtin_atomic_load): Likewise.
25044         (expand_builtin_atomic_store): Likewise.
25045         (expand_builtin_atomic_clear): Likewise.
25047 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25049         PR target/68991
25050         * config/i386/i386.c (ix86_expand_vector_logical_operator):
25051         Replace nonimmediate_operand with vector_operand.
25052         * config/i386/predicates.md (vector_operand): New predicate.
25053         (general_vector_operand): Replace nonimmediate_operand with
25054         vector_operand.
25055         * config/i386/sse.md: Replace nonimmediate_operand with
25056         vector_operand and m constraint with Bm constraint on SSE
25057         patterns with 16-byte memory operand.
25058         * config/i386/subst.md (round_nimm_predicate): Replace
25059         nonimmediate_operand with vector_operand.
25060         (round_saeonly_nimm_predicate): Likewise.
25061         (round_saeonly_nimm_scalar_predicate): New.
25063 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25065         PR target/68991
25066         * config/i386/constraints.md (Bm): New constraint.
25067         * config/i386/predicates.md (vector_memory_operand): New
25068         predicate.
25069         * config/i386/sse.md: Replace xm with xBm in plusminus and
25070         any_logic patterns.
25072 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25074         PR 1078
25075         * doc/extend.texi (V850 Function Attributes): New section.
25076         (V850 Variable Attributes): New section.
25078 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25080         PR 1078
25081         * doc/extend.texi (MicroBlaze Function Attributes): Document
25082         interrupt_handler and fast_interrupt attributes.
25084 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
25086         PR other/60465
25087         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
25088         for local symbolic operands.
25089         * config/ia64/predicates.md (local_symbolic_operand64): New
25090         predicate.
25092 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25094         PR rtl-optimization/68651
25095         * combine.c (combine_simplify_rtx): Canonicalize x + x into
25096         x << 1.
25098 2016-01-05  Nathan Sidwell  <nathan@acm.org>
25100         * alias.c (compare_base_decls): Use symtab_node::get.
25102 2016-01-05  Nick Clifton  <nickc@redhat.com>
25104         PR target/68770
25105         * ira-costs.c (copy_cost): Initialise the t_icode field of the
25106         secondary_reload_info structure.
25108         PR target/66655
25109         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25110         decls if weak support is available.
25112 2016-01-04  Martin Sebor  <msebor@redhat.com>
25114         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25116 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
25118         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25119         OPTION_MASK_P9_DFORM.
25121         * config/rs6000/constraints.md (wo constraint): New constraint for
25122         ISA 3.0 (power9).
25124         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25125         for wo constraint.
25126         (rs6000_init_hard_regno_mode_ok): Likewise.
25128         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25129         wo constraint.
25131         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25132         expanders not to have constraints.  Add support for ISA 3.0 xxperm
25133         instruction.  Add support for fusing xxlor with xxperm.
25134         (altivec_vperm_<mode>_internal): Likewise.
25135         (altivec_vperm_v8hiv16qi): Likewise.
25136         (altivec_vperm_<mode>v16q): Likewise.
25137         (altivec_vperm_<mode>_uns): Likewise.
25138         (vperm_v8hiv4si): Likewise.
25139         (vperm_v16qiv8hi): Likewise.
25141         * doc/md.texi (RS/6000 constraints): Document wo constraint.
25143 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
25145         Update copyright years.
25147         * gcc.c (process_command): Update copyright notice dates.
25148         * gcov-dump.c (print_version): Ditto.
25149         * gcov.c (print_version): Ditto.
25150         * gcov-tool.c (print_version): Ditto.
25151         * gengtype.c (create_file): Ditto.
25152         * doc/cpp.texi: Bump @copying's copyright year.
25153         * doc/cppinternals.texi: Ditto.
25154         * doc/gcc.texi: Ditto.
25155         * doc/gccint.texi: Ditto.
25156         * doc/gcov.texi: Ditto.
25157         * doc/install.texi: Ditto.
25158         * doc/invoke.texi: Ditto.
25160 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25162         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25163         modes larger than TImode as TImode if NEON is not enabled.
25165 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25167         PR target/69100
25168         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25169         mode for %f0-%f31 only if TARGET_FPU.
25171 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25173         PR target/69072
25174         * config/sparc/sparc.c (scan_record_type): Take into account subfields
25175         to compute the PACKED_P predicate.
25176         (function_arg_record_value): Minor tweaks.
25178 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25180         * doc/install.texi (--with-multilib-list): Describe the meaning of the
25181         option for arm*-*-* targets.
25183 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25185         * doc/extend.texi (Common Function Attributes): Move docs for
25186         MSP430-specific attributes to....
25187         (MSP430 Function Attributes): ...here.  Delete the redundant
25188         entries and copy-edit the remaining text.
25189         (MSP430 Variable Attributes): Use uniform format for index
25190         entries and add a cross-reference to the corresponding function
25191         attribute docs.
25193 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
25195         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
25196         -finite-math typo.
25197         (x86 Options): Likewise.
25199 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25201         PR 1078
25203         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
25204         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
25205         to corresponding attribute.
25207 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25209         * doc/extend.texi (Common Function Attributes) <noplt>: Move
25210         to correct alphabetization of table.  Copy-edit and correct
25211         markup.
25212         <stack_protect>: Likewise.
25213         <target_clones>: Likewise.
25214         <simd>: Likewise.
25215         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
25216         Correct punctuation.
25217         (Code Gen Options) <-fno-plt>: Copy-edit.
25219 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25221         PR target/68917
25222         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
25223         SI values.  Explicitly convert SI to DI and vice-versa.
25225 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
25227         PR tree-optimization/69070
25228         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
25229         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
25231         PR sanitizer/69055
25232         * ubsan.c (ubsan_instrument_float_cast): Call
25233         initialize_sanitizer_builtins.
25235         PR target/69015
25236         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
25238 Copyright (C) 2016 Free Software Foundation, Inc.
25240 Copying and distribution of this file, with or without modification,
25241 are permitted in any medium without royalty provided the copyright
25242 notice and this notice are preserved.