PR ada/67205
[official-gcc.git] / gcc / ChangeLog
blob4f37787861caadeff14ad356035ad6f110492e3f
1 2016-11-25  Eric Botcazou  <ebotcazou@adacore.com>
3         PR ada/67205
4         * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6 2016-11-25  Martin Jambor  <mjambor@suse.cz>
8         PR tree-optimization/70965
9         * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
11 2016-11-24  James Greenahlgh  <james.greenhalgh@arm.com>
13         PR target/78509
14         * config/i386/i386.c (i386_excess_precision): Do not return
15         FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
16         EXCESS_PRECISION_TYPE_STANDARD.
17         * target.def (excess_precision): Document that targets should
18         not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
19         EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
20         Fix typo in first sentence.
21         * doc/tm.texi: Regenerate.
23 2016-11-25  Richard Biener  <rguenther@suse.de>
25         PR tree-optimization/78396
26         * tree-vectorizer.c (vectorize_loops): When the if-converted
27         body contains masked loads or stores do not attempt to
28         basic-block-vectorize it.
30 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
31             Alan Hayward  <alan.hayward@arm.com>
32             David Sherwood  <david.sherwood@arm.com>
34         * function.h (spill_slot_alignment): Declare.
35         * function.c (spill_slot_alignment): New function.
36         * lra-spills.c (slot): Add align and size fields.
37         (assign_mem_slot): Use them in the call to assign_stack_local.
38         (add_pseudo_to_slot): Update the fields.
39         (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
41 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
42             Alan Hayward  <alan.hayward@arm.com>
43             David Sherwood  <david.sherwood@arm.com>
45         * stor-layout.c (layout_type): Allow the caller to set the mode of
46         a float type.  Only choose one here if the mode is still VOIDmode.
47         * tree.c (build_common_tree_nodes): Set the type mode of decimal
48         floats before calling layout_type.
49         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
51 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
53         * tree-tailcall.c (find_tail_calls): Allow calls to reference
54         local variables if all references are known to be direct.
56 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
57             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
59         PR middle-end/78501
60         * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
61         non null and it's precision matches precision of lhs's type.
63 2016-11-24  Martin Sebor  <msebor@redhat.com>
65         PR tree-optimization/78476
66         * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
67         Add a member.
68         (handle_gimple_call): Adjust signature.
69         (try_substitute_return_value): Remove calls to bounded functions
70         with zero buffer size whose result is known.
71         (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
73 2016-11-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
75         * varasm.c (assemble_start_function): Wrap align_log definition in
76         ASM_OUTPUT_MAX_SKIP_ALIGN.
78 2016-11-24  Uros Bizjak  <ubizjak@gmail.com>
80         * config/i386/i386.md (wide AND insn to QImode splitter): Use
81         explicit mode macros.
82         (wide OR insn to QImode splitter): Ditto.
84 2016-11-24  Vladimir Makarov  <vmakarov@redhat.com>
86         PR rtl-optimization/77541
87         * lra-constraints.c (struct input_reload): Add field match_p.
88         (get_reload_reg): Check modes of input reloads to generate unique
89         value reload pseudo.
90         (match_reload): Add input reload pseudo for the current insn.
92 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
94         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
95         __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
96         architecture levels.
97         * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
98         the aarch64_fp16_type_node, not all HFmode types.
99         (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
100         (aarch64_scalar_mode_supported_p): Likewise.
101         (aarch64_excess_precision): New.
102         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
103         (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
104         (TARGET_C_EXCESS_PRECISION): Likewise.
106 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
108         * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
109         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
111 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
113         * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
114         (<optab>dihf2): Likewise.
115         (aarch64_fp16_<optab><mode>hf2): New.
117 2016-11-24  Alexander Monakov  <amonakov@ispras.ru>
119         PR target/67822
120         * config/nvptx/mkoffload.c (main): Allow -fopenmp.
122 >>>>>>> .r242853
123 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
125         * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
126         Enable REE at -O2 and higher.
127         * config/sparc/sparc.c (sparc_option_override): Disable it by default
128         in 32-bit mode.
130 2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
132         PR target/48863
133         PR inline-asm/70184
134         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
135         (new_temp_expr_table): Initialise reg_vars_cnt.
136         (free_temp_expr_table): Release reg_vars_cnt.
137         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
138         field of TAB.
139         (find_replaceable_in_bb): Use the above to record register variable
140         write occurrences and cancel replacement across them.
142 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
144         PR rtl-optimization/78437
145         * ree.c (get_uses): New function.
146         (combine_reaching_defs): When a copy is needed, return false if any
147         reaching use of the source register reads it in a mode larger than
148         the mode it is set in and WORD_REGISTER_OPERATIONS is true.
150 2016-11-24  Martin Liska  <mliska@suse.cz>
152         * gimple-pretty-print.c (dump_edge_probability): New function.
153         (dump_gimple_switch): Dump label edge probabilities.
154         (dump_gimple_cond): Likewise.
155         (dump_gimple_label): Dump
156         (dump_gimple_bb_header): Dump basic block frequency.
157         (pp_cfg_jump): Replace e->dest argument with e.
158         (dump_implicit_edges): Likewise.
159         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
160         Use gimple_bb (at) instead of at->bb.
162 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
164         * common.opt (flimit-function-alignment): New.
165         * doc/invoke.texi (-flimit-function-alignment): Document.
166         * emit-rtl.h (struct rtl_data): Add max_insn_address field.
167         * final.c (shorten_branches): Set it.
168         * varasm.c (assemble_start_function): Limit alignment if
169         requested.
171 2016-11-24  Richard Biener  <rguenther@suse.de>
173         PR tree-optimization/71595
174         * cfgloopmanip.h (remove_path): Add irred_invalidated and
175         loop_closed_ssa_invalidated parameters, defaulted to NULL.
176         * cfgloopmanip.c (remove_path): Likewise, pass them along to
177         called functions.  Only fix irred flags if the caller didn't
178         request state.
179         * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
180         (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
181         to remove_path.
183 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
185         PR rtl-optimization/78120
186         * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
187         cases, and additionally test against max_seq_cost for speed
188         optimization.
189         (noce_process_if_block): Compute an estimate for the original cost when
190         optimizing for speed, using the minimum of then and else block costs.
192         PR rtl-optimization/78120
193         * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
195         PR rtl-optimization/78120
196         * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
198 2016-11-24  Bin Cheng  <bin.cheng@arm.com>
200         * match.pd: Refine type conversion in result expr for below pattern:
201         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
203 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
205         PR middle-end/78429
206         * tree.h (wi::fits_to_boolean_p): New predicate.
207         (wi::fits_to_tree_p): Use it for boolean types.
208         * tree.c (int_fits_type_p): Likewise.
210 2016-11-24  Martin Liska  <mliska@suse.cz>
212         * print-tree.c (struct bucket): Remove.
213         (print_node): Add new argument which drives whether a tree node
214         is printed briefly or not.
215         (debug_tree): Replace a custom hash table with hash_set<T>.
216         * print-tree.h (print_node): Add the argument.
218 2016-11-24  Chung-Lin Tang  <cltang@codesourcery.com>
220         * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
222 2016-11-23  Peter Bergner  <bergner@vnet.ibm.com>
224         PR target/78458
225         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
226         if it is at least NREGS wide.
228 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
230         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
231         TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
232         TFmode, IFmode and KFmode.
234 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
236         * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
237         pattern.
239 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
241         * combine.c (change_zero_ext): Only change the mode of a hard register
242         destination if can_change_dest_mode holds for that.
244 2016-11-23  Jeff Law  <law@redhat.com>
246         * varasm.c (assemble_name): Increase buffer size for name.
248         * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
250 2016-11-23  Jakub Kicinski  <jakub.kicinski@netronome.com>
252         * doc/extend.texi: Constify first argument to __builtin_object_size.
254 2016-11-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
256         * opth-gen.awk: Use unsigned shifts for bit masks.  Allow all bits
257         to be used.  Add brackets around macro argument.
259 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
261         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
263 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
265         PR sanitizer/69278
266         * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
267         restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
269 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
271         PR middle-end/69183
272         * omp-low.c (build_outer_var_ref): Change lastprivate argument
273         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
274         on worksharing constructs, treat it like clauses on simd construct.
275         Formatting fix.
276         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
277         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
278         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
279         of true as last argument to build_outer_var_ref.
281 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
283         * config/i386/i386.md (*movqi_internal): Calculate mode
284         attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
285         <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
286         (*k<logic><mode>): Calculate mode attribute depending on
287         TARGET_AVX512DQ.  Emit k<logic>w for MODE_HI insn mode attribute.
288         (*andqi_1): Calculate mode attribute of alternative 3 depending
289         on TARGET_AVX512DQ.  Emit kandw for MODE_HI insn mode attribute.
290         (kandn<mode>): Calculate mode attribute of alternative 2 depending
291         on TARGET_AVX512DQ.  Emit kandnw for MODE_HI insn mode attribute.
292         (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
293         iterator.  Calculate mode attribute of alternative 1 depending
294         on TARGET_AVX512DQ.  Emit kxnorw for MODE_HI insn mode attribute.
295         (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
296         on TARGET_AVX512DQ.  Emit knotw for MODE_HI insn mode attribute.
298 2016-11-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
300         PR middle-end/78153
301         * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
302         * tree-vrp.c (extract_range_basic): Handle case for
303         CFN_BUILT_IN_STRLEN.
305 2016-11-23  Jeff Law  <law@redhat.com>
307         * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
309         * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
310         in boolean context warning.
312         * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
314 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
316         PR target/63250
317         * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
318         (arm_fp16_type_node): ...This, make visibile.
319         (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
320         arm_fp16_type_node.
321         (arm_init_simd_builtin_types): Likewise.
322         (arm_init_fp16_builtins): Likewise.
323         * config/arm/arm.c (arm_excess_precision): New.
324         (arm_floatn_mode): Likewise.
325         (TARGET_C_EXCESS_PRECISION): Likewise.
326         (TARGET_FLOATN_MODE): Likewise.
327         (arm_promoted_type): Only promote arm_fp16_type_node.
328         * config/arm/arm.h (arm_fp16_type_node): Declare.
330 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
332         * config/arm/arm.c (arm_convert_to_type): Delete.
333         (TARGET_CONVERT_TO_TYPE): Delete.
334         (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
335         (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
336         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
337         * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
338         are in fast math mode, and have no single step hardware instruction.
339         (extendhfdf2): Only expand through SFmode if we don't have a
340         single-step hardware instruction.
341         * config/arm/vfp.md (*truncdfhf2): New.
342         (extendhfdf2): Likewise.
344 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
346         * targhooks.c (default_floatn_mode): Enable _Float16 if a target
347         provides HFmode.
349 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
351         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
352         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
353         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
354         * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
355         * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
356         * doc/tm.texi: Regenerate.
357         * system.h (TARGET_FLT_EVAL_METHOD): Poison.
359 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
361         * toplev.c (init_excess_precision): Delete most logic.
362         * tree.c (excess_precision_type): Rewrite to use
363         TARGET_EXCESS_PRECISION.
364         * doc/invoke.texi (-fexcess-precision): Document behaviour in a
365         more generic fashion.
366         * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
367         __STDC_WANT_IEC_60559_TYPES_EXT__.
369 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
371         * common.opt (fpermitted-flt-eval-methods): New.
372         * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
373         * flag_types.h (permitted_flt_eval_methods): New.
375 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
377         * config/m68k/m68k.c (m68k_excess_precision): New.
378         (TARGET_C_EXCESS_PRECISION): Define.
380 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
382         * config/s390/s390.c (s390_excess_precision): New.
383         (TARGET_C_EXCESS_PRECISION): Define.
385 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
387         * config/i386/i386.c (ix86_excess_precision): New.
388         (TARGET_C_EXCESS_PRECISION): Define.
390 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
392         * target.def (excess_precision): New hook.
393         * target.h (flt_eval_method): New.
394         (excess_precision_type): Likewise.
395         * targhooks.c (default_excess_precision): New.
396         * targhooks.h (default_excess_precision): New.
397         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
398         * doc/tm.texi: Regenerate.
400 2016-11-23  Martin Sebor  <msebor@redhat.com>
402         PR middle-end/78461
403         * gimple-ssa-sprintf.c (format_string): Correct the maxima and
404         set the minimum number of bytes for an unknown string to zero.
406 2016-11-23  Martin Jambor  <mjambor@suse.cz>
407             Martin Liska  <mliska@suse.cz>
409         * hsa-builtins.def: New file.
410         * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
411         * builtins.def: Include hsa-builtins.def.
412         (DEF_HSA_BUILTIN): New macro.
413         * dumpfile.h (OPTGROUP_OPENMP): Define.
414         * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
415         * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
416         GF_OMP_FOR_GRID_GROUP_ITER.
417         (gimple_omp_for_grid_phony): Added checking assert.
418         (gimple_omp_for_set_grid_phony): Likewise.
419         (gimple_omp_for_grid_intra_group): New function.
420         (gimple_omp_for_set_grid_intra_group): Likewise.
421         (gimple_omp_for_grid_group_iter): Likewise.
422         (gimple_omp_for_set_grid_group_iter): Likewise.
423         * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
424         previosuly only distribute loop was permitted.
425         (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
426         (grid_get_kernel_launch_attributes): Support multiple HSA grid
427         dimensions.
428         (grid_expand_omp_for_loop): Likewise and also support standalone
429         distribute constructs.  New parameter INTRA_GROUP, updated both users.
430         (grid_expand_target_grid_body): Support standalone distribute
431         constructs.
432         (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
433         (pass_data_expand_omp_ssa): Likewise.
434         (pass_data_omp_device_lower): Likewsie.
435         (pass_data_lower_omp): Likewise.
436         (pass_data_diagnose_omp_blocks): Likewise.
437         (pass_data_oacc_device_lower): Likewise.
438         (pass_data_omp_target_link): Likewise.
439         (grid_lastprivate_predicate): New function.
440         (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
441         gridified loops.
442         (lower_omp_for): Support standalone distribute constructs.
443         (grid_prop): New type.
444         (grid_safe_assignment_p): Check for assignments to group_sizes, new
445         parameter GRID.
446         (grid_seq_only_contains_local_assignments): New parameter GRID, pass
447         it to callee.
448         (grid_find_single_omp_among_assignments_1): Likewise, improve missed
449         optimization info messages.
450         (grid_find_single_omp_among_assignments): Likewise.
451         (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
452         (grid_parallel_clauses_gridifiable): New function.
453         (grid_inner_loop_gridifiable_p): Likewise.
454         (grid_dist_follows_simple_pattern): Likewise.
455         (grid_gfor_follows_tiling_pattern): Likewise.
456         (grid_call_permissible_in_distribute_p): Likewise.
457         (grid_handle_call_in_distribute): Likewise.
458         (grid_dist_follows_tiling_pattern): Likewise.
459         (grid_target_follows_gridifiable_pattern): Support standalone
460         distribute constructs.
461         (grid_var_segment): New enum.
462         (grid_mark_variable_segment): New function.
463         (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
464         if a new argument says so.
465         (grid_process_grid_body): New function.
466         (grid_eliminate_combined_simd_part): Likewise.
467         (grid_mark_tiling_loops): Likewise.
468         (grid_mark_tiling_parallels_and_loops): Likewise.
469         (grid_process_kernel_body_copy): Support standalone distribute
470         constructs.
471         (grid_attempt_target_gridification): New grid variable holding overall
472         gridification state.  Support standalone distribute constructs and
473         collapse clauses.
474         * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
475         * hsa.h (hsa_bb): Add method method append_phi.
476         (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
477         occurences in all files too.
478         (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
479         (is_a_helper <hsa_insn_br *>::test): New function.
480         (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
481         branch instructions.
482         (hsa_insn_signal): Make a direct descendant of
483         hsa_insn_basic.  Add memorder constructor parameter and
484         m_memory_order and m_signalop member variables.
485         (hsa_insn_queue): Changed constructor parameters to common form.
486         Added m_segment and m_memory_order member variables.
487         (hsa_summary_t): Add private member function
488         process_gpu_implementation_attributes.
489         (hsa_function_summary): Rename m_binded_function to
490         m_bound_function.
491         (hsa_insn_basic_p): Remove typedef.
492         (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
493         (hsa_op_reg_p): Remove typedef.
494         (hsa_function_representation): Change hsa_op_reg_p into plain
495         pointers.
496         (hsa_insn_phi): Removed new and delete operators.
497         (hsa_insn_br): Likewise.
498         (hsa_insn_cbr): Likewise.
499         (hsa_insn_sbr): Likewise.
500         (hsa_insn_cmp): Likewise.
501         (hsa_insn_mem): Likewise.
502         (hsa_insn_atomic): Likewise.
503         (hsa_insn_signal): Likewise.
504         (hsa_insn_seg): Likewise.
505         (hsa_insn_call): Likewise.
506         (hsa_insn_arg_block): Likewise.
507         (hsa_insn_comment): Likewise.
508         (hsa_insn_srctype): Likewise.
509         (hsa_insn_packed): Likewise.
510         (hsa_insn_cvt): Likewise.
511         (hsa_insn_alloca): Likewise.
512         * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
513         (process_gpu_implementation_attributes): New function.
514         (link_functions): Move some functionality into it.  Adjust after
515         renaming m_binded_functions to m_bound_functions.
516         (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
517         to the list of instructions with no output registers.
518         (get_in_type): Return this if it is a register of
519         matching size.
520         (hsa_get_declaration_name): Moved to...
521         * hsa-gen.c (hsa_get_declaration_name): ...here.  Allocate
522         temporary string on an obstack instead from ggc.
523         (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
524         down to two overloads.
525         (hsa_allocp_operand_address): Removed.
526         (hsa_allocp_operand_immed): Likewise.
527         (hsa_allocp_operand_reg): Likewise.
528         (hsa_allocp_operand_code_list): Likewise.
529         (hsa_allocp_operand_operand_list): Likewise.
530         (hsa_allocp_inst_basic): Likewise.
531         (hsa_allocp_inst_phi): Likewise.
532         (hsa_allocp_inst_mem): Likewise.
533         (hsa_allocp_inst_atomic): Likewise.
534         (hsa_allocp_inst_signal): Likewise.
535         (hsa_allocp_inst_seg): Likewise.
536         (hsa_allocp_inst_cmp): Likewise.
537         (hsa_allocp_inst_br): Likewise.
538         (hsa_allocp_inst_sbr): Likewise.
539         (hsa_allocp_inst_call): Likewise.
540         (hsa_allocp_inst_arg_block): Likewise.
541         (hsa_allocp_inst_comment): Likewise.
542         (hsa_allocp_inst_queue): Likewise.
543         (hsa_allocp_inst_srctype): Likewise.
544         (hsa_allocp_inst_packed): Likewise.
545         (hsa_allocp_inst_cvt): Likewise.
546         (hsa_allocp_inst_alloca): Likewise.
547         (hsa_allocp_bb): Likewise.
548         (hsa_obstack): New.
549         (hsa_init_data_for_cfun): Initialize obstack.
550         (hsa_deinit_data_for_cfun): Release memory of the obstack.
551         (hsa_op_immed::operator new): Use obstack instead of object_allocator.
552         (hsa_op_reg::operator new): Likewise.
553         (hsa_op_address::operator new): Likewise.
554         (hsa_op_code_list::operator new): Likewise.
555         (hsa_op_operand_list::operator new): Likewise.
556         (hsa_insn_basic::operator new): Likewise.
557         (hsa_insn_phi::operator new): Likewise.
558         (hsa_insn_br::operator new): Likewise.
559         (hsa_insn_sbr::operator new): Likewise.
560         (hsa_insn_cmp::operator new): Likewise.
561         (hsa_insn_mem::operator new): Likewise.
562         (hsa_insn_atomic::operator new): Likewise.
563         (hsa_insn_signal::operator new): Likewise.
564         (hsa_insn_seg::operator new): Likewise.
565         (hsa_insn_call::operator new): Likewise.
566         (hsa_insn_arg_block::operator new): Likewise.
567         (hsa_insn_comment::operator new): Likewise.
568         (hsa_insn_srctype::operator new): Likewise.
569         (hsa_insn_packed::operator new): Likewise.
570         (hsa_insn_cvt::operator new): Likewise.
571         (hsa_insn_alloca::operator new): Likewise.
572         (hsa_init_new_bb): Likewise.
573         (hsa_bb::append_phi): New function.
574         (gen_hsa_phi_from_gimple_phi): Use it.
575         (get_symbol_for_decl): Fix dinstinguishing between
576         global and local functions.  Put local variables into a segment
577         according to their attribute or static flag, if there is one.
578         (hsa_insn_br::hsa_insn_br): New.
579         (hsa_insn_br::operator new): Likewise.
580         (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
581         (query_hsa_grid_nodim): New function.
582         (multiply_grid_dim_characteristics): Likewise.
583         (gen_get_num_threads): Likewise.
584         (gen_get_num_teams): Reimplemented.
585         (gen_get_team_num): Likewise.
586         (gen_hsa_insns_for_known_library_call): Updated calls to the above
587         helper functions.
588         (get_memory_order_name): Removed.
589         (get_memory_order): Likewise.
590         (hsa_memorder_from_tree): New function.
591         (gen_hsa_ternary_atomic_for_builtin): Renamed to
592         gen_hsa_atomic_for_builtin, can also create signals.
593         (gen_hsa_insns_for_call): Handle many new builtins.  Adjust to use
594         hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
595         (hsa_insn_atomic): Fix function comment.
596         (hsa_insn_signal::hsa_insn_signal): Fix comment.  Update call to
597         ancestor constructor and initialization of new member variables.
598         (hsa_insn_queue::hsa_insn_queue): Added initialization of new
599         member variables.
600         (hsa_get_host_function): Handle functions with no bound CPU
601         implementation.  Fix binded to bound.
602         (get_brig_function_name): Likewise.
603         (HSA_SORRY_ATV): Remove semicolon after macro.
604         (HSA_SORRY_AT): Likewise.
605         (omp_simple_builtin::generate): Add missing semicolons.
606         (hsa_insn_phi::operator new): Removed.
607         (hsa_insn_br::operator new): Likewise.
608         (hsa_insn_cbr::operator new): Likewise.
609         (hsa_insn_sbr::operator new): Likewise.
610         (hsa_insn_cmp::operator new): Likewise.
611         (hsa_insn_mem::operator new): Likewise.
612         (hsa_insn_atomic::operator new): Likewise.
613         (hsa_insn_signal::operator new): Likewise.
614         (hsa_insn_seg::operator new): Likewise.
615         (hsa_insn_call::operator new): Likewise.
616         (hsa_insn_arg_block::operator new): Likewise.
617         (hsa_insn_comment::operator new): Likewise.
618         (hsa_insn_srctype::operator new): Likewise.
619         (hsa_insn_packed::operator new): Likewise.
620         (hsa_insn_cvt::operator new): Likewise.
621         (hsa_insn_alloca::operator new): Likewise.
622         (get_symbol_for_decl): Accept CONST_DECLs, put them to
623         readonly segment.
624         (gen_hsa_addr): Also process CONST_DECLs.
625         (gen_hsa_addr_insns): Process CONST_DECLs by creating private
626         copies.
627         (gen_hsa_unary_operation): Make sure the function does
628         not use bittype source type for firstbit and lastbit operations.
629         (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
630         source type.
631         * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
632         instruction.
633         (emit_branch_insn): Renamed to emit_cond_branch_insn.
634         Emit the width stored in the class.
635         (emit_generic_branch_insn): New function.
636         (emit_insn): Call emit_generic_branch_insn.
637         (emit_signal_insn): Remove obsolete comment.  Update
638         member variable name, pick a type according to profile.
639         (emit_alloca_insn): Remove obsolete comment.
640         (emit_atomic_insn): Likewise.
641         (emit_queue_insn): Get segment and memory order from the IR object.
642         (hsa_brig_section): Make allocate_new_chunk, chunks
643         and cur_chunk provate, add a default NULL parameter to add method.
644         (hsa_brig_section::add): Added a new parameter, store pointer to
645         output data there if it is non-NULL.
646         (emit_function_directives): Use this new parameter instead of
647         calculating the pointer itself, fix function comment.
648         (hsa_brig_emit_function): Add forgotten endian conversion.
649         (hsa_output_kernels): Remove unnecessary building of
650         kernel_dependencies_vector_type.
651         (emit_immediate_operand): Declare.
652         (emit_directive_variable): Also emit initializers of CONST_DECLs.
653         (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
654         (verify_function_arguments): Properly detect variadic
655         arguments.
656         * hsa-dump.c (hsa_width_specifier_name): New function.
657         (dump_hsa_insn_1): Dump generic branch instructions, update signal
658         member variable name.  Special dumping for queue objects.
659         * ipa-hsa.c (process_hsa_functions): Adjust after renaming
660         m_binded_functions to m_bound_functions.  Copy externally visible flag
661         to the node.
662         (ipa_hsa_write_summary): Likewise.
663         (ipa_hsa_read_section): Likewise.
665 2016-11-23  Richard Biener  <rguenther@suse.de>
667         PR tree-optimization/78396
668         * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
669         vectorize try vectorizing an if-converted body using BB vectorization.
671 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
672             Alan Hayward  <alan.hayward@arm.com>
673             David Sherwood  <david.sherwood@arm.com>
675         * rtlanal.c (subreg_get_info): Use more local variables.
676         Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
677         occupies at least one register.  Assume that full hard registers
678         have consistent endianness.  Share previously-duplicated if block.
679         Rework the main handling so that it operates on independently-
680         addressable YMODE-sized blocks.  Use subreg_size_lowpart_offset
681         to check lowpart offsets, without trying to find an equivalent
682         integer mode first.  Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
683         as a final register-endianness correction.
685 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
687         PR target/77881
688         PR bootstrap/78390
689         PR target/78438
690         PR bootstrap/78477
691         * combine.c (make_compound_operation_int): Do not convert a subreg of
692         a non-constant logical shift right to a zero_extract.  Handle the case
693         where some zero bits have been shifted into the range covered by that
694         subreg.
696 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
697             Alan Hayward  <alan.hayward@arm.com>
698             David Sherwood  <david.sherwood@arm.com>
700         * rtl.h (subreg_size_offset_from_lsb): Declare.
701         (subreg_offset_from_lsb): New function.
702         (subreg_size_lowpart_offset): Declare.
703         (subreg_lowpart_offset): Turn into an inline function.
704         (subreg_size_highpart_offset): Declare.
705         (subreg_highpart_offset): Turn into an inline function.
706         * emit-rtl.c (subreg_size_lowpart_offset): New function.
707         (subreg_size_highpart_offset): Likewise
708         * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
710 2016-11-23  Richard Biener  <rguenther@suse.de>
712         PR tree-optimization/78482
713         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
714         (remove_forwarder_block_with_phi): When merging with a loop
715         header creates a new latch reset number of iteration information
716         of the loop.
718 2016-11-23  Eric Botcazou  <ebotcazou@adacore.com>
720         * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
721         (*ashrsi3_extend0): ...this.  Accept constant integers.
722         (*ashrsi3_extend2): Rename to...
723         (*ashrsi3_extend1): ...this.
724         (*ashrsi3_extend2): New pattern.
725         (*lshrsi3_extend1): Accept constant integers.
726         (*lshrsi3_extend2): Fix condition on operand 2.
728 2016-11-23  Martin Liska  <mliska@suse.cz>
730         * config/i386/i386.c: Initialize function pointer to NULL.
732 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
734         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
735         for A == C1 ? A : C2 to below.
736         * match.pd: Move from above to here:
737         (cond (eq (convert1? x) c1) (convert2? x) c2)
738           -> (cond (eq x c1) c1 c2).
740 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
742         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
743         for A cmp C1 ? A : C2 to below, also simplify remaining code.
744         * match.pd: Move and extend simplification from above to here:
745         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
746         * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
747         (predicate_scalar_phi): Call fold_stmt using the new valueize func.
749 2016-11-23  Martin Liska  <mliska@suse.cz>
750             Martin Jambor  <mjambor@suse.cz>
752         * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
754 2016-11-23  Aldy Hernandez  <aldyh@redhat.com>
756         PR target/78213
757         * opts.c (finish_options): Set -fsyntax-only if running self tests.
759 2016-11-23  Richard Biener  <rguenther@suse.de>
761         PR middle-end/71762
762         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
763         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
765 2016-11-23  Richard Biener  <rguenther@suse.de>
767         PR lto/78472
768         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
769         fields.
771 2016-11-23  Richard Biener  <rguenther@suse.de>
772             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.rog>
774         PR tree-optimization/78154
775         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
776         returns it's argument and the argument is nonnull.
777         * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
778         ATT_RETNONNULL_NOTHROW_LEAF.
779         * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
780         ATTR_RETNONNULL_NOTHROW_LEAF.
781         (BUILT_IN_STPCPY): Likewise.
782         (BUILT_IN_STPNCPY): Likewise.
783         (BUILT_IN_MEMPCPY_CHK): Likewise.
784         (BUILT_IN_STPCPY_CHK): Likewise.
785         (BUILT_IN_STPNCPY_CHK): Likewise.
786         (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
787         (BUILT_IN_STRNCAT): Likewise.
788         (BUILT_IN_STRNCPY): Likewise.
789         (BUILT_IN_MEMSET_CHK): Likewise.
790         (BUILT_IN_STRCAT_CHK): Likewise.
791         (BUILT_IN_STRCPY_CHK): Likewise.
792         (BUILT_IN_STRNCAT_CHK): Likewise.
793         (BUILT_IN_STRNCPY_CHK): Likewise.
795 2016-11-23  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
797         * fold-const.c (tree_expr_nonzero_p) : Make non-static.
798         * fold-const.h (tree_expr_nonzero_p) : Declare.
799         * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
801 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
803         * system.h (HAVE_DESIGNATED_INITIALIZERS,
804         HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
805         "defined" in macros.
806         * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
807         * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
808         * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
810 2016-11-23  Georg-Johann Lay  <avr@gjlay.de>
812         PR target/60300
813         * config/avr/constraints.md (Csp): Widen range to [-11..6].
814         * config/avr/avr.c (avr_prologue_setup_frame): Limit number
815         of RCALLs in prologue to 3.
817 2016-11-22  Michael Collison  <michael.collison@arm.com>
819         * config/aarch64/aarch64-protos.h
820         (aarch64_and_split_imm1, aarch64_and_split_imm2)
821         (aarch64_and_bitmask_imm): New prototypes
822         * config/aarch64/aarch64.c (aarch64_and_split_imm1):
823         New overloaded function to create bit mask covering the
824         lowest to highest bits set.
825         (aarch64_and_split_imm2): New overloaded functions to create bit
826         mask of zeros between first and last bit set.
827         (aarch64_and_bitmask_imm): New function to determine if a integer
828         is a valid two instruction "and" operation.
829         * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
830         allowing wider range of constants with "and" operations.
831         * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
832         "and" operator from matching restricted constant range used for
833         ior and xor operators.
834         * config/aarch64/constraints.md (UsO constraint): New SImode constraint
835         for constants in "and" operantions.
836         (UsP constraint): New DImode constraint for constants
837         in "and" operations.
838         * config/aarch64/iterators.md (lconst2): New mode iterator.
839         (LOGICAL2): New code iterator.
840         * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
841         predicate.
842         (aarch64_logical_and_operand): New predicate allowing extended
843         constants for "and" operations.
845 2016-11-22  Walter Lee  <walt@tilera.com>
847         * config/tilegx/tilegx.md (trap): New pattern.
848         * config/tilepro/tilepro.md (trap): Likewise.
850 2016-11-22  Walter Lee  <walt@tilera.com>
852         * config/tilegx/tilegx.md (*zero_extract): Use
853         define_insn_and_split instead of define_insn; Handle pos + size >
854         64.
855         (*sign_extract): Likewise.
857 2016-11-22  Marek Polacek  <polacek@redhat.com>
859         PR tree-optimization/78455
860         * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
862 2016-11-22  Ian Lance Taylor  <iant@golang.org>
864         PR go/78431
865         PR go/78432
866         * godump.c (go_format_type): Always pass alignment as 1 when
867         calling go_append_padding at end of struct/union.
869 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
871         PR target/78451
872         * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
873         _mm512_setzero_hi): Removed.
874         (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
875         _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
876         _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
877         _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
878         _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
879         _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
880         _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
881         _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
882         _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
883         _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
884         _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
885         _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
886         _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
887         _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
888         _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
889         _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
890         _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
891         _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
892         _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
893         _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
894         _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
895         _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
896         _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
897         _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
898         _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
899         _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
900         _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
901         _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
902         _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
903         _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
904         _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
905         _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
906         _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
907         _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
908         _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
909         _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
910         _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
911         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
912         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
913         _mm512_maskz_srai_epi16, _mm512_packs_epi32,
914         _mm512_maskz_packs_epi32, _mm512_packus_epi32,
915         _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
916         _mm512_setzero_qi or _mm512_setzero_hi.
917         (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
918         _mm512_maskz_dbsad_epu8): Formatting fixes.
919         (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
920         _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
921         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
922         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
923         _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
924         _mm512_setzero_qi or _mm512_setzero_hi.
926 2016-11-22  Nathan Sidwell  <nathan@acm.org>
928         * gcc-ar.c (main): Fix indentation.
929         * gcov-io.c (gcov_write_summary): Remove extraneous {...}
930         * ggc-page.c (move_ptes_to_front): Fix formatting.
931         * hsa-dump.c (dump_has_cfun): Fix indentation.
932         * sel-sched-ir.h: Remove trailing blank lines.
934 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
935             Alexander Monakov  <amonakov@ispras.ru>
937         * internal-fn.c (expand_GOMP_USE_SIMT): New function.
938         * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
939         (omp_clause_code_name): Add _simt_ name.
940         (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
941         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
942         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
943         (scan_omp_simd): New function.
944         (scan_omp_1_stmt): Use it in target regions if needed.
945         (omp_max_vf): Don't max with omp_max_simt_vf.
946         (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
947         OMP_CLAUSE__SIMT_ is present.
948         (lower_rec_input_clauses): Compute maybe_simt from presence of
949         OMP_CLAUSE__SIMT_.
950         (lower_lastprivate_clauses): Likewise.
951         (expand_omp_simd): Likewise.  Remove explicit offloaded region check.
952         (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
953         * internal-fn.def (GOMP_USE_SIMT): New internal function.
954         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
956 2016-11-22  Alexander Monakov  <amonakov@ispras.ru>
958         * internal-fn.c (expand_GOMP_SIMT_LANE): New.
959         (expand_GOMP_SIMT_VF): New.
960         (expand_GOMP_SIMT_LAST_LANE): New.
961         (expand_GOMP_SIMT_ORDERED_PRED): New.
962         (expand_GOMP_SIMT_VOTE_ANY): New.
963         (expand_GOMP_SIMT_XCHG_BFLY): New.
964         (expand_GOMP_SIMT_XCHG_IDX): New.
965         * internal-fn.def (GOMP_SIMT_LANE): New.
966         (GOMP_SIMT_VF): New.
967         (GOMP_SIMT_LAST_LANE): New.
968         (GOMP_SIMT_ORDERED_PRED): New.
969         (GOMP_SIMT_VOTE_ANY): New.
970         (GOMP_SIMT_XCHG_BFLY): New.
971         (GOMP_SIMT_XCHG_IDX): New.
972         * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
973         (create_omp_child_function): ...here.  Set "omp target entrypoint"
974         or "omp declare target" attribute based on is_gimple_omp_offloaded.
975         (omp_max_simt_vf): New.  Use it...
976         (omp_max_vf): ...here.
977         (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
978         (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
979         (lower_omp_ordered): Likewise, for "ordered" lowering.
980         (expand_omp_simd): Add SIMT transforms.
981         (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
982         (execute_omp_device_lower): New.
983         (pass_data_omp_device_lower): New.
984         (pass_omp_device_lower): New pass.
985         (make_pass_omp_device_lower): New.
986         * passes.def (pass_omp_device_lower): Position new pass.
987         * tree-pass.h (PROP_gimple_lomp_dev): Define.
988         (make_pass_omp_device_lower): Declare.
990 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
992         PR target/78451
993         * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
994         (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
995         _mm_setzero_di.
996         (_mm_maskz_load_epi64): Likewise.
997         (_mm_setzero_hi): Removed.
998         (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
999         _mm_setzero_di.
1000         (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
1001         _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
1002         _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
1003         _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
1004         _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
1005         _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
1006         _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
1007         _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
1008         _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
1009         _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
1010         _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
1011         Likewise.
1012         (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
1013         _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
1014         _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
1015         _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
1016         _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
1017         _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
1018         _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
1019         _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
1020         _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
1021         _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
1022         _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
1023         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
1024         instead of _mm_setzero_hi.
1025         (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
1026         _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
1027         _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
1028         _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
1029         _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
1030         _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
1031         _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
1032         _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
1033         _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
1034         _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
1035         _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
1036         _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
1037         _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
1038         _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
1039         _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
1040         _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
1041         _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
1042         _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
1043         _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
1044         _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
1045         _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
1046         _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
1047         _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
1048         _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
1049         (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
1050         _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
1051         _mm_setzero_di.
1052         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
1053         instead of _mm_setzero_hi.
1054         * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
1055         _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
1056         _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
1057         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1058         _mm_setzero_si128 instead of _mm_setzero_di.
1059         (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
1060         _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
1061         _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
1062         _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
1063         _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
1064         _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
1065         _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
1066         _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
1067         _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
1068         _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
1069         _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
1070         _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
1071         _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
1072         _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
1073         _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
1074         _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
1075         _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
1076         _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
1077         _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
1078         _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
1079         _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
1080         _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
1081         _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
1082         _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
1083         _mm512_range_round_pd, _mm512_maskz_range_round_pd,
1084         _mm512_range_round_ps, _mm512_maskz_range_round_ps,
1085         _mm512_maskz_insertf64x2, _mm512_insertf32x8,
1086         _mm512_maskz_insertf32x8): Formatting fixes.
1087         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
1088         _mm_setzero_si128 instead of _mm_setzero_di.
1089         * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
1090         _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
1091         _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
1092         _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
1093         _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
1094         _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
1095         _mm_setzero_si128 instead of _mm_setzero_di.
1096         (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
1097         Likewise in macros.
1098         * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
1099         _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
1100         _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
1101         _mm_setzero_si128 instead of _mm_setzero_hi.
1102         (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
1103         _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
1104         _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
1105         instead of _mm_setzero_di.
1106         (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
1107         _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
1108         _mm_setzero_hi.
1109         (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
1110         _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
1111         _mm_setzero_hi.
1112         (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
1113         _mm_setzero_di.
1114         (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
1115         _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
1116         _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
1118 2016-11-22  Carl Love  <cel@us.ibm.com>
1120         * config/rs6000/rs6000-c.c: Add built-in support for vector compare
1121         equal and vector compare not equal.  The vector compares take two
1122         arguments of type vector bool char, vector bool short, vector bool int,
1123         vector bool long long with the same return type.
1124         * doc/extend.texi: Update built-in documentation file for the new
1125         powerpc built-ins.
1127 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
1129         * Makefile.in ($(lang_checks_parallelized)): Fix detection
1130         of -j argument.
1132 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1134         * config.gcc: Allow new rmprofile value for configure option
1135         --with-multilib-list.
1136         * config/arm/t-rmprofile: New file.
1137         * doc/install.texi (--with-multilib-list): Document new rmprofile value
1138         for ARM.
1140 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1142         PR target/78439
1143         * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
1144         register operand in alternatives 4,5,6.
1146 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1148         PR target/77904
1149         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
1150         in save register mask if it is needed.
1152 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
1154         PR tree-optimization/78436
1155         * gimple-ssa-store-merging.c (zero_char_buf): Removed.
1156         (shift_bytes_in_array, shift_bytes_in_array_right,
1157         merged_store_group::apply_stores): Formatting fixes.
1158         (clear_bit_region): Likewise.  Use memset.
1159         (encode_tree_to_bitpos): Formatting fixes.  Fix comment typos - EPXR
1160         instead of EXPR and inerted instead of inserted.  Use memset instead
1161         of zero_char_buf.  For !BYTES_BIG_ENDIAN decrease byte_size by 1
1162         if shift_amnt is 0.
1164         PR middle-end/78416
1165         * expmed.c (expand_divmod): Use wide_int for computation of
1166         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
1167         Use size <= HOST_BITS_PER_WIDE_INT instead of
1168         HOST_BITS_PER_WIDE_INT >= size.
1170         PR tree-optimization/78445
1171         * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
1172         any_complicated_phi, version loop even if flag_tree_loop_if_convert
1173         is 1.  Formatting fix.
1175 2016-11-22  Martin Liska  <mliska@suse.cz>
1177         PR ipa/78309
1178         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1179         (sem_function::get_hash): Use the new field.
1180         (sem_function::parse): Remove an argument from ctor.
1181         (sem_variable::parse): Likewise.
1182         (sem_variable::get_hash): Use the new field.
1183         (sem_item_optimizer::read_section): Use new ctor and set hash.
1184         * ipa-icf.h: _hash is removed from sem_item::sem_item,
1185         sem_variable::sem_variable, sem_function::sem_function.
1187 2016-11-21  Jeff Law  <law@redhat.com>
1189         PR target/68538
1190         * config/cris/cris.md: Don't call copy_to_mode_reg unless
1191         can_create_pseudo_p is true.
1193 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
1195         PR target/68803
1196         * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
1197         *rotldi3_insert_7): New define_insns.
1199 2016-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1201         * config/rs6000/rs6000.md (movdi_internal32): Change constraints
1202         so that DImode can be allocated to FP/vector registers in more
1203         cases, and we can avoid direct move operations.  If the register
1204         needs reloading, prefer GPRs over FP/vector registers.  In the
1205         case of FPR vs. Altivec registers, prefer FPR registers unless we
1206         have the ISA 3.0 reg+offset scalar instructions.
1207         (movdi_internal64): Likewise.
1209 2016-11-21  Jakub Jelinek  <jakub@redhat.com>
1211         PR middle-end/67335
1212         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
1213         for tmp simd array if DECL_NAME (parm) is NULL.
1215 2016-11-20  Jeff Law  <law@redhat.com>
1217         PR target/25128
1218         * config/m68k/predicates.md (swap_peephole_relational_operator): New
1219         predicate.
1220         * config/m68k/m68k.md (relational tests against 65535/65536): New
1221         peephole2.
1223 2016-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1225         * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
1227 2016-11-21  Martin Sebor  <msebor@redhat.com>
1229         * doc/invoke.texi (-fprintf-return-value): Document that option
1230         is enabled by default.
1232 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
1234         * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
1235         for-loop declaration of loop variable.
1236         (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
1237         * config/avr/avr.c (avr_popcount_each_byte)
1238         (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
1239         (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
1240         (avr_expand_epilogue, avr_function_arg_advance)
1241         (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
1242         (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
1243         (avr_adjust_reg_alloc_order, output_reload_in_const)
1244         (avr_conditional_register_usage, avr_find_unused_d_reg)
1245         (avr_map_decompose, avr_fold_builtin): Same.
1247 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
1249         * config/avr/avr.c (avr_popcount): Remove static function.
1250         (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
1252 2016-11-21  Richard Earnshaw  <rearnsha@arm.com>
1254         * arm.opt (mapcs-float): Delete option.
1255         * arm.c (arm_option_override): Remove hunk relating to
1256         TARGET_APCS_FLOAT.
1257         * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
1259 2016-11-21  Richard Sandiford  <richard.sandiford@arm.com>
1261         * tree-tailcall.c (process_assignment): Simplify the check for
1262         a valid copy, allowing the source to be a local variable as
1263         well as an SSA name.
1264         (find_tail_calls): Allow copies between local variables to follow
1265         the call.  Allow the result to be stored in any local variable,
1266         even if it's an aggregate.
1267         (eliminate_tail_call): Check whether the result is an SSA name
1268         before updating its SSA_NAME_DEF_STMT.
1270 2016-11-21  David Malcolm  <dmalcolm@redhat.com>
1272         PR preprocessor/78324
1273         * input.c (get_substring_ranges_for_loc): Fail gracefully if
1274         -ftrack-macro-expansion has a value other than 2.
1276 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
1278         PR rtl-optimization/78400
1279         * shrink-wrap.c (try_shrink_wrapping_separate): Call
1280         df_update_entry_exit_and_calls instead of df_update_entry_block_defs
1281         and df_update_exit_block_uses.
1283 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1285         PR c++/71973
1286         * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
1287         new default-enabled warning..
1288         * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
1289         (BT_PTR_CONST_STRING): Updated.
1290         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
1291         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
1292         * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
1293         (strftime): Update builtin function.
1294         * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
1295         * tree.h (const_tm_ptr_type_node): New type node.
1296         * tree.c (free_lang_data, build_common_tree_nodes): Initialize
1297         const_tm_ptr_type_node.
1299 2016-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1301         PR tree-optimization/78413
1302         * tree-if-conv.c (versionable_outer_loop_p): Require that both
1303         inner and outer loop latches have single predecessors.
1305 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
1307         PR target/78093
1308         * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
1309         (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
1311 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1313         * rtl.h: Adjust prototype.
1314         * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
1315         (dead_or_set_regno_p): Likewise.
1317 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1319         * rtl.h: Adjust prototype.
1320         * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
1322 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1324         * function.c (contains): Change argument type to rtx_insn *.
1325         (prologue_contains): Likewise.
1326         (epilogue_contains): Likewise.
1327         (prologue_epilogue_contains): Likewise.
1328         * function.h: Adjust prototype.
1330 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1332         * optabs.c (emit_libcall_block): Change argument type to
1333         rtx_insn *.
1334         * optabs.h: Adjust prototype.
1336 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1338         * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
1339         (fixup_reorder_chain): Adjust.
1340         * cfgrtl.h: Adjust prototype.
1342 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1344         * rtl.h: Adjust prototype.
1345         * rtlanal.c (replace_label_in_insn): Change argument type to
1346         rtx_insn *.
1348 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1350         * config/v850/v850.c (expand_prologue): Adjust.
1351         (expand_epilogue): Likewise.
1352         * expr.c (init_expr_target): Likewise.
1353         * genrecog.c (print_subroutine): Always make the argument type
1354         rtx_insn *.
1355         * recog.h: Adjust prototype.
1357 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1359         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
1360         up variables to make some rtx_insn *.
1361         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1362         * config/arc/arc.c: Likewise.
1363         * config/arm/arm.c: Likewise.
1364         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
1365         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
1366         Likewise.
1367         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1369 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1371         * config/arm/arm.c (legitimize_pic_address): Change to use
1372         rtx_insn * as the type of variables.
1373         (arm_pic_static_addr): Likewise.
1374         (arm_emit_movpair): Likewise.
1375         * config/c6x/c6x.c (reorg_split_calls): Likewise.
1376         * config/darwin.c (machopic_legitimize_pic_address): Likewise.
1377         * config/frv/frv.c (frv_optimize_membar_local): Likewise.
1378         * config/frv/frv.md: Likewise.
1379         * config/i386/i386-protos.h: Likewise.
1380         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1381         (ix86_split_fp_branch): Likewise.
1382         (predict_jump): Likewise.
1383         * config/ia64/ia64.c: Likewise.
1384         * config/mcore/mcore.c: Likewise.
1385         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1386         * config/s390/s390.c: Likewise.
1387         * config/s390/s390.md: Likewise.
1388         * config/spu/spu.md: Likewise.
1389         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1390         * lower-subreg.c (resolve_simple_move): Likewise.
1392 2016-11-20  Jeff Law  <law@redhat.com>
1394         PR target/48551
1395         * reload.h (struct target_reload): Make x_double_reg_address_ok
1396         be per-mode rather.
1397         * reload.c (find_reloads_address): Check if double_reg_address_ok
1398         is true for the mode of the memory reference.
1399         * reload1.c (init_reload): Initialize double_reg_address_ok for
1400         each mode.
1402 2016-11-20  Aldy Hernandez  <aldyh@redhat.com>
1404         PR middle-end/61409
1405         * tree-ssa-uninit.c: Define new global max_phi_args.
1406         (compute_uninit_opnds_pos): Use max_phi_args.
1407         (prune_uninit_phi_opnds): Same.
1408         (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1409         missing NUM_PREDS in function comment.
1410         (can_one_predicate_be_invalidated_p): New.
1411         (can_chain_union_be_invalidated_p): New.
1412         (flatten_out_predicate_chains): New.
1413         (uninit_ops_invalidate_phi_use): New.
1414         (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1416 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
1418         * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1419         * match.pd (A /[ex] B CMP C): New simplifications.
1421 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
1423         * match.pd (0 / X, X / X, X % X): New simplifications.
1425 2016-11-19  Jakub Jelinek  <jakub@redhat.com>
1427         * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1428         when checking if callee's isa flags are subset of caller's isa flags.
1429         Fix comment wording.
1431         * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1432         clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1433         instead and using = 0 instead of &= 0.
1435         * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1436         ix86_add_new_builtins): Formatting fixes.
1437         (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1438         (ix86_get_builtin): Likewise.
1440         * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1441         don't initialize it, don't use it for the case where it isn't
1442         provable %{z} nor using the same argument, instead move merge
1443         argument into a new pseudo and use that as target.  Formatting fixes.
1445 2016-11-19  Jeff Law  <law@redhat.com>
1447         PR target/25111
1448         * config/m68k/m68k.md (bsetdreg): New pattern.
1449         (bchgdreg, bclrdreg): Likewise.
1451 2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1453         PR target/78426
1454         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1455         instead of force_reg.
1456         (sh_expand_setmem): Likewise.
1458 2016-11-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
1460         * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1462 2016-11-18  Walter Lee  <walt@tilera.com>
1464         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1465           end-of-bundle marker for consecutive barriers.
1467 2016-11-18  Walter Lee  <walt@tilera.com>
1469         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1471 2016-11-18  Jakub Jelinek  <jakub@redhat.com>
1473         PR middle-end/78419
1474         * multiple_target.c (get_attr_len): Start with argnum and increment
1475         argnum on every arg.  Use strchr in a loop instead of counting commas
1476         manually.
1477         (get_attr_str): Increment argnum for every comma in the string.
1478         (separate_attrs): Use for instead of while loop, simplify.
1479         (expand_target_clones): Rename defenition argument to definition.
1480         Free attrs and attr_str even when diagnosing errors.  Temporarily
1481         change input_location around targetm.target_option.valid_attribute_p
1482         calls.  Don't emit warning or errors if that function fails.
1484         * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1486         PR debug/78191
1487         * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1488         (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1489         abbrev_opt_base_type_end only by increasing die_abbrev, before
1490         any other dies.
1491         (optimize_abbrev_table): Don't change abbrev numbers of
1492         base types and CU or optimize implicit consts in them if
1493         calc_base_type_die_sizes has been called during build_abbrev_table.
1494         (calc_base_type_die_sizes): If abbrev_opt_start, set
1495         abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1497 2016-11-18  Jeff Law  <law@redhat.com>
1499         PR target/25112
1500         * config/m68k/m68k.c (moveq feeding equality comparison): New
1501         peepholes.
1502         * config/m68k/predicates.md (addq_subq_operand): New predicate.
1503         (equality_comparison_operator): Likewise.
1505 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1507         * rtlanal.c (load_extend_op): Move to...
1508         * rtl.h: ...here and make inline.
1510 2016-11-18  Terry Guo  <terry.guo@arm.com>
1511             Thomas Preud'homme  <thomas.preudhomme@arm.com>
1513         * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1514         * config/arm/arm-opts.h: Include arm-flags.h.
1515         (struct arm_arch_core_flag): Define.
1516         (arm_arch_core_flags): Define.
1517         * config/arm/arm-protos.h: Include arm-flags.h
1518         (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1519         FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1520         FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1521         FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1522         FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1523         FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1524         FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1525         FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1526         FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1527         FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1528         FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1529         FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1530         FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1531         FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1532         ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1533         ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1534         ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1535         ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1536         ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1537         ARM_FSET_CPU_SUBSET): Move to ...
1538         * config/arm/arm-flags.h: This new file.
1539         * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1540         (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1541         (TARGET_MODE_SPECS): Define.
1542         (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1544 2016-11-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1546         * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1547         FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1548         FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1549         FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1550         FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1551         FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1552         FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1553         missing and make value unsigned.
1554         (arm_feature_set): Use unsigned entries instead of unsigned long.
1556 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1558         Re-apply after PR bootstrap/77359 is fixed:
1559         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1561         * explow.c (get_dynamic_stack_size): Take known alignment of stack
1562         pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1563         size needed.
1565 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1567         PR bootstrap/77359
1568         * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1569         variables in functions calling alloca.  Also update the ASCII
1570         drawings.
1571         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1572         (STACK_DYNAMIC_OFFSET): Likewise.
1573         * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1574         (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1575         macros to aix.h.
1577 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1578             Alan Hayward  <alan.hayward@arm.com>
1579             David Sherwood  <david.sherwood@arm.com>
1581         * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1582         * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1583         (add_const_value_attribute): Likewise.
1584         * explow.c (plus_constant): Likewise.
1585         * expmed.c (expand_mult, make_tree): Likewise.
1586         * expr.c (convert_modes): Likewise.
1587         * loop-doloop.c (doloop_optimize): Likewise.
1588         * postreload.c (reload_cse_simplify_set): Likewise.
1589         * simplify-rtx.c (simplify_const_unary_operation): Likewise
1590         (simplify_binary_operation_1, simplify_const_binary_operation):
1591         Likewise.
1592         (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1593         * wide-int.h: Update documentation to recommend rtx_mode_t
1594         instead of std::make_pair.
1596 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
1597             Alan Hayward  <alan.hayward@arm.com>
1598             David Sherwood  <david.sherwood@arm.com>
1600         * tree.h (SET_DECL_MODE): New macro.
1601         * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1602         (expand_gimple_basic_block): Likewise.
1603         * function.c (split_complex_args): Likeise.
1604         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1605         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1606         * stor-layout.c (layout_decl, relayout_decl): Likewise.
1607         (finish_bitfield_representative): Likewise.
1608         * tree.c (make_node_stat): Likewise.
1609         * tree-inline.c (remap_ssa_name): Likewise.
1610         (tree_function_versioning): Likewise.
1611         * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1612         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1613         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1614         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1615         * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1616         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1617         * varasm.c (make_debug_expr_from_rtl): Likewise.
1619 2016-11-18  Segher Boessenkool  <segher@kernel.crashing.org>
1621         PR rtl-optimization/71785
1622         * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1623         (duplicate_computed_gotos): New function.
1624         (pass_duplicate_computed_gotos::execute): Rewrite.
1626 2016-11-17  Jeff Law  <law@redhat.com>
1628         PR target/47192
1629         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1630         barrier prior to deallocating the stack.
1632 2016-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
1634         * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1635         to make better use of cmem loads in the case where a single bit is
1636         being accessed.
1637         * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1639 2016-11-17  Andrew Senkevich <andrew.senkevich@intel.com>
1641         * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1642         F_AVX5124FMAPS.
1643         (isa_names_table): Handle new features.
1645 2016-11-17  Kirill Yukhin  <kirill.yukhin@gmail.com>
1646             Andrew Senkevich <andrew.senkevich@intel.com>
1648         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1649         OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1650         OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1651         (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1652         * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1653         * config/i386/avx5124fmapsintrin.h: New file.
1654         * config/i386/avx5124vnniwintrin.h: Ditto.
1655         * config/i386/constraints.md (h): New constraint.
1656         * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1657         * config/i386/driver-i386.c (host_detect_local_cpu):
1658         Detect avx5124fmaps, avx5124vnniw.
1659         * config/i386/i386-builtin-types.def: Add types
1660         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1661         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1662         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1663         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1664         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1665         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1666         * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1667         __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1668         __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1669         __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1670         __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1671         __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1672         __builtin_ia32_vp4dpwssds_mask): New.
1673         * config/i386/i386-c.c (ix86_target_macros_internal):
1674         Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1675         * config/i386/i386-modes.def: Fixed comment typos, added new
1676         modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1677         * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1678         -mavx5124vnniw.
1679         (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1680         (ix86_option_override_internal): Handle new options.
1681         (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1682         avx5124vnniw.
1683         (ix86_expand_builtin): Handle new builtins.
1684         (ix86_additional_allocno_class_p): New.
1685         * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1686         TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1687         (reg_class): Add MOD4_SSE_REGS.
1688         (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1689         * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1690         * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1691         avx5124vnniwintrin.h.
1692         * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1693         UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1694         (define_mode_iterator IMOD4): New.
1695         (define_mode_attr imod4_narrow): Ditto.
1696         (define_insn "mov<mode>"): Ditto.
1697         (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1698         (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1699         (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1700         (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1701         (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1702         (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1703         (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1704         (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1705         (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1706         (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1707         (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1708         (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1709         (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1710         (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1711         (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1712         (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1713         (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1714         (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1715         * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1716         * genmodes.c (mode_size_inline): Extend return type.
1717         * machmode.h (mode_size, mode_base_align): Extend type.
1719 2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
1721         PR target/78101
1722         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1723         the appropriate checks for SFmode/DFmode load/stores in GPR
1724         registers.
1725         (fusion_addis_mem_combo_store): Likewise.
1726         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1727         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1728         d-form instructions for traditional Altivec registers.
1729         (emit_fusion_p9_load): Likewise.
1730         (emit_fusion_p9_store): Likewise.
1731         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1732         early clobber from scratch register.  Do not match if the register
1733         being stored is the scratch register.
1734         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1735         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1736         instructions for traditional Altivec registers.
1737         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1738         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1739         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1741 2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1743         PR target/77933
1744         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1745         being live in the function and lr needing to be saved.  Distinguish
1746         between already saved pushable registers and registers to push.
1747         Check for LR being an available pushable register.
1749 2016-11-17  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1751         * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1752         string input is a string constant.
1753         * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1754         via cmpstrnsi even if neither string is constant.
1756 2016-11-17  Jakub Jelinek  <jakub@redhat.com>
1758         PR middle-end/78201
1759         * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1760         Don't test decl != NULL.  Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1761         instead, return false if it is NULL, or doesn't fit into uhwi, or
1762         is larger or equal to targetm.max_anchor_offset.
1764 2016-11-17  Pip Cet  <pipcet@gmail.com>
1765             Eric Botcazou  <ebotcazou@adacore.com>
1767         PR rtl-optimization/78355
1768         * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1769         needs to deal with unaligned accesses.
1770         * doc/tm.texi: Regenerate.
1771         * lra-constraints.c (simplify_operand_subreg): Only invoke
1772         SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1774 2016-11-17  David Malcolm  <dmalcolm@redhat.com>
1776         * input.c (selftest::test_lexer_string_locations_long_line): New
1777         function.
1778         (selftest::test_lexer_string_locations_raw_string_multiline): New
1779         function.
1780         (selftest::input_c_tests): Call the new functions, via
1781         for_each_line_table_case.
1783 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1785         * config/aarch64/aarch64.md (mov<mode>): Call
1786         aarch64_split_dimode_const_store on DImode constant stores.
1787         * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1788         New prototype.
1789         * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1790         function.
1792 2016-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1793             Richard Biener  <rguenther@suse.de>
1795         PR tree-optimization/77848
1796         * tree-if-conv.c (tree_if_conversion): Always version loops unless
1797         the user specified -ftree-loop-if-convert.
1799 2016-11-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1801         PR target/77308
1802         * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1803         *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1804         *thumb2_strd_base_neg): Recognize insn regardless of
1805         current_tune->prefer_ldrd_strd.
1806         * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1807         whenever possible.
1809 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
1811         * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1812         instruction type.
1814 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
1816         * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1817         for arcem.
1818         * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1819         * config/arc/arc-cpus.def (quarkse_em): Add.
1820         * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1821         * config/arc/arc-opts.h (FPX_QK): Define.
1822         * config/arc/arc-tables.opt: Regenerate.
1823         * config/arc/arc.c (gen_compare_reg): Change.
1824         (arc_register_move_cost): Avoid Dy,Dx moves.
1825         * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1826         (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1827         * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1828         New expands.
1829         * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1830         (fix_truncsfsi2_fpu): Rename.
1831         * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1832         (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1833         (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1834         * config/arc/t-multilib: Regenerate.
1836 2016-11-17  Georg-Johann Lay  <avr@gjlay.de>
1838         * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1839         appropriate.
1840         (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1841         (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1842         (avr_rtx_costs_1, extra_constraint_Q): Same.
1843         (avr_address_cost): Use SUBREG_P if possible.
1845 2016-11-17  Richard Biener  <rguenther@suse.de>
1847         PR middle-end/78383
1848         * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1849         non-local goto into CFG.
1851 2016-11-17  Richard Biener  <rguenther@suse.de>
1853         * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1854         backward compatibility.
1855         * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1856         * tree-if-conv.c (pass_if_conversion::gate): Do not test
1857         flag_tree_loop_if_convert_stores.
1858         (pass_if_conversion::execute): Likewise.
1860 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1862         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1863         const_double code before calling aarch64_float_const_zero_rtx_p.
1865 2016-11-17  Richard Biener  <rguenther@suse.de>
1867         PR tree-optimization/78306
1868         * ipa-inline-analysis.c (initialize_inline_failed): Do not
1869         inhibit inlining if function calls cilk_spawn.
1870         (can_inline_edge_p): Likewise.
1872 2016-11-17  Richard Biener  <rguenther@suse.de>
1874         PR middle-end/78305
1875         * fold-const.c (negate_expr_p): Fix multiplication case.
1877 2016-11-17  Chung-Lin Tang  <cltang@codesourcery.com>
1879         PR target/78357
1880         * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1881         condition.
1882         (TARGET_INIT_LIBFUNCS): Delete definition and...
1883         * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1884         comments.
1886 2016-11-17  Krister Walfridsson  <krister.walfridsson@gmail.com>
1888         * config/netbsd-stdint.h: New.
1889         * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1890         (x86_64-*-netbsd*): Likewise.
1892 2016-11-16  Andrew PInski  <apinski@cavium.com>
1894         * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1895         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1896         flag_aarch64_verbose_cost instead of checking for details dump.
1897         (aarch64_rtx_costs_wrapper): Likewise.
1899 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
1901         PR rtl-optimization/78378
1902         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1903         inner only if pos is 0.  Fix up formatting.
1905 2016-11-17  Alan Modra  <amodra@gmail.com>
1907         PR rtl-optimization/78325
1908         PR rtl-optimization/70890
1909         * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1910         for dead regno.
1912 2016-11-16  Jason Merrill  <jason@redhat.com>
1914         * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1916 2016-11-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1917             Richard Biener  <rguenther@suse.de>
1919         PR tree-optimization/77848
1920         * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1921         an outer loop, only save basic block aux information for the inner
1922         loop.
1923         (versionable_outer_loop_p): New function.
1924         (tree_if_conversion): Version the outer loop instead of the inner
1925         one if the pattern will be recognized for outer-loop
1926         vectorization.
1928 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
1930         * gcc/bb-reorder.c: Remove 'toplev.h' include.
1931         (pass_partition_blocks::gate): No longer check
1932         user_defined_section_attribute, instead check the function decl
1933         for a section attribute.
1934         * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1935         set user_defined_section_attribute.
1936         * gcc/final.c (rest_of_handle_final): Likewise.
1937         * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1938         * gcc/toplev.h: Remove declaration of
1939         user_defined_section_attribute.
1941 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1943         * config/mips/mips.md (casesi_internal_mips16_<mode>):
1944         Explicitly switch between JR and JRC for the table jump.  Adjust
1945         instruction count.
1947 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1949         * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1950         `insn_count' to 11 rather than 16.
1952 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1954         * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1955         `ltu' rather than `leu' operation in the RTL pattern
1957 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1959         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1960         missing <d> instruction prefixes throughout.  Correct
1961         formatting.
1963 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
1965         * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1966         rather than R_MIPS_JALR relocation in microMIPS code.  Do not
1967         cancel short delay slots in PIC call relaxation.
1969 2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1971         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1972         general register with general register or ARM constant into SP
1973         register.
1975 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
1977         PR fortran/78299
1978         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1979         that loop->header == body_bb if broken_loop.
1981 2015-11-16  Wilco Dijkstra  <wdijkstr@arm.com>
1983         * tree-ssa-math-opts.c (bswap_replace): Remove test
1984         of SLOW_UNALIGNED_ACCESS.
1986 2016-11-16  Alexander Monakov  <amonakov@ispras.ru>
1988         * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1989         is selected.  Pass -mgomp to offload compiler in OpenMP case.
1990         * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1991         declaration from nvptx.c.
1992         (nvptx_gen_shuffle): Declare.
1993         (nvptx_output_set_softstack): Declare.
1994         * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1995         (need_softstack_decl): New variable.
1996         (need_unisimt_decl): New variable.
1997         (diagnose_openacc_conflict): New.  Use it...
1998         (nvptx_option_override): ...here.  Handle TARGET_GOMP.
1999         (nvptx_encode_section_info): Handle "shared" attribute.
2000         (write_as_kernel): Restrict to OpenACC target regions.
2001         (init_softstack_frame): New.
2002         (nvptx_init_unisimt_predicate): New.
2003         (write_omp_entry): New.  Use it...
2004         (nvptx_declare_function_name): ...here to emit OpenMP target region
2005         entrypoints.  Handle TARGET_SOFT_STACK.  Call
2006         nvptx_init_unisimt_predicate.
2007         (nvptx_output_set_softstack): New.
2008         (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
2009         (nvptx_gen_shuffle): Export.
2010         (nvptx_output_call_insn): Handle COND_EXEC patterns.  Emit instruction
2011         predicate.
2012         (nvptx_print_operand): Fix handling of instruction predicates.
2013         (nvptx_get_unisimt_master): New helper function.
2014         (nvptx_get_unisimt_predicate): Ditto.
2015         (nvptx_call_insn_is_syscall_p): Ditto.
2016         (nvptx_unisimt_handle_set): Ditto.
2017         (nvptx_reorg_uniform_simt): New.  Transform code for -muniform-simt.
2018         (nvptx_reorg): Call nvptx_reorg_uniform_simt.
2019         (nvptx_handle_shared_attribute): New.  Use it...
2020         (nvptx_attribute_table): ... here (new entry).
2021         (nvptx_record_offload_symbol): Handle NULL attributes.
2022         (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
2023         (nvptx_simt_vf): New.
2024         (TARGET_SIMT_VF): Define.
2025         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
2026         __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
2027         -muniform-simt option is active.
2028         (STACK_SIZE_MODE): Define.
2029         (FIXED_REGISTERS): Adjust.
2030         (SOFTSTACK_SLOT_REGNUM): New.
2031         (SOFTSTACK_PREV_REGNUM): New.
2032         (REGISTER_NAMES): Adjust.
2033         (struct machine_function): New fields.
2034         * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
2035         (UNSPEC_VOTE_BALLOT): Ditto.
2036         (UNSPEC_LANEID): Ditto.
2037         (UNSPECV_NOUNROLL): Ditto.
2038         (atomic): New attribute.
2039         (predicable): New attribute.  Generate predicated forms via
2040         define_cond_exec.
2041         (br_true): Mark as not predicable.
2042         (br_false): Ditto.
2043         (br_true_uni): Ditto.
2044         (br_false_uni): Ditto.
2045         (return): Ditto.
2046         (trap_if_true): Ditto.
2047         (trap_if_false): Ditto.
2048         (nvptx_fork): Ditto.
2049         (nvptx_forked): Ditto.
2050         (nvptx_joining): Ditto.
2051         (nvptx_join): Ditto.
2052         (nvptx_barsync): Ditto.
2053         (epilogue): Emit stack restore if TARGET_SOFT_STACK.
2054         (allocate_stack): Implement for TARGET_SOFT_STACK.  Remove unused code.
2055         (allocate_stack_<mode>): Remove unused pattern.
2056         (set_softstack_insn): New pattern.
2057         (restore_stack_block): Handle for TARGET_SOFT_STACK.
2058         (nvptx_vote_ballot): New pattern.
2059         (omp_simt_lane): Ditto.
2060         (omp_simt_last_lane): Ditto.
2061         (omp_simt_ordered): Ditto.
2062         (omp_simt_vote_any): Ditto.
2063         (omp_simt_xchg_bfly): Ditto.
2064         (omp_simt_xchg_idx): Ditto.
2065         (nvptx_nounroll): Ditto.
2066         (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
2067         (atomic_exchange<mode>): Ditto.
2068         (atomic_fetch_add<mode>): Ditto.
2069         (atomic_fetch_addsf): Ditto.
2070         (atomic_fetch_<logic><mode>): Ditto.
2071         * config/nvptx/nvptx.opt (msoft-stack): New option.
2072         (muniform-simt): Ditto.
2073         (mgomp): Ditto.
2074         * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
2075         * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
2076         * doc/invoke.texi (msoft-stack): Document.
2077         (muniform-simt): Document
2078         (mgomp): Document.
2079         * doc/tm.texi: Regenerate.
2080         * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
2081         * target.def: Define it.
2082         * target-insns.def (omp_simt_lane): New.
2083         (omp_simt_last_lane): New.
2084         (omp_simt_ordered): New.
2085         (omp_simt_vote_any): New.
2086         (omp_simt_xchg_bfly): New.
2087         (omp_simt_xchg_idx): New.
2089 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
2091         * config/mips/mips-protos.h (mips_set_text_contents_type): New
2092         prototype.
2093         * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
2094         (ASM_OUTPUT_CASE_END): Likewise.
2095         * config/mips/mips.c (mips_set_text_contents_type): New function.
2096         (mips16_emit_constants): Record the pool's initial label number
2097         with the `consttable' insn.  Emit a `consttable_end' insn at the end.
2098         (mips_final_prescan_insn): Call `mips_set_text_contents_type'
2099         for `consttable' insns.
2100         (mips_final_postscan_insn): Call `mips_set_text_contents_type'
2101         for `consttable_end' insns.
2102         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
2103         (consttable): Add operand.
2104         (consttable_end): New insn.
2106 2016-11-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
2108         * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
2109         * tree-if-conv.c (tree_if_conversion): Make public.
2110         * * tree-if-conv.h: New file.
2111         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
2112         dynamic alias checks for epilogues.
2113         * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
2114         * tree-vect-loop.c: include tree-if-conv.h.
2115         (new_loop_vec_info): Add zeroing orig_loop_info field.
2116         (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
2117         (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
2118         if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
2119         using passed argument.
2120         (vect_transform_loop): Check if created epilogue should be returned
2121         for further vectorization with less vf.  If-convert epilogue if
2122         required. Print vectorization success for epilogue.
2123         * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
2124         if it is required, pass loop_vinfo produced during vectorization of
2125         loop body to vect_analyze_loop.
2126         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2127         orig_loop_info.
2128         (LOOP_VINFO_ORIG_LOOP_INFO): New.
2129         (LOOP_VINFO_EPILOGUE_P): New.
2130         (LOOP_VINFO_ORIG_VECT_FACTOR): New.
2131         (vect_do_peeling): Change prototype to return epilogue.
2132         (vect_analyze_loop): Add argument of loop_vec_info type.
2133         (vect_transform_loop): Return created loop.
2135 2016-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2137         * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
2138         component as used also if LR_REGNO is a live input to the bb.
2139         * df-scan.c (df_get_entry_block_def_set): Return immediately after
2140         clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
2141         (df_get_exit_block_use_set): Ditto.
2142         * df.h (df_scan_flags): New enum.
2143         * shrink-wrap.c (try_shrink_wrapping_separate): Set
2144         DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
2145         df_update_entry_block_defs and df_update_exit_block_uses
2146         at the start; clear the flag and call those functions at the end.
2148 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2149             Alan Hayward  <alan.hayward@arm.com>
2150             David Sherwood  <david.sherwood@arm.com>
2152         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
2153         nb_iterations to the number of latch iterations rather than the
2154         number of loop iterations.
2156 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2157             Alan Hayward  <alan.hayward@arm.com>
2158             David Sherwood  <david.sherwood@arm.com>
2160         * combine.c (maybe_swap_commutative_operands): New function.
2161         (combine_simplify_rtx): Use it.
2162         (change_zero_ext): Likewise.
2163         (make_compound_operation_int): New function, split out of...
2164         (make_compound_operation): ...here.  Use
2165         maybe_swap_commutative_operands for both.
2167 2016-11-16  Richard Earnshaw  <rearnsha@arm.com>
2169         * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
2170         (neon-vfpv3): New FPU, currently an alias for 'neon'.
2171         * arm/arm-tables.opt: Regenerated.
2172         * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
2173         neon-vfpv3.
2174         * doc/invoke.texi (ARM: -mfpu): Document new options.  Note that 'vfp'
2175         and 'neon' are aliases for specific implementations.
2177 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2178             Alan Hayward  <alan.hayward@arm.com>
2179             David Sherwood  <david.sherwood@arm.com>
2181         * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
2182         and use it in the final call to gen_rtx_fmt_ee.
2183         (expand_vec_cond_expr): Update accordingly.
2184         (expand_vec_cmp_expr): Likewise.
2186 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2187             Alan Hayward  <alan.hayward@arm.com>
2188             David Sherwood  <david.sherwood@arm.com>
2190         * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
2192 2016-11-16  Richard Biener  <rguenther@suse.de>
2194         PR middle-end/78333
2195         * gimplify.c (gimplify_function_tree): Do not instrument
2196         GNU extern inline functions.
2198 2016-11-16  Martin Liska  <mliska@suse.cz>
2200         PR sanitizer/78270
2201         * gimplify.c (gimplify_switch_expr): Always save previous
2202         gimplify_ctxp->live_switch_vars.
2204 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
2206         * config/arc/arc.md (movb peephole2): New peephole2 to merge two
2207         zero_extract operations to allow a movb to occur.
2208         * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
2209         * testsuite/gcc.target/arc/movb-2.c: Likewise.
2210         * testsuite/gcc.target/arc/movb-5.c: Likewise.
2211         * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
2212         little endian arc.
2214 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2215             Alan Hayward  <alan.hayward@arm.com>
2216             David Sherwood  <david.sherwood@arm.com>
2218         * expr.c (emit_group_load_1): Tighten check for whether an
2219         access involves only one operand of a CONCAT.  Use extract_bit_field
2220         for constants if the bit range does span the whole operand.
2222 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2223             Alan Hayward  <alan.hayward@arm.com>
2224             David Sherwood  <david.sherwood@arm.com>
2226         * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
2228 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2229             Alan Hayward  <alan.hayward@arm.com>
2230             David Sherwood  <david.sherwood@arm.com>
2232         * tree-vect-loop.c (vect_transform_loop): Protect the updates of
2233         all three iteration counts with an any_* test.  Use a single update
2234         for each count.  Fix the calculation of nb_iterations_estimate.
2236 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2238         * config/pdp11/pdp11.c: Include dbxout.h.
2240 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
2242         * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
2244 2016-11-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2246         PR target/78364
2247         * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
2248         proper ranges for an SBFX instruction.
2249         (extzv_t2): Likewise for UBFX.
2251 2016-11-16  Richard Biener  <rguenther@suse.de>
2253         PR tree-optimization/78348
2254         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
2255         (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
2256         (classify_partition): Set PKIND_MEMCPY if dependence analysis
2257         revealed no dependency, PKIND_MEMMOVE otherwise.
2259 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
2261         PR sanitizer/77823
2262         * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
2263         it points to non-NULL tree, use it instead of ubsan_create_data.
2264         (instrument_si_overflow): Handle vector signed integer overflow
2265         checking.
2266         * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
2267         * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
2268         vector IFN_UBSAN_CHECK_*.
2269         * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
2270         pass it through to ubsan_build_overflow_builtin.
2271         (expand_neg_overflow, expand_mul_overflow): Likewise.
2272         (expand_vector_ubsan_overflow): New function.
2273         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
2274         expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
2275         (expand_arith_overflow): Adjust expand_*_overflow callers.
2277 2016-11-16  Matthias Klose  <doko@ubuntu.com>
2279         * doc/install.texi: Remove references to java/libjava.
2281 2016-11-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
2283         * tree-ssa-coalesce.c (register_default_def): Remove
2284         register_ssa_partition.
2285         (create_outofssa_var_map): Likewise.
2286         * tree-ssa-live.c (register_ssa_partition_check): Remove.
2287         * tree-ssa-live.h (register_ssa_partition): Likewise.
2289 2016-11-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2291         * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
2292         Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
2293         Use DEF_ATTR_STRING for string arguments.  Use RTL_HASH for
2294         integer arguments.  Only set ATTR_PERMANENT_P on newly hashed
2295         rtx when all sub-rtx are also permanent.
2296         (attr_eq): Simplify.
2297         (attr_copy_rtx): Remove.
2298         (make_canonical, get_attr_value): Use attr_equal_p.
2299         (copy_boolean): Rehash NOT.
2300         (simplify_test_exp_in_temp,
2301         optimize_attrs): Remove call to attr_copy_rtx.
2302         (attr_alt_intersection, attr_alt_union,
2303         attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
2304         (make_automaton_attrs): Use attr_eq.
2306 2016-11-15  Matthias Klose  <doko@ubuntu.com>
2308         * doc/install.texi: Remove references to java/libjava.
2309         * doc/sourcebuild.texi: Likewise.
2310         * doc/invoke.texi: Likewise.
2311         * doc/standards.texi: Likewise.
2313 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2314             Alan Hayward  <alan.hayward@arm.com>
2315             David Sherwood  <david.sherwood@arm.com>
2317         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
2318         of VOIDmode.
2319         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2320         * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2321         * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2322         * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2323         * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2324         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2325         * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
2327 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2328             Alan Hayward  <alan.hayward@arm.com>
2329             David Sherwood  <david.sherwood@arm.com>
2331         * dce.c (check_argument_store): Pass the size instead of
2332         the memory reference.
2333         (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
2335 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2336             Alan Hayward  <alan.hayward@arm.com>
2337             David Sherwood  <david.sherwood@arm.com>
2339         * alias.c (canon_rtx): Use simplify_gen_binary.
2341 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2342             Alan Hayward  <alan.hayward@arm.com>
2343             David Sherwood  <david.sherwood@arm.com>
2345         * rtl.h (load_extend_op): Declare.
2346         * rtlanal.c (load_extend_op): New function.
2347         (nonzero_bits1): Use it.
2348         (num_sign_bit_copies1): Likewise.
2349         * cse.c (cse_insn): Likewise.
2350         * fold-const.c (fold_single_bit_test): Likewise.
2351         (fold_unary_loc): Likewise.
2352         * fwprop.c (free_load_extend): Likewise.
2353         * postreload.c (reload_cse_simplify_set): Likewise.
2354         (reload_cse_simplify_operands): Likewise.
2355         * combine.c (try_combine): Likewise.
2356         (simplify_set): Likewise.  Remove redundant SUBREG_BYTE and
2357         subreg_lowpart_p checks.
2359 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2360             Alan Hayward  <alan.hayward@arm.com>
2361             David Sherwood  <david.sherwood@arm.com>
2363         * combine.c (simplify_shift_const_1): Use the number of bits
2364         in the inner mode to determine the range of the shift.
2365         When handling shifts of vectors, skip any rules that apply
2366         only to scalars.
2368 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2369             Alan Hayward  <alan.hayward@arm.com>
2370             David Sherwood  <david.sherwood@arm.com>
2372         * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
2373         handling VOIDmode.
2375 2016-11-15  Matthias Klose  <doko@ubuntu.com>
2377         * doc/install.texi: Remove references to gcj/libjava.
2378         * doc/invoke.texi: Likewise.
2380 2016-11-15  Jeff Law  <law@redhat.com>
2382         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2383         parameter.  Callers changed.
2384         (check-subpath_and_update_thread_path): Extracted from
2385         fsm_find_control_statement_thread_paths.
2386         (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2387         (handle_phi, handle_assignment): Allow any constant node, not
2388         just INTEGER_CST.
2390 2016-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
2392         * config/arc/arc-arch.h: New file.
2393         * config/arc/arc-arches.def: Likewise.
2394         * config/arc/arc-cpus.def: Likewise.
2395         * config/arc/arc-options.def: Likewise.
2396         * config/arc/t-multilib: Likewise.
2397         * config/arc/genmultilib.awk: Likewise.
2398         * config/arc/genoptions.awk: Likewise.
2399         * config/arc/arc-tables.opt: Likewise.
2400         * config/arc/driver-arc.c: Likewise.
2401         * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2402         * common/config/arc/arc-common.c (arc_handle_option): Trace
2403         toggled options.
2404         * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2405         options; check for supported cpu against arc-cpus.def file.
2406         (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2407         TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2408         * config/arc/arc-c.def: Add emacs local variables.
2409         * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2410         (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2411         (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2412         (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2413         (DEFAULT_arc_fpu_build): Define.
2414         (DEFAULT_arc_mpy_option): Define.
2415         * config/arc/arc-protos.h (arc_init): Delete.
2416         * config/arc/arc.c (arc_cpu_name): New variable.
2417         (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2418         (arc_arc700, arc_arc600, arc_arc601): New variable.
2419         (arc_init): Add static; remove selection of default tune value,
2420         cleanup obsolete error messages.
2421         (arc_override_options): Make use of .def files for selecting the
2422         right cpu and option configurations.
2423         * config/arc/arc.h (stdbool.h): Include.
2424         (TARGET_CPU_DEFAULT): Define.
2425         (CPP_SPEC): Remove mcpu=NPS400 handling.
2426         (arc_cpu_to_as): Declare.
2427         (EXTRA_SPEC_FUNCTIONS): Define.
2428         (OPTION_DEFAULT_SPECS): Likewise.
2429         (ASM_DEFAULT): Remove.
2430         (ASM_SPEC): Use arc_cpu_to_as.
2431         (DRIVER_SELF_SPECS): Remove deprecated options.
2432         (arc_base_cpu): Declare.
2433         (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2434         (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2435         variable.
2436         (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2437         * config/arc/arc.md (attr_cpu): Remove.
2438         * config/arc/arc.opt (mno-mpy): Deprecate.
2439         (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2440         (mcpu=ARCHS): Remove.
2441         (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2442         Deprecate.
2443         (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2444         (arc_fpu): Use new defines.
2445         (mpy-option): Change to use numeric or string like inputs.
2446         * config/arc/t-arc (driver-arc.o): New target.
2447         (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2448         * config/arc/t-arc-newlib: Delete.
2449         * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2450         * doc/invoke.texi (ARC): Update arc options.
2452 2016-11-15  Maciej W. Rozycki  <macro@imgtec.com>
2454         * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2455         insn at the beginning of the constant pool.
2456         (mips_insert_insn_pseudos): New function.
2457         (mips_machine_reorg2): Call it.
2458         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2459         UNSPEC_INSN_PSEUDO enum values.
2460         (insn_pseudo, consttable): New insns.
2462 2016-11-15  Michael Matz  <matz@suse.de>
2464         PR missed-optimization/77881
2465         * combine.c (simplify_comparison): Remove useless subregs
2466         also inside the loop, not just after it.
2467         (make_compound_operation): Recognize some subregs as being
2468         masking as well.
2470 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
2471             Alan Hayward  <alan.hayward@arm.com>
2472             David Sherwood  <david.sherwood@arm.com>
2474         * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2475         GET_MODE_SIZE typo.
2477 2016-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2479         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2480         for using xxinsertw and vinsert{b,h} on ISA 3.0.
2482         * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2483         (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2484         vinsert{b,h} on ISA 3.0.
2486 2016-11-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2488         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2489         and cmpnop in two steps: first the ones not accessed in original gimple
2490         expression in a endian independent way and then the ones not accessed
2491         in the final result in an endian-specific way.
2492         (bswap_replace): Stop doing big endian adjustment.
2494 2016-11-14  Uros Bizjak  <ubizjak@gmail.com>
2496         * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2497         (*ashl<mode>3_doubleword): Ditto.
2499 2016-11-14  Martin Liska  <mliska@suse.cz>
2501         * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2503 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
2504             Richard Biener  <rguenther@suse.de>
2506         * doc/invoke.texi (fgimple): Document.
2507         * dumpfile.h (TDF_GIMPLE): Add.
2508         * dumpfile.c (dump_options): Add gimple.
2509         * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2510         for TDF_GIMPLE.
2511         (dump_gimple_label): Likewise.
2512         (dump_gimple_phi): Likewise.
2513         (dump_gimple_bb_header): Likewise.
2514         (dump_phi_nodes): Likewise.
2515         (pp_cfg_jump): Likewise.  Pass in dump flags.
2516         (dump_implicit_edges): Adjust.
2517         * passes.c (pass_init_dump_file): Do not dump function header
2518         for TDF_GIMPLE.
2519         * tree-cfg.c (dump_function_to_file): Dump function return type
2520         and __GIMPLE keyword for TDF_GIMPLE.  Change guard for dumping
2521         GIMPLE stmts.
2522         * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2523         (dump_generic_node): Likewise.
2524         * function.h (struct function): Add pass_startwith member.
2525         * passes.c (execute_one_pass): Implement startwith.
2526         * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2527         and assign proper version for parsed ssa names.
2528         * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2529         * internal-fn.c (expand_PHI): New function.
2530         * internal-fn.h (expand_PHI): Declared here.
2531         * internal-fn.def: New defination for PHI.
2532         * tree-cfg.c (lower_phi_internal_fn): New function.
2533         (build_gimple_cfg): Call it.
2534         (verify_gimple_call): Condition for passing label as arg in internal
2535         function PHI.
2536         * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2537         present PHIs with arguments.
2539 2016-11-14  Martin Liska  <mliska@suse.cz>
2541         PR bootstrap/78069
2542         * common.opt: Add prefer-atomic as a new enum value for
2543         -fprofile-update.
2544         * coretypes.h: Likewise.
2545         * doc/invoke.texi: Document the new option value.
2546         * gcc.c: Replace atomic with prefer-atomic.  Remove warning.
2547         * tree-profile.c (tree_profiling): Select default value
2548         of -fprofile-update when 'prefer-atomic' is selected.
2550 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
2552         * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2553         (cortex_a57_alu_shift): ...here.
2555 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
2557         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2558         Use bfx attribute.
2559         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2560         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2561         (<optab>si3_insn_uxtw): Likewise.
2562         (<optab><mode>3_insn): Likewise.
2563         (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2564         (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2565         (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2566         (<optab><mode>): Likewise.
2567         (insv<mode>): Likewise.
2568         (andim_ashift<mode>_bfiz): Likewise.
2569         * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2570         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2571         * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2572         * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2573         (exynos_m1_alu_p): Likewise.
2574         * config/arm/types.md: Add bfx.
2575         * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2577 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
2579         * config/aarch64/aarch64.c (cortexa57_vector_cost):
2580         Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2582 2016-11-14  Richard Biener  <rguenther@suse.de>
2584         PR tree-optimization/78312
2585         * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2586         flow-sensitive info.
2588 2016-11-14  Georg-Johann Lay  <avr@gjlay.de>
2590         PR target/78093
2591         * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2592         * config/avr/avr.opt (-mabsdata): New option.
2593         * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2594         * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2595         -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2596         * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2597         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2598         spec depending on AVR_ISA_LDS.
2599         * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2601 2016-11-13  Jakub Jelinek  <jakub@redhat.com>
2603         * match.pd: Don't try to compare addresses of variables with
2604         DECL_VALUE_EXPR.
2606 2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
2608         * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2609         (propagate_vr_accross_jump_function): Handle unary expressions.
2610         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2611         (load_from_param_1): New.
2612         (load_from_unmodified_param): Factor common part into load_from_param_1.
2613         (load_from_param): New.
2614         (compute_complex_assign_jump_func): Handle unary expressions.
2615         (update_jump_functions_after_inlining): Likewise.
2616         (ipa_write_jump_function): Likewise.
2617         (ipa_read_jump_function): Likewise.
2619 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2621         PR c/35503
2622         * doc/invoke.texi: Document Wrestrict.
2623         * pretty-print.c (pp_format): Add case for "Z" specifier.
2624         (test_pp_format): Test "Z" specifier.
2626 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2628         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2629         original function needs a static chain.
2631 2016-11-13  David Edelsohn  <dje.gcc@gmail.com>
2633         PR target/78336
2634         * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2635         ASM_OUTPUT_DEF.
2637 2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
2639         PR target/77957
2640         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2641         return early if !optional_tbtab.
2643 2016-11-11  Eric Botcazou  <ebotcazou@adacore.com>
2645         PR rtl-optimization/59461
2646         * doc/rtl.texi (paradoxical subregs): Add missing word.
2647         * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2648         in modes with precision larger than that of last_set_mode.
2649         * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2650         set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2651         REGs to paradoxical SUBREGs.
2652         (num_sign_bit_copies1) <SUBREG>: Likewise.  Check that the mode is not
2653         larger than a word before invoking LOAD_EXTEND_OP on it.
2655 2016-11-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2657         PR target/78243
2658         * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2659         element order for little endian ordering.
2661         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2662         VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2663         number.
2665 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
2667         PR target/78310
2668         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2669         when calculating operand 2.
2670         (rotate to rotatex zext splitter): Ditto.
2672 2016-11-11  Jeff Law  <law@redhat.com>
2674         * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2675         function.
2676         (stmt_uses_name_in_undefined_way): New function, extracted from
2677         find_implicit_erroneous_behavior and extended for div/mod case.
2678         (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2679         find_explicit_erroneous_behavior and extended for div/mod case.
2680         (find_implicit_erroneous_behavior): Use new helper function.
2681         (find_explicit_erroneous_behavior): Use new helper function.
2683 2016-11-11  Richard Biener  <rguenther@suse.de>
2685         PR tree-optimization/71575
2686         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2687         bogus assert.
2689 2016-11-11  Richard Biener  <rguenther@suse.de>
2691         PR middle-end/78295
2692         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2693         about uninitialized destination arg of BIT_INSERT_EXPR.
2695 2016-11-10  Sandra Loosemore  <sandra@codesourcery.com>
2697         PR c/37998
2698         * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2699         terminology.  Expand to remove ambiguity.
2701 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
2703         PR rtl-optimization/78232
2704         * combine.c (try_combine): Add a big comment about why reusing i2dest
2705         is undesirable.
2706         (change_zero_ext): Do not call simplify_gen_binary, do the
2707         simplifications manually.
2709 2016-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2711         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2712         enable HImode and QImode to go in vector registers by default if
2713         the -mvsx-small-integer option is enabled.
2714         (rs6000_secondary_reload_simple_move): Likewise.
2715         (rs6000_preferred_reload_class): Don't force integer constants to
2716         be loaded into vector registers that we can easily make into
2717         memory (or being created in the GPRs and moved over with direct move).
2718         * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2719         (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2720         vector extraction on ISA 3.0 when the scalar integer can be
2721         allocated in vector registers.  Generate the VEC_SELECT directy,
2722         and don't use UNSPEC's to avoid having the scalar type in a vector
2723         register.  Make the expander target registers, and let the
2724         combiner fold in results storing to memory, if the machine
2725         supports stores.
2726         (vsx_extract_<mode>_di): Likewise.
2727         (vsx_extract_<mode>_p9): Likewise.
2728         (vsx_extract_<mode>_di_p9): Likewise.
2729         (vsx_extract_<mode>_store_p9): Likewise.
2730         (vsx_extract_si): Likewise.
2731         (vsx_extract_<mode>_p8): Likewise.
2732         (p9_lxsi<wd>zx): Delete, no longer used.
2733         (p9_stxsi<wd>x): Likewise.
2734         * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2735         integers in vector registers for ISA 3.0.
2736         (QHI): Update comment.
2737         (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2738         vector extract instructions in sign/zero extend.
2739         (zero_extendhi<mode>): Likewise.
2740         (extendqi<mode>): Likewise.
2741         (extendhi<mode>2): Likewise.
2742         (HImode splitter for load/sign extend in vector register): Likewise.
2743         (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2744         optimizing floating point conversions to/from small data types and
2745         rewrite it to support QImode/HImode being allowed in vector
2746         registers on ISA 3.0.
2747         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2748         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2749         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2750         (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2751         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2752         (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2753         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2754         VSPLITISW on ISA 2.07.
2755         (movhi_internal): Combine movhi_internal and movqi_internal into
2756         one mov<mode>_internal with an iterator.  Add support for QImode
2757         and HImode being allowed in vector registers.  Make large number
2758         of attributes and constraints easier to read.
2759         (movqi_internal): Likewise.
2760         (mov<mode>_internal): Likewise.
2761         (movdi_internal64): Fix constraint to allow loading -16..15 with
2762         VSPLITISW on ISA 2.07.
2763         (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2764         well as DImode.
2766 2016-11-10  Pat Haugen  <pthaugen@us.ibm.com>
2768         PR rtl-optimization/78241
2769         * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2770         but emit initial peel copy if niter expr is not reliable.
2772 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
2774         * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2775         (maybe_record_trace_start): If the CFI is different on the new and
2776         old paths, print out both to the dump file before ICEing.
2778 2016-11-10  Vladimir Makarov  <vmakarov@redhat.com>
2780         * target.def (additional_allocno_class_p): New.
2781         * hooks.h (hook_bool_reg_class_t_false): New prototype.
2782         * hooks.c (hook_bool_reg_class_t_false): New.
2783         * ira.c (setup_allocno_and_important_classes): Use the new hook.
2784         * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2785         * doc/tm.texi: Update.
2787 2016-11-10  Jason Merrill  <jason@redhat.com>
2789         * gengtype.c (new_structure): Append to structures list.
2790         (find_structure): Likewise.
2792 2016-11-10  Jim Wilson  <jim.wilson@linaro.org>
2794         * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2795         this_dir is 2.  Check for this_dir non-zero before dir != this_dir
2796         check.
2798 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
2800         * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2801         (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2802         TRUNC_DIV_EXPR.
2803         * gimplify.c (gimplify_scan_omp_clauses): Likewise.  Set
2804         ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2805         Remove omp_no_lastprivate callers.  Propagate lastprivate on combined
2806         teams distribute parallel for simd even to distribute and teams
2807         construct.  For OMP_CLAUSE_DEPEND add missing break at the end of
2808         OMP_CLAUSE_DEPEND_SINK case.
2809         (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2810         (omp_no_lastprivate): Removed.
2811         (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2812         (gimplify_omp_for): Likewise.
2813         (computable_teams_clause): Fail for automatic vars from current
2814         function not yet seen in bind expr.
2815         * langhooks.c (lhd_omp_scalar_p): New function.
2816         * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2817         * varpool.c (varpool_node::get_create): Set node->offloading
2818         even for DECL_EXTERNAL decls.
2819         * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2820         (LANG_HOOKS_OMP_SCALAR_P): Define.
2821         (LANG_HOOKS_DECLS): Use it.
2823 2016-11-10  Martin Liska  <mliska@suse.cz>
2825         PR sanitizer/78270
2826         * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2827         only when SWITCH_BODY is a BIND_EXPR.
2829 2016-11-10  Pierre-Marie de Rodat  <derodat@adacore.com>
2831         PR debug/78112
2832         * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2833         on the context only when it has no DIE yet.
2835 2016-11-10  Richard Earnshaw  <rearnsha@arm.com>
2837         * arm.h (target_cpus): Delete.
2838         * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2839         * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2840         (all_architectures): Likewise.
2841         (arm_option_override): Adjust use of CPU enums.
2842         (arm_sched_reorder): Likewise.
2843         * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2844         * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2845         * arm/genopt.sh (processor_type): Prefix enumeration entries with
2846         TARGET_CPU_.
2847         * arm-tables.opt: Regenerated.
2849 2016-11-10  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
2851         * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2852         (falkor): New core.
2853         * config/aarch64/aarch64-tune.md: Regenerated.
2854         * config/arm/arm-cores.def (falkor): New core.
2855         * config/arm/arm-tables.opt: Regenerated.
2856         * config/arm/arm-tune.md: Regenerated.
2857         * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2858         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2859         * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2860         (ARM Options/-mtune): Likewise.
2862 2016-11-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
2864         Revert
2865         2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2867         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2868         (propagate_vr_accross_jump_function): Likewise.
2869         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2870         (load_from_param_1): New.
2871         (load_from_unmodified_param): Factor common part into load_from_param_1.
2872         (load_from_param): New.
2873         (compute_complex_assign_jump_func): Handle unary expressions.
2874         (ipa_write_jump_function): Likewise.
2875         (ipa_read_jump_function): Likewise.
2877 2016-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
2879         * simplify-rtx.c (simplify_binary_operation_1): Simplify
2880         (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2881         (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2882         is a const_int.
2884 2016-11-09  David Malcolm  <dmalcolm@redhat.com>
2886         * print-rtl-function.c: Include varasm.h.
2887         (print_any_param_name): New function.
2888         (print_param): New function.
2889         (print_rtx_function): Call print_param for each argument.
2890         * print-rtl.c (rtx_writer::finish_directive): New function.
2891         * print-rtl.h (rtx_writer::finish_directive): New decl.
2893 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
2895         PR target/78262
2896         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2897         operand 0 as earlyclobber.
2898         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2900 2016-11-09  Martin Liska  <mliska@suse.cz>
2902         * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2904 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
2906         PR target/77718
2907         * builtins.c (expand_builtin_memcmp): Formatting fix.
2909         * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2910         and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2911         or of them, renumber other enumerators.
2912         * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2913         * doc/invoke.texi: Document -fsanitize=shift-base and
2914         -fsanitize-shift-exponent, document -fsanitize=shift as
2915         having those 2 suboptions.
2917 2016-11-09  Richard Biener  <rguenther@suse.de>
2919         * fold-const.c (tree_swap_operands_p): Remove unused arg.
2920         * fold-const.c (tree_swap_operands_p): Likewise.
2921         (fold_binary_loc): Adjust.
2922         (fold_ternary_loc): Likewise.
2923         * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2924         * gimple-fold.c (fold_stmt_1): Likewise.
2925         * gimple-match-head.c (gimple_resimplify2): Likewise.
2926         (gimple_resimplify3): Likewise.
2927         (gimple_simplify): Likewise.
2928         * tree-ssa-dom.c (record_equality): Likewise.
2929         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2930         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2931         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2933 2016-11-09  Richard Biener  <rguenther@suse.de>
2935         * tree-ssa-dom.c (canonicalize_comparison): Remove.
2936         (optimize_stmt): Remove redundant pre-propagation canonicalization
2937         of comparison operand order.
2939 2016-11-09  Martin Liska  <mliska@suse.cz>
2941         * fold-const-call.c (fold_const_call): Fix the folding.
2943 2016-11-09  Richard Biener  <rguenther@suse.de>
2945         * common.opt (flag_evaluation_order): Remove.
2946         * expr.c (expand_operands): Remove code guarded by
2947         flag_evaluation_order.
2948         * fold-const.c (reorder_operands_p): Remove, it always returns
2949         true.
2950         (negate_expr_p): Remove calls to reorder_operands_p.
2951         (fold_negate_expr): Likewise.
2952         (tree_swap_operands_p): Likewise.
2953         (fold_binary_loc): Likewise.
2955 2016-11-09  Andreas Schwab  <schwab@suse.de>
2957         PR target/78254
2958         * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2959         insns operating on a register.
2961 2016-11-09  Richard Biener  <rguenther@suse.de>
2963         PR tree-optimization/78007
2964         * tree-vect-stmts.c (vectorizable_bswap): New function.
2965         (vectorizable_call): Call vectorizable_bswap for
2966         BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2968 2016-11-09  Richard Biener  <rguenther@suse.de>
2970         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2971         Look at the DR_BASE_ADDRESS object for forcing alignment.
2973 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2975         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2976         (propagate_vr_accross_jump_function): Likewise.
2977         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2978         (load_from_param_1): New.
2979         (load_from_unmodified_param): Factor common part into load_from_param_1.
2980         (load_from_param): New.
2981         (compute_complex_assign_jump_func): Handle unary expressions.
2982         (ipa_write_jump_function): Likewise.
2983         (ipa_read_jump_function): Likewise.
2985 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
2987         PR ipa/78121
2988         * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2989         Also fold constant passed as argument while computing value range.
2990         (propagate_constants_accross_call): Pass param type.
2991         * ipa-prop.c: export ipa_get_callee_param_type.
2992         * ipa-prop.h: export ipa_get_callee_param_type.
2994 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
2996         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2997         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2999 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
3001         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
3002         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
3003         ASAN_STACK_MAGIC_MIDDLE.
3004         (asan_global_struct): Increase the size of fields.
3005         (asan_add_global): Add new field constructor.
3006         * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
3007         __asan_version_mismatch_check_v8.
3009 2016-11-08  David Edelsohn  <dje.gcc@gmail.com>
3011         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
3012         at runtime.
3014 2016-11-08  Uros Bizjak  <ubizjak@gmail.com>
3016         PR target/70799
3017         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3018         Handle ASHIFT and LSHIFTRT.
3019         (dimode_scalar_chain::compute_convert_gain): Ditto.
3020         (dimode_scalar_chain::convert_insn): Ditto.
3022 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3024         * gimple-ssa-store-merging.c: Include selftest.h
3025         (verify_array_eq): New function.
3026         (verify_shift_bytes_in_array): Likewise.
3027         (verify_shift_bytes_in_array_right): Likewise.
3028         (verify_clear_bit_region): Likewise.
3029         (verify_clear_bit_region_be): Likewise.
3030         (store_merging_c_tests): Likewise.
3031         * selftest.h (store_merging_c_tests): Declare prototype.
3032         * selftest-run-tests.c (selftest::run_tests): Run
3033         store_merging_c_tests.
3035 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3037         * config/arm/arm.opt (mold-rtx-costs): Delete.
3038         (mnew-generic-costs): Delete.
3039         * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
3040         * config/arm/arm.c (arm_rtx_costs_1): Delete.
3041         (arm_size_rtx_costs): Likewise.
3042         (arm_slowmul_rtx_costs): Likewise.
3043         (arm_fastmul_rtx_costs): Likewise.
3044         (arm_xscale_rtx_costs): Likewise.
3045         (arm_9e_rtx_costs): Likewise.
3046         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3047         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3048         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3049         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3050         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3051         arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
3052         arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
3053         arm_cortex_m7_tune):
3054         Delete rtx_costs field.
3055         (arm_new_rtx_costs): Rename to...
3056         (arm_rtx_costs_internal): ... This.
3057         (arm_rtx_costs): Remove old way of doing rtx costs.
3059 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3061         * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
3062         (arm_fastmul_tune): Likewise.
3063         (arm_strongarm_tune): Likewise.
3064         (arm_xscale_tune): Likewise.
3065         (arm_9e_tune): Likewise.
3066         (arm_marvell_pj4_tune): Likewise.
3067         (arm_v6t2_tune): Likewise.
3068         (arm_v6m_tune): Likewise.
3069         (arm_fa726te_tune): Likewise.
3071 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3073         PR tree-optimization/78234
3074         * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
3075         in start != 0 case.
3077 2016-11-08  Martin Liska  <mliska@suse.cz>
3079         PR testsuite/78242
3080         * dbgcnt.def: Add new debug counter asan_use_after_scope.
3081         * gimplify.c (gimplify_decl_expr): Do not sanitize vars
3082         with a value expr.  Do not add artificial variables to
3083         live_switch_vars.  Use the debug counter.
3084         (gimplify_target_expr): Use the debug counter.
3085         * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
3086         * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
3087         BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
3089 2016-11-08  Richard Biener  <rguenther@suse.de>
3091         * tree-vect-stmts.c (get_group_load_store_type): If the
3092         access is aligned do not trigger peeling for gaps.
3093         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3094         force alignment of vars with DECL_USER_ALIGN.
3096 2016-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
3098         * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
3100 2016-11-08  Richard Biener  <rguenther@suse.de>
3102         PR tree-optimization/78205
3103         * tree-vect-stmts.c (vectorizable_load): Move check whether
3104         we may run into gaps when BB vectorizing SLP permutations ...
3105         * tree-vect-slp.c (vect_supported_load_permutation_p): ...
3106         here where we can do a more precise check.
3108 2016-11-08  Richard Biener  <rguenther@suse.de>
3110         PR tree-optimization/78224
3111         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3112         Split the fallthru edge in case its successor may have PHIs.
3113         Do not free dominance info.
3115 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
3117         PR target/78229
3118         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3119         EH info even for bzhi and pdep/pext.
3121 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
3123         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
3124         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
3126 2016-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
3128         * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
3129         if appropriate.
3130         * config/rs6000/vector.md (div<mode>3): Ditto.
3132 2016-11-07  David Edelsohn  <dje.gcc@gmail.com>
3134         * configure.ac (.hidden): Change to conftest_s string. Provide string
3135         for AIX assembler.
3136         (gcc_cv_ld_hidden): Yes for AIX.
3137         * configure: Regenerate.
3139         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
3141         * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
3142         (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
3143         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
3144         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3145         (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3146         * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
3147         from #if to if.
3148         (rs6000_xcoff_visibility): New.
3149         (rs6000_xcoff_declare_function_name): Add visibility support.
3150         (rs6000_xcoff_asm_globalize_decl_name): New.
3151         (rs6000_xcoff_asm_output_aligned_decl_common): New.
3152         (rs6000_asm_weaken_decl): New.
3153         (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
3154         config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
3155         reference function.
3157 2016-11-07  Jack Howarth  <howarth.at.gcc@gmail.com>
3159         PR driver/78206
3160         * incpath.c (remove_dup): Also silently ignore EPERM.
3162 2016-11-07  Martin Jambor  <mjambor@suse.cz>
3164         * tree.c (verify_type_variant): Use pointer comparison to check that
3165         TYPE_SIZE_UNIT match.
3167 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
3169         PR target/77834
3170         * dse.c (dse_step5): Call scan_reads even if just
3171         insn_info->frame_read.  Improve and fix dump file messages.
3173         PR target/78227
3174         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
3175         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
3177 2016-11-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3179         PR middle-end/35691
3180         * match.pd: Add following two patterns:
3181         (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
3182         (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
3184 2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
3186         * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
3187         * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
3188         * rtl.h (duplicate_reg_notes): Declare.
3189         * rtlanal.c (duplicate_reg_note): New function.
3191         PR rtl-optimization/77309
3192         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
3193         don't assume an equality comparison for plain COMPARE.
3194         (simplify_comparison): Pass a more accurate code to
3195         make_compound_operation.
3197 2016-11-07  Pat Haugen  <pthaugen@us.ibm.com>
3199         * target.def (compute_pressure_classes): New target hook.
3200         * doc/tm.texi.in: Document it.
3201         * doc/tm.texi: Regenerate.
3202         * ira.c (setup_pressure_classes): Call target hook if defined.
3204 2016-11-07  David Malcolm  <dmalcolm@redhat.com>
3206         * print-rtl.c (rtx_writer::operand_has_default_value_p): New
3207         method.
3208         (rtx_writer::print_rtx): In compact mode, omit trailing operands
3209         that have the default values.
3210         * print-rtl.h (rtx_writer::operand_has_default_value_p): New
3211         method.
3212         * rtl-tests.c (selftest::test_dumping_insns): Remove empty
3213         label string from expected dump.
3214         (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
3215         from expected dump.
3217 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
3219         PR target/77834
3220         * alias.c (nonoverlapping_memrefs_p): If one decl is
3221         FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
3223 2016-11-07  Richard Biener  <rguenther@suse.de>
3225         PR target/78229
3226         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3227         EH info.
3229 2016-11-07  Richard Biener  <rguenther@suse.de>
3231         PR tree-optimization/78218
3232         * gimple-ssa-store-merging.c
3233         (pass_store_merging::terminate_all_aliasing_chains):
3234         Drop unused argument, fix alias check to also consider uses.
3235         (pass_store_merging::execute): Adjust.
3237 2016-11-07  Richard Biener  <rguenther@suse.de>
3239         PR tree-optimization/78228
3240         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
3241         undefined behavior.
3243 2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3245         PR target/77822
3246         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
3247         aarch64_simd_shift_imm_<mode> predicate for operand 1.
3248         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
3249         to restrict them to an appropriate range and add FAIL check if the
3250         region they specify is out of range.  Delete useless constraint
3251         strings.
3252         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
3253         2 and 3 to restrict their range and add pattern predicate.
3255 2016-11-07  Martin Liska  <mliska@suse.cz>
3257         * asan.c (enum asan_check_flags): Move the enum to header file.
3258         (asan_init_shadow_ptr_types): Make type creation more generic.
3259         (shadow_mem_size): New function.
3260         (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
3261         Rewritten stack unpoisoning code.
3262         (build_shadow_mem_access): Add new argument return_address.
3263         (instrument_derefs): Instrument local variables if use after scope
3264         sanitization is enabled.
3265         (asan_store_shadow_bytes): New function.
3266         (asan_expand_mark_ifn): Likewise.
3267         (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
3268         * asan.h (enum asan_mark_flags): Moved here from asan.c
3269         (asan_protect_stack_decl): Protect all declaration that need
3270         to live in memory.
3271         (asan_sanitize_use_after_scope): New function.
3272         (asan_no_sanitize_address_p): Likewise.
3273         * cfgexpand.c (partition_stack_vars): Consider
3274         asan_sanitize_use_after_scope in condition.
3275         (expand_stack_vars): Likewise.
3276         * common.opt (-fsanitize-address-use-after-scope): New option.
3277         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
3278         Explain the parameter.
3279         * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
3280         * gimplify.c (build_asan_poison_call_expr): New function.
3281         (asan_poison_variable): Likewise.
3282         (gimplify_bind_expr): Generate poisoning/unpoisoning for local
3283         variables that have address taken.
3284         (gimplify_decl_expr): Likewise.
3285         (gimplify_target_expr): Likewise for C++ temporaries.
3286         (sort_by_decl_uid): New function.
3287         (gimplify_expr): Unpoison all variables for a label we can jump
3288         from outside of a scope.
3289         (gimplify_switch_expr): Unpoison variables defined in the switch
3290         context.
3291         (gimplify_function_tree): Clear asan_poisoned_variables.
3292         (asan_poison_variables): New function.
3293         (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
3294         * internal-fn.c (expand_ASAN_MARK): New function.
3295         * internal-fn.def (ASAN_MARK): Declare.
3296         * opts.c (finish_options): Handle -fstack-reuse if
3297         -fsanitize-address-use-after-scope is enabled.
3298         (common_handle_option): Enable address sanitization if
3299         -fsanitize-address-use-after-scope is enabled.
3300         * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
3301         New parameter.
3302         * params.h: Likewise.
3303         * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
3304         * sanitizer.def: Define __asan_poison_stack_memory and
3305         __asan_unpoison_stack_memory functions.
3306         * asan.c (asan_mark_poison_p): New function.
3307         (transform_statements): Handle asan_mark_poison_p calls.
3308         * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
3310 2016-11-07  Tamar Christina  <tamar.christina@arm.com>
3312         PR driver/78196
3313         * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
3315 2016-11-07  Martin Liska  <mliska@suse.cz>
3317         * tree-profile.c (gimple_gen_time_profiler): Set proper type
3318         to time_profiler_counter_ptr.
3320 2016-11-07  Richard Biener  <rguenther@suse.de>
3322         PR tree-optimization/37150
3323         * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
3324         parameter.
3325         * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
3326         (vect_analyze_slp_cost_1): Account for the real number of
3327         permutations emitted and for dead loads.
3328         (vect_transform_slp_perm_load): Add n_perms parameter counting
3329         the number of emitted permutations.
3330         * tree-vect-stmts.c (vectorizable_load): Adjust.
3332 2016-11-07  Richard Biener  <rguenther@suse.de>
3334         PR tree-optimization/78189
3335         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
3336         alignment computation.
3338 2016-11-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
3340         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
3342 2016-11-05  Martin Sebor  <msebor@redhat.com>
3344         * doc/invoke.texi (Warning Options): Correct typos in -Walloca
3345         documentation.
3347 2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
3349         PR bootstrap/78188
3350         PR c++/71848
3351         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
3353 2016-11-04  Jakub Jelinek  <jakub@redhat.com>
3355         PR target/77834
3356         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
3357         doesn't have rtl set.
3359 2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3361         * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
3362         (TARGET_GIMPLE_FOLD_BUILTIN): Define as
3363         rs6000_gimple_fold_builtin.
3364         (rs6000_gimple_fold_builtin): New function.  Add handling for
3365         early expansion of vector addition builtins.
3367 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3369         * expr.h (copy_blkmode_from_reg): Delete.
3370         * expr.c (copy_blkmode_from_reg): Make static.
3372 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3374         * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
3375         * combine.c (LOAD_EXTEND_OP): Delete.
3376         (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
3377         * cse.c (LOAD_EXTEND_OP): Delete.
3378         * fold-const.c (LOAD_EXTEND_OP): Likewise.
3379         * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3380         * postreload.c (LOAD_EXTEND_OP): Delete.
3381         * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3382         Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3383         (find_reloads): Likewise.
3384         * reload1.c (eliminate_regs_1): Likewise.
3385         * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3386         (num_sign_bit_copies1): Likewise.
3388 2016-11-04  David Malcolm  <dmalcolm@redhat.com>
3390         * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3391         (selftest::ix86_test_dumping_hard_regs): New function.
3392         (selftest::ix86_run_selftests): New function.
3393         (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3394         selftest::ix86_run_selftests.
3395         * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3396         * doc/tm.texi: Regenerate
3397         * selftest-rtl.h: New file.
3398         * rtl-tests.c: Include "selftest-rtl.h".
3399         (selftest::assert_rtl_dump_eq): Make non-static.
3400         (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3401         (selftest::test_dumping_regs): Update comment.
3402         * selftest-run-tests.c: Include "target.h".
3403         (selftest::run_tests): If non-NULL, call
3404         targetm.run_target_selftests.
3405         * target.def (run_target_selftests): New hook.
3407 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3409         * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3410         representative core for this architecture.
3411         * config/arm/arm-cores.def (cortex-m33): Define new processor.
3412         * config/arm/arm-tables.opt: Regenerate.
3413         * config/arm/arm-tune.md: Likewise.
3414         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3415         valid -mcpu options.
3416         * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3418 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3420         * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3421         representative core for this architecture.
3422         * config/arm/arm-cores.def (cortex-m23): Define new processor.
3423         * config/arm/arm-tables.opt: Regenerate.
3424         * config/arm/arm-tune.md: Likewise.
3425         * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3426         this tuning parameters apply to in the comment.
3427         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3428         valid -mcpu options.
3429         * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3431 2016-11-04  Bin Cheng  <bin.cheng@arm.com>
3433         * fold-const.c (fold_cond_expr_with_comparison): Remove call
3434         to pedantic_non_lvalue_loc.  Remove useless code for lvalue
3435         where cond_expr can't be a lvalue.
3437 2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
3439         * config/arc/arc.c (arc_process_double_reg_moves): Use
3440         gen_dexcl_2op call.
3441         * config/arc/arc.md (movsi_insn): Disable unsupported move
3442         instructions for ARCv2 cores.
3443         (movdi): Use prepare_move_operands.
3444         (movsf, movdf): Use move_dest_operand predicate.
3445         * config/arc/constraints.md (Chs): Enable when barrel shifter is
3446         present.
3447         * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3448         * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3449         also a destination.
3450         (dexcl_3op_peep2_insn_nores): Likewise.
3451         * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3452         (LINK_COMMAND_SPEC): Remove.
3454 2016-11-04  Richard Biener  <rguenther@suse.de>
3456         PR middle-end/78185
3457         * loop-invariant.c (find_exits): Record entering inner
3458         loops as possibly exiting to handle infinite sub-loops.
3459         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3460         (fill_always_executed_in_1): Honor infinite child loops.
3462 2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3464         PR target/78192
3465         * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3466         has already been adjusted for endianness, so don't adjust it any
3467         further.
3469         PR target/77993
3470         * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3471         ICmode unless we have standard PowerPC floating point.
3472         * config/rs6000/rs6000.md (FP iterator): Likewise.
3473         (FMOVE128 iterator): Likewise.
3475 2016-11-03  Jakub Jelinek  <jakub@redhat.com>
3476             Alexandre Oliva  <aoliva@redhat.com>
3477             Jason Merrill  <jason@redhat.com>
3479         PR debug/28767
3480         PR debug/56974
3481         * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3482         langhook.
3483         * langhooks.c (lhd_type_dwarf_attribute): New function.
3484         * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3485         (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3486         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3487         LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3488         (check_qualified_type, check_aligned_type): Call it.
3489         * dwarf2out.c (modified_type_die): Don't use type_main_variant
3490         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3491         check_base_type and check_lang_type.
3492         (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3493         return early.  For pointer-to-data-member add DW_AT_use_location
3494         attribute.
3495         (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3496         if needed.
3497         (gen_type_die_with_usage): Don't use type_main_variant
3498         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3499         check_base_type and check_lang_type.  Formatting fixes. Call
3500         get_debug_type langhook.
3502 2016-11-03  Jason Merrill  <jason@redhat.com>
3504         * tree.c (check_lang_type): New.
3505         (check_qualified_type): Use it.
3506         (check_aligned_type): Use it.
3507         * tree.h: Declare it.
3509 2016-11-03  Richard Earnshaw  <rearnsha@arm.com>
3511         * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3512         (arm*-freebsd*): Likewise.
3513         (arm*-*-netbsdelf*): Likewise.
3514         (arm*-*-linux*): Likewise.
3515         (arm*-*-uclinux*eabi*): Likewise.
3516         (arm*-*-phoenix*): Likewise.
3517         (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3518         (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3519         specified.  Default to arm6 if target_cpu_cname is not set.
3520         * arm/arm.c (arm_option_override): Simplify logic.  Assert that the
3521         default cpu has been correctly configured.
3522         * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3523         (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3524         * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3525         * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3526         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3527         * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3528         * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3530 2016-11-03  Jiong Wang  <jiong.wang@arm.com>
3532         * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3533         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3534         (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3535         (output_cfa_loc): Support DW_CFA_val_expression.
3536         (output_cfa_loc_raw): Likewise.
3537         (output_cfi): Likewise.
3538         (output_cfi_directive): Likewise.
3539         * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3540         (dw_cfi_oprnd2_desc): Likewise.
3541         (mem_loc_descriptor): Recognize new pattern generated for value
3542         expression.
3544 2016-11-03  Segher Boessenkool  <segher@kernel.crashing.org>
3546         PR rtl-optimization/78186
3547         * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3548         well, when converting to IOR.
3550 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3552         * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3553         (vec_interleave_highv8qi): Likewise.
3555 2016-11-03  Martin Liska  <mliska@suse.cz>
3557         * profile.c (instrument_values): Fix coding style.
3558         (branch_prob): Use renamed function.
3559         * tree-profile.c (init_ic_make_global_vars): Likewise.
3560         (gimple_init_edge_profiler): Rename to
3561         gimple_init_gcov_profiler.
3562         tree_time_profiler_counter variable declaration.
3563         (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3564         emission.
3565         * value-prof.h: Remove an argument.
3567 2016-11-03  Richard Biener  <rguenther@suse.de>
3569         * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3570         symtab_node::get_create.
3572 2016-11-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3574         * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3575         Move comments into more natural position.
3577 2016-11-03  Vineet Gupta  <vgupta@synopsys.com>
3579         * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3580         (PTRDIFF_TYPE): Define as int.
3582 2016-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3584         * ccmp.c (expand_ccmp_expr_1): Adjust.
3585         (expand_ccmp_expr): Likewise.
3586         (expand_ccmp_next): Likewise.
3587         * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3588         (aarch64_gen_ccmp_first): Likewise.
3589         * doc/tm.texi: Regenerate.
3590         * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3591         (gen_ccmp_next): Likewise.
3593 2016-11-03  Bin Cheng  <bin.cheng@arm.com>
3595         * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3596         (vect_is_simple_reduction): Swap cond_reduction by inversion.
3598 2016-11-02  Uros Bizjak  <ubizjak@gmail.com>
3600         * config/i386/i386.c (ix86_init_libfuncs): New.  Call
3601         darwin_rename_builtins here.
3602         (ix86_expand_divmod_libfunc): New.
3603         (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3604         (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3606 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
3607             Nathan Sidwell  <nathan@acm.org>
3609         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3611 2016-11-02  Max Filippov  <jcmvbkbc@gmail.com>
3613         * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3614         New function.
3615         (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3616         to format MODE_INT and MODE_PARTIAL_INT literals.
3618 2016-11-02  Segher Boessenkool  <segher@kernel.crashing.org>
3620         PR target/78168
3621         * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3622         NULL if TARGET_SPE_ABI.
3624 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3626         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3627         clear padding bits even when they're less than a byte.
3629 2016-11-02  Richard Biener  <rguenther@suse.de>
3631         * gimple-ssa-store-merging.c: Include gimplify-me.h.
3632         (imm_store_chain_info::output_merged_stores): Force base_addr
3633         to be proper GIMPLE for a MEM_REF address.
3634         (pass_store_merging::execute): Restrict negative bitpos
3635         handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
3636         check.  Take into account non-NULL_TREE offset if the base
3637         is already addressable.
3639 2016-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
3641         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3642         New pattern.
3643         (aarch64_be_crypto_sha1hv4si): New pattern.
3645 2016-11-02  Wilco Dijkstra  <wdijkstr@arm.com>
3647         * config/aarch64/aarch64.md (add<mode>3): Remove
3648         redundant code.  Don't split frame based additions.
3650 2016-11-02  Richard Biener  <rguenther@suse.de>
3652         * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3653         redundant val and dest members.
3654         (store_immediate_info::store_immediate_info): Adjust.
3655         (merged_store_group::merged_store_group): Adjust.
3656         (merged_store_group::apply_stores): Likewise.
3657         (struct imm_store_chain_info): Add base_addr field.
3658         (imm_store_chain_info::imm_store_chain_info): New constructor.
3659         (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3660         (imm_store_chain_info::output_merged_store): Likewise.  Use
3661         addr_base which is already the address.
3662         (imm_store_chain_info::output_merged_stores): Likewise.
3663         (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3664         imm_store_chain_info instead of base.  Fix alias check.
3665         (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3666         (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3667         (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3668         use the address of the base and adjust for other changes.
3670 2016-11-02  Martin Liska  <mliska@suse.cz>
3672         * fold-const-call.c (host_size_t_cst_p): Test whether
3673         t is convertible to size_t.
3675 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3677         PR tree-optimization/78170
3678         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3679         introduced by native_encode_expr on little-endian as well.
3681 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3683         PR tree-optimization/78162
3684         * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3685         as invalid.
3687 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3689         * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3690         function comment.
3691         (aarch64_next_callee_save): Likewise.
3692         (aarch64_pushwb_single_reg): Likewise.
3693         (aarch64_gen_storewb_pair): Likewise.
3694         (aarch64_push_regs): Likewise.
3695         (aarch64_gen_loadwb_pair): Likewise.
3696         (aarch64_pop_regs): Likewise.
3697         (aarch64_gen_store_pair): Likewise.
3698         (aarch64_gen_load_pair): Likewise.
3699         (aarch64_save_callee_saves): Likewise.
3700         (aarch64_restore_callee_saves): Likewise.
3702 2016-11-02  Richard Biener  <rguenther@suse.de>
3704         PR tree-optimization/78035
3705         PR tree-optimization/77964
3706         * gimple-pretty-print.c (pp_points_to_solution): Print
3707         vars_contains_interposable.
3708         * tree-ssa-alias.c: Include varasm.h.
3709         (ptrs_compare_unequal): Check vars_contains_interposable and
3710         decl_binds_to_current_def_p.
3711         (dump_points_to_solution): Dump vars_contains_interposable.
3712         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3713         flag.
3714         * tree-ssa-structalias.c: Include varasm.h.
3715         (set_uids_in_ptset): Record whether vars contains a
3716         not decl_binds_to_current_def_p variable in vars_contains_interposable.
3717         (ipa_escaped_pt): Update initializer.
3719 2016-11-02  Richard Biener  <rguenther@suse.de>
3721         PR tree-optimization/78047
3722         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3723         fake field at offset zero conservatively regarding to may_have_pointers.
3725 2016-11-02  Richard Biener  <rguenther@suse.de>
3727         * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3728         infer_value_range on stmt ops and update value-ranges.
3729         Dump visited stmts and blocks.
3730         (evrp_dom_walker::push_value_range): Dump changes.
3731         (evrp_dom_walker::pop_value_range): Likewise.
3732         (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3734 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3736         * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3737         rtx_insn *.
3738         * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3740 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3742         * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3743         and adjust for that.
3744         * cfgrtl.h (delete_insn_chain): Adjust prototype.
3746 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3748         * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3749         to rtx_insn *.
3750         (transcode_memory_rtx): Likewise.
3751         (move_to_acc): Likewise.
3752         (move_from_acc): Likewise.
3753         (move_acc_to_reg): Likewise.
3754         (move_to_x): Likewise.
3755         (move_to_hl): Likewise.
3756         (move_to_de): Likewise.
3757         * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3758         (rs6000_emit_savres_rtx): Likewise.
3759         (rs6000_emit_prologue): Likewise.
3760         * reorg.c (update_reg_unused_notes): Likewise.
3761         * rtl.h (remove_note): Adjust prototype.
3762         * rtlanal.c (remove_note): Make argument type rtx_insn *.
3764 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3766         * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3767         variables so some can be rtx_insn *.
3768         (alpha_emit_xfloating_libcall): Likewise.
3769         * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3770         (mips_legitimize_tls_address): Likewise.
3771         * optabs.c (expand_binop): Likewise.
3772         * reload1.c (gen_reload): Likewise.
3774 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3776         * reorg.c (relax_delay_slots): Split up the trial variable.
3778 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3780         * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3781         of variables rtx_insn *.
3782         * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3783         (legitimize_tls_address): Likewise.
3784         * config/bfin/bfin.c (hwloop_optimize): Likewise.
3785         (bfin_gen_bundles): Likewise.
3786         * config/c6x/c6x.c (reorg_split_calls): Likewise.
3787         (c6x_reorg): Likewise.
3788         * config/frv/frv.c (frv_reorder_packet): Likewise.
3789         * config/i386/i386.c (ix86_split_idivmod): Likewise.
3790         * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3791         * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3792         * config/mn10300/mn10300.c: Likewise.
3793         * config/rl78/rl78.c: Likewise.
3794         * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3795         * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3796         (sh_expand_cmpnstr): Likewise.
3797         (sh_expand_strlen): Likewise.
3798         (sh_expand_setmem): Likewise.
3799         * config/sh/sh.md: Likewise.
3800         * emit-rtl.c (emit_pattern_before): Likewise.
3801         * except.c: Likewise.
3802         * final.c: Likewise.
3803         * jump.c: Likewise.
3805 2016-11-01  Jason Merrill  <jason@redhat.com>
3807         * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3808         a COND_EXPR with constant condition.
3810 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3812         * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3813         and its initialization.
3815 2016-11-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3817         * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3818         HAVE_AS_LEB128.
3820 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3822         * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3823         argument, don't call add_linkage_name if it is true.
3824         (gen_variable_die): For C++ inline static data members, consider the
3825         initial call when old_die is NULL to be declaration and call
3826         add_name_and_src_coords_attributes in that case with true as
3827         NO_LINKAGE_NAME.  Add DW_AT_inline attribute if needed.
3828         (gen_member_die): For C++ inline static data members, emit a
3829         definition DIE right away in DW_TAG_compile_unit context.
3831 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
3833         PR target/78166
3834         * config/pa/pa.md: Add new shift/add patterns to handle
3835         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3837 2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>
3839         * config/xtensa/xtensa-protos.h
3840         (xtensa_use_return_instruction_p): New prototype.
3841         * config/xtensa/xtensa.c (xtensa_current_frame_size,
3842         xtensa_callee_save_size): Remove.
3843         (struct machine_function): Add new fields: current_frame_size,
3844         callee_save_size, frame_laid_out and epilogue_done.
3845         (compute_frame_size, xtensa_expand_prologue,
3846         xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3847         cfun->machine->callee_save_size and xtensa_current_frame_size
3848         with cfun->machine->current_frame_size.
3849         (compute_frame_size): Update cfun->machine->frame_laid_out and
3850         don't update frame layout after reload completion.
3851         (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3852         instead of zeroing xtensa_current_frame_size.
3853         (xtensa_use_return_instruction_p): New function.
3854         * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3855         declaration.
3856         (INITIAL_ELIMINATION_OFFSET): Use return value of
3857         compute_frame_size instead of xtensa_current_frame_size value.
3858         * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3859         function xtensa_use_return_instruction_p instead of inline code.
3861 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3863         * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3864         * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3865         * dwarf2out.c (rnglist_idx): New variable.
3866         (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3867         (DEBUG_RNGLISTS_SECTION): Define.
3868         (ranges_base_label): New variable.
3869         (size_of_die) <case dw_val_class_range_list>: If using
3870         DW_FORM_rnglistx, count size of uleb128 of range list index.
3871         (value_format) <case dw_val_class_range_list>: For
3872         -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3873         (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3874         offsets.  Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3875         (add_ranges_num): Remove useless prototype.  Don't multiply
3876         by 2 * DWARF2_ADDR_SIZE.  Add maybe_new_sec argument, adjust
3877         for new fields added to dw_ranges struct.
3878         (add_ranges): Add maybe_new_sec argument and pass it
3879         through to add_ranges_num.
3880         (note_rnglist_head): New function.
3881         (add_ranges_by_labels): Pass true as maybe_new_sec to
3882         add_ranges_num, call note_rnglist_head on the head of the list.
3883         (output_ranges): Add function comment.  Switch to
3884         .debug_ranges section here and emit .Ldebug_ranges0 label.
3885         (index_rnglists, output_rnglists): New functions.
3886         (gen_subprogram_die): Formatting fixes.
3887         (add_high_low_attributes): Don't divide offsets
3888         by 2 * DWARF2_ADDR_SIZE.  Call note_rnglist_head on the
3889         first list element or when pointing into the middle of
3890         a list.  Pass true as second argument to add_ranges on the
3891         first block fragment after cold/hot section switch.
3892         (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3893         section instead of .debug_ranges.  Initialize
3894         ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3895         (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3896         index_rnglists and add DW_AT_rnglists_base attr.  Don't switch
3897         to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3898         Call output_rnglists for -gdwarf-5.
3899         (dwarf2out_c_finalize): Clear rnglist_idx.
3901 2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
3903         * combine.c (simplify_compare_const): Add gcc_fallthrough.
3905 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
3906             Tamar Christina <tamar.christina@arm.com>
3908         * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3909         * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3910         (vmaxnmq_f32): Likewise.
3911         (vminnm_f32): Likewise.
3912         (vminnmq_f32): Likewise.
3913         * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3914         (vminnm): Likewise.
3915         * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3916         expander.
3918 2016-10-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3920         * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3921         binary floating point types supported by the hardware except for
3922         double.
3923         (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3924         vector instruction for optimizing extracting a SImode from a
3925         V4SImode vector and converting it to floating point.
3926         (vsx_xvcvuxwdp_df): Likewise.
3927         (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3928         registers to be any VSX register.  Move stores to the end of the
3929         constraints.
3930         (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3931         to optimize extracting a SImode from a V4SImode vector and
3932         converting it to a binary floating point type supported by the
3933         hardware.  Use the vector converts instead of extracting the
3934         element, sign extending it, and then converting it to double.
3935         Other floating point types  than double first convert to double,
3936         then the double is converted to that type.
3937         (vsx_extract_si_<uns>float_<mode>): Likewise.
3939 2016-10-31  Andrew Pinski  <apinski@cavium.com>
3941         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3942         Rewrite handling of part num to handle the case where
3943         multiple implementers share the same part num.
3945 2016-10-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3946             Jakub Jelinek  <jakub@redhat.com>
3948         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3949         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3951 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
3953         * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3954         (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3955         (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3956         (is_cu_die, is_unit_die): Likewise.
3957         (should_move_die_to_comdat, break_out_comdat_types): Adjust
3958         comments for DWARF5 DW_UT_type units.
3959         (output_compilation_unit_header): Add UT argument, output
3960         start of DWARF5 .debug_info section header.
3961         (output_comp_unit): Add dwo_id argument.  Adjust
3962         output_compilation_unit_header caller, for DW_UT_split_compile
3963         emit dwo_id field, otherwise padding1.  Emit padding2 field.
3964         (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3965         rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3966         (output_skeleton_debug_sections): Add dwo_id argument, for
3967         -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3968         (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3969         DW_UT_type or DW_UT_split_type units rather than .debug_types.
3970         (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3971         DW_TAG_compile_unit for skeleton unit die.  Don't add
3972         DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3973         address to output_comp_unit and output_skeleton_debug_sections.
3975         * dwarf2out.c (debug_line_str_section): New variable.
3976         (debug_line_str_hash): Likewise.
3977         (DEBUG_LINE_STR_SECTION): Define.
3978         (set_indirect_string): Handle DW_FORM_line_strp like
3979         DW_FORM_strp.
3980         (find_string_form): Fix up formatting.
3981         (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3982         Fix up indentation.
3983         (output_die): Handle DW_FORM_line_strp.
3984         (DWARF5_USE_DEBUG_LINE_STR): Define.
3985         (output_line_string): New function.
3986         (output_file_names): Add -gdwarf-5 support.
3987         (output_line_info): Likewise.
3988         (init_sections_and_labels): Initialize debug_line_str_section.
3989         (output_indirect_string): Change 2nd argument from void *
3990         to enum dwarf_form form, compare with form rather than
3991         DW_FORM_strp.
3992         (output_indirect_strings): Pass DW_FORM_strp to
3993         output_indirect_string traversion.
3994         (dwarf2out_finish): Output .debug_line_str strings.
3995         (dwarf2out_c_finalize): Clear debug_line_str_section and
3996         debug_line_str_hash.
3998 2016-10-31  Tom Tromey  <tom@tromey.com>
4000         PR debug/77315
4001         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
4002         (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
4003         DW_OP_GNU_push_tls_address case.
4004         (loc_list_from_tree_1): Use DW_OP_form_tls_address.
4006 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
4008         * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
4009         for frame_offset_rel bit.
4010         (struct array_descr_info): Add rank field.
4011         * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
4012         and placeholder_seen fields.
4013         (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
4014         and DW_OP_over.  Optimize DW_OP_pick 0 into DW_OP_dup and
4015         DW_OP_pick 1 into DW_OP_over.
4016         (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
4017         gen_variant_part): Clear placeholder_{arg,seen}.
4018         (loc_list_from_tree_1): Drop const from context argument.
4019         Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
4020         (loc_list_for_address_of_addr_expr_of_indirect_ref,
4021         loc_list_from_tree, loc_descriptor_from_tree): Drop const from
4022         context argument.
4023         (add_scalar_info): Drop const from context argument.  Handle
4024         context->placeholder_arg.
4025         (add_bound_info): Drop const from context argument.
4026         (gen_descr_array_type_die): Drop const from ctx variable.
4027         Initialize placeholder_arg and placeholder_seen.  Add DW_AT_rank
4028         attribute and use a single DW_TAG_generic_subrange instead of
4029         7 DW_TAG_subrange_type for assumed rank arrays.
4031         * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
4032         * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
4033         from bool to 1-bit uchar bitfield.  Add num_assigned and
4034         offset_emitted bitfields.
4035         (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
4036         for dw_val_class_lineptr and dw_val_class_macptr.  Handle
4037         dw_val_class_loclistsptr.
4038         (new_addr_loc_descr): Fix up formatting.
4039         (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
4040         (add_AT_low_high_pc): Fix up formatting.
4041         (add_AT_loclistsptr): New function.
4042         (AT_lbl): Allow dw_val_class_loclistsptr.
4043         (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
4044         Handle dw_val_class_loclistsptr.
4045         (loc_list_idx): New variable.
4046         (output_loclists_offsets, assign_location_list_indexes): New
4047         functions.
4048         (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
4049         add size_of_uleb128 of the index.  Drop never used
4050         dwarf_split_debug_info AT_index handling.  Handle
4051         dw_val_class_loclistsptr.
4052         (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
4053         if -gsplit-dwarf -gdwarf-5.  Handle dw_val_class_loclistsptr.
4054         (output_loc_list): Handle DWARF 5 .debug_loclists* format.
4055         (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
4056         DW_FORM_loclistx indexes.
4057         (output_attr_index_or_value): Fix up formatting.  Don't handle
4058         dw_val_class_loc_list here.
4059         (output_die): Formatting fixes.  Handle dw_val_class_loclistsptr.
4060         For dw_val_class_loc_list call output_loc_list_offset rather than
4061         output_attr_index_or_value.
4062         (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
4063         or .debug_loclists.dwo section name for debug_loc_section.
4064         (resolve_addr_in_expr): Formatting fix.
4065         (index_location_lists): Likewise.
4066         (dwarf2out_finish): If there are any location lists, for
4067         -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute.  Call
4068         index_location_lists only if have_location_lists.  Call
4069         assign_location_list_indexes for -gsplit-dwarf -gdwarf-5.  Emit
4070         .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
4071         -gsplit-dwarf also emit offset table.
4073         * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
4074         (size_of_die, value_format, output_die): Use
4075         DW_FORM_data16 for 128-bit dw_val_class_const_double or
4076         dw_val_class_wide_int.
4078         * dwarf2out.c (dwarf_op): Renamed to ...
4079         (dwarf_OP): ... this.
4080         (convert_descriptor_to_mode, scompare_loc_descriptor,
4081         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4082         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
4083         callers.
4084         (dwarf_AT, dwarf_TAG): New functions.
4085         (check_die): Disallow DW_AT_call_all_calls next to
4086         DW_AT_GNU_all_call_sites.
4087         (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
4088         and attributes instead of the corresponding GNU tag and attributes.
4089         (gen_subprogram_die): Likewise.  Emit call site information even
4090         for -gdwarf-5 -gstrict-dwarf.  Replace DW_AT_GNU_defaulted with
4091         DW_AT_defaulted in comment.
4092         (resolve_addr): Handle DW_AT_call_origin attribute on
4093         DW_TAG_call_site DIE like DW_AT_abstract_origin on
4094         DW_TAG_GNU_call_site DIE.
4096         * dwarf2out.c (dwarf_op): New function.
4097         (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
4098         DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
4099         (output_loc_operands, output_loc_operands_raw): Likewise.
4100         (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
4101         mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
4102         (resolve_addr_in_expr): Likewise.  Only punt for !dwarf_strict
4103         if dwarf_version < 5.
4104         (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
4105         DW_OP_GNU_xxx.
4106         (scompare_loc_descriptor, ucompare_loc_descriptor,
4107         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
4108         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
4109         optimize_location_into_implicit_ptr): Likewise.  Only punt for
4110         !dwarf_strict if dwarf_version < 5.
4111         (string_cst_pool_decl): Adjust comment.
4112         (non_dwarf_expression): Handle DW_OP_implicit_pointer.
4114         * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
4115         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4116         (struct dw_val_node): Add val_file_implicit field.
4117         * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
4118         attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
4119         output_die): Handle dw_val_class_const_implicit,
4120         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
4121         (abbrev_die_table): Change into va_gc vec.
4122         (abbrev_die_table_allocated, abbrev_die_table_in_use,
4123         ABBREV_DIE_TABLE_INCREMENT): Remove.
4124         (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
4125         (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
4126         variables.
4127         (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
4128         If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
4129         vectors.
4130         (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
4131         functions.
4132         (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
4133         the implicit value.
4134         (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
4135         vec.
4136         (output_comp_unit): Initialize abbrev_opt_start if emitting the main
4137         unit.  Call optimize_abbrev_table.
4138         (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
4139         abbrev_die_table being a va_gc vec.
4141         PR tree-optimization/77860
4142         * tree-ssa-reassoc.c (eliminate_using_constants): Handle
4143         also integral complex and vector constants.
4145         * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
4146         optimize_macinfo_range, save_macinfo_strings): Replace
4147         DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
4148         (output_macinfo): Likewise.  Emit .debug_macro* rather than
4149         .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
4150         (init_sections_and_labels): Use .debug_macro* labels rather than
4151         .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
4152         (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
4153         or DW_AT_GNU_macros for -gdwarf-5.
4155 2016-10-31  Waldemar Brodkorb  <wbx@openadk.org>
4157         * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
4159 2016-09-11  Le-Chun Wu  <lcwu@google.com>
4160             Mark Wielaard  <mjw@redhat.com>
4162         * common.opt (Wshadow=global): New option. Default for -Wshadow.
4163         (Wshadow=local): New option.
4164         (Wshadow-local): Hidden alias for -Wshadow=local.
4165         (Wshadow=compatible-local): New option.
4166         (Wshadow-compatible-local): Hidden alias for
4167         -Wshadow=compatible-local.
4168         * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
4169         Wshadow=compatible-local.
4171 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
4173         * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
4174         Check slp defs for COND_EXPR by swapping/inverting operands if the
4175         new parameter SWAP indicates so.
4176         (vect_build_slp_tree_1): New parameter SWAP.  Check COND_EXPR stmt
4177         is isomorphic to the first stmt via swapping/inverting.  Store swap
4178         information in the new parameter SWAP.
4179         (vect_build_slp_tree): New local array SWAP and pass it to function
4180         vect_build_slp_tree_1.  Cleanup result handling code for function
4181         call to vect_get_and_check_slp_defs.  Skip operand swapping if the
4182         order of operands has been fixed as indicated by SWAP[i].
4184 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
4186         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
4187         unnecessary data dependence check after visited store stmt.
4189 2016-10-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4191         PR tree-optimization/71915
4192         PR tree-optimization/71490
4193         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
4194         stride_type field.
4195         (find_basis_for_base_expr): Require stride types to match when
4196         seeking a basis.
4197         (alloc_cand_and_find_basis): Record the stride type.
4198         (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
4199         (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
4200         the expressions having those types.
4201         (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
4202         (create_mul_ssa_cand): Likewise.
4203         (create_mul_imm_cand): Likewise.
4204         (create_add_ssa_cand): Likewise.
4205         (create_add_imm_cand): Likewise.
4206         (legal_cast_p_1): Change interface to accept types rather than the
4207         expressions having those types.
4208         (legal_cast_p): Pass types to legal_cast_p_1.
4209         (slsr_process_cast): Pass stride type to
4210         alloc_cand_and_find_basis.
4211         (slsr_process_copy): Likewise.
4212         (dump_candidate): Display stride type when a cast exists.
4213         (create_add_on_incoming_edge): Introduce a cast when necessary for
4214         the stride type.
4215         (analyze_increments): Change the code checking for invalid casts
4216         to rely on the stride type, and update the documentation and
4217         example.  Change the code checking for pointer multiplies to rely
4218         on the stride type.
4219         (insert_initializers): Introduce a cast when necessary for the
4220         stride type.  Use the stride type for the type of the initializer.
4222 2016-10-30  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4224         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
4226 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
4228         PR rtl-optimization/77919
4229         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
4230         into memory if both modes are complex and their inner modes have the
4231         same precision.  If the two modes are different complex modes, convert
4232         each part separately and generate a new CONCAT.
4234 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
4236         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
4238 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
4240         PR target/78148
4241         * gimple-ssa-store-merging.c
4242         (imm_store_chain_info::output_merged_store): Use build_aligned_type
4243         instead of SET_TYPE_ALIGN on shared integral type.
4245 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
4247         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
4248         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
4249         Adjust comment.
4251 2016-10-28  Jeff Law  <law@redhat.com>
4253         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
4254         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
4256 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
4258         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
4260 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
4262         * target.def (min_arithmetic_precision): New hook.
4263         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
4264         * doc/tm.texi: Regenerate.
4265         * internal-fn.c (expand_arith_overflow): Adjust handling of target
4266         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
4267         * targhooks.c (default_min_arithmetic_precision): New function.
4268         * targhooks.h (default_min_arithmetic_precision): Declare.
4269         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
4270         (sparc_min_arithmetic_precision): New function.
4272 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
4274         PR target/71847
4275         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
4276         Swap commutative operands in new RTL if needed.  Handle zero_ext
4277         in the set_dest.
4278         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
4279         PATTERN (insn).
4281 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4282             Kugan Vivekanandarajah  <kuganv@linaro.org>
4283             Jim Wilson  <jim.wilson@linaro.org>
4285         PR tree-optimization/43721
4286         * target.def: New hook expand_divmod_libfunc.
4287         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
4288         * doc/tm.texi: Regenerate.
4289         * internal-fn.def: Add new entry for DIVMOD ifn.
4290         * internal-fn.c (expand_DIVMOD): New.
4291         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
4292         targhooks.h.
4293         (widen_mul_stats): Add new field divmod_calls_inserted.
4294         (target_supports_divmod_p): New.
4295         (divmod_candidate_p): Likewise.
4296         (convert_to_divmod): Likewise.
4297         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
4298         renumber_gimple_stmt_uids at beginning of function. Call
4299         convert_to_divmod and record stats for divmod.
4300         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
4301         TARGET_EXPAND_DIVMOD_LIBFUNC.
4302         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
4303         divmod_simode.
4305 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
4306             Segher Boessenkool  <segher@kernel.crashing.org>
4308         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
4309         swapping the arms of the branch.
4310         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
4311         sequence for the generic signed-signed-signed case.
4313 2016-10-28  Jeff Law  <law@redhat.com>
4315         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
4316         fallthru comment.
4317         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4319 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
4321         PR rtl-optimization/78029
4322         * function.c (prologue_contains, epilogue_contains): New functions.
4323         (record_prologue_seq, record_epilogue_seq): New functions.
4324         * function.h (prologue_contains, epilogue_contains,
4325         record_prologue_seq, record_epilogue_seq): New declarations.
4326         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
4327         mixing prologue and epilogue insns.
4328         (init_deps): Initialize the new fields in struct deps_desc.
4329         * sched-int.h (struct deps_desc): New fields last_prologue,
4330         last_epilogue, and last_logue_was_epilogue.
4331         * shrink-wrap.c (emit_common_heads_for_components): Record all
4332         emitted prologue and epilogue insns.
4333         (emit_common_tails_for_components): Ditto.
4334         (insert_prologue_epilogue_for_components): Ditto.
4336 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4338         PR middle-end/22141
4339         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
4340         * common.opt (fstore-merging): New Optimization option.
4341         * opts.c (default_options_table): Add entry for
4342         OPT_ftree_store_merging.
4343         * fold-const.h (can_native_encode_type_p): Declare prototype.
4344         * fold-const.c (can_native_encode_type_p): Define.
4345         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
4346         (PARAM_MAX_STORES_TO_MERGE): Likewise.
4347         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
4348         * passes.def: Insert pass_tree_store_merging.
4349         * tree-pass.h (make_pass_store_merging): Declare extern
4350         prototype.
4351         * gimple-ssa-store-merging.c: New file.
4352         * doc/invoke.texi (Optimization Options): Document
4353         -fstore-merging.
4354         (--param documentation): Document store-merging-allow-unaligned
4355         and max-stores-to-merge.
4357 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
4359         PR middle-end/72747
4360         * gimplify.c (gimplify_init_constructor): Move emit of constructor
4361         assignment to earlier in the if/else logic.
4363 2016-10-28  Richard Biener  <rguenther@suse.de>
4365         PR middle-end/78128
4366         PR middle-end/71002
4367         * fold-const.c (make_bit_field_ref): Only adjust alias set
4368         when the original alias set was zero.
4370 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4372         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
4373         (s390_adjust_loops): New function.
4374         (s390_reorg): Invoke s390_adjust_loops.
4375         * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
4376         ("osc_break"): New insn definition.
4378 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4380         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4381         * config.gcc: Support alternate archXX cpu levels with
4382         --with-arch= and --with-tune=.
4383         * config/s390/linux.h: Translate new archXX cpu levels to the
4384         original names when calling GAS.
4385         * config/s390/tpf.h: Likewise.
4386         * doc/invoke.texi: Document the alternate cpu level names.
4388 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
4390         PR rtl-optimization/77919
4391         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4392         MEM if mode1 is not a complex mode.
4394         PR rtl-optimization/78132
4395         * ree.c (combine_reaching_defs): Give up if copy_needed and
4396         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4398 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
4400         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4402 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
4404         * config/rs6000/constraints.md (wH constraint): Add new
4405         constraints for allowing 32-bit integers (and eventually 8/16-bit
4406         integers) into the vector registers.
4407         (wI constraint): Likewise.
4408         (wJ constraint): Likewise.
4409         (wK constraint): Likewise.
4410         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4411         -mvsx-small-integer as a default option for ISA 2.07
4412         (i.e. power8).
4413         (POWERPC_MASKS): Likewise.
4414         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4415         switch to turn off small integer support in vector registers.
4416         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4417         test for -mupper-regs-di, since it is already done with the
4418         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
4419         -mvsx-small-integer.
4420         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4421         constraints.
4422         (rs6000_setup_reg_addr_masks): Likewise.
4423         (rs6000_init_hard_regno_mode_ok): Likewise.
4424         (rs6000_option_override_internal): Add consistency checks for
4425         -mvsx-small-integer.
4426         (rs6000_secondary_reload_simple_move): SImode is a simple move if
4427         -mvsx-small-integer.
4428         (rs6000_secondary_reload): Use std::swap.
4429         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4430         VSX_REGS for small integers in vector registers, since there is no
4431         D-FORM address mode for such types.
4432         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4433         (rs6000_opt_masks): Add -mvsx-small-integer.
4434         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4435         support.
4436         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4437         extracts can be done on ISA 2.07.
4438         (vsx_extract_<mode>): Add support for small integers in vsx
4439         registers.
4440         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4441         longer support V4SImode in this pattern.
4442         (vsx_extract_si): New insn to support extraction of SImode in ISA
4443         2.07 using either xxextractuw or vspltw.
4444         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4445         longer support V4SImode in this pattern.
4446         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4447         wJ, and wK constraints.
4448         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4449         storing SDmode with VSX instructions.
4450         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4451         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
4452         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
4453         small integers in vector registers.
4454         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4455         load and before the FPR and VSX loads.  Remove ??, ! from the
4456         constraints.  Add VEXTSW2D support for small integers in vector
4457         registers.
4458         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
4459         integers in vector registers.
4460         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4461         move instead of using an UNSPEC.
4462         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
4463         integers in vector registers.
4464         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4465         move instead of using an UNSPEC.
4466         (movsi_internal1): Add support for -mvsx-small-integer.  Align
4467         columns so that it is more readable.
4468         (SImode splitter for ISA 3.0 constants): Add splitter for
4469         -128..127 constants that can easily be constructed on ISA 3.0.
4470         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4471         constraints.
4473 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
4475         PR middle-end/78025
4476         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4477         functions.
4479 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
4481         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4482         PIC_OFFSET_TABLE_REGNUM twice.
4484 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
4486         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4487         support for constant operand for OP.
4489 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
4491         * dwarf2out.c (gen_member_die): Only reparent_child instead of
4492         splice_child_die if child doesn't have DW_AT_specification attribute.
4494 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4496         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4497         (TARGET_HAVE_LDREXBH): Likewise.
4498         (TARGET_HAVE_LDACQ): Likewise.
4500 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4502         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
4503         logic to to decide whether to copy over old value to register for new
4504         value.
4505         * config/arm/sync.md: Add comments explaning why mode and code
4506         attribute are not defined in iterators.md
4507         (thumb1_atomic_op_str): New code attribute.
4508         (thumb1_atomic_newop_str): Likewise.
4509         (thumb1_atomic_fetch_op_str): Likewise.
4510         (thumb1_atomic_fetch_newop_str): Likewise.
4511         (thumb1_atomic_fetch_oldop_str): Likewise.
4512         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4513         mirror the more restrictive constraints of the Thumb-1 insns after
4514         split compared to Thumb-2 counterpart insns.
4515         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
4516         in sync with non atomic version.
4517         (atomic_nand<mode>): Likewise.
4518         (atomic_fetch_<sync_optab><mode>): Likewise.
4519         (atomic_fetch_nand<mode>): Likewise.
4520         (atomic_<sync_optab>_fetch<mode>): Likewise.
4521         (atomic_nand_fetch<mode>): Likewise.
4522         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4523         in sync with atomic version.
4524         (thumb1_subsi3_insn): Likewise.
4525         (thumb1_andsi3_insn): Likewise.
4526         (thumb1_iorsi3_insn): Likewise.
4527         (thumb1_xorsi3_insn): Likewise.
4529 2016-10-27  Nick Clifton  <nickc@redhat.com>
4531         * plugin.c (register_plugin_info): Produce an error message if the
4532         plugin is not found in the hash table.
4534 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
4536         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4537         New pattern.
4539 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4541         PR target/78056
4542         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4543         define builtin functions from the bdesc_spe_predicates or
4544         bdesc_spe_evsel arrays if the builtin mask is not compatible with
4545         the current compiler configuration.
4546         (paired_init_builtins): Modify loop to not define define builtin
4547         functions from the bdesc_paried_preds array if the builtin mask is
4548         not compatible with the current compiler configuration.
4549         (altivec_init_builtins): Modify loops to not define the
4550         __builtin_altivec_stxvl function nor the builtin functions from
4551         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4552         builtin mask is not compatible with the current compiler
4553         configuration.
4555 2016-10-26  Jeff Law  <law@redhat.com>
4557         * config/sh/sh.c (output_branch): Add missing fallthru comments.
4558         (gen_shl_and): Likewise.
4559         * config/sh/sh.md (movsicc): Add missing fallthru comments.
4561         * config/mips/mips.c (mips16_constant_cost): Add missing
4562         fallthru comments.
4563         (mips16_build_call_stub): Increase buffer size.  Adjust
4564         fallthru comment.
4566 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
4568         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4569         INSN_UIDs for all insns in compact mode.
4570         (rtx_writer::print_rtx): Likewise.
4571         * print-rtl.h (rtx_writer::flag_compact): Update comment.
4572         * rtl-tests.c (selftest::test_dumping_insns): Update expected
4573         output to include INSN_UID.
4574         (selftest::test_uncond_jump): Likewise.
4576 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
4578         * haifa-sched.c (call_used_regs_num): Rename to...
4579         (call_saved_regs_num): ...this.
4580         (fixed_regs_num): New variable.
4581         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4582         regs not call_used.
4583         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4585 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
4587         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4588         class rtx_writer.
4589         * print-rtl.c (outfile): Delete global.
4590         (sawclose): Likewise.
4591         (indent): Likewise.
4592         (in_call_function_usage): Likewise.
4593         (flag_compact): Likewise.
4594         (flag_simple): Likewise.
4595         (rtx_writer::rtx_writer): New ctor.
4596         (print_rtx_operand_code_0): Convert to...
4597         (rtx_writer::print_rtx_operand_code_0): ...this.
4598         (print_rtx_operand_code_e): Convert to...
4599         (rtx_writer::print_rtx_operand_code_e): ...this.
4600         (print_rtx_operand_codes_E_and_V): Convert to...
4601         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4602         (print_rtx_operand_code_i): Convert to...
4603         (rtx_writer::print_rtx_operand_code_i): ...this.
4604         (print_rtx_operand_code_r): Convert to...
4605         (rtx_writer::print_rtx_operand_code_r): ...this.
4606         (print_rtx_operand_code_u): Convert to...
4607         (rtx_writer::print_rtx_operand_code_u): ...this.
4608         (print_rtx_operand): Convert to...
4609         (rtx_writer::print_rtx_operand): ...this.
4610         (print_rtx): Convert to...
4611         (rtx_writer::print_rtx): ...this.
4612         (print_inline_rtx): Rewrite in terms of class rtx_writer.
4613         (debug_rtx): Likewise.
4614         (print_rtl): Convert to...
4615         (rtx_writer::print_rtl): ...this.
4616         (print_rtl): Reimplement in terms of class rtx_writer.
4617         (print_rtl_single): Rewrite in terms of class rtx_writer.
4618         (print_rtl_single_with_indent): Convert to..
4619         (rtx_writer::print_rtl_single_with_indent): ...this.
4620         (print_simple_rtl): Rewrite in terms of class rtx_writer.
4621         * print-rtl.h (flag_compact): Delete decl.
4622         (class rtx_writer): New class.
4623         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4624         class rtx_writer.
4626 2016-10-26  Jeff Law  <law@redhat.com>
4628         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4629         fallthru.
4631         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4632         (check_if_valid_sleep_operand): Add missing fallthru comment.
4633         (arc_register_move_cost): Increase buffer size.
4634         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4635         comment.
4636         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4638         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4639         comment.  Add gcc_unreachable for path that should never happen.
4641         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4642         fallthru comment.
4644 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
4645             Martin Liska  <mliska@suse.cz>
4647         PR fortran/77973
4648         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4649         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4650         on outer context if any.
4652 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
4654         * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4655         by increment rather than double it.
4656         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
4657         emit a space before args[4].
4658         (END): Don't emit a space before with_arg.
4660 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4662         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4663         Baseline only alternatives to (i) hold store atomic success value in a
4664         return register rather than a scratch register, (ii) use a low register
4665         for it and to (iii) ensure the cbranchsi insn generated by the split
4666         respect the constraints of Thumb-1 cbranchsi4_insn and
4667         cbranchsi4_scratch.
4668         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4669         constraints must match those in atomic_compare_and_swap.
4670         (cbranchsi4_scratch): Likewise.
4672 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4674         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4675         variable.  Add the new parameter to the insn generator.  Set that
4676         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
4677         return value from the negation of that parameter for Thumb-1, keeping
4678         the logic unchanged otherwise except for using bdst as the destination
4679         register of the compare_and_swap insn.
4680         (arm_split_compare_and_swap): Add explanation about how is the value
4681         returned to the function comment.  Rename scratch variable to
4682         neg_bval.  Adapt initialization of variables holding operands to the
4683         new operand numbers.  Use return register to hold result of store
4684         exclusive for Thumb-1, scratch register otherwise.  Construct the
4685         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4686         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
4687         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4688         for strongly ordered compare_and_swap.
4689         * config/arm/predicates.md (cc_register_operand): New predicate.
4690         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4691         match_operand with the new predicate to accept either the CC flag or a
4692         destination register for the boolean return value, restricting it to
4693         CC flag only via constraint.  Adapt operand numbers accordingly.
4695 2016-10-26  Jeff Law  <law@redhat.com>
4697         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4699         * config/frv/frv.c (comparison_string): Do not fall through after
4700         an error.
4702         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4703         comment.
4704         (expand_one_builtin): Add missing break.
4706         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4707         (m32c_legitimate_address_p): Likewise.
4709         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4711         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4713         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4714         fallthru comment.
4716         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4717         fallthru comment.
4719         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4721         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4722         comment.
4723         (rl78_asm_ctor_dtor): Increase buffer size.
4725         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4726         buffer size.
4727         (xstormy16_asm_output_constructor): Likewise.
4729         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4730         size.
4732         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4733         comment to silence warning.
4735         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4736         (spu_legitimate_address_p): Fix logic error and add missing fallthru
4737         comment.
4739 2016-10-26  Michael Matz  <matz@suse.de>
4741         PR tree-optimization/78060
4742         PR tree-optimization/78061
4743         PR tree-optimization/78088
4744         * tree-ssa-loop-split.c (easy_exit_values): New function.
4745         (tree_ssa_split_loops): Use it.
4746         (compute_new_first_bound): Change order of operations,
4747         fix invalid use of types.
4749 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
4751         gen-pass-instances.awk is sensitive to the order in which
4752         passes are added; passes that appear later have to be added first.
4754         PR target/71676
4755         PR target/71678
4756         * config/avr/avr-passes.def: Swap order of directives for
4757         gen-pass-instances.awk.
4759 2016-10-25  Jeff Law  <law@redhat.com>
4761         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4762         (vax_notice_update_cc): Likewise.
4764 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4766         * config.gcc (sparc*-*-solaris2*): Adjust.
4767         (sparc64-*-linux*): Likewise.
4768         * config/sparc/default-64.h: Rename to...
4769         * config/sparc/default64.h: ...this.
4770         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4771         with TARGET_ARCH64.
4772         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4773         * config/sparc/sparc.h: Minor tweaks.
4774         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4775         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
4777 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4779         * input.c (fcache::file_patch): Add comment about lifetime.
4780         (selftest::cpp_reader_ptr): New class.
4781         (selftest::lexer_test): Convert m_parser from cpp_reader *
4782         to a cpp_reader_ptr, and move m_tempfile to after it.
4783         (selftest::lexer_test::lexer_test): Update for above reordering.
4784         (lexer_test::~lexer_test): Move cleanup of m_parser to
4785         cpp_reader_ptr's dtor.
4787 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4789         * toplev.c (toplev::main): Remove call to
4790         location_adhoc_data_fini.
4792 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4794         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4795         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
4797 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
4799         * ggc-tests.c (forcibly_ggc_collect): Rename to...
4800         (selftest::forcibly_ggc_collect): ...this, and remove "static".
4801         (test_basic_struct): Update for above renaming.
4802         (test_length): Likewise.
4803         (test_union): Likewise.
4804         (test_finalization): Likewise.
4805         (test_deletable_global): Likewise.
4806         (test_inheritance): Likewise.
4807         (test_chain_next): Likewise.
4808         (test_user_struct): Likewise.
4809         (test_tree_marking): Likewise.
4810         * selftest-run-tests.c (selftest::run_tests): Call
4811         selftest::forcibly_ggc_collect at the end of the selftests.
4812         * selftest.h (selftest::forcibly_ggc_collect): New decl.
4814 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
4816         PR target/78102
4817         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4818         * optabs.c (expand_vec_cond_expr): For comparison codes
4819         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4820         (expand_vec_cmp_expr): For comparison codes
4821         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4822         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4823         Add enum tree_code argument.
4824         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4825         inline functions.
4826         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
4827         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4828         fallback.
4829         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
4830         NE_EXPR, attempt to use vcondeq_optab as fallback.
4831         * tree-vect-generic.c (expand_vector_comparison,
4832         expand_vector_divmod, expand_vector_condition): Adjust
4833         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4834         * tree-vect-stmts.c (vectorizable_condition,
4835         vectorizable_comparison): Likewise.
4836         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4837         check_bool_pattern, search_type_for_mask_1): Likewise.
4838         * expr.c (do_store_flag): Likewise.
4839         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4840         @code{vcondeq@var{m}@var{n}}): Document.
4841         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4842         New expanders.
4844 2016-10-25  Jeff Law  <law@redhat.com>
4846         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4847         comment.
4848         (v850_output_aligned_bss): Add missing break.
4850         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4852 2016-10-25  Martin Liska  <mliska@suse.cz>
4854         PR sanitizer/78106
4855         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4856         statements as they can also contain possibly a freeing call.
4858 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
4859             Martin Liska  <mliska@suse.cz>
4861         PR ipa/78099
4862         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4863         * ipa-icf.c (sem_function::get_hash): Add target optimization
4864         node to hash.
4866 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
4868         PR target/78041
4869         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4870         Remove partial overlap check for shift by 1.
4871         (ashldi3_neon): Likewise.
4873 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4875         * config/arm/constraints.md (Q constraint): Document its use for
4876         Thumb-1.
4877         (Pf constraint): New constraint for relaxed, consume or relaxed memory
4878         models.
4879         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4880         alternatives to allow any register when memory model matches Pf and
4881         thus lda is used, but only low registers otherwise.  Use unpredicated
4882         output template for Thumb-1 targets.
4883         (atomic_store<mode>): Likewise for stl.
4884         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4885         whose output template does not have predication.
4886         (arm_load_acquire_exclusive<mode>): Likewise.
4887         (arm_load_exclusivesi): Likewise.
4888         (arm_load_acquire_exclusivesi): Likewise.
4889         (arm_store_release_exclusive<mode>): Likewise.
4890         (arm_store_exclusive<mode>): Use unpredicated output template for
4891         Thumb-1 targets.
4893 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
4895         * internal-fn.def (LAUNDER): New internal function.
4896         * internal-fn.c (expand_LAUNDER): New function.
4898 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
4899             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
4901         New avr target pass to work around performance loss by PR fix.
4903         PR target/71676
4904         PR target/71678
4905         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4906         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4907         * config/avr/predicates.md (extend_operator): New.
4908         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4909         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4910         (make_avr_pass_casesi): New prototypes.
4911         * config/avr/avr.c (print-rtl.h): Include it.
4912         (pass_data avr_pass_data_casesi): Data for new pass.
4913         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4914         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4915         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4916         (avr_optimize_casesi): New functions.
4918 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
4919             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
4921         PR target/71676
4922         PR target/71678
4923         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4925 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
4927         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4928         DW_AT_rvalue_reference attributes.
4930 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4932         * doc/invoke.text (Wint-in-bool-context): Update documentation.
4933         * value-prof.c (stringop_block_profile): Fix a warning.
4935 2016-10-24  Martin Sebor  <msebor@redhat.com>
4937         PR middle-end/77735
4938         * builtins.c (string_length): New function.
4939         (c_strlen): Use string_length.  Correctly handle wide strings.
4940         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4941         functions.
4942         (target_int_max): Call target_max_value.
4943         (format_result::knownrange): New data member.
4944         (fmtresult::fmtresult): Define default constructor.
4945         (format_integer): Use it and set format_result::knownrange.
4946         Handle global constants.
4947         (format_floating_max): Add third argument.
4948         (format_floating): Recompute maximum value for %a for each argument.
4949         (get_string_length): Use fmtresult default ctor.
4950         (format_string): Set format_result::knownrange.
4951         (format_directive): Check format_result::knownrange.
4952         (add_bytes): Same.  Correct caret placement in diagnostics.
4953         (pass_sprintf_length::compute_format_length): Set
4954         format_result::knownrange.
4955         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4957 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
4959         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4960         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4962 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
4964         PR debug/77985
4965         * dwarf2out.c (file_table_relative_p): Remove.
4966         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4967         also for absolute paths.
4968         * doc/tm.texi: Update.
4969         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4970         * target.def (force_at_comp_dir): Remove hook.
4971         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4973 2016-10-24  Richard Biener  <rguenther@suse.de>
4975         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4976         backedges when identifying the single predecessor to take
4977         conditional info from.  Use SCEV to get at ranges for loop IVs.
4978         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4979         avoid false warning.
4981 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
4983         PR target/78093
4984         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4985         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4986         (avr_address_tiny_absdata_p): New static function.
4987         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4988         it to determine validity of constant addresses.
4989         (avr_attribute_table) [absdata]: New variable attribute...
4990         (avr_handle_absdata_attribute): ...and handler.
4991         (avr_decl_absdata_p): New static function.
4992         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4993         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4994         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4996 2016-10-24  Richard Biener  <rguenther@suse.de>
4998         PR tree-optimization/78076
4999         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
5000         also on the loop tree root.
5002 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
5004         * config/i386/i386.c (ix86_fold_builtin): Handle
5005         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
5006         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
5007         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
5008         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
5010 2016-10-24  Martin Liska  <mliska@suse.cz>
5012         PR sanitizer/77966
5013         * opts.c (finish_options): Skip conditionally.
5015 2016-10-23  Martin Sebor  <msebor@redhat.com>
5017         PR target/77837
5018         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
5019         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
5021 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
5023         * config/sparc/sparc.md (cpu_feature): Minor tweak.
5024         (enabled): Likewise.
5025         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
5026         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
5027         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
5028         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
5029         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
5030         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
5032 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
5034         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
5035         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
5037 2016-10-21  Andrew Pinski  <apinski@cavium.com>
5039         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
5040         integer constants.
5041         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
5042         implementer_id to unsigned char.
5043         Change part_no to unsigned int.
5044         (AARCH64_BIG_LITTLE): New define.
5045         (INVALID_IMP): New define.
5046         (INVALID_CORE): New define.
5047         (cpu_data): Change the last element's implementer_id and part_no to
5048         integers.
5049         (valid_bL_string_p): Rewrite to ..
5050         (valid_bL_core_p): this for integers instead of strings.
5051         (parse_field): New function.
5052         (contains_string_p): Rewrite to ...
5053         (contains_core_p): this for integers and only for the part_no.
5054         (host_detect_local_cpu): Rewrite handling of implementation and
5055         par num to be integers; simplifying the code.
5057 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5059         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
5060         value range for pointers in more cases.
5062 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
5064         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
5065         Add extra argument to allow emitting the move immediate.
5066         Use add/sub with positive immediate.
5067         (aarch64_add_constant): Add inline function.
5068         (aarch64_add_sp): Likewise.
5069         (aarch64_sub_sp): Likewise.
5070         (aarch64_expand_prologue): Call aarch64_sub_sp.
5071         (aarch64_expand_epilogue): Call aarch64_add_sp.
5072         Decide when to leave out move.
5073         (aarch64_output_mi_thunk): Call aarch64_add_constant.
5075 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
5077         * config/aarch64/aarch64.c (aarch64_layout_frame):
5078         Align FP callee-saves.
5080 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
5082         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
5083         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
5084         Formatting fixes.
5085         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5086         _rdseed64_step): Likewise.
5087         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
5089         PR target/78057
5090         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
5091         and tree-ssanames.h.
5092         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
5093         with INTEGER_CST argument.
5094         (ix86_gimple_fold_builtin): New function.
5095         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5097         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
5098         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
5099         (ranges_table_allocated, ranges_table_in_use,
5100         ranges_by_label_allocated, ranges_by_label_in_use,
5101         RANGES_TABLE_INCREMENT): Removed.
5102         (add_ranges_num): Use vec_safe_push into ranges_table.
5103         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
5104         (output_ranges): Adjust for ranges_table and ranges_by_label
5105         conversion from arrays to vec.
5106         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
5107         conversion from arrays to vec.
5108         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
5109         ranges_table_in_use, ranges_by_label_allocated and
5110         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
5112         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
5113         if needed.  Re-add origin_die variable and its initialization.
5115         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
5116         even for -fstack-reuse=none, or for volatile vars etc.
5118 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
5120         * print-rtl-function.c (flag_compact): Move extern decl to...
5121         * print-rtl.h (flag_compact): ...here.
5122         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
5123         (ASSERT_RTL_DUMP_EQ): New macro.
5124         (selftest::test_dumping_regs): New function.
5125         (selftest::test_dumping_insns): New function.
5126         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
5127         the insns.
5128         (selftest::rtl_tests_c_tests): Call the new test functions.
5130 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5132         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5133         (outgoing_edges_match): Likewise.
5134         (try_crossjump_to_edge): Likewise.
5135         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5136         (rtl_tidy_fallthru_edge): Likewise.
5137         * rtl.h (tablejump_p): Adjust prototype.
5138         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
5140 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5142         * rtl.h (label_ref_label): New function.
5143         (set_label_ref_label): New function.
5144         (LABEL_REF_LABEL): Delete.
5145         * alias.c (rtx_equal_for_memref_p): Adjust.
5146         * cfgbuild.c (make_edges): Likewise.
5147         (purge_dead_tablejump_edges): Likewise.
5148         * cfgexpand.c (convert_debug_memory_address): Likewise.
5149         * cfgrtl.c (patch_jump_insn): Likewise.
5150         * combine.c (distribute_notes): Likewise.
5151         * cse.c (hash_rtx_cb): Likewise.
5152         (exp_equiv_p): Likewise.
5153         (fold_rtx): Likewise.
5154         (check_for_label_ref): Likewise.
5155         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5156         (cselib_hash_rtx): Likewise.
5157         * emit-rtl.c (mark_label_nuses): Likewise.
5158         * explow.c (convert_memory_address_addr_space_1): Likewise.
5159         * final.c (output_asm_label): Likewise.
5160         (output_addr_const): Likewise.
5161         * gcse.c (add_label_notes): Likewise.
5162         * genconfig.c (walk_insn_part): Likewise.
5163         * genrecog.c (validate_pattern): Likewise.
5164         * ifcvt.c (cond_exec_get_condition): Likewise.
5165         (noce_emit_store_flag): Likewise.
5166         (noce_get_alt_condition): Likewise.
5167         (noce_get_condition): Likewise.
5168         * jump.c (maybe_propagate_label_ref): Likewise.
5169         (mark_jump_label_1): Likewise.
5170         (redirect_exp_1): Likewise.
5171         (rtx_renumbered_equal_p): Likewise.
5172         * lra-constraints.c (operands_match_p): Likewise.
5173         * print-rtl.c (print_value): Likewise.
5174         * reload.c (find_reloads): Likewise.
5175         * reload1.c (set_label_offsets): Likewise.
5176         * reorg.c (get_branch_condition): Likewise.
5177         * rtl-tests.c (test_uncond_jump): Likewise.
5178         * rtl.c (rtx_equal_p_cb): Likewise.
5179         (rtx_equal_p): Likewise.
5180         * rtlanal.c (reg_mentioned_p): Likewise.
5181         (rtx_referenced_p): Likewise.
5182         (get_condition): Likewise.
5183         * varasm.c (const_hash_1): Likewise.
5184         (compare_constant): Likewise.
5185         (const_rtx_hash_1): Likewise.
5186         (output_constant_pool_1): Likewise.
5188 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5190         PR target/71627
5191         * reload.c (find_valid_class_1): Allow regclass if atleast one
5192         regno in regclass is ok. Compute and use rclass size based on
5193         actually available regnos for mode in rclass.
5195 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
5197         * config/sparc/sparc-modes.def (CCV): New.
5198         (CCXV): Likewise.
5199         * config/sparc/predicates.md (v_comparison_operator): New.
5200         (icc_comparison_operator): Add support for CCV/CCXV.
5201         (xcc_comparison_operator): Likewise.
5202         * config/sparc/sparc.c (output_cbranch): Likewise.
5203         (sparc_print_operand): Likewise.
5204         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5205         (uaddvdi4): New expander.
5206         (addvdi4): Likewise.
5207         (uaddvdi4_sp32): New instruction.
5208         (addvdi4_sp32): Likewise.
5209         (uaddvsi4): New expander.
5210         (addvsi4): Likewise.
5211         (cmp_ccc_plus_sltu_set): New instruction.
5212         (cmp_ccv_plus): Likewise.
5213         (cmp_ccxv_plus): Likewise.
5214         (cmp_ccv_plus_set): Likewise.
5215         (cmp_ccxv_plus_set): Likewise.
5216         (cmp_ccv_plus_sltu_set): Likewise.
5217         (uaddvdi4): New expander.
5218         (subvdi4): Likewise.
5219         (usubdi4_sp32): New instruction.
5220         (subvdi4_sp32): Likewise.
5221         (usubvsi4): New expander.
5222         (subvsi4): Likewise.
5223         (cmpsi_minus_sltu_set): New instruction.
5224         (cmp_ccv_minus): Likewise.
5225         (cmp_ccxv_minus): Likewise.
5226         (cmp_ccv_minus_set): Likewise.
5227         (cmp_ccxv_minus_set): Likewise.
5228         (cmp_ccv_minus_sltu_set): Likewise.
5229         (unegvdi3): New expander.
5230         (negvdi3): Likewise.
5231         (unegdi3_sp32): New instruction.
5232         (negvdi3_sp32): Likewise.
5233         (unegvsi3): New expander.
5234         (negvsi3): Likewise.
5235         (cmp_ccc_neg_sltu_set): New instruction.
5236         (cmp_ccv_neg): Likewise.
5237         (cmp_ccxv_neg): Likewise.
5238         (cmp_ccv_neg_set): Likewise.
5239         (cmp_ccxv_neg_set): Likewise.
5240         (cmp_ccv_neg_sltu_set): Likewise.
5242         * tree-ssa-loop-split.c: Remove trailing spaces.
5243         * match.pd: Likewise.
5245 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5247         PR rtl-optimization/78038
5248         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
5249         be deduced to set REG through the RTL structure.
5250         (make_defs_and_copies_lists): Return false on a failing get_defs call.
5252 2016-10-21  Richard Biener  <rguenther@suse.de>
5254         PR tree-optimization/78051
5255         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
5256         and mark replaced if folding did something.
5258 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
5260         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
5261         and "protected" in visibility types.
5262         (rs6000_xcoff_declare_function_name): Fix formatting.
5263         (rs6000_xcoff_declare_object_name): Fix formatting.
5265 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
5267         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
5268         and IX86_BUILTIN_HUGE_VALQ here ...
5269         (ix86_expand_builtin): ... not here.
5271 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
5273         * doc/gty.texi (for_user): Use @item next to @findex.
5275 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
5277         PR target/78037
5278         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
5279         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
5280         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
5281         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
5282         __builtin_ia32_lzcnt_u16.
5283         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
5284         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
5285         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
5286         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
5287         (bmi_tzcnt_<mode>): New expander.
5288         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5289         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
5290         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
5291         (lzcnt_<mode>): New expander.
5292         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
5293         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
5294         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
5295         (UINT64_FTYPE_UINT64): New.
5296         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
5297         (__builtin_ia32_lzcnt_u16): New description.
5298         (__builtin_ia32_lzcnt_u32): Ditto.
5299         (__builtin_ia32_lzcnt_u64): Ditto.
5300         (__builtin_ctzs): Remove description.
5301         (__builtin_ia32_tzcnt_u16): New description.
5302         (__builtin_ia32_tzcnt_u32): Ditto.
5303         (__builtin_ia32_tzcnt_u64): Ditto.
5304         * config/i386/i386.c (ix86_expand_args_builtin): Handle
5305         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
5307 2016-10-20  Martin Liska  <mliska@suse.cz>
5309         PR lto/78049
5310         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
5311         comparison with STMT_UID_NOT_IN_RANGE.
5312         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
5313         LTRANS.
5315 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
5317         * compare-elim.c (conforming_compare): Accept UNSPECs.
5318         (find_comparison_dom_walker::before_dom_children): Deal with
5319         instructions both using and killing the flags register.
5320         (equivalent_reg_at_start): New function extracted from...
5321         (try_eliminate_compare): ...here.  Use it and add support for
5322         registers and UNSPECs as second operand of the compare.
5323         * config/visium/visium-modes.def (CCV): New.
5324         * config/visium/predicates.md (visium_v_comparison_operator): New.
5325         (visium_branch_operator): Deal with CCV mode.
5326         * config/visium/visium.c (visium_select_cc_mode): Likewise.
5327         (output_cbranch): Likewise.
5328         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
5329         (uaddv<mode>4): New expander.
5330         (addv<mode>4): Likewise.
5331         (add<mode>3_insn_set_carry): New instruction.
5332         (add<mode>3_insn_set_overflow): Likewise.
5333         (addsi3_insn_set_overflow): Likewise.
5334         (usubv<mode>4): New expander.
5335         (subv<mode>4): Likewise.
5336         (sub<mode>3_insn_set_carry): New instruction.
5337         (sub<mode>3_insn_set_overflow): Likewise.
5338         (subsi3_insn_set_overflow): Likewise.
5339         (unegv<mode>3): New expander.
5340         (negv<mode>3): Likewise.
5341         (neg<mode>2_insn_set_overflow): New instruction.
5342         (addv_tst<mode>): Likewise.
5343         (subv_tst<mode>): Likewise.
5344         (negv_tst<mode>): Likewise.
5345         (cbranch<mode>4_addv_insn): New splitter and instruction.
5346         (cbranch<mode>4_subv_insn): Likewise.
5347         (cbranch<mode>4_negv_insn): Likewise.
5349 2016-10-20  Richard Biener  <rguenther@suse.de>
5351         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
5352         Handle decls possibly not bound.
5353         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
5354         nothing_id for decls that might not be bound if we are interested
5355         for the address.
5356         (get_constraint_for_component_ref): Deal with that.
5358 2016-10-20  Michael Matz  <matz@suse.de>
5360         Loop splitting.
5361         * common.opt (-fsplit-loops): New flag.
5362         * passes.def (pass_loop_split): Add.
5363         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
5364         (enable_fdo_optimizations): Add loop splitting.
5365         * timevar.def (TV_LOOP_SPLIT): Add.
5366         * tree-pass.h (make_pass_loop_split): Declare.
5367         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
5368         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
5369         * tree-ssa-loop-split.c: New file.
5370         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
5371         * doc/invoke.texi (fsplit-loops): Document.
5372         * doc/passes.texi (Loop optimization): Add paragraph about loop
5373         splitting.
5375 2016-10-20  Richard Biener  <rguenther@suse.de>
5377         * cgraphunit.c (analyze_functions): Set node->definition to
5378         false to signal symbol removal to debug_hooks->late_global_decl.
5379         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5380         WPA signal symbol removal to the debuginfo machinery.
5381         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5382         using early_finised to guard the we're called for symbol
5383         removal case look at the symtabs definition flag.
5384         (gen_variable_die): Remove redundant check.
5386 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5388         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5390 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5392         PR tree-optimization/53979
5393         * match.pd ((a ^ b) | a -> a | b): New pattern.
5395 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
5397         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5398         config/pa/pa64-hpux-lib.h.
5399         (PA_CRTBEGIN_HACK): Likewise.
5400         (DTOR_LIST_BEGIN): Likewise.
5402 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5404         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5405         register only if "in" and "out" are different registers.
5407 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
5409         * omp-low.c (pass_oacc_device_lower::gate): New method.
5410         (execute): Always call execute_oacc_device_lower.
5412 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5414         PR tree-optimization/77916
5415         PR tree-optimization/77937
5416         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5417         stopgap fix.
5418         (insert_initializers): Requirement of initializer for -1 should be
5419         based on pointer-typedness of the candidate basis.
5421 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
5423         PR tree-optimization/78005
5424         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5425         upper (included) bound for niters of prolog loop.
5426         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5427         Compute niters of scalar loop above which vectorized loop is
5428         preferred, as well as the upper (included) bound for the niters.
5429         (vect_do_peeling): Record niter bound for loops accordingly.
5431 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
5433         PR lto/77458
5434         * tree-core.h (enum tree_index): Put the complex types after their
5435         component types.
5436         * tree-streamer.c (verify_common_node_recorded): New function.
5437         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5439 2016-10-19  Martin Liska  <mliska@suse.cz>
5441         * cgraph.h (cgraph_edge::binds_to_current_def_p):
5442         Replace NULL with false as a return value.
5444 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
5446         PR tree-optimization/78024
5447         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5448         don't clear BB_VISITED after processing.
5450 2016-10-19  Richard Biener  <rguenther@suse.de>
5452         * domwalk.c (dom_walker::walk): Use RPO order.
5454 2016-10-19  Richard Biener  <rguenther@suse.de>
5456         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5457         stmts_to_remove.
5458         (evrp_dom_walker::~evrp_dom_walker): Free it.
5459         (evrp_dom_walker::stmts_to_remove): Add.
5460         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5461         whose output we fully propagate for removal.  Propagate
5462         into BB destination PHI arguments.
5463         (execute_early_vrp): Remove queued stmts.  Dump value ranges
5464         before stmt removal.
5466 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
5468         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5469         * passes.def: Add two instances of pass_walloca.
5470         * tree-pass.h (make_pass_walloca): New.
5471         * gimple-ssa-warn-alloca.c: New file.
5472         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5473         -Wvla-larger-than= options.
5475 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
5477         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5478         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5480 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5482         * config/rs6000/altivec.h (vec_xl_len): New macro.
5483         (vec_xst_len): New macro.
5484         (vec_cmpnez): New macro.
5485         (vec_cntlz_lsbb): New macro.
5486         (vec_cnttz_lsbb): New macro.
5487         (vec_xlx): New macro.
5488         (vec_xrx): New macro.
5489         (vec_all_nez): New C++ predicate template.
5490         (vec_any_eqz): New C++ predicate template.
5491         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5492         conditional compilation.
5493         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5494         conditional compilation.
5495         (vec_all_nez): New macro.
5496         (vec_any_eqz): New macro.
5497         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5498         compilation.
5499         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5500         compilation.
5501         * config/rs6000/vector.md (VI): Moved this mode iterator
5502         definition from altivec.md to vector.md.
5503         (UNSPEC_NEZ_P): New value.
5504         (vector_ne_<mode>_p): New expansion for implementation of
5505         vec_all_ne and vec_any_eq built-in functions.
5506         (vector_nez_<mode>_p): New expansion for implementation of
5507         vec_all_nez and vec_any_eqz built-in functions.
5508         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5509         and vec_any_eq built-in function.
5510         (cr6_test_for_zero): New commentary to explain this expansion.
5511         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5512         (cr6_test_for_lt): New commentary to explain this expansion.
5513         (cr6_test_for_lt_reverse): New commentary to explain this
5514         expansion.
5515         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5516         overloaded function prototypes for vec_all_ne, vec_all_nez,
5517         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5518         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5519         built-in functions.
5520         (altivec_resolve_overloaded_builtin): Modify the handling of
5521         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5522         the compiler is configured to support TARGET_P9_VECTOR.
5523         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5524         to explain the special processing that is given to predicate
5525         built-ins introduced using this macro.
5526         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5527         the special processing given to predicate built-ins introduced
5528         using this macro.
5529         (BU_VSX_P): Likewise.
5530         (BU_P8V_AV_P): Likewise.
5531         (BU_P9V_AV_P): Likewise.
5532         (BU_P9V_AV_X): New macro.
5533         (BU_P9V_64BIT_AV_X): New macro.
5534         (BU_P9V_VSX_3): New macro.
5535         (BU_P9V_OVERLOAD_P): New macro.
5536         (LXVL): New BU_P9V_64BIT_VSX_2.
5537         (VEXTUBLX): New BU_P9V_AV_2.
5538         (VEXTUBRX): Likewise.
5539         (VEXTUHLX): Likewise.
5540         (VEXTUHRX): Likewise.
5541         (VEXTUWLX): Likewise.
5542         (VEXTUWRX): Likewise.
5543         (STXVL): New BU_P9V_64BIT_AV_X.
5544         (VCLZLSBB): New BU_P9V_AV_1.
5545         (VCTZLSBB): Likewise.
5546         (CMPNEB): New BU_P9V_AV_2.
5547         (CMPNEH): Likewise.
5548         (CMPNEW): Likewise.
5549         (CMPNEF): Likewise.
5550         (CMPNED): Likewise.
5551         (VCMPNEB_P): New BU_P9V_AV_P.
5552         (VCMPNEH_P): Likewise.
5553         (VCMPNEW_P): Likewise.
5554         (VCMPNED_P): Likewise.
5555         (VCMPNEFP_P): Likewise.
5556         (VCMPNEDP_P): Likewise.
5557         (CMPNEZB): New BU_P9V_AV_2.
5558         (CMPNEZH): Likewise.
5559         (CMPNEZW): Likewise.
5560         (VCMPNEZB_P): New BU_P9V_AV_P.
5561         (VCMPNEZH_P): Likewise.
5562         (VCMPNEZW_P): Likewise.
5563         (LXVL): New BU_P9V_OVERLOAD_2.
5564         (STXVL): New BU_P9V_OVERLOAD_3.
5565         (VEXTULX): New BU_P9V_OVERLOAD_2.
5566         (VEXTURX): Likewise.
5567         (CMPNEZ): Likewise.
5568         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5569         (VCMPNE_P): Likewise.
5570         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5571         (VCTZLSBB): Likewise.
5572         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5573         comment to explain mode used for scratch register.
5574         (altivec_expand_stxvl_builtin): New function.
5575         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5576         (altivec_init_builtins): Add initialized variable
5577         void_ftype_v16qi_pvoid_long and use this type to define the
5578         built-in function __builtin_altivec_stxvl.
5579         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5580         (UNSPEC_STXVL): New value.
5581         (UNSPEC_VCLZLSBB): New value.
5582         (UNSPEC_VCTZLSBB): New value.
5583         (UNSPEC_VEXTUBLX): New value.
5584         (UNSPEC_VEXTUHLX): New value.
5585         (UNSPEC_VEXTUWLX): New value.
5586         (UNSPEC_VEXTUBRX): New value.
5587         (UNSPEC_VEXTUHRX): New value.
5588         (UNSPEC_VEXTUWRX): New value.
5589         (UNSPEC_VCMPNEB): New value.
5590         (UNSPEC_VCMPNEZB): New value.
5591         (UNSPEC_VCMPNEH): New value.
5592         (UNSPEC_VCMPNEZH): New value.
5593         (UNSPEC_VCMPNEW): New value.
5594         (UNSPEC_VCMPNEZW): New value.
5595         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5596         vector of integer modes.
5597         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5598         vector of float or double modes.
5599         (*vector_nez_<mode>_p): New insn for vector test all not equal or
5600         zero.
5601         (lxvl): New expand for load VSX vector with length.
5602         (*lxvl): New insn for load VSX vector with length.
5603         (stxvl): New expand for store VSX vector with length.
5604         (*stxvl): New insn for store VSX vector with length.
5605         (vcmpneb): New insn for vector of byte compare not equal.
5606         (vcmpnezb): New insn for vector of byte compare not equal or zero.
5607         (vcmpneh): New insn for vector of half word compare not equal.
5608         (vcmpnezh): New insn for vector of half word compare not equal or
5609         zero.
5610         (vcmpnew): New insn for vector of word compare not equal.
5611         (vcmpne<VSs>): New insn for vector of float or double compare not
5612         equal.
5613         (vcmpnezw): New insn for vector of word compare not equal or zero.
5614         (vclzlsbb): New insn for vector count leading zero
5615         least-significant bits byte.
5616         (vctzlsbb): New insn for vector count trailing zero least
5617         signficant bits byte.
5618         (vextublx): New insn for vector extract unsigned byte left
5619         indexed.
5620         (vextubrx): New insn for vector extract unsigned byte right
5621         indexed.
5622         (vextuhlx): New insn for vector extract unsigned half word left
5623         indexed.
5624         (vextuhrx): New insn for vector extract unsigned half word right
5625         indexed.
5626         (vextuwlx): New insn for vector extract unsigned word left
5627         indexed.
5628         (vextuwrx): New insn for vector extract unsigned word right
5629         indexed.
5630         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5631         clarify intent of this constant.
5632         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5633         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5634         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5635         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5636         and vec_xrx functions.
5638 2016-10-18  Andrew Pinski  <apinski@cavium.com>
5640         PR tree-opt/65950
5641         * predict.c (is_exit_with_zero_arg): New function.
5642         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5643         as nottaken.
5645 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
5647         PR target/77991
5648         * config/i386/i386.c (legitimize_tls_address)
5649         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5650         convert dest to Pmode if different than Pmode.
5652 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5654         PR tree-optimization/77916
5655         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5656         stopgap fix, as pointers with -1 increment are still broken.
5658 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
5660         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5661         mapping class decoration from here...
5662         (rs6000_xcoff_encode_section): ...to here.
5664         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5665         if shrink-wrapping and optimizing for speed.
5667 2016-10-18  Richard Biener  <rguenther@suse.de>
5669         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5670         not visited but non-executable predecessors.  Return taken edge.
5671         Simplify conditions and refactor propagation vs. folding step.
5673 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
5675         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5676         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5677         (rs6000_get_separate_components): Assert we do not have those
5678         strategies selected.
5680 2016-10-18  Richard Biener  <rguenther@suse.de>
5682         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5683         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5684         clearing.
5685         (substitute_and_fold_dom_walker): Adjust constructor.
5686         (substitute_and_fold_dom_walker::before_dom_children): Remove
5687         do_dce flag and handling (always true).
5688         (substitute_and_fold): Likewise.
5689         * tree-vrp.c (vrp_finalize): Adjust.
5690         (execute_early_vrp): Remove final BB_VISITED clearing.
5691         * tree-ssa-ccp.c (ccp_finalize): Adjust.
5692         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5693         * ira.c (ira): Call clear_bb_flags.
5695 2016-10-18  Richard Biener  <rguenther@suse.de>
5697         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5698         get at the operand to look at with TREE_OPERAND for generic
5699         sub-nodes.
5701 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
5703         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5704         copy_md_ptr_loc.
5705         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5706         (write_test_expr): Use rtx_reader_ptr for calls to
5707         fprint_c_condition.
5708         (write_attr_value): Likewise.
5709         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5710         call to print_md_ptr_loc.
5711         (write_one_condition): Likewise for calls to print_c_condition.
5712         * genconstants.c: Include "statistics.h" and "vec.h".
5713         (main): Update for conversion to member functions.
5714         * genemit.c (emit_c_code): Use rtx_reader_ptr for
5715         call to print_md_ptr_loc.
5716         * genenums.c: Include "statistics.h" and "vec.h".
5717         (main): Update for conversion of traverse_enum_types to a method.
5718         * genmddeps.c: Include "statistics.h" and "vec.h".
5719         * genoutput.c (process_template): Use rtx_reader_ptr for call to
5720         print_md_ptr_loc.
5721         * genpreds.c (write_predicate_subfunction): Likewise.
5722         (write_predicate_expr): Likewise for calls to print_c_condition.
5723         * genrecog.c (print_test): Likewise.
5724         * gensupport.c (process_rtx): Likewise for calls to
5725         copy_md_ptr_loc and join_c_conditions.
5726         (alter_test_for_insn): Likewise for call to join_c_conditions.
5727         (process_substs_on_one_elem): Likewise.
5728         (gen_mnemonic_setattr): Update for move of string_obstack to a
5729         field of rtx_reader.
5730         (mnemonic_htab_callback): Likewise.  Fix formatting.
5731         (gen_mnemonic_attr): Likewise.
5732         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5733         to print_c_condition.
5734         * read-md.c: Include "statistics.h" and "vec.h".
5735         (string_obstack): Convert this global to field "m_string_obstack"
5736         of class rtx_reader.
5737         (ptr_locs): Likewise, as "m_ptr_locs".
5738         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5739         (joined_conditions): Likewise, as "m_joined_conditions".
5740         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5741         (md_constants): Likewise, as "m_md_constants".
5742         (enum_types): Likewise, as "m_enum_types".
5743         (set_md_ptr_loc): Convert to...
5744         (rtx_reader::set_md_ptr_loc): ...member function.
5745         (get_md_ptr_loc): Convert to...
5746         (rtx_reader::get_md_ptr_loc): ...member function.
5747         (copy_md_ptr_loc): Convert to...
5748         (rtx_reader::copy_md_ptr_loc): ...member function.
5749         (fprint_md_ptr_loc): Convert to...
5750         (rtx_reader::fprint_md_ptr_loc): ...member function.
5751         (print_md_ptr_loc): Convert to...
5752         (rtx_reader::print_md_ptr_loc): ...member function.
5753         (join_c_conditions): Convert to...
5754         (rtx_reader::join_c_conditions): ...member function.
5755         (fprint_c_condition): Convert to...
5756         (rtx_reader::fprint_c_condition): ...member function.
5757         (print_c_condition): Convert to...
5758         (rtx_reader::print_c_condition): ...member function.
5759         (read_name): Convert to...
5760         (rtx_reader::read_name): ...member function.
5761         (read_escape): Convert to...
5762         (rtx_reader::read_escape): ...member function.
5763         (read_quoted_string): Convert to...
5764         (rtx_reader::read_quoted_string): ...member function.
5765         (read_braced_string): Convert to...
5766         (rtx_reader::read_braced_string): ...member function.
5767         (read_string): Convert to...
5768         (rtx_reader::read_string): ...member function.
5769         (read_skip_construct): Convert to...
5770         (rtx_reader::read_skip_construct): ...member function.
5771         (handle_constants): Convert to...
5772         (rtx_reader::handle_constants): ...member function.
5773         (traverse_md_constants): Convert to...
5774         (rtx_reader::traverse_md_constants): ...member function.
5775         (handle_enum): Convert to...
5776         (rtx_reader::handle_enum): ...member function.
5777         (lookup_enum_type): Convert to...
5778         (rtx_reader::lookup_enum_type): ...member function.
5779         (traverse_enum_types): Convert to...
5780         (rtx_reader::traverse_enum_types): ...member function.
5781         (rtx_reader::rtx_reader): Move initializations
5782         of various former global data from rtx_reader::read_md_files to
5783         here, as fields, along with the call to unlock_std_streams.
5784         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5785         the new fields.
5786         (rtx_reader::read_md_files): Move initializations of various
5787         global data from here to the ctor.
5788         * read-md.h (read_name): Convert to...
5789         (rtx_reader::read_name): ...member function.
5790         (rtx_reader::read_escape): New method decl.
5791         (read_quoted_string): Convert to...
5792         (rtx_reader::read_quoted_string): ...member function.
5793         (rtx_reader::read_braced_string): New method decl.
5794         (read_string): Convert to...
5795         (rtx_reader::read_string): ...member function.
5796         (rtx_reader::read_skip_construct): New method decl.
5797         (rtx_reader::set_md_ptr_loc): New method decl.
5798         (rtx_reader::get_md_ptr_loc): New method decl.
5799         (copy_md_ptr_loc): Convert to...
5800         (rtx_reader::copy_md_ptr_loc): ...member function.
5801         (fprint_md_ptr_loc): Convert to...
5802         (rtx_reader::fprint_md_ptr_loc): ...member function.
5803         (print_md_ptr_loc): Convert to...
5804         (rtx_reader::print_md_ptr_loc): ...member function.
5805         (rtx_reader::lookup_enum_type): New method decl.
5806         (rtx_reader::traverse_enum_types): New method decl.
5807         (rtx_reader::handle_constants): New method decl.
5808         (traverse_md_constants): Convert to...
5809         (rtx_reader::traverse_md_constants): ...member function.
5810         (rtx_reader::handle_enum): New method decl.
5811         (rtx_reader::join_c_conditions): New method decl.
5812         (fprint_c_condition): Convert to...
5813         (rtx_reader::fprint_c_condition): ...member function.
5814         (print_c_condition): Convert to...
5815         (rtx_reader::print_c_condition): ...member function.
5816         (rtx_reader::apply_iterator_to_string): New method decl.
5817         (rtx_reader::copy_rtx_for_iterators): New method decl.
5818         (rtx_reader::read_conditions): New method decl.
5819         (rtx_reader::record_potential_iterator_use): New method decl.
5820         (rtx_reader::read_mapping): New method decl.
5821         (rtx_reader::read_rtx): New method decl.
5822         (rtx_reader::read_rtx_code): New method decl.
5823         (rtx_reader::read_rtx_operand): New method decl.
5824         (rtx_reader::read_nested_rtx): New method decl.
5825         (rtx_reader::read_rtx_variadic): New method decl.
5826         (rtx_reader::get_string_obstack): New method.
5827         (rtx_reader::get_md_constants): New method.
5828         (string_obstack): Convert global variable decl to...
5829         (rtx_reader::m_string_obstack): ...this new field.
5830         (rtx_reader::m_ptr_locs): New field.
5831         (rtx_reader::m_ptr_loc_obstack): New field.
5832         (rtx_reader::m_joined_conditions): New field.
5833         (rtx_reader::m_joined_conditions_obstack): New field.
5834         (rtx_reader::m_md_constants): New field.
5835         (rtx_reader::m_enum_types): New field.
5836         * read-rtl.c (apply_iterator_to_string): Convert to...
5837         (rtx_reader::apply_iterator_to_string): ...member function.
5838         (copy_rtx_for_iterators): Convert to...
5839         (rtx_reader::copy_rtx_for_iterators): ...member function.
5840         (add_condition_to_string): Use rtx_reader_ptr for
5841         calls join_c_conditions.
5842         (apply_iterators): Use rtx_reader_ptr for calls to
5843         join_c_conditions and copy_rtx_for_iterators.
5844         (read_conditions): Convert to...
5845         (rtx_reader::read_conditions): ...member function.
5846         (record_potential_iterator_use): Convert to...
5847         (rtx_reader::record_potential_iterator_use): ...member function.
5848         (read_mapping): Convert to...
5849         (rtx_reader::read_mapping): ...member function.
5850         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5851         (read_rtx): Convert to...
5852         (rtx_reader::read_rtx): ...member function.
5853         (read_rtx_code): Convert to...
5854         (rtx_reader::read_rtx_code): ...member function.
5855         (read_rtx_operand): Convert to...
5856         (rtx_reader::read_rtx_operand): ...member function.  Update for move
5857         of string_obstack to a field.
5858         (read_nested_rtx): Convert to..
5859         (rtx_reader::read_nested_rtx): ...member function.
5860         (read_rtx_variadic): Convert to..
5861         (rtx_reader::read_rtx_variadic): ...member function.
5863 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5865         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5867 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5869         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5870         for pointer type too.
5871         (ipcp_update_vr): set_ptr_nonnull for pointer.
5873 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
5875         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5876         pt_solution_singleton_p.
5877         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5878         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5879         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5880         pointer nonnull computed by VRP.
5881         Also Conservatively set pt.null to 1.
5882         (pt_solution_reset): Conservatively set pt.null to 1.
5883         (pt_solution_singleton_or_null_p): Renamed from
5884         pt_solution_singleton_p.
5885         * tree-ssanames.h (set_ptr_nonnull): Declare.
5886         (get_ptr_nonnull): Likewise.
5887         * tree-ssanames.c (set_ptr_nonnull): New.
5888         (get_ptr_nonnull): Likewise.
5889         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5890         (evrp_dom_walker::before_dom_children): Likewise.
5892 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5894         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5895         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5896         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5897         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5898         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5899         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5900         (rs6000_option_override_internal): Clear it if ABI_AIX.
5901         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5902         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5904 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5906         * gimple-ssa-strength-reduction.c (record_increment): Remove
5907         garbage comment.
5909 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5911         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5912         that the result is non-zero if it is true.
5913         (maybe_expand_shift): New wrapper around expand_shift_1.
5914         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5916 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5918         PR tree-optimization/77916
5919         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5920         Don't allow a MINUS_EXPR for pointer arithmetic for either known
5921         or unknown strides.
5922         (record_increment): Increments of -1 for unknown strides just use
5923         a multiply initializer like other negative values.
5924         (analyze_increments): Remove stopgap solution for -1 increment
5925         applied to pointer arithmetic.
5927 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5929         * dominance.c (dom_info::dom_info): Add new constructor for region
5930         which is vector of basic blocks.
5931         (dom_init): New method to initialize members common for both
5932         constructors.
5933         (dom_info::dom_info): Invoke dom_init for partial initialization.
5934         (dom_info::get_idom): Add check to corner cases on basic blocks which
5935         are not in region.
5936         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5937         to detect unreachable bbs.
5938         (dom_info::calc_idoms): Likewise.
5939         (compute_dom_fast_query_in_region): New function.
5940         (calculate_dominance_info_for_region): Likewise.
5941         (free_dominance_info_for_region): Likewise.
5942         * dominance.h: Add prototypes for introduced region-based functions
5943         * tree-if-conv.c (build_region): New function.
5944         (if_convertible_loop_p_1): Invoke local version of post-dominators
5945         calculation before basic block predication with subsequent freeing
5946         post-dominator info.
5947         (tree_if_conversion): Remove free of post-dominator info
5948         (pass_if_conversion::execute): Delete detection of infinite loops
5949         and fake edges to exit block since post-dominator calculation is
5950         performed per if-converted loop only.
5952 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5954         PR target/77308
5955         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5956         register explicitly.
5957         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5958         optimizing for size.
5960 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5962         * config/aarch64/aarch64.c: Delete inclusion of
5963         cortex-a57-fma-steering.h.
5964         (aarch64_override_options): Delete call
5965         to aarch64_register_fma_steering.
5966         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5967         * config/aarch64/cortex-a57-fma-steering.h: Delete.
5968         * config/aarch64/aarch64-passes.def: New file.
5969         * config/aarch64/cortex-a57-fma-steering.c
5970         (aarch64_register_fma_steering): Delete definition.
5971         (make_pass_fma_steering): Remove static qualifier.
5972         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5973         (cortex-a57-fma-steering.o): Remove dependency on
5974         cortex-a57-fma-steering.h.
5976 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
5978         * explow.c (validize_mem): Do not modify the argument in-place.
5980 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
5982         * tree-streamer.c (record_common_node): Explicitly list expected
5983         tree codes.
5985 2016-10-17  Richard Biener  <rguenther@suse.de>
5987         PR tree-optimization/77988
5988         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5990 2016-10-17  Marek Polacek  <polacek@redhat.com>
5992         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5994 2016-10-17  Richard Biener  <rguenther@suse.de>
5996         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5997         before using it.
5999 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6001         PR tree-optimization/71636
6002         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
6004 2016-10-17  Richard Biener  <rguenther@suse.de>
6006         * gimplify.c (gimplify_function_tree): Do not move the outer
6007         binds block.
6009 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
6011         * langhooks.h (struct lang_hooks_for_decls): Remove
6012         function_decl_explicit_p, function_decl_deleted_p and
6013         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
6014         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
6015         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
6016         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
6017         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
6018         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
6019         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
6020         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
6021         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
6022         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
6023         * langhooks.c (lhd_decl_dwarf_attribute): New function.
6024         * dwarf2out.c (gen_subprogram_die): Use
6025         lang_hooks.decls.decl_dwarf_attribute instead of
6026         lang_hooks.decls.function_decl_*.
6028 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6030         PR ada/37139
6031         PR ada/67205
6032         * common.opt (-ftrampolines): New option.
6033         * doc/invoke.texi (Code Gen Options): Document it.
6034         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
6035         * doc/tm.texi: Regenerate.
6036         * builtins.def: Add init_descriptor and adjust_descriptor.
6037         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
6038         on platforms with descriptors.
6039         (expand_builtin_init_descriptor): New function.
6040         (expand_builtin_adjust_descriptor): Likewise.
6041         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
6042         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
6043         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
6044         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
6045         Set STATIC_CHAIN_REG_P on the static chain register, if any.
6046         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
6047         (expand_call): Likewise.  Move around call to prepare_call_address
6048         and pass all flags to it.
6049         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
6050         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
6051         (gimple_call_set_by_descriptor): New setter.
6052         (gimple_call_by_descriptor_p): New getter.
6053         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
6054         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
6055         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
6056         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6057         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
6058         * rtl.h (STATIC_CHAIN_REG_P): New macro.
6059         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
6060         * target.def (custom_function_descriptors): New POD hook.
6061         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
6062         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
6063         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
6064         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
6065         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
6066         (build_common_builtin_nodes): Initialize init_descriptor and
6067         adjust_descriptor.
6068         * tree-nested.c: Include target.h.
6069         (struct nesting_info): Add 'any_descr_created' field.
6070         (get_descriptor_type): New function.
6071         (lookup_element_for_decl): New function extracted from...
6072         (create_field_for_decl): Likewise.
6073         (lookup_tramp_for_decl): ...here.  Adjust.
6074         (lookup_descr_for_decl): New function.
6075         (convert_tramp_reference_op): Deal with descriptors.
6076         (build_init_call_stmt): New function extracted from...
6077         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
6078         * defaults.h (FUNCTION_ALIGNMENT): Define.
6079         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
6080         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
6081         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6082         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
6083         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
6085 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6087         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
6088         constants in CONST_VECTORs.
6090 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
6092         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
6093         register as destination of bmask.
6094         (vector_init_bshuffle): Likewise.
6095         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
6096         (bmaskdi_vis): Enable only in 64-bit mode.
6098 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
6100         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
6101         make LR a separately shrink-wrapped component unless savres_strategy
6102         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
6103         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
6104         wrapping when not both {SAVE,REST}_INLINE_GPRS.
6106 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
6108         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
6109         and keep looping on failure.
6111 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
6113         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
6114         set.
6115         (print_rtx_function): Update example in comment for...
6116         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
6117         non-virtual pseudos with a '%' sigil followed by the regno, offset
6118         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
6119         pseudo is dumped as "%0".
6121 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
6123         PR middle-end/77959
6124         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
6125         return a MEM.
6127 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
6129         * config/sparc/sparc-passes.def: New file.
6130         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
6131         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
6132         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
6134 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
6136         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
6137         loop peel to loops with exit test at the beginning.
6139 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
6141         PR rtl-optimization/68212
6142         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
6143         frequency when computing scale factor for peeled copies.
6144         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
6145         values for switch/peel blocks/edges.
6147 2016-10-14  Pedro Alves  <palves@redhat.com>
6149         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
6151 2016-10-14  Catherine Moore  <clm@codesourcery.com>
6153         * config/mips/mips.c (mips_prepare_pch_save): Initialize
6154         micromips_globals to zero.
6156 2016-10-14  Richard Biener  <rguenther@suse.de>
6158         PR tree-optimization/77979
6159         * tree-vrp.c (compare_name_with_value): Handle released SSA names
6160         in the equivalency sets.
6161         (compare_names): Likewise.
6163 2016-10-14  Martin Liska  <mliska@suse.cz>
6165         * builtins.h(target_char_cst_p): Declare the function.
6166         * builtins.c (fold_builtin_memchr): Remove.
6167         (target_char_cst_p): Move the function from gimple-fold.c.
6168         (fold_builtin_3): Do not call the function.
6169         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
6170         (gimple_fold_builtin): Call the function.
6171         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
6173 2016-10-14  Martin Liska  <mliska@suse.cz>
6175         * builtins.c (fold_builtin_strcmp): Remove function.
6176         (fold_builtin_strncmp): Likewise.
6177         (fold_builtin_2): Remove call of the function.
6178         (fold_builtin_3): Likewise.
6179         * fold-const-call.c (fold_const_call): Add constant folding
6180         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
6181         * fold-const-call.h (build_cmp_result): Declare the function.
6182         * gimple-fold.c (gimple_load_first_char): New function.
6183         (gimple_fold_builtin_string_compare): Likewise.
6184         (gimple_fold_builtin): Call the function.
6186 2016-10-14  Nathan Sidwell  <nathan@acm.org>
6188         * gcov-io.c (gcov_open): Deconstify 'mode'.
6190 2016-10-14  Martin Liska  <mliska@suse.cz>
6192         * fold-const.c (c_getstr): Support of properly \0-terminated
6193         string constants.  New argument is added.
6194         * fold-const.h: New argument is added.
6196 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6198         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
6199         New function.
6200         (aarch64_print_hint_for_core): Likewise.
6201         (aarch64_print_hint_for_arch): Likewise.
6202         (aarch64_validate_march): Use it.  Fix indentation in type signature.
6203         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
6204         (aarch64_validate_mtune): Likewise.
6205         (aarch64_handle_attr_arch): Likewise.
6206         (aarch64_handle_attr_cpu): Likewise.
6207         (aarch64_handle_attr_tune): Likewise.
6209 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6211         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
6212         and udivmod_optab.
6214 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
6216         * config/m68k/m68k.c (m68k_option_override): Check
6217         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
6218         instead of stack_limit_rtx.
6220 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
6222         * dwarf2out.c (gen_member_die): Handle inline static data member
6223         definitions.
6225 2016-10-13  Nathan Sidwell  <nathan@acm.org>
6227         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
6228         gcov_var.mode.  Remove unnecessary fstat.
6230 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
6232         PR bootstrap/77962
6233         * function.c (thread_prologue_and_epilogue_insns): Call all
6234         make_*logue_seq in the same order as traditional.  Call them
6235         all a second time if shrink_wrapped_separate.
6237 2016-10-13  Marek Polacek  <polacek@redhat.com>
6239         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6240         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
6241         use -Wno-error.
6243 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6245         PR tree-optimization/77937
6246         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
6247         to infinite when we have a pointer with an increment of -1.
6249 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6251         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
6252         into ...
6253         * memmodel.h: This file.
6254         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
6255           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
6256           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
6257           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
6258           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
6259           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
6260           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
6261           compare-elim.c, config/aarch64/aarch64-builtins.c,
6262           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
6263           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
6264           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
6265           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
6266           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
6267           config/darwin.c, config/epiphany/epiphany.c,
6268           config/epiphany/mode-switch-use.c,
6269           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
6270           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6271           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
6272           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6273           config/m68k/m68k.c, config/mcore/mcore.c,
6274           config/microblaze/microblaze.c, config/mmix/mmix.c,
6275           config/mn10300/mn10300.c, config/moxie/moxie.c,
6276           config/msp430/msp430.c, config/nds32/nds32-cost.c,
6277           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
6278           config/nds32/nds32-memory-manipulation.c,
6279           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
6280           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
6281           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
6282           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
6283           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
6284           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
6285           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6286           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6287           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
6288           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
6289           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
6290           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
6291           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
6292           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
6293           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
6294           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
6295           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
6296           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
6297           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
6298           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6299           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
6300           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
6301           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
6302           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
6303           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
6304           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
6305           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
6306           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
6307           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
6308           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
6309           var-tracking.c, varasm.c: Include memmodel.h.
6310         * genattrtab.c (write_header): Include memmodel.h in generated file.
6311         * genautomata.c (main): Likewise.
6312         * gengtype.c (open_base_files): Likewise.
6313         * genopinit.c (main): Likewise.
6314         * genconditions.c (write_header): Include memmodel.h earlier in
6315         generated file.
6316         * genemit.c (main): Likewise.
6317         * genoutput.c (output_prologue): Likewise.
6318         * genpeep.c (main): Likewise.
6319         * genpreds.c (write_insn_preds_c): Likewise.
6320         * genrecog.c (write_header): Likewise.
6321         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
6323 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
6325         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
6326         for new "compact" param of print_rtx_function.  Check for "cinsn"
6327         rather than "insn".
6328         * print-rtl-function.c (flag_compact): New decl.
6329         (print_rtx_function): Add param "compact" and use it to set
6330         flag_compact, adding a description of the effect to the leading
6331         comment, and updating the example output.
6332         * print-rtl.c (flag_compact): New variable.
6333         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
6334         mode.
6335         (print_rtx_operand_code_i): When printing source locations, wrap
6336         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
6337         (print_rtx_operand_code_r): Don't print regnos for hard regs and
6338         virtuals in compact mode.
6339         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
6340         apart from in LABEL_REFs.
6341         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
6342         Don't print basic block ids in compact mode.
6343         (print_rtx):  In compact mode, prefix the code of insns with "c",
6344         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
6345         * print-rtl.h (print_rtx_function): Add "compact" param.
6347 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
6349         * arm.h (TARGET_VFP): Delete.
6350         (TARGET_VFPD32): Remove references to TARGET_VFP.
6351         (TARGET_VFP3, TARGET_VFP5): Likewise.
6352         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
6353         (TARGET_NEON_FP16): Likewise.
6354         (TARGET_FMA): Likewise.
6355         (TARGET_CRYPTO): Likewise.
6356         (TARGET_NEON): Likewise.
6357         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6358         (FUNCTION_ARG_REGNO_P): Likewise.
6359         * arm.c (arm_option_check_internal): Likewise.
6360         (arm_option_override): Likewise.
6361         (use_return_insn): Likewise.
6362         (arm_function_value_regno_p): Likewise.
6363         (arm_apply_result_size): Likewise.
6364         (use_vfp_abi): Likewise.
6365         (arm_legitimate_address_outer_p): Likewise.
6366         (thumb2_legitimate_address_p): Likewise.
6367         (arm_legitimate_index_p): Likewise.
6368         (thumb2_legitimate_index_p): Likewise.
6369         (arm_legitimate_address): Likewise.
6370         (arm_get_vfp_saved_size): Likewise.
6371         (arm_emit_vfp_multi_reg_pop): Likewise.
6372         (arm_get_frame_offsets): Likewise.
6373         (arm_save_coproc_regs): Likewise.
6374         (arm_hard_regno_mode_ok): Likewise.
6375         (arm_expand_epilogue_apcs_frame): Likewise.
6376         (arm_expand_epilogue): Likewise.
6377         (arm_file_start): Likewise.
6378         (arm_conditional_register_usage): Likewise.
6379         (arm_validize_comparison): Use vfp_compare_operand directly.
6380         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6381         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6382         unsupported usage.
6383         (arm_atomic_assign_expand_fenv): Likewise.
6384         * arm.md (divsf3): Likewise.
6385         (arm_negsi2): Likewise.
6386         (absdf2): Likewise.
6387         (arm_movdi): Likewise.
6388         (arm_movt): Likewise.
6389         (cbranchsf4): Change predicate to vfp_compare_operand.
6390         (cbranchdf4): Change predicate to vfp_compare_operand.
6391         (cstorehf4): Change predicate to vfp_compare_operand.
6392         (cstoresf4): Change predicate to vfp_compare_operand.
6393         (cstoredf4): Change predicate to vfp_compare_operand.
6394         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6395         (movhi_insn_arch4, movhi_bytes): Likewise.
6396         * constraints.md (Dt): Likewise.
6397         (Dp): Likewise.
6398         * iterators.md (SDF): Likewise.
6399         * predicates.md (arm_float_compare_operand): Delete.
6400         (const_double_vcvt_power_of_two_reciprocal): Remove references to
6401         TARGET_VFP.
6402         (const_double_vcvt_power_of_two): Likewise.
6403         * thumb2.md thumb2_movsi_insn): Likewise.
6404         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6405         (movhf_vfp): Likewise.
6406         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6407         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6408         (movsf_vfp, thumb2_movsf_vfp): Likewise.
6409         (movdf_vfp, thumb2_movdf_vfp): Likewise.
6410         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6411         (subsf3_vfp, divsf3_vfp): Likewise.
6412         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6413         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6414         (mulsf3negsfsubsf_vfp): Likewise.
6415         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6416         (floatunssisf2, sqrtsf2_vfp): Likewise.
6417         (movcc_vfp): Likewise.
6418         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6419         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6420         (push_multi_vfp): Likewise.
6421         (set_fpscr, get_fpscr): Likewise.
6422         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6424 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
6426         * arm.h (TARGET_VFP): Unconditionally define to 1.
6427         (arm_fpu_desc): Remove 'model' field.
6428         (TARGET_FPU_MODEL): Delete.
6429         * arm.c (all_fpus): Don't initialize the model field.
6430         (arm_can_inline_p): Don't check the FPU model.
6431         * arm-fpus.def: Remove redundant model field from all FPU
6432         descriptions.
6434 2016-10-13  Richard Biener  <rguenther@suse.de>
6436         PR middle-end/77826
6437         * genmatch.c (struct capture): Add value_match member.
6438         (commutate): Preserve value_match.
6439         (lower_opt_convert): Likewise.
6440         (lower_cond): Likewise.
6441         (replace_id): Likewise.
6442         (struct dt_operand): Add value_match member.
6443         (decision_tree::cmp_node): Compare it.
6444         (decision_tree::insert_operand): Honor it when finding and
6445         when appending a DT_MATCH.
6446         (dt_operand::gen_match_op): Generate a type check after
6447         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6448         (parser::get_internal_capture_id): New helper.
6449         (parser::finish_match_operand): New function lowering @@<id>.
6450         (parser::parse_capture): Parse @@<id> as value-match.
6451         (parser::parse_expr): Use get_internal_capture_id.
6452         (parser::parse_simplify): Call finish_match_operand.
6453         (walk_captures): New helper.
6454         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6455         of operand_equal_p.
6456         ((X /[ex] A) * A -> X): Likewise.
6457         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6458         convert[12] and value-matching.
6459         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
6460         ((X | Y) | Y -> X | Y): Likewise.
6461         ((X ^ Y) ^ Y -> X): Likewise.
6462         (A - (A & B) -> ~B & A): Likewise.
6463         ((T)(P + A) - (T)P -> (T) A): Likewise.
6464         ((T)P - (T)(P + A) -> -(T) A): Likewise.
6465         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6466         * doc/match-and-simplify.texi: Amend capture section.
6468 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
6470         * config/arc/arc.md (umul_600): Remove predicated variant.
6471         (umul64_600): Likewise.
6473 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
6475         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6477 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6479         * tree-vect-loop.c (loop_niters_no_overflow): New func.
6480         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
6481         no-overflow information to vect_do_peeling_for_loop_bound and
6482         vect_gen_vector_loop_niters.
6484 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6486         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6487         iterates 1 time.
6489 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6491         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6492         adjust_vec automatically.
6493         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
6494         param exit_bb to guard_to.
6495         (slpeel_checking_verify_cfg_after_peeling):
6496         (set_prologue_iterations):
6497         (create_lcssa_for_virtual_phi): New func which is factored out from
6498         slpeel_tree_peel_loop_to_edge.
6499         (slpeel_tree_peel_loop_to_edge):
6500         (iv_phi_p): New func.
6501         (vect_can_advance_ivs_p): Call iv_phi_p.
6502         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
6503         new gimple stmts in basic block.
6504         (vect_gen_niters_for_prolog_loop): Rename to...
6505         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
6506         adjust implementation.
6507         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
6508         sizetype if necessary.
6509         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
6510         it to external function.
6511         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6512         (vect_gen_vector_loop_niters_mult_vf): New.
6513         (slpeel_update_phi_nodes_for_loops): New.
6514         (slpeel_update_phi_nodes_for_guard1): Reimplement.
6515         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6516         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6517         * tree-vect-loop.c (vect_build_loop_niters): Move to file
6518         tree-vect-loop-manip.c
6519         (vect_generate_tmps_on_preheader): Delete.
6520         (vect_transform_loop): Rename vectorization_factor to vf.  Call
6521         vect_do_peeling instead of vect_do_peeling-* functions.
6522         * tree-vectorizer.h (vect_do_peeling): New decl.
6523         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6524         (vect_do_peeling_for_loop_bound): Delete.
6525         (vect_do_peeling_for_alignment): Delete.
6527 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6529         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6530         duplicated loop after its preheader and after the original loop.
6532 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6534         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6535         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6537 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6539         * tree-vect-loop.c (vectorizable_live_operation): Support handling
6540         for live variable outside loop but not in lcssa form.
6542 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6544         * cfg.c (reset_original_copy_tables): New func.
6545         * cfg.h (reset_original_copy_tables): New decl.
6547 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
6549         PR c/77946
6550         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6551         public_flag.
6552         * varasm.c (default_binds_local_p_3): Formatting fix.
6554 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
6556         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6557         style issue.
6558         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6559         Remove useless code.
6561 2016-10-13  Martin Liska  <mliska@suse.cz>
6563         PR tree-optimization/77943
6564         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6565         a different EH landing pads.
6567 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
6569         PR target/77957
6570         * hooks.h (hook_tree_void_null): Declare.
6571         * hooks.c (hook_tree_void_null): New function.
6572         * langhooks.c (lhd_return_null_tree_v): Remove.
6573         * langhooks-def.h (lhd_return_null_tree_v): Remove.
6574         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6575         set y to const0_rtx.
6576         * function.c (stack_protect_epilogue): Likewise.
6577         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6578         if TARGET_THREAD_SSP_OFFSET is defined.
6579         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6580         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6581         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6582         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6583         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6584         (ix86_stack_protect_guard): New function.
6586 2016-10-13  Richard Biener  <rguenther@suse.de>
6588         * dwarf2out.c (tree_add_const_value_attribute): Do not try
6589         rtl_for_decl_init during early phase.
6590         (gen_variable_die): Do not create locations during early phase.
6591         (gen_label_die): Likewise.
6592         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6593         twice.
6595 2016-10-12  Richard Biener  <rguenther@suse.de>
6597         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6598         try_add_new_range and made to eturn new range.
6599         (evrp_dom_walker::before_dom_children): Push op1 value range before
6600         pushing op0 value range.
6602 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6604         PR tree-optimization/77937
6605         * gimple-ssa-strength-reduction.c (analyze_increments): Use
6606         POINTER_TYPE_P on the candidate type to determine whether
6607         candidates in this chain require pointer arithmetic.
6609 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
6611         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6612         correction if the type is smaller than a word.
6613         (visium_select_cc_mode): Add ... fall through ... comment.
6615 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6617         * config/rs6000/rs6000.c (machine_function): Add new fields
6618         gpr_is_wrapped_separately and lr_is_wrapped_separately.
6619         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6620         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6621         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6622         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6623         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6624         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6625         (rs6000_get_separate_components): New function.
6626         (rs6000_components_for_bb): New function.
6627         (rs6000_disqualify_components): New function.
6628         (rs6000_emit_prologue_components): New function.
6629         (rs6000_emit_epilogue_components): New function.
6630         (rs6000_set_handled_components): New function.
6631         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6632         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6633         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6634         (rs6000_emit_epilogue): Don't emit GPR restores if
6635         gpr_is_wrapped_separately for that register.  Don't make a
6636         REG_CFA_RESTORE note for registers we did not restore, either.
6638 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6640         * function.c (thread_prologue_and_epilogue_insns): Call
6641         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
6642         if it has possibly changed.  Compute the split_prologue_seq and
6643         epilogue_seq later, too.
6644         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6645         (dump_components): New function.
6646         (struct sw): New struct.
6647         (SW): New function.
6648         (init_separate_shrink_wrap): New function.
6649         (fini_separate_shrink_wrap): New function.
6650         (place_prologue_for_one_component): New function.
6651         (spread_components): New function.
6652         (disqualify_problematic_components): New function.
6653         (emit_common_heads_for_components): New function.
6654         (emit_common_tails_for_components): New function.
6655         (insert_prologue_epilogue_for_components): New function.
6656         (try_shrink_wrapping_separate): New function.
6657         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6659 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6661         * regrename.c (build_def_use): Invalidate chains that have a
6662         REG_CFA_RESTORE on some instruction.
6664 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6666         * dce.c (delete_unmarked_insns): Don't delete instructions with
6667         a REG_CFA_RESTORE note.
6669 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6671         * common.opt (-fshrink-wrap-separate): New flag.
6672         * doc/invoke.texi: Document it.
6673         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6674         * doc/tm.texi: Regenerate.
6675         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6676         * target.def (shrink_wrap): New hook vector.
6677         (get_separate_components, components_for_bb, disqualify_components,
6678         emit_prologue_components, emit_epilogue_components,
6679         set_handled_components): New hooks.
6681 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
6683         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6684         vector return by reference only if -Wpsabi.
6685         (rs6000_pass_by_reference): Similarly, for argument passing.
6687 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
6689         * function-tests.c: Include "print-rtl.h".
6690         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6691         function, and verify what is dumped.
6692         * print-rtl-function.c (print_edge): New function.
6693         (begin_any_block): New function.
6694         (end_any_block): New function.
6695         (can_have_basic_block_p): New function.
6696         (print_rtx_function): Track the basic blocks of insns in the
6697         chain, wrapping those that are within blocks within "(block)"
6698         directives.  Remove the "(cfg)" directive.
6700 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
6702         * selftest.c (selftest::read_file): New function.
6703         (selftest::test_read_file): New function.
6704         (selftest::selftest_c_tests): Call test_read_file.
6705         * selftest.h (selftest::read_file): New decl.
6707 2016-10-12  Richard Biener  <rguenther@suse.de>
6709         PR debug/77947
6710         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6711         function context.
6713 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
6715         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6717         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6718         dwarf2out_assembly_start.
6720         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6722         * Makefile.in (SELFTEST_FLAGS): New variable.
6723         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6725         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6726         early_finish hook.
6728 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
6730         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6731         dumped in RTL dumps.
6733 2016-10-12  Martin Liska  <mliska@suse.cz>
6735         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6736         (gimple_fold_builtin_memory_op): Use the function.
6737         (gimple_fold_builtin_strchr): Likewise.
6738         (gimple_fold_builtin_strcat): Likewise.
6739         (gimple_build): Likewise.
6741 2016-10-12  Nathan Sidwell  <nathan@acm.org>
6743         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6745 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
6747         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6748         equivalent 32-bit constant (modulo 2**32) when that yields
6749         smaller instructions.
6750         (size_of_int_loc_descriptor): Update accordingly.
6752 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
6754         * dwarf2out.c (dwarf2out_early_global_decl): For nested
6755         functions, call dwarf2out_decl on the parent function first.
6757 2016-10-12  Richard Biener  <rguenther@suse.de>
6759         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6760         on the conversion.
6762 2016-10-12  Richard Biener  <rguenther@suse.de>
6764         * tree-ssa-propagate.c
6765         (substitute_and_fold_dom_walker::before_dom_children): Do not
6766         ignore ASSERT_EXPRs but only preserve them.
6767         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6768         that have been propagated into.
6769         (vrp_finalize): Enable DCE for substitute_and_fold.
6771 2016-10-12  Richard Biener  <rguenther@suse.de>
6773         PR tree-optimization/77920
6774         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6775         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6776         (simplify_abs_using_ranges): Likewise.
6777         (simplify_conversion_using_ranges): Likewise.
6778         (simplify_stmt_using_ranges): Adjust.
6780 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
6782         PR tree-optimization/77929
6783         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6784         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6786 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6788         PR target/77934
6789         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6790         needs a base register for arg 1.
6792 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
6794         * common.opt (Wimplicit-fallthrough) Turn into alias to
6795         -Wimplicit-fallthrough=3.  Remove EnabledBy.
6796         (Wimplicit-fallthrough=): New option.
6797         * gimplify.c (warn_implicit_fallthrough_r): Use
6798         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6799         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6800         to -Wimplicit-fallthrough=3.
6801         (-Wimplicit-fallthrough=): Document.
6803 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6805         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6806         and GEU in DImode if TARGET_SUBXC.
6807         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6808         (seqdi<W:mode>_zero_subxc): Delete.
6809         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6810         (neg_seqdi<W:mode>_zero_vis3): Delete.
6811         (plus_seqdi<W:mode>_zero): Likewise.
6812         (minus_seqdi<W:mode>_zero): Likewise.
6813         (plus_plus_sltu<W:mode>): Accept only register.
6814         (addx<W:mode>): Likewise.
6815         (plus_sltu<W:mode>_vis3): Likewise.
6816         (plus_plus_sltu<W:mode>_vis3): Likewise.
6817         (neg_sgeu<W:mode>_vis3): Delete.
6818         (minus_sgeu<W:mode>_vis3): Likewise.
6819         (addxc<W:mode>): Accept only registers.
6820         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6821         (minus_neg_sltu<W:mode>_subxc): Accept only register.
6822         (neg_plus_sltu<W:mode>_subxc): Likewise.
6823         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6824         (minus_minus_sltu<W:mode>_subxc): Accept only register.
6825         (sgeu<W:mode>_insn_subxc): Delete.
6826         (plus_sgeu<W:mode>_subxc): Likewise.
6827         (subxc<W:mode>): Accept only register.
6828         (scc splitter): Split always GEU again.
6830 2016-10-11  Jeff Law  <law@redhat.com>
6832         PR tree-optimization/77424
6833         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6834         dead conditionals.  Assert that all e->aux fields are NULL.
6836 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
6838         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
6839         operand-printing "switch" statement into...
6840         (print_rtx_operand_code_0): ...this new function, ...
6841         (print_rtx_operand_code_e): ...this new function, ...
6842         (print_rtx_operand_codes_E_and_V): ...this new function, ...
6843         (print_rtx_operand_code_i): ...this new function, ...
6844         (print_rtx_operand_code_r): ...this new function, ...
6845         (print_rtx_operand_code_u): ...this new function, ...
6846         (print_rtx_operand): ...and this new function.
6848 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
6850         * config/alpha/alpha-passes.def: New file.
6851         * config/alpha/t-alpha: New file.
6852         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6853         (make_pass_handle_trap_shadows): New prototype.
6854         (make_pass_align_insns): Ditto.
6855         * config/alpha/alpha.c (alpha_option_override): Don't register
6856         passes here.
6857         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6859 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6861         PR target/77924
6862         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6863         distinct __ibm128 IBM extended double type if long doubles are
6864         128-bits and the default format for long double is IEEE 128-bit.
6866 2016-10-11  Richard Biener  <rguenther@suse.de>
6868         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6869         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6870         (verify_die): New function.
6871         (dwarf2out_finish): Call it.
6872         (output_line_info): Handle case of -gsplit-dwarf without
6873         DWARF2_ASM_LINE_DEBUG_INFO.
6875 2016-10-11  Richard Biener  <rguenther@suse.de>
6877         PR debug/77931
6878         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6879         sub-chains of BLOCK_VARS and gimple_bind_vars.
6881 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6883         * config/i386/znver1.md : Fix imov/imovx load type reservations.
6885 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6887         * config/sparc/sparc.opt (msubxc): New option.
6888         * doc/invoke.texi (SPARC options): Document it and tidy up.
6889         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6890         * doc/tm.texi: Regenerate.
6891         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6892         (CCNZ): ...this.
6893         (CCX_NOOV): Rename into...
6894         (CCXNZ): ...this.
6895         (CCC): New.
6896         (CCXC): Likewise.
6897         * config/sparc/predicates.m (fcc_register_operand): Simplify.
6898         (fcc0_register_operand): Likewise.
6899         (icc_register_operand): New.
6900         (icc_or_fcc_register_operand): Simplify.
6901         (nz_comparison_operator): New.
6902         (c_comparison_operator): Likewise.
6903         (noov_compare_operator): Rename into...
6904         (icc_comparison_operator): ...this.  Use above predicates.
6905         (noov_compare64_operator): Rename into...
6906         (v9_comparison_operator): ...this and tidy up.
6907         (fcc_comparison_operator): New.
6908         (icc_or_fcc_comparison_operator): Likewise.
6909         (v9_register_compare_operator): Rename info...
6910         (v9_register_comparison_operator): ...this.
6911         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6912         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6913         for Niagara-7.
6914         (sparc_fixed_condition_code_regs): New function.
6915         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
6916         renaming and add support for CCC/CCXC.
6917         (output_cbranch): Likewise.
6918         (sparc_print_operand): Likewise.
6919         (gen_v9_scc): Remove obsolete assertion.
6920         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
6921         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
6922         (output_cbcond): Remove bogus handling of CC modes.
6923         (sparc_register_move_cost): Return 100 for NO_REGS.
6924         * config/sparc/sparc.md (W): New mode iterator.
6925         (length): Adjust for noov_compare64_operator renaming.
6926         (cmpsi_sne): New instruction.
6927         (cmpdi_sne): Likewise.
6928         (seqdi_special): Delete.
6929         (seqdi_special): Likewise.
6930         (snesi<P:mode>_special): Likewise.
6931         (snedi_special): Likewise.
6932         (snedi_special_vis3): Likewise.
6933         (snesi patterns): Use W iterator.
6934         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
6935         (sltu patterns): Likewise.
6936         (sgeu patterns): Likewise.
6937         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6938         (normal_branch): Use icc_comparison_operator predicate.
6939         (inverted_branch): Likewise.
6940         (cbcond_sp32): Use comparison_operator predicate.
6941         (cbcond_sp64): Likewise.
6942         (normal_int_branch_sp64): Adjust for renaming
6943         (inverted_int_branch_sp64): Likewise.
6944         (mov<I:mode>_cc_reg_sp64): Likewise.
6945         (movsf_cc_reg_sp6): Likewise.
6946         (movdf_cc_reg_sp64): Likewise.
6947         (movtf_cc_reg_hq_sp64): Likewise.
6948         (movtf_cc_reg_sp64): Likewise.
6949         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6950         (movsf_cc_v9): Likewise.
6951         (movdf_cc_v9): Likewise.
6952         (movtf_cc_hq_v9): Likewise.
6953         (movtf_cc_v9): Likewise.
6954         (adddi3): Call gen_adddi3_sp32.
6955         (adddi3_insn_sp32): Rename to...
6956         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
6957         and use CCCmode for the carry.
6958         (addx_extend_sp32): Use CCCmode for the carry.
6959         (addx_extend_sp64): Delete.
6960         (adddi3_extend_sp32): Use CCCmode for the carry.
6961         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6962         (subdi3): Call gen_subdi3_sp32.
6963         (subdi3_insn_sp32): Rename to...
6964         (subdi3_sp32): ...this and use CCmode for the carry.
6965         (subx_extend_sp32): Use CCCmode for the carry.
6966         (subx_extend_sp64): Delete.
6967         (subdi3_extend_sp32): Use CCmode for the carry.
6968         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6969         (negdi3): Call gen_negdi3_sp32.
6970         (negdi3_sp32): Use CCCmode for the carry.
6971         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6972         (cmp_nz_ashift_1): Use CCNZ mode.
6973         (cmp_nz_set_ashift_1): Likewise.
6974         (ctrapsi4): Use comparison_operator predicate.
6975         (ctrapdi4): Likewise.
6976         (trapsi_insn): Use icc_comparison_operator predicate.
6977         (trapdi_insn): Likewise.
6978         (edge8 patterns): Use CCNZmode.
6979         (edge16 patterns): Likewise.
6980         (edge32 patterns): Likewise.
6982 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
6984         * config/visium/visium-modes.def (CC_NOOV): Rename into...
6985         (CCNZ): ...this.
6986         (CC_BTST): Rename into...
6987         (CCC): ...this.
6988         * config/visium/predicates.md (real_add_operand): New.
6989         (visium_btst_operator): Rename into...
6990         (visium_equality_comparison_operator): ...this.
6991         (visium_noov_operator): Rename into...
6992         (visium_nz_comparison_operator): ...this.
6993         (visium_c_comparison_operator): New.
6994         (visium_branch_operator): Adjust and deal with all CC modes.
6995         * config/visium/visium.c (visium_adjust_cost): Adjust.
6996         (visium_split_double_add): Use the *_set_carry patterns.
6997         (visium_select_cc_mode): Add support for CCC mode and adjust.
6998         (output_cbranch): Adjust and use the carry-based operators for
6999         floating-point comparisons.
7000         * config/visium/visium.md (flags_subst_arith): Adjust.
7001         (addsi3_insn_set_carry): New instruction.
7002         (subsi3_insn_set_carry): Likewise.
7003         (negsi2_insn_set_carry): Likewise.
7004         (btst): Adjust.
7005         (cmp<mode>_sne): Likewise.
7006         (cbranch<mode>4): Use ordered_comparison_operator.
7007         (cbranch<mode>4_insn): Likewise.
7008         (cbranchsi4_btst_insn): Adjust.
7010 2016-10-11  Tom de Vries  <tom@codesourcery.com>
7012         PR middle-end/77558
7013         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
7014         special-casing.
7016 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
7018         * tree.h (build_complex_type): Add second parameter with default.
7019         * tree.c (build_complex_type): Add NAMED second parameter and adjust
7020         recursive call.  Create a TYPE_DECL only if NAMED is true.
7021         (build_common_tree_nodes): Pass true in calls to build_complex_type.
7023 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
7025         New avr-passes.def to register AVR specific passes.
7027         * config/avr/avr-passes.def: New file.
7028         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
7029         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
7030         (make_avr_pass_recompute_note): New proto.
7031         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
7032         (avr_pass_recompute_notes): Use anonymous namespace.
7033         (avr_register_passes): Remove function...
7034         (avr_option_override): ...and its call.
7036 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
7038         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
7039         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
7040         PTF_AVOID_BRANCHLIKELY_SPEED for others.
7041         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
7042         flags.
7043         * config/mips/mips.c (mips_option_override): Enable the branch
7044         likely depending on the tune flags and optimization level.
7045         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
7046         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
7047         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
7048         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
7050 2016-10-11  Richard Biener  <rguenther@suse.de>
7052         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
7053         (output_function): Properly stream the whole block tree.
7054         * lto-streamer-in.c (input_function): Likewise.
7056 2016-10-11  Marek Polacek  <polacek@redhat.com>
7058         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
7060 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
7062         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
7063         (evrp_dom_walker::before_dom_children): Infer and push new value
7064         ranges for x in y < x.
7066 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
7068         PR target/77586
7069         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
7070         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
7071         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7072         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
7073         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
7074         (IA64_NO_LIBGCC_TFMODE): Likewise.
7076 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
7078         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
7079           copying.
7081 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
7083         * config.gcc: Add aarch64-*-freebsd* support.
7084         * config.host: Likewise.
7085         * config/aarch64/aarch64-freebsd.h: New file.
7086         * config/aarch64/t-aarch64-freebsd: Ditto.
7088 2016-10-10  Jeff Law  <law@redhat.com>
7090         PR tree-optimization/71947
7091         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
7092         B with A within a single statement.
7094 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7096         PR tree-optimization/77824
7097         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
7098         zero cost for copies.
7099         (find_candidates_dom_walker::before_dom_children): Replace
7100         MODIFY_EXPR with SSA_NAME.
7101         (replace_mult_candidate): Likewise.
7102         (replace_profitable_candidates): Likewise.
7104 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7106         * config/s390/s390.h: Wrap more macros args in brackets and fix
7108 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
7110         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
7112 2016-10-10  Andreas Schwab  <schwab@suse.de>
7114         PR target/77738
7115         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
7116         pseudo is not DImode.
7118 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
7120         * common/config/arc/arc-common.c (arc_option_optimization_table):
7121         Remove compact casesi option.
7122         * config/arc/arc.c (arc_override_options): Use compact casesi
7123         option only for pre-ARCv2 cores.
7124         * doc/invoke.texi (mcompact-casesi): Update text.
7126 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7128         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
7129         Add macro to say we can efficiently handle overlapping unaligned
7130         loads.
7131         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
7132         poor code for processors older than p8.
7134 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
7136         * gen-pass-instances.awk: Remove GNUism.
7138 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7140         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
7141         NULL of (*ipcp_transformations)][node->uid].
7143 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
7145         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7146         (MALLOC_ABI_ALIGNMENT): Define.
7148 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
7150         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
7151         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
7152         VAR_OR_FUNCTION_DECL_P macros.
7153         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
7154         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
7155         chkp_find_bounds_1): Likewise.
7156         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
7157         * hsa-gen.c (get_symbol_for_decl): Likewise.
7158         * cgraphunit.c (check_global_declaration, analyze_functions,
7159         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
7160         Likewise.
7161         * gimple-fold.c (can_refer_decl_in_current_unit_p,
7162         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
7163         Likewise.
7164         * tree.c (set_decl_section_name, copy_node_stat,
7165         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
7166         merge_dllimport_decl_attributes, handle_dll_attribute,
7167         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
7168         verify_type): Likewise.
7169         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
7170         find_explicit_erroneous_behavior): Likewise.
7171         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
7172         * ipa.c (process_references): Likewise.
7173         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
7174         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
7175         notice_global_symbol, assemble_variable, mark_decl_referenced,
7176         build_constant_desc, output_constant_def_contents, do_assemble_alias,
7177         make_decl_one_only, default_section_type_flags,
7178         categorize_decl_for_section, default_encode_section_info): Likewise.
7179         * trans-mem.c (requires_barrier): Likewise.
7180         * gimple-expr.c (mark_addressable): Likewise.
7181         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
7182         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
7183         expand_debug_expr): Likewise.
7184         * tree-dump.c (dequeue_and_dump): Likewise.
7185         * ubsan.c (instrument_bool_enum_load): Likewise.
7186         * tree-pretty-print.c (print_declaration): Likewise.
7187         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7188         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
7189         * asan.c (asan_protect_global, instrument_derefs): Likewise.
7190         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
7191         pass_build_ssa::execute): Likewise.
7192         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
7193         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
7194         Likewise.
7195         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
7196         Likewise.
7197         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
7198         can_be_nonlocal, remap_decls, copy_debug_stmt,
7199         initialize_inlined_parameters, add_local_variables,
7200         reset_debug_binding, replace_locals_op): Likewise.
7201         * dse.c (can_escape): Likewise.
7202         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
7203         Likewise.
7204         * tree-diagnostic.c (default_tree_printer): Likewise.
7205         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7206         unpack_ts_decl_with_vis_value_fields,
7207         lto_input_ts_decl_common_tree_pointers): Likewise.
7208         * builtins.c (builtin_save_expr, fold_builtin_expect,
7209         readonly_data_expr): Likewise.
7210         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
7211         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
7212         Likewise.
7213         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7214         * gimplify.c (force_constant_size, gimplify_bind_expr,
7215         gimplify_decl_expr, gimplify_var_or_parm_decl,
7216         gimplify_compound_lval, gimplify_init_constructor,
7217         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
7218         gimplify_type_sizes): Likewise.
7219         * cgraphbuild.c (record_reference, record_type_list, mark_address,
7220         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
7221         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
7222         remove_unused_locals): Likewise.
7223         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
7224         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
7225         * function.c (instantiate_expr, instantiate_decls_1,
7226         setjmp_vars_warning, add_local_decl): Likewise.
7227         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
7228         Likewise.
7229         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
7230         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
7231         optimize_va_list_gpr_fpr_size): Likewise.
7232         * tree-nrv.c (pass_nrv::execute): Likewise.
7233         * tsan.c (instrument_expr): Likewise.
7234         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
7235         * vtable-verify.c (verify_bb_vtables): Likewise.
7236         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
7237         get_ref_base_and_extent): Likewise.
7238         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
7239         Likewise.
7240         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
7241         analyze_all_variable_accesses): Likewise.
7242         * tree-nested.c (get_nonlocal_debug_decl,
7243         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
7244         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
7245         get_local_debug_decl, convert_local_omp_clauses,
7246         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
7247         Likewise.
7248         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
7249         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
7250         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
7251         dbxout_symbol, dbxout_common_check): Likewise.
7252         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
7253         string_constant): Likewise.
7254         * hsa.c (hsa_get_declaration_name): Likewise.
7255         * passes.c (rest_of_decl_compilation): Likewise.
7256         * tree-ssanames.c (make_ssa_name_fn): Likewise.
7257         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
7258         pack_ts_decl_with_vis_value_fields,
7259         write_ts_decl_common_tree_pointers): Likewise.
7260         * stor-layout.c (place_field): Likewise.
7261         * symtab.c (symtab_node::maybe_create_reference,
7262         symtab_node::verify_base, symtab_node::make_decl_local,
7263         symtab_node::copy_visibility_from,
7264         symtab_node::can_increase_alignment_p): Likewise.
7265         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
7266         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
7267         fortran_common, add_location_or_const_value_attribute,
7268         add_scalar_info, add_linkage_name, set_block_abstract_flags,
7269         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
7270         optimize_one_addr_into_implicit_ptr,
7271         optimize_location_into_implicit_ptr): Likewise.
7272         * gimple-low.c (record_vars_into): Likewise.
7273         * ipa-visibility.c (update_vtable_references): Likewise.
7274         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
7275         Likewise.
7276         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
7277         DFS::DFS_write_tree_body, write_symbol): Likewise.
7278         * langhooks.c (lhd_warn_unused_global_decl,
7279         lhd_set_decl_assembler_name): Likewise.
7280         * attribs.c (decl_attributes): Likewise.
7281         * except.c (output_ttype): Likewise.
7282         * varpool.c (varpool_node::get_create, ctor_for_folding,
7283         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
7284         * fold-const.c (fold_unary_loc): Likewise.
7285         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7286         ipa_find_agg_cst_from_init): Likewise.
7287         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
7288         expand_omp_target, lower_omp_regimplify_p,
7289         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
7290         find_link_var_op): Likewise.
7291         * tree-chrec.c (chrec_contains_symbols): Likewise.
7292         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
7293         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
7294         execute_fixup_cfg): Likewise.
7296         PR tree-optimization/77901
7297         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
7298         if ranges[i].exp is SSA_NAME when looking for >= and only when
7299         ranges[i].exp is NULL or SSA_NAME when looking for the other
7300         comparison.
7302 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7304         * ipa-cp.c (ipcp_alignment_lattice): Remove.
7305         (ipcp_param_lattices): Remove field alignment.
7306         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
7307         (set_all_contains_variable): Remove call to
7308         ipcp_alignment_lattice::set_to_bottom.
7309         (initialize_node_lattices): Likewise.
7310         (propagate_alignment_accross_jump_function): Remove.
7311         (propagate_constants_accross_call): Remove call to
7312         propagate_alignment_accross_jump_function.
7313         (ipcp_store_alignment_results): Remove.
7314         (ipcp_driver): Remove call to ipcp_store_alignment_results.
7315         (propagate_bits_accross_jump_function): Handle ancestor jump function.
7316         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
7317         pretty-printing of alignment jump function.
7318         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
7319         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
7320         alignments and remove computing ipa_alignment jump function.
7321         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
7322         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
7323         (ipa_read_jump_function): Remove reading of ipa_alignment.
7324         (write_ipcp_transformation_info): Remove streaming for alignment
7325         propagation summary.
7326         (read_ipcp_transformation_info): Remove reading of alignment
7327         propagation summary.
7328         (ipcp_update_alignments): Remove.
7329         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
7330         type.
7331         (ipcp_transform_function): Remove call to ipcp_update_alignments()
7332         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
7333         * ipa-prop.h (ipa_alignment): Remove.
7334         (ipa_jump_func): Remove field alignment.
7335         (ipcp_transformation_summary): Remove field alignments.
7336         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
7337         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
7338         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
7340 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
7342         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
7344         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
7345         change.
7346         (visium_expand_fp_cstore): Likewise.
7348 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7350         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
7351         * diagnostic.c (warning_at_rich_loc_n): New function.
7352         (diagnostic_n_impl_richloc): Likewise.
7353         (diagnostic_n_impl): Move most of the function to
7354         diagnostic_n_impl_richloc and call it.
7356 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
7358         * gen-pass-instances.awk: Rewritten.
7359         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
7360         $(PASSES_EXTRA) after passes.def to the script.
7361         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
7362         * config/i386/i386-passes.def: New file.
7363         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
7364         make_pass_stv): Declare.
7365         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
7366         false.
7367         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
7368         or !TARGET_64BIT.
7369         (pass_stv::clone, pass_stv::set_pass_param): New methods.
7370         (pass_stv::timode_p): New non-static data member.
7371         (ix86_option_override): Don't register passes here.
7373         * doc/invoke.texi: Document accepting Else, fallthrough.
7375         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
7376         style changes.
7378         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7379         FALLTHRU comment styles.
7381 2016-10-07  Andrew Pinski  <apinski@cavium.com>
7383         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7384         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7385         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7386         Likewise.
7387         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7388         Likewise.
7389         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7390         Likewise.
7391         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7392         (AARCH64_ARCH): Likewise.
7393         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7394         Likewise.
7395         (AARCH64_CORE): Likewise.
7396         (AARCH64_ARCH): Likewise.
7397         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7398         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7399         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7400         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7401         (AARCH64_ARCH): Likewise.
7402         (AARCH64_CORE): Likewise.
7403         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7404         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7405         (AARCH64_CORE): Likewise.
7406         (AARCH64_ARCH): Likewise.
7408 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7410         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7411         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7412         floating point type infrastructre, and -mfloat128 that enables the
7413         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7414         if -mfloat128-type.  Define __ibm128 to be long double by default.
7415         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7416         the IEEE 128-bit floating point type infrastructure should
7417         automatically be enabled.
7418         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7419         instead of -mfloat128 to enable KFmode.
7420         (rs6000_option_override_internal): Split the option -mfloat128
7421         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
7422         systems, automatically set -mfloat128-type, but don't enable it on
7423         other operating systems.  Move setting the long double size and
7424         IEEE quad support before the IEEE 128-bit floating point changes.
7425         (rs6000_init_builtins): Do not create a unique type for __ibm128
7426         if long double is IBM extended double, instead rely on __ibm128
7427         being defined as 'long double'.  If -mfloat128-type and not
7428         -mfloat128, create the KFmode type with an undocumented __ieee128
7429         keyword.
7430         (rs6000_init_libfuncs): Use -mfloat128-type instead of
7431         -mfloat128 for tests about the types, but keep tests for
7432         -mfloat128 to enable the keyword support.
7433         (rs6000_complex_function_value): Likewise.
7434         (rs6000_scalar_mode_supported_p): Likewise.
7435         (rs6000_floatn_mode): Likewise.
7436         (rs6000_c_mode_for_suffix): Likewise.
7437         (rs6000_opt_masks): Add -mfloat128-type.
7438         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7439         -mfloat128-type being split from -mfloat128.  Add
7440         -mfloat128-hardware, which was missing.
7441         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7442         -mfloat128 and -mfloat128-type:
7443         (-mfloat128-type): Likewise.
7444         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7445         that 64-bit Linux systems with enable -mfloat128-type by default
7446         on VSX systems.
7447         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7448         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7449         -mfloat128-type instead of -mfloat128.
7450         (FLOAT128_2REG_P): Likewise.
7451         (MASK_FLOAT128_TYPE): Likewise.
7452         (ALTIVEC_ARG_MAX_RETURN): Likewise.
7453         (RS6000_BTM_FLOAT128): Likewise.
7454         (TARGET_FLOAT128): Poison old identifiers.
7455         (OPTION_MASK_FLOAT128): Likewise.
7456         (MASK_FLOAT128): Likewise.
7457         * config/rs6000/rs6000.md (FP): Likewise.
7458         (FLOAT128): Likewise.
7459         (fix_trunc<mode>di2): Likewise.
7460         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7461         (floatdi<mode>2): Likewise.
7462         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7463         (neg<mode>2, FLOAT128 iterator): Likewise.
7464         (abs<mode>2, FLOAT128 iterator): Likewise.
7465         (ieee_128bit_negative_zero): Likewise.
7466         (ieee_128bit_vsx_neg<mode>2): Likewise.
7467         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7468         (ieee_128bit_vsx_abs<mode>2): Likewise.
7469         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7470         (ieee_128bit_vsx_nabs<mode>2): Likewise.
7471         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7472         (extendiftf2): Likewise.
7473         (extendifkf2): Likewise.
7474         (extendtfkf2): Likewise.
7475         (trunciftf2): Likewise.
7476         (truncifkf2): Likewise.
7477         (trunckftf2): Likewise.
7478         (trunctfif2): Likewise.
7479         (extendkftf2): Likewise.
7480         (trunctfkf2): Likewise.
7482 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7484         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7485         before merging in bytes to pass down to real_from_target.
7487 2016-10-07  Richard Biener  <rguenther@suse.de>
7489         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7490         required hack.
7491         (substitute_and_fold_dom_walker::before_dom_children):
7492         Substitute and fold before pass specific folding to avoid
7493         feeding that with SSA names that will be later released.
7494         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7495         introduced by folding and visited by evaluate_stmt called during
7496         ccp_fold_stmt.
7497         (likely_value): Likewise.
7498         (evaluate_stmt): Likewise.
7499         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7500         (simplify_div_or_mod_using_ranges): Likewise.
7501         (simplify_min_or_max_using_ranges): Likewise.
7502         (simplify_abs_using_ranges): Likewise.
7503         (simplify_conversion_using_ranges): Likewise.
7504         (simplify_float_conversion_using_ranges): Likewise.
7505         (simplify_stmt_using_ranges): Likewise.
7507 2016-10-07  Marek Polacek  <polacek@redhat.com>
7509         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7510         FALLTHROUGH_LABEL_P here...
7511         (warn_implicit_fallthrough_r): ...not here.
7513 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
7515         PR tree-optimization/77880
7516         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7517         necessary.
7519 2016-10-07  Marek Polacek  <polacek@redhat.com>
7521         PR c++/77803
7522         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7524 2016-10-07  Richard Biener  <rguenther@suse.de>
7526         * bitmap.h: Document constraints on bitmap modification while
7527         iterating over it.
7529 2016-10-07  Richard Biener  <rguenther@suse.de>
7531         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7532         * bitmap.h (bmp_iter_set): When advancing to the next element
7533         check that we didn't remove the current one.
7534         (bmp_iter_and): Likewise.
7535         (bmp_iter_and_compl): Likewise.
7536         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7537         we currently iterate on but keep a one-level queue.
7538         * sched-deps.c (remove_from_deps): Do not clear current bit
7539         but keep a one-level queue.
7541 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
7543         PR tree-optimization/77664
7544         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7545         for the other ranges.
7546         (optimize_range_tests_diff): Fix up formatting.
7547         (optimize_range_tests_var_bound): New function.
7548         (optimize_range_tests): Use it.
7550 2016-10-07  Martin Liska  <mliska@suse.cz>
7552         * coverage.c (build_gcov_exit_decl): Fix priority what
7553         should be really 99.
7555 2016-10-07  Richard Biener  <rguenther@suse.de>
7557         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7558         vars in gimple_bind_vars but not in BLOCK_VARS.
7560 2016-10-07  Richard Biener  <rguenther@suse.de>
7562         PR tree-optimization/77879
7563         * tree-ssa-structalias.c (handle_const_call): Properly handle
7564         NRV return slots.
7565         (handle_pure_call): Likewise.
7567 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7569         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7570         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7571         possible overflow.
7573 2016-10-06  Andrew Pinski  <apinski@cavium.com>
7575         * config/aarch64/aarch64-cores.def: Add a comment before each
7576         set of cores.
7578 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
7580         PR tree-optimization/77862
7581         * tree-vrp.c (add_equivalence): Use get_value_range so that
7582         num_vr_values is checked before accessing vr_values.
7584 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
7586         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7587           POINTER_TYPE_P.
7589 2016-10-05  Jeff Law  <law@redhat.com>
7591         PR tree-optimization/71661
7592         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7593         removal of a forwarder exposes a new natural loop.
7595 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
7597         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7598         Introduce ssesuffix variable.
7599         (<mask_codefor><code><mode>3<mask_name>): Ditto.
7600         (*<code><mode>3): Ditto.
7602 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
7604         * postreload.c (reload_cse_simplify): Skip also USE when detecting
7605         noop move.
7607 2016-10-06  Richard Biener  <rguenther@suse.de>
7609         PR tree-optimization/77855
7610         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7611         instead of removing the current item while iterating over the set
7612         which is not safe.
7614 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
7615             Eric Botcazou  <ebotcazou@adacore.com>
7617         PR target/77759
7618         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7619         (classify_registers): Don't set it
7620         (function_arg_slotno): Don't initialize and test it.  Tidy up.
7622 2016-10-06  Richard Biener  <rguenther@suse.de>
7624         PR tree-optimization/77839
7625         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7626         lattice transition.
7628 2016-10-06  Martin Liska  <mliska@suse.cz>
7630         * gcc.c: Set -fprofile-update=atomic when profiling is
7631         enabled and -pthread is set.  Warn when one combines
7632         -pthread and -fprofile-update=single for an app using
7633         profiling code.
7635 2016-10-06  Martin Liska  <mliska@suse.cz>
7637         PR bootstrap/77788
7638         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7639         * gimple-ssa-strength-reduction.c (slsr_process_cast):
7640         Initialize a pointer to NULL.
7641         (slsr_process_copy): Likewise.
7642         * input.c (location_get_source_line): Likewise.
7643         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7645 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
7647         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7648         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7649         (ix86_handle_option): Deleted handle of OPT_mpcommit.
7650         * config.gcc: Deleted pcommitintrin.h
7651         * config/i386/pcommitintrin.h: Deleted file.
7652         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7653         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7654         detection.
7655         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7656         __PCOMMIT__.
7657         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7658         (PTA_PCOMMIT): Deleted define.
7659         (ix86_option_override_internal): Deleted handle of option.
7660         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7661         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7662         __builtin_ia32_pcommit): Deleted.
7663         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7664         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7665         (pcommit): Deleted instruction.
7666         * config/i386/i386.opt: Mention -mpcommit deprecation.
7667         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7669 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
7671         PR target/77874
7672         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7673         Remove wrong assert.
7674         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7675         Use <round_constraint> as operand 1 constraint.
7677 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
7679         PR sanitizer/66343
7680         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7681         (ubsan_instrument_float_cast): And not here.
7683         PR sanitizer/66343
7684         * ubsan.c (ubsan_ids): New GTY(()) array.
7685         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7686         instead of static local counters.
7688 2016-10-05  Martin Sebor  <msebor@redhat.com>
7690         PR bootstrap/77819
7691         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7692         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7693         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7694         (default_printf_pointer_format): Define function.
7695         * targhooks.c (linux_printf_pointer_format): Define new function.
7696         * targhooks.h (linux_printf_pointer_format): Declare.
7697         (gnu_libc_printf_pointer_format): Remove declaration.
7699 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7701         * fold-const.c (native_encode_real): Fix logic for selecting offset
7702         to write to when BYTES_BIG_ENDIAN.
7704 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
7706         * builtins.c (fold_builtin_strchr): Remove function.
7707         (fold_builtin_strrchr): Likewise.
7708         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7709         * gimple-fold.c (target_char_cst_p): New function.
7710         (gimple_fold_builtin_strchr) Add more foldings.
7711         (gimple_fold_builtin): Add index, strrchr, rindex cases.
7713 2016-10-05  Richard Biener  <rguenther@suse.de>
7715         PR middle-end/77863
7716         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7717         capture ids in c-exprs.
7719 2016-10-05  Richard Biener  <rguenther@suse.de>
7721         PR middle-end/77826
7722         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7723         with types_match for GIMPLE code gen to handle type mismatched
7724         constants properly.
7725         (dt_operand::gen): Adjust.
7726         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7727         and constant A.
7729 2016-10-05  Richard Biener  <rguenther@suse.de>
7731         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7733 2016-10-05  Richard Biener  <rguenther@suse.de>
7735         PR middle-end/77842
7736         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7738 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
7740         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7741         version check to protect only DW_TAG_imported_module generation.
7743 2016-10-05  Richard Biener  <rguenther@suse.de>
7745         PR middle-end/55152
7746         * match.pd (min(a,-a) -> -abs(a)): New pattern.
7748 2016-10-04  Ian Lance Taylor  <iant@golang.org>
7750         * explow.c (allocate_dynamic_stack_space): Call
7751         do_pending_stack_adjust before handling flag_split_stack.
7753 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
7755         * genattrtab.c (make_internal_attr): Supply dummy column number to
7756         file_location ctor.
7757         (main): Likewise.
7758         * genoutput.c (init_insn_for_nothing): Likewise.
7759         * gensupport.c (add_define_attr): Likewise.
7760         * read-md.c (message_at_1): Print column number.
7761         (fatal_with_file_and_line): Likewise.
7762         (rtx_reader::read_char): Track column numbers.
7763         (rtx_reader::unread_char): Likewise.
7764         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7765         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7766         (rtx_reader::handle_file): Initialize m_read_md_colno.
7767         (rtx_reader::get_current_location): Supply column number to
7768         file_location ctor.
7769         * read-md.h (struct file_location): Add field "colno".
7770         (file_location::file_location): Likewise.
7771         (rtx_reader::get_colno): New accessor.
7772         (rtx_reader::m_read_md_colno): New field.
7773         (rtx_reader::m_last_line_colno): New field.
7775 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7777         * doc/extend.texi (Java Exceptions): Remove.
7778         (java_interface): Remove.
7780 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
7782         PR tree-optimization/77808
7783         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7784         and addr are different before copying points-to information.
7786 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
7788         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7789         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7790         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7791         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7793 2016-10-04  Richard Biener  <rguenther@suse.de>
7795         PR tree-optimization/77399
7796         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7797         verify the target can convert.
7799 2016-10-04  Richard Biener  <rguenther@suse.de>
7801         PR middle-end/77833
7802         * explow.c (plus_constant): Verify the mode of the constant
7803         pool offset before calling plus_constant.
7805 2016-10-04  Richard Biener  <rguenther@suse.de>
7807         PR middle-end/77407
7808         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7809         type support, mark with :C.
7810         (X / -X -> -1): Mark with :C.
7812 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
7814         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7815         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7816         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7817         * doc/tm.texi: Regenerated.
7818         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7819         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7820         * config/darwin.h (JCR_SECTION_NAME): Remove.
7821         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7822         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7823         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7824         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7825         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7826         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7828 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7830         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7831         between "because" and "param" in dump message in call to fprintf.
7833 2016-10-03  Jeff Law  <law@redhat.com>
7835         PR tree-optimization/71550
7836         PR tree-optimization/71403
7837         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7838         (profitable_jump_thread_path): Also return boolean indicating if
7839         the realized path will create an irreducible loop.
7840         Remove loop depth tests from 71403.
7841         (fsm_find_control_statement_thread_paths): Remove loop depth tests
7842         from 71403.  If threading will create an irreducible loop, then
7843         throw away loop iteration and related information.
7845 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
7847         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7848         -Woverloaded-virtual checks for warning options.
7849         * configure: Regenerate.
7851 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7853         PR preprocessor/77699
7854         * input.c (maybe_grow): Don't allocate one byte extra headroom.
7855         (get_next_line): Return false on error.
7856         (read_next_line): Removed, use get_next_line instead.
7857         (read_line_num): Don't copy the line.
7858         (location_get_source_line): Don't use static data.
7859         (selftest::test_reading_source_line): Add more test cases.
7861 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7863         Revert
7864         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7866         * ifcvt.c (noce_try_avoid_const_materialization): New function.
7867         (noce_process_if_block): Use it.
7869 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7871         * doc/invoke.texi: Update -Wint-in-bool-context.
7873 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
7875         * dwarf2out.c (output_fde, output_call_frame_info,
7876         dwarf2out_do_cfi_startproc, set_indirect_string,
7877         gen_internal_sym, output_die, output_line_info): Use
7878         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7879         ASM_GENERATE_INTERNAL_LABEL output.
7881 2016-10-01  Richard Biener  <rguenther@suse.de>
7883         PR middle-end/77798
7884         * genmatch.c (get_operand_type): Add operand position arg
7885         and handle COND_EXPR comparison operand with fixed boolean_type_node.
7886         (expr::gen_transform): Adjust.
7887         (dt_simplify::gen_1): Likewise.
7889 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
7891         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7892         comments.  Simplify asserts, remove unnecessary conditions.
7893         Formatting fixes.
7894         (*<code><mode>3): Likewise.
7896 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
7898         * doc/invoke.texi (-Wregister): Document.
7900 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7902         * configure.ac: Split CHECKING_P into CHECKING_P and
7903         ENABLE_EXTRA_CHECKING.
7904         * configure: Regenerated.
7905         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
7906         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7908 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
7910         PR other/31566
7911         * gcc.c (process_command): For @filename handling, output
7912         the correct name if the file does not exist.
7914 2016-09-30  Marek Polacek  <polacek@redhat.com>
7916         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7917         * config/alpha/predicates.md: Likewise.
7919 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7921         * ifcvt.c (noce_try_avoid_const_materialization): New function.
7922         (noce_process_if_block): Use it.
7924 2016-09-30  Martin Liska  <mliska@suse.cz>
7926         * doc/invoke.texi: Document asan-use-after-return that
7927         it's disabled by default in runtime.
7929 2016-09-30  Richard Biener  <rguenther@suse.de>
7931         * tree-vrp.c (intersect_ranges): If we failed to handle
7932         the intersection choose a constant singleton range if available.
7934 2016-09-30  Richard Biener  <rguenther@suse.de>
7936         PR tree-optimization/77399
7937         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7938         float <-> int conversions.
7940 2016-09-30  Alan Modra  <amodra@gmail.com>
7942         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7944 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
7946         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7947         ext_level before calling CPUID with 0x80000008.
7948         Simplify xgetbv checks.
7950 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
7952         * Makefile.in (OBJS): Add print-rtl-function.o.
7953         * print-rtl-function.c: New file.
7954         * print-rtl.h (print_rtx_function): New decl.
7956 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
7958         PR target/77756
7959         * config/i386/cpuid.h (__get_cpuid_count): New.
7960         (__get_cpuid): Rename __level to __leaf.
7962 2016-09-29  Marek Polacek  <polacek@redhat.com>
7964         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7966 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
7968         PR target/77718
7969         * builtins.c (expand_builtin_memcmp): Don't swap args unless
7970         result is only being compared with zero.
7972 2016-09-29  Marek Polacek  <polacek@redhat.com>
7974         * dwarf2out.c (loc_descriptor): Add fall through comment.
7975         (add_const_value_attribute): Likewise.
7977 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
7979         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7980         with "v6t2".  Move "arch" attribute above "pool_range".
7981         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7982         with "v6t2".
7983         (*thumb2_movhi_vfp): Likewise.
7984         (*arm_movhi_fp16): Likewise.
7985         (*thumb2_movhi_fp16): Likewise.
7986         (*arm_movsi_vfp): Remove "arch" attribute.
7987         (*thumb2_movsi_vfp): Likewise.
7989 2016-09-29  Martin Liska  <mliska@suse.cz>
7991         * doc/extend.texi: Remove limitation of Objective C for
7992         __attribute__((constructor)) and __attribute__((destructor)).
7994 2016-09-29  Richard Biener  <rguenther@suse.de>
7996         PR tree-optimization/77768
7997         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7998         Handle stores to readonly memory when removing redundant stores.
8000 2016-09-29  Richard Biener  <rguenther@suse.de>
8002         PR middle-end/77407
8003         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
8004         X / -X -> -1 simplifications.
8006 2016-09-29  Richard Biener  <rguenther@suse.de>
8008         PR middle-end/55152
8009         * match.pd: Add max(a,-a) -> abs(a) pattern.
8010         * tree-ssa-phiopt.c (minmax_replacement): Disable for
8011         HONOR_SIGNED_ZEROS types.
8013 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
8015         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
8016         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
8018 2016-09-29  Richard Biener  <rguenther@suse.de>
8020         * tree-vrp.c (set_defs_to_varying): New helper avoiding
8021         writing to vr_const_varying.
8022         (vrp_initialize): Call it.
8023         (vrp_visit_stmt): Likewise.
8024         (evrp_dom_walker::before_dom_children): Likewise.
8026 2016-09-29  Richard Biener  <rguenther@suse.de>
8028         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
8029         constructors with vector elements.
8031 2016-09-29  Richard Biener  <rguenther@suse.de>
8033         PR tree-optimization/77768
8034         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
8035         with stores to a place we know has a constant value.
8037 2016-09-29  Alan Modra  <amodra@gmail.com>
8039         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
8040         * doc/invoke.texi: Document it.
8041         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
8042         (rs6000_passes_float): Comment.
8043         (rs6000_passes_long_double): New static var.
8044         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
8045         (init_cumulative_args): Set up to emit fp .gnu_attribute for
8046         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
8047         to include fp values returned in vectors.
8048         Set rs6000_passes_long_double.
8049         (rs6000_function_arg_advance_1): Likewise for function args.
8050         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
8051         and SPE.  Emit long double tag value too.
8052         (rs6000_opt_vars): Add gnu-attr.
8053         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
8054         * configure: Regenerate.
8055         * config.in: Regenerate.
8057 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
8059         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
8060         of 0 < x.
8061         (format_floating, format_string, format_directive,
8062         get_destination_size, pass_sprintf_length::handle_gimple_call):
8063         Likewise.
8065 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
8067         * gimple-ssa-sprintf.c: Fix comment formatting.
8068         (format_integer): Use is_gimple_assign.
8069         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
8070         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
8071         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
8072         (pass_sprintf_length::execute): Use is_gimple_call.
8074 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8076         * gimple-fold.c (gimple_fold_builtin): After failing to fold
8077         strchr, also try the generic folding.
8079 2016-09-28  Martin Sebor  <msebor@redhat.com>
8081         PR c/77762
8082         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
8083         Fix typos.
8085 2016-09-28  Martin Sebor  <msebor@redhat.com>
8087         PR middle-end/77683
8088         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
8089         length modifier is not expected.
8090         (format_floating): Ignore l length modifier and fail gracefuly
8091         when it isn't one of the other expected ones.
8093 2016-09-28  Martin Sebor  <msebor@redhat.com>
8095         PR bootstrap/77753
8096         * varasm.c (assemble_addr_to_section): Increase local buffer size.
8098 2016-09-27  Richard Biener  <rguenther@suse.de>
8100         * dwarf2out.c (cu_die_list): New global.
8101         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
8102         main_comp_unit_die to cu_die_list if we created it.
8103         Move break_out_includes ...
8104         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
8105         the cu_die_list.
8107 2016-09-28  Richard Biener  <rguenther@suse.de>
8109         * dwarf2out.c (struct die_struct): Add removed flag.
8110         (lookup_type_die): If the DIE is marked as removed, clear
8111         TYPE_SYMTAB_DIE and return NULL.
8112         (lookup_decl_die): If the DIE is marked as removed, remove it
8113         from the hash and return NULL.
8114         (mark_removed): New helper.
8115         (prune_unused_types_prune): Call it for removed DIEs.
8116         (gen_subprogram_die): Move the premark_used_types call to after
8117         DIEs for the functions scopes are generated.
8118         (process_scope_var): Do not re-create pruned types or type decls.
8119         Make sure to also re-parent type decls.
8120         (dwarf2out_finish): Move unused type pruning and debug_types
8121         handling ...
8122         (dwarf2out_early_finish): ... here.
8124 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
8126         * config/arc/arc-c.c: New file.
8127         * config/arc/arc-c.def: Likewise.
8128         * config/arc/t-arc: Likewise.
8129         * config.gcc: Include arc-c.o as c and cpp object.
8130         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
8131         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
8132         arc_cpu_cpp_builtins.
8134 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
8136         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
8137         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
8139 2016-09-28  Nathan Sidwell  <nathan@acm.org>
8141         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
8142         printing.
8144 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
8146         PR tree-optimization/61056
8147         * gimple-fold.c (gimple_fold_builtin_strchr):
8148         New function to optimize strchr (s, 0) to strlen.
8149         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
8151 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
8153         PR tree-optimization/77724
8154         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
8155         Add tree_fits_shwi_p check.
8157 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
8159         * auto-inc-dec.c (try_merge): Remove break after return.
8160         * cselib.c (autoinc_split): Likewise.
8161         * explow.c (promote_mode): Likewise.
8162         * fixed-value.c (fixed_arithmetic): Likewise.
8163         * hsa.c (hsa_internal_fn::get_arity): Likewise.
8164         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
8165         * trans-mem.c (get_attrs_for): Likewise.
8166         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
8167         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
8168         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
8169         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
8170         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
8171         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
8172         * config/cris/cris.c (cris_op_str): Likewise.
8173         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
8174         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
8176 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
8178         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
8179         IFN_GOACC_REDUCTION_CODES): New.
8180         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
8181         ifn_goacc_reduction_kind): Use them.
8182         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
8183         of internal functions, when applicable.
8185 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
8187         * config/mips/constraints.md (d): Fix documentation.
8188         * doc/md.texi (Machine Constraints): Update accordingly.
8190 2016-09-27  Richard Biener  <rguenther@suse.de>
8192         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
8193         cur_line_info_table initialization ...
8194         (dwarf2out_assembly_start): ... here.
8196 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
8198         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
8199         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
8200         (*thumb2_movhi_vfp): Likewise.
8201         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
8202         template.  Expand predicable attribute to mark VMOV.F16 as not
8203         predicable.  Add "arch" attribute.
8204         (*thumb2_movhi_fp16): Likewise.
8205         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
8206         (*thumb2_movsi_vfp): Add "arch" attribute.
8208 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
8210         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
8211         VAR_DECL string.
8213 2016-09-27  Marek Polacek  <polacek@redhat.com>
8215         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
8216         comment.
8218         * config/c6x/c6x.h: Adjust fall through comment.
8219         * config/sh/sh.c (final_prescan_insn): Likewise.
8220         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
8221         (visium_expand_fp_cstore): Likewise.
8223 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8225         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
8226         expected by -Wimplicit-fallthrough.
8227         (thumb1_size_rtx_costs): Likewise.
8228         (thumb2_reorg): Likewise.
8229         (tls_mentioned_p): Add "Fall through" comment.
8230         (thumb2_reorg): Likewise.
8231         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
8232         comment form expected by -Wimplicit-fallthrough.
8234 2016-09-27  Martin Liska  <mliska@suse.cz>
8236         PR gcov-profile/46266
8237         * input.h (RESERVED_LOCATION_P): New macro.
8238         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
8239         instread of comparison with UNKNOWN_LOCATION.
8241 2016-09-27  Richard Biener  <rguenther@suse.de>
8243         PR tree-optimization/77745
8244         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8245         When removing redundant stores make sure to check compatibility
8246         of the TBAA state for downstream accesses.
8247         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
8248         value-numbering virtual operands for store matches.
8250 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
8252         PR target/51244
8253         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
8254         movrt patterns.  Match them before anything else in the SET case.
8256 2016-09-27  Martin Liska  <mliska@suse.cz>
8258         PR gcov-profile/7970
8259         PR gcov-profile/16855
8260         PR gcov-profile/44779
8261         * coverage.c (build_gcov_exit_decl): New function.
8262         (coverage_obj_init): Call the function and generate __gcov_exit
8263         destructor.
8264         * doc/gcov.texi: Document when __gcov_exit function is called.
8266 2016-09-27  Marek Polacek  <polacek@redhat.com>
8268         PR bootstrap/77751
8269         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8270         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
8271         -Wno-error instead of -Wno-implicit-fallthrough.
8273 2016-09-27  Martin Liska  <mliska@suse.cz>
8275         PR bootstrap/77749
8276         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
8278 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
8280         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
8281         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
8282         comments.  Remove break after return.
8283         (ix86_fp_compare_code_to_integer, has_dispatch,
8284         ix86_simd_clone_usable): Remove break after return.
8286 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8288         PR rlt-optimization/77714
8289         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
8290         REG_EQUAL note.
8292 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
8294         PR ipa/77677
8295         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
8296         extract_range_from_unary_expr to convert value_range.
8297         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
8298         (extract_range_from_unary_expr): This.
8299         * tree-vrp.h (extract_range_from_unary_expr): Declare.
8301 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
8303         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
8305 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8307         * config/i386/i386.c (ix86_print_operand)
8308         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
8309         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
8310         (epilogue_renumber): Likewise.
8312 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
8314         PR middle-end/77719
8315         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
8316         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
8318 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8320         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
8321         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
8322         is_mm_seq_cst, is_mm_sync): Move to ...
8323         * memmodel.h: This.  New file.
8324         * builtins.c: Include memmodel.h.
8325         * optabs.c: Likewise.
8326         * tsan.c: Likewise.
8327         * config/aarch64/aarch64.c: Likewise.
8328         * config/alpha/alpha.c: Likewise.
8329         * config/arm/arm.c: Likewise.
8330         * config/i386/i386.c: Likewise.
8331         * config/ia64/ia64.c: Likewise.
8332         * config/mips/mips.c: Likewise.
8333         * config/rs6000/rs6000.c: Likewise.
8334         * config/sparc/sparc.c: Likewise.
8335         * genconditions.c: Include memmodel.h in generated file.
8336         * genemit.c: Likewise.
8337         * genoutput.c: Likewise.
8338         * genpeep.c: Likewise.
8339         * genpreds.c: Likewise.
8340         * genrecog.c: Likewise.
8342 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
8344         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
8345         "c" instead when parsing characters.  Move operand parsing into...
8346         (read_rtx_operand): ...this new function, renaming "i" to "idx",
8347         and tightening the scope of various locals.
8349 2016-09-26  Liu Hao  <lh_mouse@126.com>
8351         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
8353 2016-09-26  Marek Polacek  <polacek@redhat.com>
8355         * system.h: Use __has_attribute to check whether the fallthrough
8356         attribute is supported.
8358 2016-09-26  Marek Polacek  <polacek@redhat.com>
8360         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
8361         gimple_call_internal_p.
8362         * ipa-split.c (find_return_bb): Likewise.
8363         (execute_split_functions): Likewise.
8364         * omp-low.c (dump_oacc_loop_part): Likewise.
8365         (oacc_loop_xform_head_tail): Likewise.
8366         * predict.c (predict_loops): Likewise.
8367         * sanopt.c (pass_sanopt::execute): Likewise.
8368         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
8369         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
8370         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
8371         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
8372         (expand_ifn_va_arg): Likewise.
8373         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8374         (optimize_mask_stores): Likewise.
8375         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
8376         (vect_transform_stmt): Likewise.
8377         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
8378         * tsan.c (instrument_memory_accesses): Likewise.
8380 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8381             Alexander Monakov  <amonakov@ispras.ru>
8383         * regrename.c (rename_chains): Check
8384         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8385         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8386         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8388 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8390         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8391         (s390_sched_score): Likewise.
8393 2016-09-26  Martin Liska  <mliska@suse.cz>
8395         * doc/gcov.texi: Update program output of gcov tool.
8397 2016-09-26  Martin Liska  <mliska@suse.cz>
8399         PR gcov-profile/23332
8400         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8401         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8402         * value-prof.c (dump_histogram_value): Do not handle
8403         HIST_TYPE_CONST_DELTA.
8404         (stream_in_histogram_value): Likewise.
8405         (gimple_find_values_to_profile): Likewise.
8406         * value-prof.h (enum hist_type): Likewise.
8408 2016-09-26  Martin Liska  <mliska@suse.cz>
8410         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8411         from default sanitize recover values.
8412         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8413         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8414         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8415         consistent.
8416         * opts.c (finish_options): Do a generic loop over options
8417         that can be recovered.
8418         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8419         SANITIZE_RETURN.
8420         (common_handle_option): Likewise.
8421         * opts.h: Declare can_recover to sanitizer_opts_s.
8423 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
8425         * target.def(elf_flags_numeric): Change documentation to present tense.
8426         * doc/tm.texi: Regenerate.
8428 2016-09-26  Marek Polacek  <polacek@redhat.com>
8430         PR c/7652
8431         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8432         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8433         -Wno-switch-fallthrough.
8434         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8435         (expand_builtin): Likewise.
8436         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8437         * convert.c (convert_to_real_1): Likewise.
8438         (convert_to_integer_1): Likewise.
8439         * final.c (output_alternate_entry_point): Likewise.
8440         * genattrtab.c (make_canonical): Likewise.
8441         (write_test_expr): Likewise.
8442         * genpreds.c (validate_exp): Likewise.
8443         * gimple-ssa-strength-reduction.c
8444         (find_candidates_dom_walker::before_dom_children): Likewise.
8445         * godump.c (go_format_type): Likewise.
8446         * reload1.c (elimination_effects): Likewise.
8447         * resource.c (mark_referenced_resources): Likewise.
8448         (mark_set_resources): Likewise.
8449         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8450         * varasm.c (output_addressed_constants): Likewise.
8452 2016-09-26  Marek Polacek  <polacek@redhat.com>
8454         PR c/7652
8455         * common.opt (Wimplicit-fallthrough): New option.
8456         * doc/extend.texi: Document statement attributes and the fallthrough
8457         attribute.
8458         * doc/invoke.texi: Document -Wimplicit-fallthrough.
8459         * gimple.h (gimple_call_internal_p): New function.
8460         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8461         (struct label_entry): New struct.
8462         (find_label_entry): New function.
8463         (case_label_p): New function.
8464         (collect_fallthrough_labels): New function.
8465         (last_stmt_in_scope): New function.
8466         (should_warn_for_implicit_fallthrough): New function.
8467         (warn_implicit_fallthrough_r): New function.
8468         (maybe_warn_implicit_fallthrough): New function.
8469         (expand_FALLTHROUGH_r): New function.
8470         (expand_FALLTHROUGH): New function.
8471         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8472         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8473         (gimplify_label_expr): New function.
8474         (gimplify_case_label_expr): Set location.
8475         (gimplify_expr): Call gimplify_label_expr.
8476         * internal-fn.c (expand_FALLTHROUGH): New function.
8477         * internal-fn.def (FALLTHROUGH): New internal function.
8478         * langhooks.c (lang_GNU_OBJC): New function.
8479         * langhooks.h (lang_GNU_OBJC): Declare.
8480         * system.h (gcc_fallthrough): Define.
8481         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8482         * tree.h (FALLTHROUGH_LABEL_P): Define.
8484 2016-09-26  Richard Biener  <rguenther@suse.de>
8486         * dwarf2out.c (stripattributes): Remove unused function.
8487         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8488         Push dwarf_split_debug_info handling into init_sections_and_labels.
8489         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8490         (DEBUG_MACRO_SECTION_FLAGS): Remove.
8491         (debug_macinfo_section_name): New global.
8492         (output_macinfo): Use debug_macinfo_section_name.
8493         (init_sections_and_labels): Split out section and label generation
8494         from dwarf2out_init.  Set debug_macinfo_section_name.
8495         (dwarf2out_init): Move text section label generation and emission
8496         to ...
8497         (dwarf2out_assembly_start): ... here.
8498         (dwarf2out_finish): Call init_sections_and_labels before DWARF
8499         output starts.
8501 2016-09-26  Richard Biener  <rguenther@suse.de>
8503         PR debug/77692
8504         * cgraphunit.c (analyze_functions): Before early removing
8505         global vars calls the late_global_decl debug handler mark
8506         the variable as readonly.
8508 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
8510         PR target/51244
8511         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8512         (sh_rtx_costs): Handle SET of movt and movrt patterns.
8513         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8514         declare new overloads.
8515         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8516         operand.
8518 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8520         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8521         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8523 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
8525         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8526         * configure: Regenerate.
8528 2016-09-24  Marek Polacek  <polacek@redhat.com>
8530         PR c/77490
8531         * doc/invoke.texi: Document -Wbool-operation.
8533 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8535         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8536         * config/rs6000/rs6000.c (expand_block_compare): New function used by
8537         cmpmemsi pattern to do builtin expansion of memcmp ().
8538         (compute_current_alignment): Add helper function for
8539         expand_block_compare used to compute alignment as the compare proceeds.
8540         (select_block_compare_mode): Used by expand_block_compare to select
8541         the mode used for reading the next chunk of bytes in the compare.
8542         (do_load_for_compare): Used by expand_block_compare to emit the load
8543         insns for the compare.
8544         (rs6000_emit_dot_insn): Moved this function to avoid a forward
8545         reference from expand_block_compare ().
8546         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8547         prototype for this function.
8548         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8549         target option for controlling how much code inline expansion of
8550         memcmp() will be allowed to generate.
8552 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
8554         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8555         hook_bool_mode_false, hook_bool_mode_true,
8556         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8557         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8558         hook_bool_const_rtx_insn_const_rtx_insn_true,
8559         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8560         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8561         hook_bool_const_tree_hwi_hwi_const_tree_false,
8562         hook_bool_const_tree_hwi_hwi_const_tree_true,
8563         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8564         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8565         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8566         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8567         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8568         hook_bool_const_tree_true, hook_bool_tree_tree_false,
8569         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8570         hook_bool_rtx_insn_true, hook_bool_rtx_false,
8571         hook_bool_uintp_uintp_false,
8572         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8573         hook_rtx_tree_int_null, hook_uint_mode_0,
8574         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8575         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8576         hook_constcharptr_const_rtx_insn_null,
8577         hook_constcharptr_const_tree_const_tree_null,
8578         hook_constcharptr_int_const_tree_null,
8579         hook_constcharptr_int_const_tree_const_tree_null,
8580         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8581         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8582         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8584         * vec.h (vNULL): Extend comment to say = vNULL initialization
8585         isn't needed for static vars.
8587         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8588         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8589         = vNULL initialization of file scope vec.
8590         * passes.c (pass_tab, enabled_pass_uid_range_tab,
8591         disabled_pass_uid_range_tab): Likewise.
8592         * haifa-sched.c (sched_luids, h_i_d): Likewise.
8593         * tree-chkp-opt.c (check_infos): Likewise.
8594         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8596         * vec.h (vnull::operator vec): Add constexpr keyword for
8597         C++11 and later.
8599 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
8601         PR tree-optimization/77654
8602         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8603         to duplicate_ssa_name_ptr_info.
8605 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
8607         PR preprocessor/77672
8608         * input.c (selftest::test_lexer_string_locations_simple): Update
8609         test to expect location information of the terminator character
8610         at the location of the final closing quote.
8611         (selftest::test_lexer_string_locations_hex): Likewise.
8612         (selftest::test_lexer_string_locations_oct): Likewise.
8613         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8614         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8615         (selftest::test_lexer_string_locations_ucn4): Likewise.
8616         (selftest::test_lexer_string_locations_ucn8): Likewise.
8617         (selftest::test_lexer_string_locations_u8): Likewise.
8618         (selftest::test_lexer_string_locations_utf8_source): Likewise.
8619         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8620         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8621         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8622         (selftest::test_lexer_string_locations_macro): Likewise.
8623         (selftest::test_lexer_string_locations_long_line): Likewise.
8625 2016-09-23  Richard Biener  <rguenther@suse.de>
8627         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8628         virtual definition to virtual use if the call devirtualizes
8629         to a const or pure function.
8630         (visit_use): Also visit calls we can devirtualize to a
8631         const or pure function.
8633 2016-09-23  Richard Biener  <rguenther@suse.de>
8635         PR tree-optimization/77697
8636         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8637         signal error if we have sth ternary or unhandled.
8639 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8641         * config/arm/arm_neon.h (vabd_f16): New.
8642         (vabdq_f16): New.
8643         (vabs_f16): New.
8644         (vabsq_f16): New.
8645         (vadd_f16): New.
8646         (vaddq_f16): New.
8647         (vcage_f16): New.
8648         (vcageq_f16): New.
8649         (vcagt_f16): New.
8650         (vcagtq_f16): New.
8651         (vcale_f16): New.
8652         (vcaleq_f16): New.
8653         (vcalt_f16): New.
8654         (vcaltq_f16): New.
8655         (vceq_f16): New.
8656         (vceqq_f16): New.
8657         (vceqz_f16): New.
8658         (vceqzq_f16): New.
8659         (vcge_f16): New.
8660         (vcgeq_f16): New.
8661         (vcgez_f16): New.
8662         (vcgezq_f16): New.
8663         (vcgt_f16): New.
8664         (vcgtq_f16): New.
8665         (vcgtz_f16): New.
8666         (vcgtzq_f16): New.
8667         (vcle_f16): New.
8668         (vcleq_f16): New.
8669         (vclez_f16): New.
8670         (vclezq_f16): New.
8671         (vclt_f16): New.
8672         (vcltq_f16): New.
8673         (vcltz_f16): New.
8674         (vcltzq_f16): New.
8675         (vcvt_f16_s16): New.
8676         (vcvt_f16_u16): New.
8677         (vcvt_s16_f16): New.
8678         (vcvt_u16_f16): New.
8679         (vcvtq_f16_s16): New.
8680         (vcvtq_f16_u16): New.
8681         (vcvtq_s16_f16): New.
8682         (vcvtq_u16_f16): New.
8683         (vcvta_s16_f16): New.
8684         (vcvta_u16_f16): New.
8685         (vcvtaq_s16_f16): New.
8686         (vcvtaq_u16_f16): New.
8687         (vcvtm_s16_f16): New.
8688         (vcvtm_u16_f16): New.
8689         (vcvtmq_s16_f16): New.
8690         (vcvtmq_u16_f16): New.
8691         (vcvtn_s16_f16): New.
8692         (vcvtn_u16_f16): New.
8693         (vcvtnq_s16_f16): New.
8694         (vcvtnq_u16_f16): New.
8695         (vcvtp_s16_f16): New.
8696         (vcvtp_u16_f16): New.
8697         (vcvtpq_s16_f16): New.
8698         (vcvtpq_u16_f16): New.
8699         (vcvt_n_f16_s16): New.
8700         (vcvt_n_f16_u16): New.
8701         (vcvtq_n_f16_s16): New.
8702         (vcvtq_n_f16_u16): New.
8703         (vcvt_n_s16_f16): New.
8704         (vcvt_n_u16_f16): New.
8705         (vcvtq_n_s16_f16): New.
8706         (vcvtq_n_u16_f16): New.
8707         (vfma_f16): New.
8708         (vfmaq_f16): New.
8709         (vfms_f16): New.
8710         (vfmsq_f16): New.
8711         (vmax_f16): New.
8712         (vmaxq_f16): New.
8713         (vmaxnm_f16): New.
8714         (vmaxnmq_f16): New.
8715         (vmin_f16): New.
8716         (vminq_f16): New.
8717         (vminnm_f16): New.
8718         (vminnmq_f16): New.
8719         (vmul_f16): New.
8720         (vmul_lane_f16): New.
8721         (vmul_n_f16): New.
8722         (vmulq_f16): New.
8723         (vmulq_lane_f16): New.
8724         (vmulq_n_f16): New.
8725         (vneg_f16): New.
8726         (vnegq_f16): New.
8727         (vpadd_f16): New.
8728         (vpmax_f16): New.
8729         (vpmin_f16): New.
8730         (vrecpe_f16): New.
8731         (vrecpeq_f16): New.
8732         (vrnd_f16): New.
8733         (vrndq_f16): New.
8734         (vrnda_f16): New.
8735         (vrndaq_f16): New.
8736         (vrndm_f16): New.
8737         (vrndmq_f16): New.
8738         (vrndn_f16): New.
8739         (vrndnq_f16): New.
8740         (vrndp_f16): New.
8741         (vrndpq_f16): New.
8742         (vrndx_f16): New.
8743         (vrndxq_f16): New.
8744         (vrsqrte_f16): New.
8745         (vrsqrteq_f16): New.
8746         (vrecps_f16): New.
8747         (vrecpsq_f16): New.
8748         (vrsqrts_f16): New.
8749         (vrsqrtsq_f16): New.
8750         (vsub_f16): New.
8751         (vsubq_f16): New.
8753 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8755         * config.gcc (extra_headers): Add arm_fp16.h
8756         * config/arm/arm_fp16.h: New.
8757         * config/arm/arm_neon.h: Include "arm_fp16.h".
8759 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8761         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8762         variants).
8763         (vmulf): New (v8hf, v4hf variants).
8764         (vfma): New (v8hf, v4hf variants).
8765         (vfms): New (v8hf, v4hf variants).
8766         (vsub): New (v8hf, v4hf variants).
8767         (vcage): New (v8hf, v4hf variants).
8768         (vcagt): New (v8hf, v4hf variants).
8769         (vcale): New (v8hf, v4hf variants).
8770         (vcalt): New (v8hf, v4hf variants).
8771         (vceq): New (v8hf, v4hf variants).
8772         (vcgt): New (v8hf, v4hf variants).
8773         (vcge): New (v8hf, v4hf variants).
8774         (vcle): New (v8hf, v4hf variants).
8775         (vclt): New (v8hf, v4hf variants).
8776         (vceqz): New (v8hf, v4hf variants).
8777         (vcgez): New (v8hf, v4hf variants).
8778         (vcgtz): New (v8hf, v4hf variants).
8779         (vcltz): New (v8hf, v4hf variants).
8780         (vclez): New (v8hf, v4hf variants).
8781         (vabd): New (v8hf, v4hf variants).
8782         (vmaxf): New (v8hf, v4hf variants).
8783         (vmaxnm): New (v8hf, v4hf variants).
8784         (vminf): New (v8hf, v4hf variants).
8785         (vminnm): New (v8hf, v4hf variants).
8786         (vpmaxf): New (v4hf variant).
8787         (vpminf): New (v4hf variant).
8788         (vpadd): New (v4hf variant).
8789         (vrecps): New (v8hf, v4hf variants).
8790         (vrsqrts): New (v8hf, v4hf variants).
8791         (vabs): New (v8hf, v4hf variants).
8792         (vneg): New (v8hf, v4hf variants).
8793         (vrecpe): New (v8hf, v4hf variants).
8794         (vrnd): New (v8hf, v4hf variants).
8795         (vrnda): New (v8hf, v4hf variants).
8796         (vrndm): New (v8hf, v4hf variants).
8797         (vrndn): New (v8hf, v4hf variants).
8798         (vrndp): New (v8hf, v4hf variants).
8799         (vrndx): New (v8hf, v4hf variants).
8800         (vrsqrte): New (v8hf, v4hf variants).
8801         (vmul_lane): Add v4hf and v8hf variants.
8802         (vmul_n): Add v4hf and v8hf variants.
8803         (vext): New (v8hf, v4hf variants).
8804         (vcvts): New (v8hi, v4hi variants).
8805         (vcvts): New (v8hf, v4hf variants).
8806         (vcvtu): New (v8hi, v4hi variants).
8807         (vcvtu): New (v8hf, v4hf variants).
8808         (vcvts_n): New (v8hf, v4hf variants).
8809         (vcvtu_n): New (v8hi, v4hi variants).
8810         (vcvts_n): New (v8hi, v4hi variants).
8811         (vcvtu_n): New (v8hf, v4hf variants).
8812         (vbsl): New (v8hf, v4hf variants).
8813         (vcvtas): New (v8hf, v4hf variants).
8814         (vcvtau): New (v8hf, v4hf variants).
8815         (vcvtms): New (v8hf, v4hf variants).
8816         (vcvtmu): New (v8hf, v4hf variants).
8817         (vcvtns): New (v8hf, v4hf variants).
8818         (vcvtnu): New (v8hf, v4hf variants).
8819         (vcvtps): New (v8hf, v4hf variants).
8820         (vcvtpu): New (v8hf, v4hf variants).
8822 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8824         * config/arm/arm-builtins.c (hf_UP): New.
8825         (si_UP): New.
8826         (vfp_builtin_data): New.  Update comment.
8827         (enum arm_builtins): Include "arm_vfp_builtins.def".
8828         (ARM_BUILTIN_VFP_PATTERN_START): New.
8829         (arm_init_vfp_builtins): New.
8830         (arm_init_builtins): Add arm_init_vfp_builtins.
8831         (arm_expand_vfp_builtin): New.
8832         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
8833         long line.
8834         * config/arm/arm_vfp_builtins.def: New file.
8835         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8836         (arm-builtins.o): Likewise.
8838 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8840         PR ipa/77677
8841         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8842         from constant while creating value range.
8844 2016-09-23  Renlin Li  <renlin.li@arm.com>
8846         * ira.c (ira): Move ira_use_lra_p initialization code to ...
8847         (ira_init_once): Here.
8849 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
8850             Jakub Jelinek  <jakub@redhat.com>
8852         * hooks.h (hook_uint_uintp_false): Rename to...
8853         (hook_bool_uint_uintp_false): ... this.
8854         * hooks.c (hook_uint_uintp_false): Rename to...
8855         (hook_bool_uint_uintp_false): ... this.
8856         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8857         instead of hook_uint_uintp_false.
8859 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8861         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8862         (arm_init_builtins): Move body of a loop to the standalone
8863         function arm_init_neon_builtin.
8864         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
8865         moved from arm_neon_builtin with some white-space fixes.
8866         (arm_expand_neon_builtin): Move code into the standalone function
8867         arm_expand_neon_builtin_1.
8869 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
8871         * config/arm/iterators.md (VCVTHI): New.
8872         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
8873         (NEON_VAGLTE): New.
8874         (VFM_LANE_AS): New.
8875         (VH_CVTTO): New.
8876         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
8877         (V_HALF): Add V4HF.  Fix white-space.
8878         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
8879         (V_s_elem): Likewise.
8880         (V_sz_elem): Fix white-space.
8881         (V_elem_ch): Likewise.
8882         (VH_elem_ch): New.
8883         (scalar_mul_constraint): Add V8HF and V4HF.
8884         (Is_float_mode): Fix white-space.
8885         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
8886         (q): Add HF.  Fix white-space.
8887         (float_sup): New.
8888         (float_SUP): New.
8889         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8890         (neon_vfm_lane_as): New.
8891         * config/arm/neon.md (add<mode>3_fp16): New.
8892         (sub<mode>3_fp16): New.
8893         (mul<mode>3add<mode>_neon): New.
8894         (fma<VH:mode>4_intrinsic): New.
8895         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8896         (fmsub<VH:mode>4_intrinsic): New.
8897         (<absneg_str><mode>2): New.
8898         (neon_v<absneg_str><mode>): New.
8899         (neon_v<fp16_rnd_str><mode>): New.
8900         (neon_vrsqrte<mode>): New.
8901         (neon_vpaddv4hf): New.
8902         (neon_vadd<mode>): New.
8903         (neon_vsub<mode>): New.
8904         (neon_vmulf<mode>): New.
8905         (neon_vfma<VH:mode>): New.
8906         (neon_vfms<VH:mode>): New.
8907         (neon_vc<cmp_op><mode>): New.
8908         (neon_vc<cmp_op><mode>_fp16insn): New
8909         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8910         (neon_vca<cmp_op><mode>): New.
8911         (neon_vca<cmp_op><mode>_fp16insn): New.
8912         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8913         (neon_vc<cmp_op>z<mode>): New.
8914         (neon_vabd<mode>): New.
8915         (neon_v<maxmin>f<mode>): New.
8916         (neon_vp<maxmin>fv4hf: New.
8917         (neon_<fmaxmin_op><mode>): New.
8918         (neon_vrecps<mode>): New.
8919         (neon_vrsqrts<mode>): New.
8920         (neon_vrecpe<mode>): New (VH variant).
8921         (neon_vdup_lane<mode>_internal): New.
8922         (neon_vdup_lane<mode>): New.
8923         (neon_vcvt<sup><mode>): New (VCVTHI variant).
8924         (neon_vcvt<sup><mode>): New (VH variant).
8925         (neon_vcvt<sup>_n<mode>): New (VH variant).
8926         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8927         (neon_vcvt<vcvth_op><sup><mode>): New.
8928         (neon_vmul_lane<mode>): New.
8929         (neon_vmul_n<mode>): New.
8930         * config/arm/unspecs.md (UNSPEC_VCALE): New
8931         (UNSPEC_VCALT): New.
8932         (UNSPEC_VFMA_LANE): New.
8933         (UNSPECS_VFMS_LANE): New.
8935 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8937         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8938         ("*extzv<mode><clobbercc_or_nocc>"):
8939         Correct a typo in a comment.
8940         Merged patterns.
8941         ("*insv<mode>_zEC12", "*insv<mode>_z10")
8942         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8943         ("*insv<mode>_zEC12_appendbitsleft")
8944         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8945         ("*insv<mode>_z10_appendbitsleft"): Ditto.
8946         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8947         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8948         Provide pattern with operands switched.
8949         ("*pre_z10_extv<mode>"):
8950         Use new subst patterns.
8951         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8952         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8953         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8954         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8955         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8956         ("*<risbg_n>_sidi_ior_and_lshiftrt")
8957         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8958         New patterns.
8959         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8960         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8961         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8962         on zEC12.
8963         ("SINT"): New mode_iterator with SI, HI, QI.
8964         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8965         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8966         duplication.
8968 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8970         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8971         new interface of s390_contiguous_bitmask_p.
8972         ("contiguous_bitmask_nowrap_operand"): New predicate.
8973         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8974         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8975         of s390_contiguous_bitmask_p.
8976         ("NxxDw"): Rename NxxDq constraint to NxxDw.
8977         ("NxxSw"): New constraint.
8978         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8979         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8980         interface.
8981         (s390_contiguous_bitmask_nowrap_p): Export.
8982         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8983         former s390_contiguous_bitmask_p.
8984         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8985         detect contiguous bit ranges with wraparound.  Change signature to
8986         return START and END position instead of POS and LENGTH.
8987         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8988         ranges with wraparound.
8989         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8990         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8991         Adapt to new signature of s390_contiguous_bitmask_p.
8993 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
8995         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8996         (create_intersect_range_checks): New.
8997         (vect_create_cond_for_alias_checks): Call above function.
8999 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9001         * config/arm/iterators.md (Code iterators): Fix some white-space
9002         in the comments.
9003         (GLTE): New.
9004         (ABSNEG): New
9005         (FCVT): Moved from vfp.md.
9006         (VCVT_HF_US_N): New.
9007         (VCVT_SI_US_N): New.
9008         (VCVT_HF_US): New.
9009         (VCVTH_US): New.
9010         (FP16_RND): New.
9011         (absneg_str): New.
9012         (FCVTI32typename): Moved from vfp.md.
9013         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
9014         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
9015         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
9016         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
9017         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
9018         (vcvth_op): New.
9019         (fp16_rnd_str): New.
9020         (fp16_rnd_insn): New.
9021         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
9022         (UNSPEC_VCVT_HF_U_N): New.
9023         (UNSPEC_VCVT_SI_S_N): New.
9024         (UNSPEC_VCVT_SI_U_N): New.
9025         (UNSPEC_VCVTH_S): New.
9026         (UNSPEC_VCVTH_U): New.
9027         (UNSPEC_VCVTA_S): New.
9028         (UNSPEC_VCVTA_U): New.
9029         (UNSPEC_VCVTM_S): New.
9030         (UNSPEC_VCVTM_U): New.
9031         (UNSPEC_VCVTN_S): New.
9032         (UNSPEC_VCVTN_U): New.
9033         (UNSPEC_VCVTP_S): New.
9034         (UNSPEC_VCVTP_U): New.
9035         (UNSPEC_VCVTP_S): New.
9036         (UNSPEC_VCVTP_U): New.
9037         (UNSPEC_VRND): New.
9038         (UNSPEC_VRNDA): New.
9039         (UNSPEC_VRNDI): New.
9040         (UNSPEC_VRNDM): New.
9041         (UNSPEC_VRNDN): New.
9042         (UNSPEC_VRNDP): New.
9043         (UNSPEC_VRNDX): New.
9044         * config/arm/vfp.md (<absneg_str>hf2): New.
9045         (neon_vabshf): New.
9046         (neon_v<fp16_rnd_str>hf): New.
9047         (neon_vrndihf): New.
9048         (addhf3): New.
9049         (subhf3): New.
9050         (divhf3): New.
9051         (mulhf3): New.
9052         (*mulsf3neghf_vfp): New.
9053         (*negmulhf3_vfp): New.
9054         (*mulsf3addhf_vfp): New.
9055         (*mulhf3subhf_vfp): New.
9056         (*mulhf3neghfaddhf_vfp): New.
9057         (*mulhf3neghfsubhf_vfp): New.
9058         (fmahf4): New.
9059         (neon_vfmahf): New.
9060         (fmsubhf4_fp16): New.
9061         (neon_vfmshf): New.
9062         (*fnmsubhf4): New.
9063         (*fnmaddhf4): New.
9064         (neon_vsqrthf): New.
9065         (neon_vrsqrtshf): New.
9066         (FCVT): Move to iterators.md.
9067         (FCVTI32typename): Likewise.
9068         (neon_vcvth<sup>hf): New.
9069         (neon_vcvth<sup>si): New.
9070         (neon_vcvth<sup>_nhf_unspec): New.
9071         (neon_vcvth<sup>_nhf): New.
9072         (neon_vcvth<sup>_nsi_unspec): New.
9073         (neon_vcvth<sup>_nsi): New.
9074         (neon_vcvt<vcvth_op>h<sup>si): New.
9075         (neon_<fmaxmin_op>hf): New.
9077 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9079         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
9080         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
9081         ("*insv<mode>_zEC12_appendbitsleft")
9082         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
9083         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
9085 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
9087         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
9088         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
9089         construct values without normalization.
9090         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
9091         static local lhs_ops to vNULL.
9093 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9094             Jiong Wang <jiong.wang@arm.com>
9096         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
9097         available when FP16 instructions are available.
9098         (output_move_vfp): Add support for 16-bit data moves.
9099         (arm_validize_comparison): Fix some white-space.  Support HFmode
9100         by conversion to SFmode.
9101         * config/arm/arm.md (truncdfhf2): Fix a comment.
9102         (extendhfdf2): Likewise.
9103         (cstorehf4): New.
9104         (movsicc): Fix some white-space.
9105         (movhfcc): New.
9106         (movsfcc): Fix some white-space.
9107         (*cmovhf): New.
9108         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
9109         instructions are available.
9110         (*thumb2_movhi_vfp): Likewise.
9111         (*arm_movhi_fp16): New.
9112         (*thumb2_movhi_fp16): New.
9113         (*movhf_vfp_fp16): New.
9114         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
9115         (*movhf_vfp): Likewise.
9116         (extendhfsf2): Enable when VFP FP16 instructions are available.
9117         (truncsfhf2):  Enable when VFP FP16 instructions are available.
9119 2016-09-23  Martin Liska  <mliska@suse.cz>
9121         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
9123 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9125         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
9126         V4HF modes.
9127         (arm_evpc_neon_vtrn): Likewise.
9128         (arm_evpc_neon_vrev): Likewise.
9129         (arm_evpc_neon_vext): Likewise.
9130         * config/arm/arm_neon.h (vbsl_f16): New.
9131         (vbslq_f16): New.
9132         (vdup_n_f16): New.
9133         (vdupq_n_f16): New.
9134         (vdup_lane_f16): New.
9135         (vdupq_lane_f16): New.
9136         (vext_f16): New.
9137         (vextq_f16): New.
9138         (vmov_n_f16): New.
9139         (vmovq_n_f16): New.
9140         (vrev64_f16): New.
9141         (vrev64q_f16): New.
9142         (vtrn_f16): New.
9143         (vtrnq_f16): New.
9144         (vuzp_f16): New.
9145         (vuzpq_f16): New.
9146         (vzip_f16): New.
9147         (vzipq_f16): New.
9148         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
9149         (vdup_lane): New (v8hf, v4hf variants).
9150         (vext): New (v8hf, v4hf variants).
9151         (vbsl): New (v8hf, v4hf variants).
9152         * config/arm/iterators.md (VDQWH): New.
9153         (VH): New.
9154         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
9155         (Scalar_mul_8_16): Fix white-space.
9156         (Is_d_reg): Add V4HF and V8HF.
9157         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
9158         (neon_vdup_lane<mode>): New.
9159         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
9160         (*neon_vtrn<mode>_insn): Likewise.
9161         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
9162         (*neon_vzip<mode>_insn): Likewise
9163         (neon_vuzp<mode>_internal): Likewise.
9164         (*neon_vuzp<mode>_insn): Likewise
9165         * config/arm/vec-common.md (vec_perm_const<mode>): New.
9167 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
9168             Matthew Wahab  <matthew.wahab@arm.com>
9170         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
9171         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
9172         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
9173         available.  Also fix some white-space.
9174         * config/arm/vfp.md (*arm_movhi_vfp): New.
9175         (*thumb2_movhi_vfp): New.
9177 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9179         * config/arm/arm-c.c (arm_cpu_builtins): Define
9180         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
9181         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
9183 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9185         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
9186         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
9187         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
9188         arm_v8_2a_fp16_neon_hw.
9189         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
9190         arm_v8_2a_neon.
9192 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9194         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
9195         arm_fp16_alternative_ok and arm_fp16_none_ok.
9197 2016-09-23  Martin Liska  <mliska@suse.cz>
9199         * ipa-icf.c (sem_variable::merge): Replace adress with address.
9201 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
9203         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
9204         ("armv8.2-a"): New.
9205         ("armv8.2-a+fp16"): New.
9206         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
9207         (FL2_FP16INST): New.
9208         (FL2_FOR_ARCH8_2A): New.
9209         * config/arm/arm-tables.opt: Regenerate.
9210         * config/arm/arm.c (arm_arch8_2): New.
9211         (arm_fp16_inst): New.
9212         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
9213         for incompatible fp16-format settings.
9214         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
9215         (TARGET_NEON_FP16INST): New.
9216         (arm_arch8_2): Declare.
9217         (arm_fp16_inst): Declare.
9218         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
9219         march=armv8.2-a and march=armv8.2-a+fp16.
9220         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
9221         and armv8.2-a+fp16.
9222         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
9223         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
9225 2016-09-23  Martin Liska  <mliska@suse.cz>
9227         * doc/extend.texi: Remove fused-madd from i386 target options.
9229 2016-09-23  Martin Liska  <mliska@suse.cz>
9231         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9232         Handle movbe.
9234 2016-09-23  Martin Liska  <mliska@suse.cz>
9236         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9237         Handle crc32.
9239 2016-09-23  Martin Liska  <mliska@suse.cz>
9241         PR target/71652
9242         * config/i386/i386.c (ix86_option_override_internal): Change
9243         signature and return false when there's an error related to
9244         arch string.
9245         (release_options_strings): New function.
9246         (ix86_valid_target_attribute_tree): Call the function.
9248 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
9250         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
9251         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
9252         (gen_hsa_ctor_assignment): Likewise.
9253         * print-tree.c (print_node): Likewise.
9254         * tree-dump.c (dequeue_and_dump): Likewise.
9255         * tree-sra.c (sra_modify_constructor_assign): Likewise.
9256         * expr.c (store_constructor): Likewise.
9257         * fold-const.c (operand_equal_p): Likewise.
9258         * tree-pretty-print.c (dump_generic_node): Likewise.
9259         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
9260         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
9262 2016-09-23  Richard Biener  <rguenther@suse.de>
9264         * hooks.h (hook_uint_uintp_false): Declare.
9266 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9268         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
9269         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
9271 2016-09-22  Martin Sebor  <msebor@redhat.com>
9273         PR target/77676
9274         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
9275         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
9276         (target_int_min): Correct computation.
9277         (format_integer): Use long long as the argument for the ll length
9278         modifier.
9279         (format_floating): Use target_int_max().
9280         (get_string_length): Same.
9281         (format_string): Avoid setting the bounded flag for strings
9282         of unknown length.
9283         (try_substitute_return_value): Avoid setting range info when
9284         the result isn't bounded.
9285         * varasm.c (assemble_name): Increase buffer size.
9287 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9288             Terry Guo  <terry.guo@arm.com>
9290         * target.def (elf_flags_numeric): New target hook.
9291         * targhooks.h (default_asm_elf_flags_numeric): New.
9292         * varasm.c (default_asm_elf_flags_numeric): New.
9293         (default_elf_asm_named_section): Use new target hook.
9294         * config/arm/arm.opt (mpure-code): New.
9295         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
9296         * config/arm/arm.c (arm_asm_init_sections): Add section
9297         attribute to default text section if -mpure-code.
9298         (arm_option_check_internal): Diagnose use of option with
9299         non supported targets and/or options.
9300         (arm_asm_elf_flags_numeric): New.
9301         (arm_function_section): New.
9302         (arm_elf_section_type_flags): New.
9303         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
9304         for -mpure-code.
9305         * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
9306         * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
9308 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
9310         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
9312 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9314         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
9315         * rtl.h: Adjust prototype.
9317 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9319         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
9320         (prev_active_insn): Likewise.
9321         (active_insn_p): Likewise.
9322         * rtl.h: Adjust prototypes.
9323         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
9324         * config/arc/arc.md: Likewise.
9325         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
9326         (branch_needs_nop_p): Likewise.
9327         (use_skip_p): Likewise.
9328         * config/sh/sh.c (gen_block_redirect): Likewise.
9329         (split_branches): Likewise.
9330         * reorg.c (optimize_skip): Likewise.
9331         (fill_simple_delay_slots): Likewise.
9332         (fill_slots_from_thread): Likewise.
9333         (relax_delay_slots): Likewise.
9334         * resource.c (mark_target_live_regs): Likewise.
9336 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9338         * config/cris/cris.c (cris_asm_output_case_end): Change argument
9339         type to rtx_insn *.
9340         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
9341         (prev_nonnote_nondebug_insn): Likewise.
9342         * config/cris/cris-protos.h: Adjust prototype.
9343         * rtl.h: Likewise.
9344         * jump.c (rtx_renumbered_equal_p): Adjust.
9346 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9348         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
9349         * rtl.h: Adjust prototype.
9350         * config/sh/sh.md: Adjust.
9351         * dwarf2out.c (add_var_loc_to_decl): Likewise.
9353 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9355         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
9356         (prev_nondebug_insn): Likewise.
9357         * loop-doloop.c (doloop_condition_get): Likewise.
9358         * rtl.h: Adjust prototype.
9359         * cfgloop.h: Likewise.
9361 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9363         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
9364         (prev_nonnote_insn): Likewise.
9365         * jump.c (reversed_comparison_code_parts): Likewise.
9366         (reversed_comparison): Likewise.
9367         * rtl.h: Adjust prototypes.
9368         * config/arc/arc.md: Adjust.
9369         * cse.c (find_comparison_args): Likewise.
9370         * reorg.c (redundant_insn): Change return type to rtx_insn *.
9371         (fix_reg_dead_note): Change argument type to rtx_insn *.
9372         (delete_prior_computation): Likewise.
9373         (delete_computation): Likewise.
9374         (fill_slots_from_thread): Adjust.
9375         (relax_delay_slots): Likewise.
9376         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9377         (simplify_relational_operation_1): Likewise.
9378         (simplify_ternary_operation): Likewise.
9380 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9382         * config/arc/arc-protos.h (arc_label_align): Change type of
9383         variables from rtx to rtx_insn *.
9384         * config/arc/arc.c (arc_label_align): Likewise.
9385         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9386         * config/bfin/bfin.c (workaround_speculation): Likewise.
9387         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9388         (find_last_same_clock): Likewise.
9389         (reorg_split_calls): Likewise.
9390         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9391         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9392         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9393         (same_cmp_following_p): Likewise.
9394         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9395         (same_cmp_following_p): Likwise.
9396         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9397         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9398         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9399         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9400         (rl78_alloc_physical_registers_cmp): Likewise.
9401         (rl78_alloc_physical_registers_umul): Likewise.
9402         (rl78_calculate_death_notes): Likewise.
9403         * config/s390/s390-protos.h (s390_label_align): Likewise.
9404         * config/s390/s390.c (s390_label_align): Likewise.
9405         * config/sh/sh.c (barrier_align): Likewise.
9406         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9407         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9408         (emit_cbcond_nop): Likewise.
9410 2016-09-22  Martin Liska  <mliska@suse.cz>
9412         PR ipa/77653
9413         * ipa-icf.c (sem_variable::merge): Yield merge operation if
9414         alias address matters, not necessarily address of original.
9416 2016-09-22  Richard Biener  <rguenther@suse.de>
9418         PR middle-end/77697
9419         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9420         fold fails.
9422 2016-09-22  Richard Biener  <rguenther@suse.de>
9424         PR middle-end/77677
9425         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9426         from constant folding results.
9427         (gimple_resimplify2): Likewise.
9428         (gimple_resimplify3): Likewise.
9430 2016-09-22  Richard Biener  <rguenther@suse.de>
9432         PR middle-end/77678
9433         * expr.c (expand_expr_real_1): Guard array access against negative
9434         offset.
9436 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9438         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9439         of MPFR_RNDN.
9440         (format_floating): Likewise.
9442 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
9444         PR fortran/77665
9445         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9446         for all IFN_GOMP_SIMD_* internal fns, not just for
9447         IFN_GOMP_SIMD_ORDERED_*.
9449 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9451         PR target/77670
9452         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9453         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9454         instructions when you want to invert the test.
9455         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9456         correct order for XXSEL.
9457         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9458         for using XSCMP{EQ,GT,GE}DP.
9460 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
9462         * genconstants.c (main): Introduce noop_reader and convert call
9463         to read_md_files to a method call.
9464         * genenums.c (main): Likewise.
9465         * genmddeps.c (main): Likewise.
9466         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9467         rtx_reader_ptr->get_top_level_filename ().
9468         (write_tm_preds_h): Likewise.
9469         (write_insn_preds_c): Likewise.
9470         * gensupport.c (class gen_reader): New subclass of rtx_reader.
9471         (rtx_handle_directive): Convert to...
9472         (gen_reader::handle_unknown_directive): ...this.
9473         (init_rtx_reader_args_cb): Convert return type from bool to
9474         rtx_reader *.  Create a gen_reader instance, using it for the
9475         call to read_md_files.  Return it if no errors occur.
9476         (init_rtx_reader_args): Convert return type from bool to
9477         rtx_reader *.
9478         * gensupport.h (init_rtx_reader_args_cb): Likewise.
9479         (init_rtx_reader_args_cb): Likewise.
9480         * read-md.c (struct file_name_list): Move to class rtx_reader.
9481         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9482         (read_md_filename): Delete in favor of
9483         rtx_reader::m_read_md_filename.
9484         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9485         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9486         (base_dir): Delete in favor of rtx_reader::m_base_dir.
9487         (first_dir_md_include): Delete in favor of
9488         rtx_reader::m_first_dir_md_include.
9489         (last_dir_md_include_ptr): Delete in favor of
9490         rtx_reader::m_last_dir_md_include_ptr.
9491         (max_include_len): Delete.
9492         (rtx_reader_ptr): New.
9493         (fatal_with_file_and_line): Use get_filename and get_lineno
9494         accessors of rtx_reader_ptr.
9495         (require_char_ws): Likewise.
9496         (rtx_reader::read_char): New method, based on ::read_char.
9497         (rtx_reader::unread_char): New method, based on ::unread_char.
9498         (read_escape): Use get_filename and get_lineno accessors of
9499         rtx_reader_ptr.
9500         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9501         (read_string): Use get_filename and get_lineno accessors of
9502         rtx_reader_ptr.
9503         (rtx_reader::rtx_reader): New ctor.
9504         (rtx_reader::~rtx_reader): New dtor.
9505         (handle_include): Convert from a function to...
9506         (rtx_reader::handle_include): ...this method, converting
9507         handle_directive from a callback to a virtual function.
9508         (handle_file): Likewise, converting to...
9509         (rtx_reader::handle_file): ...this method.
9510         (handle_toplevel_file): Likewise, converting to...
9511         (rtx_reader::handle_toplevel_file): ...this method.
9512         (rtx_reader::get_current_location): New method.
9513         (parse_include): Convert from a function to...
9514         (rtx_reader::add_include_path): ...this method, dropping redundant
9515         update to unused max_include_len.
9516         (read_md_files): Convert from a function to...
9517         (rtx_reader::read_md_files): ...this method, converting
9518         handle_directive from a callback to a virtual function.
9519         (noop_reader::handle_unknown_directive): New method.
9520         * read-md.h (directive_handler_t): Delete this typedef.
9521         (in_fname): Delete.
9522         (read_md_file): Delete.
9523         (read_md_lineno): Delete.
9524         (read_md_filename): Delete.
9525         (class rtx_reader): New class.
9526         (rtx_reader_ptr): New decl.
9527         (class noop_reader): New subclass of rtx_reader.
9528         (read_char): Reimplement in terms of rtx_reader::read_char.
9529         (unread_char): Reimplement in terms of rtx_reader::unread_char.
9530         (read_md_files): Delete.
9531         * read-rtl.c (read_rtx_code): Update for deletion of globals
9532         read_md_filename and read_md_lineno.
9534 2016-09-21  Jason Merrill  <jason@redhat.com>
9536         * input.h (from_macro_definition_at): New.
9538 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
9540         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9542 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9544         PR tree-optimization/77550
9545         * tree-vect-stmts.c (create_array_ref): Change parameters.
9546         (get_group_alias_ptr_type): New function.
9547         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9549 2016-09-21  Marek Polacek  <polacek@redhat.com>
9551         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9552         Add falls through comment.
9554 2016-09-21  Richard Biener  <rguenther@suse.de>
9556         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9557         (replace_child): Likewise.
9558         (remove_child_TAG): Adjust.
9559         (move_marked_base_types): Likewise.
9560         (prune_unused_types_prune): Clear die_sib of removed children.
9562 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
9564         PR target/77326
9565         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9566         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9568 2016-09-21  Richard Biener  <rguenther@suse.de>
9570         PR tree-optimization/77648
9571         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9572         with complex RHS.
9573         (make_transitive_closure_constraints): Adjust comment.
9574         (make_any_offset_constraints): New function.
9575         (handle_rhs_call): Make sure to first expand a pointer to all
9576         subfields before transitively closing it.
9577         (handle_const_call): Likewise.  Properly expand returned
9578         pointers as well.
9579         (handle_pure_call): Likewise.
9581 2016-09-21  Richard Biener  <rguenther@suse.de>
9582             Jakub Jelinek  <jakub@redhat.com>
9584         PR tree-optimization/77621
9585         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9586         group at non-vectorizable stmts.
9588 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9590         PR tree-optimization/72835
9591         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9592         (make_new_ssa_for_all_defs): Likewise.
9593         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9595 2016-09-20  Martin Sebor  <msebor@redhat.com>
9597         PR middle-end/49905
9598         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9599         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9600         * config/linux.c (gnu_libc_printf_pointer_format): New function.
9601         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9602         * config/sol2.c (solaris_printf_pointer_format): New function.
9603         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9604         options.
9605         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9606         * doc/tm.texi: Regenerate.
9607         * gimple-fold.h (get_range_strlen): New function.
9608         (get_maxval_strlen): Declare existing function.
9609         * gimple-fold.c (get_range_strlen): Add arguments and compute both
9610         maximum and minimum.
9611          (get_range_strlen): Define overload.
9612         (get_maxval_strlen): Adjust.
9613         * gimple-ssa-sprintf.c: New file and pass.
9614         * passes.def (pass_sprintf_length): Add new pass.
9615         * targhooks.h (default_printf_pointer_format): Declare new function.
9616         (gnu_libc_printf_pointer_format): Same.
9617         (solaris_libc_printf_pointer_format): Same.
9618         * targhooks.c (default_printf_pointer_format): Define new function.
9619         * tree-pass.h (make_pass_sprintf_length): Declare new function.
9620         * print-tree.c: Increase buffer size.
9622 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9624         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9626 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9628         * common.opt: New option -fipa-vrp.
9629         * ipa-cp.c (ipa_get_vr_lat): New.
9630         (ipcp_vr_lattice::print): Likewise.
9631         (print_all_lattices): Call ipcp_vr_lattice::print.
9632         (ipcp_vr_lattice::meet_with): New.
9633         (ipcp_vr_lattice::meet_with_1): Likewise.
9634         (ipcp_vr_lattice::top_p): Likewise.
9635         (ipcp_vr_lattice::bottom_p): Likewsie.
9636         (ipcp_vr_lattice::set_to_bottom): Likewise.
9637         (set_all_contains_variable): Call VR set_to_bottom.
9638         (initialize_node_lattices): Init VR lattices.
9639         (propagate_vr_accross_jump_function): New.
9640         (propagate_constants_accross_call): Call
9641         propagate_vr_accross_jump_function.
9642         (ipcp_store_vr_results): New.
9643         (ipcp_driver): Handle VR.
9644         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9645         (ipa_set_jf_unknown): Likewise.
9646         (ipa_compute_jump_functions_for_edge): Likewise.
9647         (ipa_node_params_t::duplicate): Likewise.
9648         (ipa_write_jump_function): Likewise.
9649         (ipa_read_jump_function): Likewise.
9650         (write_ipcp_transformation_info): Likewise.
9651         (read_ipcp_transformation_info): Likewise.
9652         (ipcp_update_vr): New.
9653         (ipcp_transform_function): Handle VR.
9654         * ipa-prop.h (struct ipa_vr): New.
9655         * cgraph.c: Include tree-vrp.h.
9656         * cgraphunit.c: Likewise.
9657         * ipa-utils.c: Likewise.
9658         * ipa.c: Likewise.
9659         * opts.c: Likewise.
9660         * toplev.c: Likewise.
9661         * ipa-devirt.c: Likewise.
9662         * ipa-inline-transform.c: Likewise.
9663         * ipa-inline.c: Likewise.
9664         * ipa-profile.c: Likewise.
9666 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9668         * doc/invoke.texi: Document -fdump-tree-evrp.
9669         * passes.def: Define new pass_early_vrp.
9670         * timevar.def: Define new TV_TREE_EARLY_VRP.
9671         * tree-pass.h (make_pass_early_vrp): New.
9672         * tree-ssa-propagate.c: Make replace_uses_in non static.
9673         * tree-ssa-propagate.h: Export replace_uses_in.
9674         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9675         (extract_range_from_assert): Factor out
9676         extract_range_for_var_from_comparison_expr.
9677         (vrp_initialize_lattice): New.
9678         (vrp_initialize): Factor out vrp_initialize_lattice.
9679         (vrp_valueize): Fix it to reject complex value ranges.
9680         (vrp_free_lattice): New.
9681         (evrp_dom_walker::before_dom_children): Likewise.
9682         (evrp_dom_walker::after_dom_children): Likewise.
9683         (evrp_dom_walker::push_value_range): Likewise.
9684         (evrp_dom_walker::pop_value_range): Likewise.
9685         (execute_early_vrp): Likewise.
9686         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9687         (make_pass_early_vrp): New.
9689 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
9691         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9692         instead of exact_log2.
9694 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
9696         PR target/77621
9697         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9698         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9699         (ix86_add_stmt_cost): Penalize DFmode vector operations
9700         for !TARGET_VECTORIZE_DOUBLE.
9702 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
9704         * doc/invoke.texi (Warning Options): Simplify language.
9705         (Optimize Options): Complete sentence.
9707 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
9709         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
9710         early_finish hook.
9712 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9714         PR target/71395
9715         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9716         inits on power8 and above, use the VMRGEW instruction instead of a
9717         permute.
9719         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9720         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9721         initialization.
9723 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
9725         * config/aarch64/arm_neon.h
9726         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9727         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9728         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9730 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9732         * config/var/vax.h (ELIMINABLE_REGS): Define.
9733         (INITIAL_ELIMINATION_OFFSET): Define.
9735 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
9737         PR middle-end/77624
9738         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9739         cast to void * if the cast is from some other pointer type.
9741 2016-09-20  Richard Biener  <rguenther@suse.de>
9743         PR tree-optimization/77646
9744         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9745         a VDEF.
9747 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
9749         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9750         attributes to all inlined functions and make them extern.
9752 2016-09-20  Richard Biener  <rguenther@suse.de>
9754         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9755         hook.
9756         * debug.c (do_nothing_debug_hooks): Adjust.
9757         * dbxout.c (dbx_debug_hooks): Likewise.
9758         * sdbout.c (sdb_debug_hooks): Likewise.
9759         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9760         (dwarf2out_finish): Move producer, filename and
9761         path annotation ...
9762         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
9763         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9765 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9767         PR c++/77434
9768         * doc/invoke.texi: Document -Wint-in-bool-context.
9770         PR middle-end/77421
9771         * dwarf2out.c (output_loc_operands): Fix an assertion.
9773 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
9775         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9776         (CR_DECIMAL_DIG): New macro.
9778 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
9780         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9781         element.
9783 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
9785         PR rtl-optimization/77416
9786         * lra-remat.c (operand_to_remat): Process hard coded insn
9787         registers.
9789 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9791         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9792         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9794 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
9796         * target.def (lra_p): Wordsmithing.
9797         * doc/tm.texi: Regenerate.
9799 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
9800             Jan Hubicka  <jh@suse.cz>
9802         PR target/77587
9803         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9804         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9805         Call ultimate_alias_target just once, not up to 4 times.
9807 2016-09-19  Richard Biener  <rguenther@suse.de>
9809         * dwarf2out.c (early_dwarf_finished): New global.
9810         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9811         is false.
9812         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9813         if called from LTO exit early.
9814         (dwarf2out_late_global_decl): When being during the early
9815         debug phase do not add locations but only const value attributes.
9816         Adjust the way we generate early DIEs for LTO.
9818 2016-09-19  Richard Biener  <rguenther@suse.de>
9820         PR middle-end/77605
9821         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9822         proper niter to bound the loops.
9824 2016-09-19  Richard Biener  <rguenther@suse.de>
9826         PR tree-optimization/77514
9827         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9828         search for folded stmt.
9830 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
9832         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9833         * tree-pass.h (make_pass_early_thread_jumps): Declare.
9834         * tree-ssa-threadbackward.c (fsm_find_thread_path,
9835         fsm_find_thread_path, profitable_jump_thread_path,
9836         fsm_find_control_statement_thread_paths,
9837         find_jump_threads_backwards): Add speed_p parameter.
9838         (pass_data_early_thread_jumps): New pass.
9839         (make_pass_early_thread_jumps): New function.
9841 2016-09-17  Andreas Schwab  <schwab@suse.de>
9843         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9844         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9846 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
9848         * recog.c (rest_of_handle_split_after_reload): Delete.
9849         (pass_split_after_reload::gate): New method.
9850         (pass_split_after_reload::execute): Call split_all_insns directly.
9852 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
9854         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9855         parameters for functions taking long long arguments.
9857 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9859         PR target/77613
9860         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9861         splat with truncate.
9863 2016-09-16  Jason Merrill  <jason@redhat.com>
9865         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9866         New.
9867         * hwint.c (exact_log2): Use pow2p_hwi.
9868         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9869         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9870         * builtins.c (get_object_alignment_2, get_object_alignment)
9871         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9872         least_bit_hwi.
9873         * calls.c (compute_argument_addresses, store_one_arg): Use
9874         least_bit_hwi.
9875         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9876         * combine.c (force_to_mode): Use least_bit_hwi.
9877         (contains_muldiv, find_split_point, combine_simplify_rtx)
9878         (simplify_if_then_else, simplify_set, force_to_mode)
9879         (if_then_else_cond, simplify_and_const_int_1)
9880         (simplify_compare_const): Use pow2p_hwi.
9881         * cse.c (fold_rtx): Use pow2p_hwi.
9882         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9883         Use least_bit_hwi.
9884         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9885         (init_expmed_one_conv): Use pow2p_hwi.
9886         * expr.c (is_aligning_offset): Use pow2p_hwi.
9887         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9888         (fold_binary_loc): Use pow2p_hwi.
9889         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9890         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9891         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9892         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9893         Use least_bit_hwi.
9894         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9895         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9896         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9897         * omp-low.c (oacc_loop_fixed_partitions)
9898         (oacc_loop_auto_partitions): Use least_bit_hwi.
9899         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9900         * stor-layout.c (place_field): Use least_bit_hwi.
9901         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9902         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9903         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9904         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9905         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9906         * tree-vect-data-refs.c (vect_analyze_group_access_1)
9907         (vect_grouped_store_supported, vect_grouped_load_supported)
9908         (vect_permute_load_chain, vect_shift_permute_load_chain)
9909         (vect_transform_grouped_load): Use pow2p_hwi.
9910         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9911         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9912         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9913         least_bit_hwi.
9914         * tsan.c (instrument_expr): Use least_bit_hwi.
9915         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9917 2016-09-16  Andreas Schwab  <schwab@suse.de>
9919         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9920         OFFSET, not offset.
9921         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9923 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
9925         PR target/77526
9926         * combine.c (rest_of_handle_combine): If any edges have been purged,
9927         free dominators if available.
9929 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
9930             Eric Botcazou  <ebotcazou@adacore.com>
9932         PR middle-end/77594
9933         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9934         through into expand_addsub_overflow after expand_neg_overflow.
9936 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
9938         * diagnostic-show-locus.c
9939         (selftest::test_fixit_insert_containing_newline): New function.
9940         (selftest::test_fixit_replace_containing_newline): New function.
9941         (selftest::diagnostic_show_locus_c_tests): Call the above.
9943 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
9945         PR tree-optimization/77503
9946         * tree-vect-loop.c (vectorizable_reduction): Record reduction
9947         code for CONST_COND_REDUCTION at analysis stage and use it at
9948         transform stage.
9949         * tree-vectorizer.h (struct _stmt_vec_info): New field.
9950         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9951         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9952         field.
9954 2016-09-15  Richard Biener  <rguenther@suse.de>
9956         PR middle-end/77544
9957         * fold-const.c (split_tree): Do not split constant ~X.
9959 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
9961         PR rtl-optimization/77425
9962         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9963         is NULL.
9965         PR middle-end/77475
9966         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9967         use %qs instead of %s where desirable, use argument instead of arg in
9968         the diagnostic wording, add list of supported strategies and
9969         spellcheck hint.
9970         (ix86_option_override_internal): Emit target("m...") instead of
9971         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
9972         -march/-mtune option diagnostic.  Add list of supported arches/tunings
9973         and spellcheck hint.  Remove prefix, suffix and sw variables, use
9974         main_args_p ? "..." : "..." in diagnostics to make translation
9975         possible.
9977 2016-09-15  Richard Biener  <rguenther@suse.de>
9979         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9980         extra offset argument.
9981         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9982         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9983         to reflect new offset parameter.
9984         * doc/tm.texi: Regenerate.
9985         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9986         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9987         offset argument.
9988         (darwin_asm_output_dwarf_offset): Likewise.
9989         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9990         argument.
9991         (darwin_asm_output_dwarf_offset): Pass offset argument through.
9992         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9993         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9995 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
9997         PR fortran/72743
9998         * ipa-icf.c (set_alias_uids): New function.
9999         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
10000         all the merged variable's referring aliases.
10002 2016-09-15  Richard Biener  <rguenther@suse.de>
10004         PR tree-optimization/77514
10005         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
10006         only forced_stmts sequence.
10008 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
10010         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
10011         * cfgexpand.c (update_alias_info_with_stack_vars): Use
10012         FOR_EACH_SSA_NAME to iterate over SSA variables.
10013         (pass_expand::execute): Likewise.
10014         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
10015         * tree-cfg.c (dump_function_to_file): Likewise.
10016         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
10017         (update_ssa): Likewise.
10018         * tree-ssa-alias.c (dump_alias_info): Likewise.
10019         * tree-ssa-ccp.c (ccp_finalize): Likewise.
10020         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
10021         (create_outofssa_var_map): Likewise.
10022         (coalesce_ssa_name): Likewise.
10023         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
10024         * tree-ssa-pre.c (compute_avail): Likewise.
10025         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
10026         (scc_vn_restore_ssa_info): Likewise.
10027         (free_scc_vn): Likwise.
10028         (run_scc_vn): Likewise.
10029         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
10030         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
10031         * tree-ssa-copy.c (fini_copy_prop): Likewise.
10032         * tree-ssa.c (verify_ssa): Likewise.
10034 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
10036         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
10037         and mips64r2 as default 32-bit and 64-bit architectures.
10038         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
10039         as default 32-bit and 64-bit architectures.
10041 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
10043         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
10044         of succ edge.
10046 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10048         * target.def (lra_p): Change commentary (for the manual) for the
10049         new default.
10050         * doc/tm.texi: Regenerate.
10052 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10054         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
10055         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
10056         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
10057         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
10059 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10061         * targhooks.c (default_lra_p): Return true instead of false.
10063 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
10065         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
10066         hook_bool_void_false.
10067         * config/avr/avr.c: Ditto.
10068         * config/bfin/bfin.c: Ditto.
10069         * config/c6x/c6x.c: Ditto.
10070         * config/cr16/cr16.c: Ditto.
10071         * config/cris/cris.c: Ditto.
10072         * config/epiphany/epiphany.c: Ditto.
10073         * config/fr30/fr30.c: Ditto.
10074         * config/frv/frv.c: Ditto.
10075         * config/h8300/h8300.c: Ditto.
10076         * config/ia64/ia64.c: Ditto.
10077         * config/iq2000/iq2000.c: Ditto.
10078         * config/lm32/lm32.c: Ditto.
10079         * config/m32c/m32c.c: Ditto.
10080         * config/m32r/m32r.c: Ditto.
10081         * config/m68k/m68k.c: Ditto.
10082         * config/mcore/mcore.c: Ditto.
10083         * config/microblaze/microblaze.c: Ditto.
10084         * config/mmix/mmix.c: Ditto.
10085         * config/mn10300/mn10300.c: Ditto.
10086         * config/moxie/moxie.c: Ditto.
10087         * config/msp430/msp430.c: Ditto.
10088         * config/nios2/nios2.c: Ditto.
10089         * config/nvptx/nvptx.c: Ditto.
10090         * config/pa/pa.c: Ditto.
10091         * config/pdp11/pdp11.c: Ditto.
10092         * config/rl78/rl78.c: Ditto.
10093         * config/sparc/sparc.c: Ditto.
10094         * config/spu/spu.c: Ditto.
10095         * config/stormy16/stormy16.c: Ditto.
10096         * config/tilegx/tilegx.c: Ditto.
10097         * config/tilepro/tilepro.c: Ditto.
10098         * config/v850/v850.c: Ditto.
10099         * config/vax/vax.c: Ditto.
10100         * config/visium/visium.c: Ditto.
10101         * config/xtensa/xtensa.c: Ditto.
10103 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
10105         PR sanitizer/68260
10106         * tsan.c: Include target.h.
10107         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
10108         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
10109         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
10110         BUILT_IN_ATOMIC_TEST_AND_SET entries.
10111         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
10113 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10114             Martin Liska  <mliska@suse.cz>
10116         PR middle-end/77574
10117         * predict.c (force_edge_cold): Add braces to a condition.
10119 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10121         PR rtl-optimization/77289
10122         * lra-constraints.c (get_final_hard_regno): Removed.
10123         (get_hard_regno): Add new parameter final_p.
10124         (get_reg_class): Directly call lra_get_elimination_hard_regno.
10125         (operands_match_p): Adjust call to get_hard_regno.
10126         (uses_hard_regs_p): Likewise.
10127         (process_alt_operands): Likewise.
10129 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
10131         PR target/70713
10132         * config/msp430/msp430.c (msp430_start_function): Emit an error
10133         if a function is both weak and specifies an interrupt number.
10135 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
10137         PR tree-optimization/77454
10138         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
10139         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
10140         Formatting fix.
10142 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
10144         * config/aarch64/aarch64-builtins.c
10145         (aarch64_init_simd_builtins): Fix builtin type signature printing.
10147 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
10149         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
10150         SFmode and SCmode arguments by reference.
10152 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
10154         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
10155         Rename to...
10156         (selftest::test_one_liner_fixit_insert_before): ...this, and update
10157         for renaming of add_fixit_insert to add_fixit_insert_before.
10158         (selftest::test_one_liner_fixit_insert_after): New function.
10159         (selftest::test_one_liner_fixit_validation_adhoc_locations):
10160         Update for renaming of add_fixit_insert to add_fixit_insert_before.
10161         (selftest::test_one_liner_many_fixits): Likewise.
10162         (selftest::test_diagnostic_show_locus_one_liner): Update for
10163         renaming, call new test function.
10164         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
10165         renaming of add_fixit_insert to add_fixit_insert_before.
10166         (selftest::test_fixit_consolidation): Likewise.
10167         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
10168         Likewise.
10169         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
10170         (selftest::test_applying_fixits_insert_before): ...this.
10171         (selftest::test_applying_fixits_insert): Update for renaming of
10172         add_fixit_insert to add_fixit_insert_before.
10173         (selftest::test_applying_fixits_insert_after): New function.
10174         (selftest::test_applying_fixits_insert_after_at_line_end): New
10175         function.
10176         (selftest::test_applying_fixits_insert_after_failure): New function.
10177         (selftest::test_applying_fixits_multiple): Update for renaming of
10178         add_fixit_insert to add_fixit_insert_before.
10179         (selftest::change_line): Likewise.
10180         (selftest::test_applying_fixits_unreadable_file): Likewise.
10181         (selftest::test_applying_fixits_line_out_of_range): Likewise.
10182         (selftest::test_applying_fixits_column_validation): Likewise.
10183         (selftest::test_applying_fixits_column_validation): Likewise.
10184         (selftest::edit_context_c_tests): Update for renamed test function;
10185         call new test functions.
10187 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
10189         PR tree-optimization/77536
10190         PR rtl-optimization/68212
10191         * config/rs6000/rs6000.md (div->recip splitter): Remove
10192         optimize_insn_for_speed_p condition.
10194 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
10196         * optabs.c (prepare_cmp_insn): Update documentation comment.
10198 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
10199             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10201         PR middle-end/77475
10202         * opts.h (candidates_list_and_hint): Declare.
10203         * opts-common.c (candidates_list_and_hint): New function.
10204         (cmdline_handle_error): Use it.
10206 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
10208         * edit-context.c (edited_line::get_len): New accessor.
10209         (edited_file::print_diff): Split out hunk-printing into...
10210         (edited_file::print_diff_hunk): New method.
10211         (edited_file::print_diff_line): New method.
10213 2016-09-12  Andrew Pinski  <apinski@cavium.com>
10215         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
10216         New tuning option.
10217         * config/aarch64/aarch64.c (thunderx_tunings): Enable
10218         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
10219         (aarch64_operands_ok_for_ldpstp): Return false if
10220         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
10221         was SImode and the alignment is less than 8 byte.
10222         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
10224 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
10226         PR target/77570
10227         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
10229 2016-09-12  Marek Polacek  <polacek@redhat.com>
10231         * doc/extend.texi: Use lowercase "boolean".
10232         * doc/invoke.texi: Likewise.
10233         * doc/md.texi: Likewise.
10234         * target.def: Likewise.
10235         * doc/tm.texi: Regenerated.
10237 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10239         PR middle-end/77426
10240         * expmed.c (synth_mult): Delete duplicate mode check.
10242 2016-09-10  Tom de Vries  <tom@codesourcery.com>
10244         PR C/71602
10245         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
10246         va_list type only.
10247         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
10248         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
10250 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
10252         PR rtl-optimization/77289
10253         * lra-constraints.c (get_final_hard_regno): Add support for non hard
10254         register numbers.  Remove support for subregs.
10255         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
10256         (get_reg_class): Delete removed get_final_hard_regno() argument.
10257         (uses_hard_regs_p): Call get_final_hard_regno().
10259 2016-09-09  Martin Sebor  <msebor@redhat.com>
10261         PR c/77520
10262         PR c/77521
10263         * pretty-print.c (pp_quoted_string): New function.
10264         (pp_format): Call it for %c and %s directives.
10266 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10268         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
10269         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
10270         INITIAL_ELIMINATION_OFFSET) : Update documentation.
10271         * target.def (frame_pointer_required, can_eliminate): Likewise.
10272         * doc/tm.texi: Regenerated.
10273         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
10274         ELIMINABLE_REGS.
10275         * df-scan.c (df_hard_reg_init): Likewise.
10276         * ira.c (ira_setup_eliminable_regset): Likewise.
10277         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
10278         init_elim_table): Likewise.
10279         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
10280         set_initial_elim_offsets, update_eliminables,
10281         init_elim_table): Likewise.
10282         * rtlanal.c (get_initial_register_offset): Likewise.
10283         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10284         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10285         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10286         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
10287         * config/fr30/fr30.h: Fix comment.
10288         * config/frv/frv.c: Likewise.
10289         * config/frv/frv.h: Likewise.
10290         * config/ft32/ft32.h: Likewise.
10291         * config/visium/visium.h: Likewise.
10292         * config/pa/pa64-linux.h: Likewise.
10293         * config/v850/v850.h: Likewise.
10294         * config/cris/cris.c: Likewise.
10295         * config/ia64/ia64.h: Likewise.
10296         * config/moxie/moxie.h: Likewise.
10297         * config/m32r/m32r.h: Likewise.
10299 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10301         PR target/77267
10302         * config.in: Regenerate.
10303         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
10304         New macro.
10305         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
10306         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
10307         static-libmpxwrappers case.
10308         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
10309         MPX_LD_AS_NEEDED_GUARD_POP.
10310         * configure: Regenerate.
10311         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
10312         defined if linker support "--push-state"/"--pop-state".
10314 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10316         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
10318 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
10320         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
10321         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
10322         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
10323         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
10324         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
10325         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
10326         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
10327         Document.
10328         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
10329         width macros from TS 18661-1.
10330         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
10332 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
10334         PR fortran/77516
10335         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
10336         OMP_CLAUSE_SAFELEN_EXPR.
10338 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
10340         * Makefile.in (OBJS): Add substring-locations.o.
10341         * langhooks-def.h (class substring_loc): New forward decl.
10342         (lhd_get_substring_location): New decl.
10343         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
10344         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
10345         * langhooks.c (lhd_get_substring_location): New function.
10346         * langhooks.h (class substring_loc): New forward decl.
10347         (struct lang_hooks): Add field get_substring_location.
10348         * substring-locations.c: New file, taking definition of
10349         format_warning_va and format_warning_at_substring from
10350         c-family/c-format.c, making them non-static.
10351         * substring-locations.h (class substring_loc): Move class here
10352         from c-family/c-common.h.  Add and rewrite comments.
10353         (format_warning_va): New decl.
10354         (format_warning_at_substring): New decl.
10355         (get_source_location_for_substring): Add comment.
10357 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
10359         * config/i386/i386.c: Add 'U' suffix to processor feature bits
10360         to avoid -Wnarrowing warning.
10361         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
10362         * opts.c: Likewise for SANITIZER_OPT bitmasks.
10364 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
10366         * config/aarch64/aarch64.c (aarch64_legitimize_address):
10367         Avoid use of base_offset if offset already in range.
10369 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10371         * config/sh/sh-protos.h (struct sh_atomic_model,
10372         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10373         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10374         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
10375         * config/sh/sh.h (struct sh_atomic_model,
10376         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10377         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10378         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10379         Guard with __cplusplus.
10381 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
10383         PR target/69255
10384         * config/i386/i386.c (ix86_expand_builtin): For builtin with
10385         unsupported or unknown ISA, use expand_call.
10387 2016-09-06  Martin Liska  <mliska@suse.cz>
10389         PR gcov-profile/77378
10390         PR gcov-profile/77466
10391         * tree-profile.c (tree_profiling): Detect whether target can use
10392         -fprofile-update=atomic.
10394 2016-09-06  Richard Biener  <rguenther@suse.de>
10396         PR tree-optimization/77479
10397         * tree-vrp.c (update_value_range): Extend overflow handling to
10398         VARYING.
10400 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
10402         PR target/77476
10403         * config/i386/i386.md (isa): Add x64_avx512bw.
10404         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10405         (kmov_isa): New mode attr.
10406         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10407         (*zero_extend<mode>si2): Likewise.
10408         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10410 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
10412         * doc/invoke.texi (SPU Options): nops -> NOPs.
10413         (x86 Options): Ditto.
10415 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
10417         PR middle-end/77475
10418         * toplev.c (process_options): Temporarily set input_location
10419         to UNKNOWN_LOCATION around targetm.target_option.override () call.
10421 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
10423         PR rtl-optimization/77452
10424         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10425         inner-mode reference to a CONST_VECTOR constant in the constant pool.
10427 2016-09-05  Marek Polacek  <polacek@redhat.com>
10429         PR c/77423
10430         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10432 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
10434         PR other/77421
10435         * gensupport.c (alter_output_for_subst_insn): Remove redundant
10436         *insn_out == '*' test.  Don't copy unnecessary to yet another
10437         memory buffer, and don't leak it.
10439         PR rtl-optimization/77425
10440         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10442 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
10444         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10446 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
10448         * common.opt (fdiagnostics-generate-patch): New option.
10449         * diagnostic.c: Include "edit-context.h".
10450         (diagnostic_initialize): Initialize context->edit_context_ptr.
10451         (diagnostic_finish): Delete context->edit_context_ptr.
10452         (diagnostic_report_diagnostic): Add fix-it hints from the
10453         diagnostic to context->edit_context_ptr, if any.
10454         * diagnostic.h (class edit_context): Add forward decl.
10455         (struct diagnostic_context): Add field "edit_context_ptr".
10456         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10457         -fdiagnostics-generate-patch.
10458         (-fdiagnostics-generate-patch): New item.
10459         * toplev.c: Include "edit-context.h".
10460         (process_options): Set global_dc->edit_context_ptr to a new
10461         edit_context if the options need one.
10462         (toplev::main): Handle -fdiagnostics-generate-patch by using
10463         global_dc->edit_context_ptr.
10465 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
10467         PR c/65467
10468         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10469         map and firstprivate clauses on target construct for _Atomic
10470         qualified decls.
10471         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10472         on target construct for _Atomic qualified decls.
10473         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10474         decls.
10475         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10476         _Atomic qualified arguments not mentioned in uniform clause.
10478 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
10480         * Makefile.in (OBJS-libcommon): Add edit-context.o.
10481         * diagnostic-color.c (color_dict): Add "diff-filename",
10482         "diff-hunk", "diff-delete", and "diff-insert".
10483         (parse_gcc_colors): Update default value of GCC_COLORS in comment
10484         to reflect above changes.
10485         * doc/invoke.texi (-fdiagnostics-color): Update description of
10486         default GCC_COLORS, and of the supported capabilities.
10487         * edit-context.c: New file.
10488         * edit-context.h: New file.
10489         * input.c (struct fcache): Add field "missing_trailing_newline".
10490         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10491         true.
10492         (add_file_to_cache_tab): Likewise.
10493         (fcache::fcache): Likewise.
10494         (get_next_line): Update c->missing_trailing_newline.
10495         (location_missing_trailing_newline): New function.
10496         * input.h (location_missing_trailing_newline): New decl.
10497         * selftest-run-tests.c (selftest::run_tests): Call
10498         edit_context_c_tests.
10499         * selftest.h (edit_context_c_tests): New decl.
10501 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
10502             Richard Biener  <rguenth@suse.de>
10504         PR tree-optimization/77444
10505         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10506         as steptype, remove redundant initialization.
10508 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
10510         PR sanitizer/77396
10511         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10512         (sanopt_optimize_walker): Optimize away
10513         __asan_before_dynamic_init (...) followed by
10514         __asan_after_dynamic_init () without intervening memory loads/stores.
10515         * ipa-pure-const.c (special_builtin_state): Handle
10516         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10517         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10519 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10521         * cfg.c (free_original_copy_tables): Replace second assignment of
10522         bb_copy = NULL by bb_original = NULL.
10524 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
10526         PR other/77421
10527         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10528         assignment added in r216794.
10530 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
10532         * Makefile.in (OBJS): Add typed-splay-tree.o.
10533         * selftest-run-tests.c (selftest::run_tests): Call
10534         typed_splay_tree_c_tests.
10535         * selftest.h (typed_splay_tree_c_tests): New decl.
10536         * typed-splay-tree.c: New file.
10537         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10538         (typed_splay_tree::max): New method.
10539         (typed_splay_tree::min): New method.
10540         (typed_splay_tree::foreach): New method.
10541         (typed_splay_tree::closure): New struct.
10542         (typed_splay_tree::inner_foreach_fn): New function.
10544 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10546         * ipa-cp.c (ipcp_store_bits_results): Change option name from
10547         -fipa-cp-bit to -fipa-bit-cp.
10549 2016-09-01  Martin Sebor  <msebor@redhat.com>
10551         PR tree-optimization/71831
10552         * tree-object-size.h: Return bool instead of the size and add
10553         argument for the size.
10554         * tree-object-size.c (compute_object_offset): Update signature.
10555         (addr_object_size): Same.
10556         (compute_builtin_object_size): Return bool instead of the size
10557         and add argument for the size.  Handle POINTER_PLUS_EXPR when
10558         optimization is disabled.
10559         (expr_object_size): Adjust.
10560         (plus_stmt_object_size): Adjust.
10561         (pass_object_sizes::execute): Adjust.
10562         * builtins.c (fold_builtin_object_size): Adjust.
10563         * doc/extend.texi (Object Size Checking): Update.
10564         * ubsan.c (instrument_object_size): Adjust.
10566 2016-09-01  Martin Sebor  <msebor@redhat.com>
10568         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10569         it fits the output of the formatted function regardless of its
10570         arguments.
10571         * genmodes.c (parser::parse_expr): Same.
10572         * gimplify.c (gimplify_asm_expr): Same.
10573         * passes.c (pass_manager::register_one_dump_file): Same.
10574         * print-tree.c (print_node): Same.
10576 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10578         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10580 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10582         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10584 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10586         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10587         * config/rs6000/vector.md: Ditto.
10588         * config/rs6000/vsx.md: Ditto.
10590 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10592         * ipa-inline-analysis.c (param_change_prob): Get to the base object
10593         first in all cases.
10595 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10597         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10598         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10599         *return_and_restore_gpregs_<mode>_r11,
10600         *return_and_restore_gpregs_<mode>_r12,
10601         *return_and_restore_gpregs_<mode>_r1,
10602         *return_and_restore_fpregs_<mode>_r11,
10603         *return_and_restore_fpregs_<mode>_r12,
10604         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10605         directly instead of via the "l" constraint.  Renumber operands.
10606         Fix whitespace.
10608 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10610         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10611         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10612         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10613         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10614         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10615         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10616         *call_value_nonlocal_darwin64, reload_macho_picbase,
10617         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10618         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10619         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10620         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10621         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10622         *save_fpregs_<mode>_r1): Ditto.
10623         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10624         *return_and_restore_gpregs_spe): Ditto.
10626 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10628         * config/rs6000/rs6000.md
10629         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10630         the use of the link register.
10631         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10633 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10634             Michael Meissner  <meissner@linux.vnet.ibm.com>
10636         PR target/72827
10637         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10638         reg+reg addressing for TImode.
10639         (rs6000_legitimate_address_p): Only allow register indirect
10640         addressing for TImode, even without TARGET_QUAD_MEMORY.
10642 2016-09-01  Richard Biener  <rguenther@suse.de>
10644         PR middle-end/77436
10645         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10646         check whether the result fits the desired result type.
10648 2016-09-01  Nathan Sidwell  <nathan@acm.org>
10650         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10652 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
10654         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10655         New function.
10656         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10658 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10660         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10661         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10662         for comparisons of integer ZERO_EXTEND against zero.
10664 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10666         * config/i386/i386.c (ix86_option_override_internal): Also disable the
10667         STV pass if -mstackrealign is enabled.
10669 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
10671         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10672         AVX512IFMA.
10674 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
10676         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10677         (layout_range::intersects_line_p): New method.
10678         (test_range_contains_point_for_single_point): Rename to...
10679         (test_layout_range_for_single_point): ...this, and add testing
10680         for layout_range::intersects_line_p.
10681         (test_range_contains_point_for_single_line): Rename to...
10682         (test_layout_range_for_single_line): ...this,  and add testing
10683         for layout_range::intersects_line_p.
10684         (test_range_contains_point_for_multiple_lines): Rename to...
10685         (test_layout_range_for_multiple_lines): ...this,  and add testing
10686         for layout_range::intersects_line_p.
10687         (layout::layout): Populate m_fixit_hints.
10688         (layout::get_expanded_location): Handle the case of a line-span
10689         for a fix-it hint.
10690         (layout::validate_fixit_hint_p): New method.
10691         (get_line_span_for_fixit_hint): New function.
10692         (layout::calculate_line_spans): Add spans for fixit-hints.
10693         (layout::should_print_annotation_line_p): New method.
10694         (layout::print_any_fixits): Drop param "richloc", instead using
10695         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
10696         (diagnostic_show_locus): Avoid printing blank annotation lines.
10697         (selftest::test_diagnostic_context::test_diagnostic_context):
10698         Initialize show_column and start_span.
10699         (selftest::test_diagnostic_context::start_span_cb): New static
10700         function.
10701         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10702         (selftest::diagnostic_show_locus_c_tests): Update for function
10703         renamings.  Call test_diagnostic_show_locus_fixit_lines.
10705 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
10707         PR tree-optimization/73714
10708         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10710 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
10712         * selftest.c: Move "namespace selftest {" to top of file,
10713         removing explicit "selftest::" qualifiers throughout.
10715 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
10717         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10718         New types.
10719         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10720         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10721         Replace builtin with vector extension.
10722         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10723         New types.
10724         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10725         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10726         Replace builtin with vector extension.
10727         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10728         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10729         Replace builtin with vector extension.
10730         * config/i386/xmmintrin.h (__m128_u): New type.
10731         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10732         (_mm_load_ps, _mm_store_ps): Simplify.
10734 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10736         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10738 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10740         * diagnostic-show-locus.c (colorizer::begin_state): Support more
10741         than 3 ranges per diagnostic by alternating between color 1 and
10742         color 2.
10743         (layout::layout): Replace use of rich_location::MAX_RANGES
10744         with richloc->get_num_locations ().
10745         (layout::calculate_line_spans): Replace use of
10746         rich_location::MAX_RANGES with m_layout_ranges.length ().
10747         (layout::print_annotation_line): Handle arbitrary numbers of
10748         ranges in caret-printing by defaulting to '^'.
10749         (selftest::test_one_liner_many_fixits): New function.
10750         (test_diagnostic_show_locus_one_liner): Call it.
10751         * diagnostic.c (diagnostic_initialize): Update for renaming
10752         of rich_location::MAX_RANGES to
10753         rich_location::STATICALLY_ALLOCATED_RANGES.
10754         * diagnostic.h (struct diagnostic_context): Likewise.
10756 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10758         * selftest.c (selftest::named_temp_file::named_temp_file): New
10759         ctor.
10760         (selftest::temp_source_file::~temp_source_file): Move to...
10761         (selftest::named_temp_file::~named_temp_file): ...here.
10762         (selftest::test_named_temp_file): New function.
10763         (selftest::selftest_c_tests): Call test_named_temp_file.
10764         * selftest.h (class named_temp_file): New class.
10765         (class temp_source_file): Convert to a subclass of named_temp_file.
10767 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
10769         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10770         USEs of LR_REGNO in returns and sibcalls.
10771         (rs6000_output_mi_thunk): Similar.
10772         (rs6000_sibcall_aix): Similar.
10773         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10774         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10775         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10776         Remove the USE of LR_REGNO from the patterns as well.  Delete an
10777         obsolete comment.
10778         (return_internal_<mode>): Delete.
10780 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
10782         * config/aarch64/aarch64-simd.md
10783         (aarch64_ld2<mode>_dreg_le): New.
10784         (aarch64_ld2<mode>_dreg_be): New.
10785         (aarch64_ld2<mode>_dreg): Removed.
10786         (aarch64_ld3<mode>_dreg_le): New.
10787         (aarch64_ld3<mode>_dreg_be): New.
10788         (aarch64_ld3<mode>_dreg): Removed.
10789         (aarch64_ld4<mode>_dreg_le): New.
10790         (aarch64_ld4<mode>_dreg_be): New.
10791         (aarch64_ld4<mode>_dreg): Removed.
10792         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10794 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
10796         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10797         redundant location param.
10798         (test_one_liner_fixit_remove): Likewise.
10799         (test_one_liner_fixit_replace): Likewise.
10800         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10801         * gcc-rich-location.c
10802         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10803         get_range_from_loc.  Drop overload taking a const char *.
10804         * gcc-rich-location.h
10805         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10806         a const char *.
10808 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10810         * config/linux.c (linux_libc_has_function): Return true on musl.
10812 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10814         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10816 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
10818         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10819         used for abnormal egdes.
10821 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
10823         PR tree-optimization/72866
10824         * tree-vect-patterns.c (search_type_for_mask): Turn into
10825         a small wrapper, move all code to ...
10826         (search_type_for_mask_1): ... this new function.  Add caching
10827         and adjust recursive calls.
10829         PR debug/77363
10830         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10831         instead of lookup_type_die (type_main_variant (type)) even for array
10832         types.
10834         PR middle-end/77377
10835         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10836         constant pool reference return x instead of c.
10838 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
10840         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10841         include MQ.
10843 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10845         * input.c
10846         (selftest::test_make_location_nonpure_range_endpoints): Fix
10847         header comment.
10849 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10851         * diagnostic-show-locus.c
10852         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10853         function.
10854         (selftest::test_diagnostic_show_locus_one_liner): Call it.
10855         * input.c (get_pure_location): Move to libcpp/line-map.c.
10856         * input.h (get_pure_location): Convert decl to an inline function
10857         calling implementation in libcpp.
10859 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
10861         PR target/77403
10862         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10863         template for intel asm dialect.
10864         (vec_set_hi_<mode><mask_name>): Ditto.
10866 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10868         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10869         (selftest::fail_formatted): Likewise.
10871 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
10873         * input.c (make_location): Call get_start and get_finish
10874         on the endpoints to avoid storing packed ranges or ad-hoc
10875         ranges in them.
10876         (selftest::test_make_location_nonpure_range_endpoints): New function.
10877         (selftest::input_c_tests): Call it.
10878         * input.h (get_start): New inline function.
10880 2016-08-29  Tom de Vries  <tom@codesourcery.com>
10882         PR c/77398
10883         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10884         with assert.
10886 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
10888         * Makefile.in (gcov-iov.h): Add dummy recipe.
10890 2016-08-29  Nathan Sidwell  <nathan@acm.org>
10892         * config/nvptx/nvptx.c: #include tree-vrp.h.
10894 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
10896         PR target/77324
10897         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10898         HIGH+LO construct during reload.
10900 2016-08-28  Tom de Vries  <tom@codesourcery.com>
10902         PR lto/70955
10903         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10904         'sysv_abi va_list' attribute.
10905         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10906         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10907         attributes.
10909 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10911         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10912         * emit-rtl.c (unshare_all_rtl_1): Adjust.
10913         (unshare_all_rtl_again): Likewise.
10914         * function.c (assign_stack_local_1): Likewise.
10915         (assign_stack_temp_for_type): Likewise.
10917 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10919         * cfgbuild.c (make_edges): Adjust.
10920         * cfgrtl.c (can_delete_label_p): Likewise.
10921         * dwarf2cfi.c (create_trace_edges): Likewise.
10922         * except.c (sjlj_emit_dispatch_table): Likewise.
10923         * function.h (struct expr_status): make x_forced_labels a vector.
10924         * jump.c (rebuild_jump_labels_1): Adjust.
10925         * reload1.c (set_initial_label_offsets): Likewise.
10926         * stmt.c (force_label_rtx): Likewise.
10927         (expand_label): Likewise.
10929 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10931         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10933 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
10935         PR tree-optimization/71077
10936         PR tree-optimization/68542
10937         * fold-const.c (fold_relational_const): Fix folding of
10938         VECTOR_CST comparisons that have a scalar boolean result type.
10939         (selftest::test_vector_folding): New static function.
10940         (selftest::fold_const_c_tests): Call it.
10942 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
10944         * doc/extend.texi (SPU Built-in Functions): Remove stale
10945         references to material formerly at IBM and Sony.
10947 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
10949         PR target/77349
10950         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10952 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
10954         * diagnostic-show-locus.c
10955         (selftest::test_fixit_consolidation): New function.
10956         (selftest::diagnostic_show_locus_c_tests): Call it.
10957         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10958         constructor based on source_range.
10960 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
10962         * diagnostic-color.c (color_dict): Add "fixit-insert" and
10963         "fixit-delete".
10964         (parse_gcc_colors): Update description of default GCC_COLORS.
10965         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10966         (colorizer::set_fixit_insert): New method.
10967         (colorizer::set_fixit_delete): New method.
10968         (colorizer::get_color_by_name): New method.
10969         (colorizer::STATE_FIXIT_INSERT): New constant.
10970         (colorizer::STATE_FIXIT_DELETE): New constant.
10971         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
10972         fields in favor of new field "m_stop_color".  Add fields
10973         "m_fixit_insert" and "m_fixit_delete".
10974         (colorizer::colorizer): Update for above changes.  Replace
10975         colorize_start calls with calls to get_color_by_name.
10976         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10977         STATE_FIXIT_DELETE.  Update for field renamings.
10978         (colorizer::finish_state): Simplify by using m_stop_color,
10979         rather than multiple identical "*_ce" fields.
10980         (colorizer::get_color_by_name): New method.
10981         (layout::print_any_fixits): Print insertions and replacements
10982         using the "fixit-insert" color, and deletions using the
10983         "fixit-delete" color.
10984         * doc/invoke.texi (-fdiagnostics-color): Update description of
10985         default GCC_COLORS, and of the supported capabilities.
10987 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
10989         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10990         current_function_static_stack_size variable with the static
10991         stack frame size of the current function when
10992         flag_stack_usage_info is enabled.
10994 2016-08-26  Nathan Sidwell  <nathan@acm.org>
10996         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10997         assignment inside if condition.
10999 2016-08-26  Richard Biener  <rguenther@suse.de>
11001         PR tree-optimization/69047
11002         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
11003         extracts similar to what FRE does.
11004         (non_rewritable_mem_ref_base): Likewise.
11006 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
11008         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
11009         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
11010         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11011         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11012         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
11013         Likewise.
11014         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11015         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11016         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11017         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
11018         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
11020 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11022         PR target/70473
11023         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
11024         reservation duration to 15 cycles.
11025         (cortex_a8_vfp_macs): Likewise.
11026         (cortex_a8_vfp_macd): Likewise.
11027         (cortex_a8_vfp_divs): Likewise.
11028         (cortex_a8_vfp_divd): Likewise.
11030 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11032         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
11033         (aarch_macro_fusion_pair_p): Use above to avoid early return.
11035 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11036             Martin Jambhor  <mjambor@suse.cz>
11038         * common.opt: New option -fipa-bit-cp.
11039         * doc/invoke.texi: Document -fipa-bit-cp.
11040         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
11041         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
11042         * tree-ssa-ccp.h: New header file.
11043         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
11044         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
11045         Replace all occurences of tree parameter by two new params: signop, int.
11046         (bit_value_unop_1): Change to bit_value_unop and export it.
11047         Replace all occurences of tree parameter by two new params: signop,
11048         int.
11049         (bit_value_binop): Change call from bit_value_binop_1 to
11050         bit_value_binop.
11051         (bit_value_assume_aligned): Likewise.
11052         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
11053         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
11054         to ccp_finalize.
11055         (ccp_finalize): Skip processing if val->mask == 0.
11056         * ipa-cp.c: Include tree-ssa-ccp.h
11057         (ipcp_bits_lattice): New class.
11058         (ipcp_param_lattice (bits_lattice): New member.
11059         (print_all_lattices): Call ipcp_bits_lattice::print.
11060         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
11061         (initialize_node_lattices): Likewise.
11062         (propagate_bits_accross_jump_function): New function.
11063         (propagate_constants_accross_call): Call
11064         propagate_bits_accross_jump_function.
11065         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
11066         (ipcp_store_bits_results): New function.
11067         (ipcp_driver): Call ipcp_store_bits_results.
11068         * ipa-prop.h (ipa_bits): New struct.
11069         (ipa_jump_func): Add new member bits of type ipa_bits.
11070         (ipa_param_descriptor): Change decl to decl_or_type.
11071         (ipa_get_param): Change decl to decl_or_type and assert on
11072         PARM_DECL.
11073         (ipa_get_type): New function.
11074         (ipcp_transformation_summary): New member bits.
11075         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
11076         (ipa_populate_param_decls): Likewise.
11077         (ipa_dump_param): Likewise.
11078         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
11079         function.
11080         (ipa_set_jf_unknown): Set ipa_bits::known to false.
11081         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
11082         propagation.
11083         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
11084         (ipa_write_jump_function): Add streaming for ipa_bits.
11085         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
11086         (write_ipcp_transformation_info): Add streaming for ipa_bits
11087         summary for ltrans.
11088         (read_ipcp_transfomration_info): Add support for reading streamed
11089         ipa_bits.
11090         (ipcp_update_bits): New function.
11091         (ipcp_transform_function): Call ipcp_update_bits.
11093 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11095         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
11096         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
11098 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
11100         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
11102 2016-08-25  Richard Biener  <rguenther@suse.de>
11104         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
11105         Only add locations in late dwarf.
11106         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
11107         (dwarf2out_early_finish): But do it here.
11109 2016-08-24  Michael Collison  <michael.collison@linaro.org>
11110             Michael Collison  <michael.collison@arm.com>
11112         * config/arm/arm-modes.def: Add new condition code mode CC_V
11113         to represent the overflow bit.
11114         * config/arm/arm.c (maybe_get_arm_condition_code):
11115         Add support for CC_Vmode.
11116         (arm_gen_unlikely_cbranch): New function to generate common
11117         rtl conditional branches for overflow patterns.
11118         * config/arm/arm-protos.h: Add prototype for
11119         arm_gen_unlikely_cbranch.
11120         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
11121         addsi3_compareV_upper): New patterns to support signed
11122         builtin overflow add operations.
11123         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
11124         New patterns to support unsigned builtin add overflow operations.
11125         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
11126         builtin overflow subtract operations,
11127         (usubv<mode>4): New patterns to support unsigned builtin subtract
11128         overflow operations.
11129         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
11130         to support builtin overflow negate operations.
11132 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11134         Revert
11135         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11137         * explow.c (get_dynamic_stack_size): Take known alignment of stack
11138         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11139         needed.
11141 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11143         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
11144         MULTILIB_OPTIONS should be used.  Small wording fixes.
11145         * genmultilib: Memorize set of all option combinations in
11146         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
11147         found in MULTILIB_OPTIONS by checking if option set is listed in
11148         combination_space.  Output new and existing error message to stderr.
11150 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11152         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
11153         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
11154         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
11155         (MULTILIB_REUSE): Remove reuse rules for option set including
11156         -mfpu=fp-armv8 and -mfpu=vfpv4
11158 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11160         * config/arm/t-rtems: Add vfp multilib.
11162 2016-08-23  Ian Lance Taylor  <iant@golang.org>
11164         * config/s390/s390.c (s390_asm_file_start): Call
11165         default_file_start.
11167 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11169         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
11170         initialization of all 0's to the 0 constant, instead of directly
11171         generating XOR.  Add support for V4SImode vector initialization on
11172         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
11173         initialization.  Change variables used in V4SFmode vector
11174         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
11175         any memory addresses are in index form.  Add support for using
11176         VSPLTH/VSPLTB to initialize vector short and vector char vectors
11177         with all of the same element.
11178         (regno_or_subregno): New helper function to return a register
11179         number for either REG or SUBREG.
11180         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
11181         Use regno_or_subregno where possible.
11182         (rs6000_split_v4si_init_di_reg): New helper function to build up a
11183         DImode value from two SImode values in order to generate V4SImode
11184         vector initialization on 64-bit systems with direct move.
11185         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
11186         initialization.
11187         (rtx_is_swappable_p): V4SImode vector initialization insn is not
11188         swappable.
11189         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
11190         declaration.
11191         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
11192         attributes to initialize V8HImode and V16QImode vectors with the
11193         same element.
11194         (VSX_SPLAT_COUNT): Likewise.
11195         (VSX_SPLAT_SUFFIX): Likewise.
11196         (UNSPEC_VSX_VEC_INIT): New unspec.
11197         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
11198         Allow SFmode values to come from Altivec registers.
11199         (vsx_init_v4si): New insn/split for V4SImode vector initialization
11200         on 64-bit systems with direct move.
11201         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
11202         vector initializations, to allow V4SImode vector initializations
11203         on 64-bit systems with direct move.
11204         (vsx_splat_v4si): Likewise.
11205         (vsx_splat_v4si_di): Likewise.
11206         (vsx_splat_v4sf): Likewise.
11207         (vsx_splat_v4sf_internal): Likewise.
11208         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
11209         register classes.
11210         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
11211         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
11212         initializing V8HImode and V16QImode vectors with the same
11213         element.
11214         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
11215         optimization if -maltivec=be.
11217 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
11219         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
11220         attribute for alternatives 3 and 4.
11222 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
11224         * selftest.c (selftest::assert_str_contains): New function.
11225         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
11226         * selftest.h (selftest::assert_str_contains): New decl.
11227         (ASSERT_STR_CONTAINS): New macro.
11229 2016-08-23  Richard Biener  <rguenther@suse.de>
11231         PR tree-optimization/77286
11232         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
11233         the CFG here.
11234         (vect_transform_loop): Split exit edges of loop and scalar
11235         loop if required and at the appropriate time.
11237 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11239         * explow.c (get_dynamic_stack_size): Take known alignment of stack
11240         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
11241         needed.
11242         Correct a typo in a comment.
11244 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11246         * config/s390/s390.md ("*andc_split"): New splitter for and with
11247         complement.
11249 2016-08-23  Richard Biener  <rguenther@suse.de>
11251         PR tree-optimization/27336
11252         * tree-vrp.c (infer_value_range): Handle stmts that can throw
11253         by looking for a non-EH edge.
11254         (process_assert_insertions_for): Likewise.
11256 2016-08-23  Richard Biener  <rguenther@suse.de>
11258         PR middle-end/77305
11259         * statistics.c (statistics_counter_event): Robustify against
11260         NULL current_pass.
11262 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11264         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
11265         for targets amdfam10 and barcelona.
11267 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
11269         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
11270         (zero_extend<mode>di2): Ditto.
11271         (*zero_extend<mode>si2): Ditto.
11272         (*zero_extendqihi2): Ditto.
11274 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
11276         PR middle-end/77269
11277         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
11278         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
11280 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
11282         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
11283         identical consecutive elements.
11284         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
11285         the node's def stmt, avoid printing an unwanted trailing newline by
11286         replacing the call to print_gimple_stmt() with its inlined body and
11287         adjusting it to not set pp_needs_newline and to call pp_flush()
11288         instead of pp_newline_and_flush().
11290 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
11292         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
11293         (float32_type_node, float64_type_node, float32x_type_node)
11294         (float128x_type_node): New macros.
11295         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
11296         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
11297         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
11298         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
11299         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
11300         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
11301         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
11302         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
11303         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
11304         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
11305         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
11306         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
11307         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
11308         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
11309         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
11310         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
11311         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
11312         (copysign, fabs, huge_val, inf, nan, nans): Use it.
11313         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
11314         and copysign.
11315         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
11316         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
11317         * doc/extend.texi (Other Builtins): Document these built-in
11318         functions.
11319         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
11320         for nan and nans.
11322 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
11324         * doc/install.texi (Binaries): www.opencsw.org now uses https.
11326 2016-08-22  Richard Biener  <rguenther@suse.de>
11328         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
11330 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
11332         PR target/77270
11333         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
11334         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
11335         non-SSE2 athlons only, otherwise prefer SSE prefetches.
11337 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11339         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
11340         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
11341         (vrp_visit_switch_stmt): Likewise.
11342         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
11343         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
11344         (vrp_visit_stmt): Use extract_range_from_stmt.
11345         (vrp_visit_phi_node): Use extract_range_from_phi_node.
11347 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11349         * Makefile.in: Add tree-vrp.h to GTFILES.
11350         * gengtype.c (open_base_files): Add tree-vrp.h.
11351         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
11352         * builtins.c: Likewise.
11353         * fold-const.c: Likewise.
11354         * gimple-builder.c: Likewise.
11355         * gimple-laddress.c: Likewise.
11356         * hsa-gen.c: Likewise.
11357         * internal-fn.c: Likewise.
11358         * ssa.h: Likewise.
11359         * targhooks.c: Liewise,
11360         * tree-ssa-address.c: Likewise.
11361         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
11362         * tree-vrp.c (struct value_range): Move to tree-vrp.h
11363         * tree-vrp.h: New file.
11365 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11367         PR tree-optimization/61839
11368         * tree-vrp.c (two_valued_val_range_p): New.
11369         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
11370         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
11371         Also Convert VAR BINOP CST where VAR is two-valued to
11372         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
11374 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
11376         * diagnostic-show-locus.c
11377         (layout::annotation_line_showed_range_p): New method.
11378         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11379         Reimplement case fixit_hint::REPLACE to cover removals, and
11380         replacements where the range of the replacement isn't one
11381         of the ranges in the rich_location.
11382         (test_one_liner_fixit_replace): Likewise.
11383         (selftest::test_one_liner_fixit_replace_non_equal_range): New
11384         function.
11385         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11386         New function.
11387         (selftest::test_diagnostic_show_locus_one_liner): Call the new
11388         functions.
11389         * diagnostic.c (print_parseable_fixits): Remove case
11390         fixit_hint::REMOVE.
11392 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
11394         PR target/77270
11395         * config/i386/i386.c (ix86_option_override_internal): Remove
11396         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11397         Enable SSE prefetch also for TARGET_PREFETCHWT1.
11398         Do not try to enable TARGET_PRFCHW ISA flag here.
11399         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11400         Rewrite expander function body.
11401         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11403 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
11405         PR c/32187
11406         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11407         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11408         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11409         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11410         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11411         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11412         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11413         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11414         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11415         tree_index values.
11416         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11417         macros.
11418         (struct floatn_type_info): New structure type.
11419         (floatn_nx_types): New variable declaration.
11420         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11421         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11422         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11423         * tree.c (floatn_nx_types): New variable.
11424         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11425         corresponding complex types.
11426         * target.def (floatn_mode): New hook.
11427         * targhooks.c: Include "real.h".
11428         (default_floatn_mode): New function.
11429         * targhooks.h (default_floatn_mode): New prototype.
11430         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11431         types.
11432         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11433         effective-target and dg-add-options keywords.
11434         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11435         Document new effective-target keywords.
11436         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11437         * doc/tm.texi: Regenerate.
11438         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11439         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11440         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11441         18661-3.
11442         * real.h (struct real_format): Add field ieee_bits.
11443         * real.c (ieee_single_format, mips_single_format)
11444         (motorola_single_format, spu_single_format, ieee_double_format)
11445         (mips_double_format, motorola_double_format)
11446         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11447         (ieee_extended_intel_128_format)
11448         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11449         (mips_extended_format, ieee_quad_format, mips_quad_format)
11450         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11451         (decimal_double_format, decimal_quad_format, ieee_half_format)
11452         (arm_half_format, real_internal_format: Initialize ieee_bits
11453         field.
11454         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11455         float128_type_node.  Set float80_type_node to float64x_type_node
11456         if appropriate and long_double_type_node not appropriate.
11457         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11458         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11459         Initialize ieee_bits field.
11460         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11461         (rs6000_init_builtins): Set ieee128_float_type_node to
11462         float128_type_node.
11463         (rs6000_floatn_mode): New function.
11465 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
11467         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11468         _rdseed64_step): Uglify argument names and/or local variable names
11469         in inline functions.
11470         * config/i386/rtmintrin.h (_xabort): Likewise.
11471         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11472         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11473         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11474         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11475         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11476         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11477         _mm_maskz_ternarylogic_epi32): Likewise.
11478         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11479         __lwpins32, __lwpins64): Likewise.
11480         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11481         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11482         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11483         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11484         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11485         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11486         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11487         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11488         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11489         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11490         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11491         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11492         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11493         _mm256_mask_i64gather_epi32): Likewise.
11494         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11495         * config/i386/ia32intrin.h (__writeeflags): Likewise.
11496         * config/i386/pkuintrin.h (_wrpkru): Likewise.
11497         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11498         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11499         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11500         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11501         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11502         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11503         _mm512_mask_prefetch_i64scatter_ps): Likewise.
11504         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11505         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11506         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11507         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11508         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11509         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11510         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11511         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11513         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11514         returning void.
11515         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11516         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11517         Likewise.
11518         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11519         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
11520         function name.
11521         (_rdpkru_u32): Add space after function name.
11523         * config/i386/t-i386 (i386-c.o): Don't depend on
11524         i386-builtin-types.inc.
11525         (i386.o): Depend on i386-builtin-types.inc.
11527 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
11529         PR target/77281
11530         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11531         Use const_vec_duplicate to check for duplicated elements.
11533 2016-08-19  Richard Biener  <rguenther@suse.de>
11535         PR tree-optimization/77290
11536         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11537         Fix flag_tree_parallelize_loops check.
11539 2016-08-19  Richard Biener  <rguenther@suse.de>
11541         * match.pd (x | 0 -> x): Add.
11543 2016-08-19  Richard Biener  <rguenther@suse.de>
11545         PR tree-optimization/77286
11546         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11547         Deal with virtual PHIs being out-of-order.
11549 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
11551         * doc/invoke.texi (fverbose-asm): Note that source code lines
11552         are emitted, and provide an example.
11553         * final.c (asm_show_source): New function.
11554         (final_scan_insn): Call asm_show_source.
11556 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
11558         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11559         param with diagnostic_kind.
11560         (class colorizer): Similarly replace field m_diagnostic with
11561         m_diagnostic_kind.
11562         (colorizer::colorizer): Replace diagnostic
11563         param with diagnostic_kind.
11564         (colorizer::begin_state): Update for above field change.
11565         (layout::layout): Replace diagnostic param with rich_location *
11566         and diagnostic_kind.
11567         (diagnostic_show_locus): Replace diagnostic param with richloc
11568         and diagnostic_kind.
11569         (class selftest::test_diagnostic_context): New class.
11570         (selftest::test_diagnostic_show_locus_unknown_location): New
11571         function.
11572         (selftest::test_one_liner_simple_caret): New function.
11573         (selftest::test_one_liner_caret_and_range): New function.
11574         (selftest::test_one_liner_multiple_carets_and_ranges): New
11575         function.
11576         (selftest::test_one_liner_fixit_remove): New function.
11577         (selftest::test_one_liner_fixit_replace): New function.
11578         (selftest::test_diagnostic_show_locus_one_liner): New function.
11579         (selftest::diagnostic_show_locus_c_tests): Call the new test
11580         functions.
11581         * diagnostic.c (diagnostic_initialize): Initialize
11582         colorize_source_p, show_ruler_p and parseable_fixits_p.
11583         (default_diagnostic_finalizer): Update for change to
11584         diagnostic_show_locus.
11585         (diagnostic_append_note): Likewise.
11586         * diagnostic.h (diagnostic_show_locus): Replace
11587         const diagnostic_info * param with location * and diagnostic_t.
11589 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
11591         * input.c (saved_line_table): New global.
11592         (class selftest::temp_line_table): Rename to line_table_test and
11593         move declaration to selftest.h, and drop field m_old_line_table.
11594         (selftest::temp_line_table::temp_line_table): Rename ctor to...
11595         (selftest::line_table_test::line_table_test): ...this.  Add a
11596         default ctor.  Store current value of line_table within
11597         saved_line_table.
11598         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11599         (selftest::line_table_test::~line_table_test): ...this, and
11600         restore line_table from the saved_line_table, rather than
11601         m_old_line_table.
11602         (selftest::test_accessing_ordinary_linemaps): Update for above
11603         renaming.
11604         (selftest::test_lexer): Likewise.
11605         (struct selftest::lexer_test): Likewise.
11606         (selftest::lexer_test::lexer_test): Likewise.
11607         (selftest::input_c_tests): Move the looping over test cases from
11608         here into...
11609         (selftest::for_each_line_table_case): New function.
11610         * input.h (saved_line_table): New decl.
11611         * selftest.h (struct selftest::line_table_case): New forward decl.
11612         (class selftest::line_table_test): New class, moved here from
11613         selftest::temp_line_table in input.c, and renamed.
11614         (selftest::for_each_line_table_case): New decl.
11616 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11618         PR target/72839
11619         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11621 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
11623         PR middle-end/70895
11624         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11625         enclosing parallel construct for reduction variables on OpenACC loop
11626         directives.
11628 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
11630         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11631         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11632         -gdwarf-3.
11633         (function_to_dwarf_procedure): Update comment.
11635 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
11637         * input.c (diagnostics_file_cache_forcibly_evict_file): New
11638         function.
11639         * input.h (diagnostics_file_cache_forcibly_evict_file): New
11640         declaration.
11641         * selftest.c (selftest::temp_source_file::~temp_source_file):
11642         Evict m_filename from the diagnostic file cache.
11644 2016-08-18  Richard Biener  <rguenther@suse.de>
11646         * tree-pass.h (make_pass_materialize_all_clones): Declare.
11647         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11648         make_pass_materialize_all_clones): New simple IPA pass encapsulating
11649         clone materialization.
11650         * passes.def (all_late_ipa_passes): Start with
11651         pass_materialize_all_clones.
11652         * cgraphunit.c (symbol_table::compile): Remove call to
11653         materialize_all_clones.
11654         * tree-into-ssa.c: Include statistics.h.
11655         (update_ssa): Count number of times we do incremental/rewrite
11656         SSA update.
11658 2016-08-18  Richard Biener  <rguenther@suse.de>
11660         PR tree-optimization/77282
11661         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11662         When doing auto-parallelizing also prevent use of PHIs that
11663         carry dependences across loop backedges.
11665 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
11666             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11668         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11670 2016-08-18  Richard Biener  <rguenther@suse.de>
11672         * ssa-iterators.h (ssa_vuse_operand): New inline.
11673         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11674         (predicate_all_scalar_phis): Use remove_phi_node to remove
11675         phi nodes predicated.  Delay removing virtual PHIs.
11676         (predicate_mem_writes): Update virtual operands.
11677         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
11678         (tree_if_conversion): Do not rewrite virtual SSA form.
11679         * tree-phinodes.c (release_phi_node): Make static.
11680         * tree-phinodes.h (release_phi_node): Remove.
11682 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
11684         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11685         codes that appear in bdesc_* arrays, instead include i386-builtin.def
11686         twice to define those.
11687         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11688         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11689         bdesc_multi_arg): Define by including i386-builtin.def the third time.
11690         * config/i386/i386-builtin.def: New file.
11692 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
11694         * input.c (get_source_range_for_char): Rename to...
11695         (selftest::get_source_range_for_char): ...this, and move within
11696         the #if CHECKING_P guard.
11697         (get_num_source_ranges_for_substring): Rename to...
11698         (selftest::get_num_source_ranges_for_substring): ...this, move
11699         within the #if CHECKING_P guard, and make static.
11700         (selftest::assert_num_substring_ranges): Initialize
11701         actual_num_ranges.
11703 2016-08-18  Alan Modra  <amodra@gmail.com>
11705         PR rtl-optimization/72771
11706         * reload.c (find_reloads): Don't assume that a subreg mem is OK
11707         when find_reloads_toplev returns address_reloaded==-1.
11708         (alternative_allows_const_pool_ref): Update comment.
11710 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
11712         PR tree-optimization/71752
11713         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11714         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11716 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
11718         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11719         instead of testing ECF_NORETURN bit in gimple_call_flags.
11720         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11721         * predict.c (tree_bb_level_predictions): Likewise.
11722         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11724         PR middle-end/77259
11725         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11726         turning a call into __builtin_unreachable-like noreturn call, adjust
11727         gimple_call_set_fntype.
11728         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11729         gimple_call_fntype has void return type.
11731 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
11733         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11734         maybe_lookup_decl, to handle nested acc loop directives.
11736 2016-08-17  Richard Biener  <rguenther@suse.de>
11738         PR tree-optimization/76490
11739         * tree-vrp.c (update_value_range): Preserve overflow infinities
11740         when intersecting with ranges from get_range_info.
11741         (operand_less_p): Handle overflow infinities correctly.
11742         (value_range_constant_singleton): Use vrp_operand_equal_p
11743         to handle overflow max/min correctly.
11744         (vrp_valueize): Likewise.
11745         (union_ranges): Likewise.
11746         (intersect_ranges): Likewise.
11747         (vrp_visit_phi_node): Improve iteration limitation to only
11748         apply when we'll possibly re-visit the PHI via a changed argument
11749         on the backedge.
11751 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11753         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11754         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11755         rather than those that should not be built.
11757 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
11759         PR target/66488
11760         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11762 2016-08-17  Richard Biener  <rguenther@suse.de>
11764         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11765         (verify_vssa): New function verifying virtual SSA form.
11766         (verify_ssa): Call it.
11767         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11768         Do not apply loop-closed SSA handling to virtuals.
11769         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11770         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11771         when rewriting their symbol.
11772         (prepare_def_site_for): Likewise.
11773         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11774         operands of moved stmts.
11776 2016-08-17  Richard Biener  <rguenther@suse.de>
11778         PR tree-optimization/23855
11779         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11780         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11781         find guards to hoist.  Do not update SSA form but rewrite virtuals
11782         into loop closed SSA.
11783         (find_loop_guard): Adjust to skip already hoisted guards.  Do
11784         not mark virtuals for renaming or update SSA form.
11786 2016-08-17  Martin Liska  <mliska@suse.cz>
11788         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11789         a LONG_LONG_TYPE_SIZE comparison.
11790         * gcov-io.h: Remove macro definitions.
11791         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11792         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11793         comparison.
11795 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
11797         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11798         that builtins not mentioned in bdesc_* arrays come first, then
11799         the ones mentioned in bdesc_* arrays in the order they appear in
11800         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11801         IX86_BUILTIN__BDESC_*_LAST enumerator.
11802         (bdesc_mpx): Fix up a comment typo.
11803         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11804         __builtin_ia32_vpcomneu[bwdq] builtins.
11805         (BDESC_VERIFY, BDESC_VERIFYS): Define.
11806         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11807         enum ix86_builtins ordering.
11808         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11809         for direct bdesc_* array member access instead of searching all the
11810         arrays until an fcode match is found.
11812 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
11814         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11815         pattern as define_insn_and_split.  Split insn before reload to
11816         ashl<mode>3_1.
11817         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
11818         <shift_insn><mode>3_1.
11819         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
11820         <rotate_insn><mode>3_1.
11822 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
11824         PR c/72857
11825         * input.c (get_source_range_for_substring): Rename to...
11826         (get_source_location_for_substring): ...this, adding param
11827         "caret_idx", and converting output param from source_range * to
11828         location_t *.
11829         (get_source_range_for_char): New function.
11830         (get_num_source_ranges_for_substring): Update comment to reflect
11831         above renaming.
11832         (assert_char_at_range): Update to use get_source_range_for_char
11833         rather than get_source_range_for_substring.
11834         (test_lexer_string_locations_concatenation_2): Likewise.
11835         * substring-locations.h (get_source_range_for_substring): Rename
11836         to...
11837         (get_source_location_for_substring): ...this, and adding param
11838         "caret_idx", and converting output param from source_range * to
11839         location_t *.
11841 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
11843         * input.c (class selftest::temp_source_file): Move to
11844         selftest.h.
11845         (selftest::temp_source_file::temp_source_file): Move to
11846         selftest.c.
11847         (selftest::temp_source_file::~temp_source_file): Likewise.
11848         * selftest.c (selftest::temp_source_file::temp_source_file): Move
11849         here from input.c.
11850         (selftest::temp_source_file::~temp_source_file): Likewise.
11851         * selftest.h (class selftest::temp_source_file): Move here from
11852         input.c
11854 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
11856         PR target/71910
11857         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
11858         inlining, add cgraph edge for the added __builtin_unreachable call.
11860         PR middle-end/67485
11861         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11862         only cast it to SHWI for the final comparison.
11864 2016-08-16  Martin Liska  <mliska@suse.cz>
11866         PR gcov-profile/36412
11867         * doc/gcov.texi: Document --hash-filenames(-x).
11868         * gcov.c (print_usage): Add the option.
11869         (process_args): Process the option, sort options alphabetically.
11870         (md5sum_to_hex): New function.
11871         (make_gcov_file_name): Do the md5sum and append it to a
11872         filename.
11874 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
11876         PR tree-optimization/69848
11877         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11878         and swtich operands to avoid additional NOT instruction.
11879         (vcond<v_cmp_mixed><mode>): Ditto.
11880         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11882 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
11884         * doc/install.texi (*-*-solaris2*): Adjust latest change.
11886 2016-08-16  Richard Biener  <rguenther@suse.de>
11888         PR tree-optimization/76783
11889         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
11890         BB visited flags at start.
11892 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
11894         PR tree-optimization/72817
11895         PR tree-optimization/73450
11896         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11897         multiple_of_p for adjusted IV.base.
11899 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
11901         PR target/72867
11902         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11903         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11904         for !flag_finite_math_only or flag_signed_zeros.
11905         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11906         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
11907         depend on flag_finite_math_only.
11908         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11909         New insn pattern.
11910         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11911         (*ieee_smin<mode>3): Ditto.
11912         (*ieee_smax<mode>3): Ditto.
11913         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11914         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11915         flag_signed_zeros.
11916         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
11917         depend on flag_finite_math_only.
11918         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11919         (*mmx_<code>v2sf3): Remove.
11920         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11921         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11922         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11924 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
11926         PR rtl-optimization/73650
11927         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11928         it is not a simple move.
11930 2016-08-15  Martin Liska  <mliska@suse.cz>
11932         PR driver/72765
11933         * gcc.c (do_spec_1): Call save_string with the right size.
11934         (save_string): Do an assert about string we copy.
11936 2016-08-15  Richard Biener  <rguenther@suse.de>
11938         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11939         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11940         TV_MACH_DEP.
11941         (pass_data_stv): Likewise.
11943 2016-08-15  Richard Biener  <rguenther@suse.de>
11945         PR tree-optimization/73434
11946         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11947         TBAA info on the base when forwarding a non-invariant address.
11949 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
11951         * dwarf2out.c (struct checksum_attributes): Add
11952         at_string_length_bit_size and at_string_length_byte_size fields.
11953         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11954         and DW_AT_string_length_byte_size.
11955         (die_checksum_ordered): Handle at_string_length_bit_size and
11956         at_string_length_byte_size.
11957         (gen_array_type_die): For dwarf_version >= 5 emit
11958         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11959         (adjust_string_types): For dwarf_version >= 5 remove
11960         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11961         (resolve_addr): Likewise.
11963         PR debug/71906
11964         * dwarf2out.c (string_types): New variable.
11965         (gen_array_type_die): Change early_dwarf handling of
11966         DW_AT_string_length, create DW_OP_call4 referencing the
11967         length var temporarily.  Handle parameters that are pointers
11968         to string length.
11969         (adjust_string_types): New function.
11970         (gen_subprogram_die): Temporarily set string_types to local var,
11971         call adjust_string_types if needed.
11972         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11973         New functions.
11974         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11976 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
11978         * doc/install.texi (*-*-solaris2*): Fix version number and document
11979         requirement on GNU make for building libjava with the Solaris linker.
11981 2016-08-15  Martin Liska  <mliska@suse.cz>
11982             Jakub Jelinek  <jakub@redhat.com>
11984         PR tree-optimization/72824
11985         * tree-loop-distribution.c (const_with_all_bytes_same)
11986         <case VECTOR_CST>: Fix a typo.
11988 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
11990         PR target/76342
11991         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11992         Renamed from _mm512_undefined_si512.
11993         (_mm_undefined_si512): New definition.
11995 2016-08-13  Richard Biener  <rguenther@suse.de>
11997         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11998         into PHIs and update the lattice for its def.
12000 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
12002         PR c/71512
12003         * ubsan.c (instrument_si_overflow): Pass true instead of false
12004         to gsi_replace.
12005         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
12006         of bbs.  Return TODO_cleanup_cfg if any returned true.
12008 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12010         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
12011         ISA 3.0 MTVSRDD instruction.
12012         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
12013         vecperm.
12015 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12017         PR tree-optimization/71083
12018         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
12019         bitfield access when possible.
12021 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
12023         PR middle-end/71654
12024         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
12025         sign-changing cast from a shorter unsigned type to a wider
12026         signed type.
12028 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
12030         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
12031         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
12032         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
12034 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12036         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
12037         Correct costs for vec_construct.
12039 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
12041         PR tree-optimization/69848
12042         * tree-vectorizer.h (enum vect_def_type): New condition reduction
12043         type CONST_COND_REDUCTION.
12044         * tree-vect-loop.c (vectorizable_reduction): Support new condition
12045         reudction type CONST_COND_REDUCTION.
12047 2016-08-12  Richard Biener  <rguenther@suse.de>
12049         PR tree-optimization/57326
12050         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
12051         returning an SSA name.
12052         (phi_translate_1): When fully_constant_expression returns a NAME
12053         make sure we have a leader for it.
12055 2016-08-12  Martin Liska  <mliska@suse.cz>
12056             Adam Fineman  <afineman@afineman.com>
12058         * gcov.c (process_file): Create .gcov file when .gcda
12059         file is missing.
12061 2016-08-12  Marek Polacek  <polacek@redhat.com>
12063         PR c/7652
12064         * alias.c (find_base_value): Adjust fall through comment.
12065         * cfgexpand.c (expand_debug_expr): Likewise.
12066         * combine.c (find_split_point): Likewise.
12067         (expand_compound_operation): Likewise.  Add FALLTHRU.
12068         (make_compound_operation): Adjust fall through comment.
12069         (canon_reg_for_combine): Add FALLTHRU.
12070         (force_to_mode): Adjust fall through comment.
12071         (simplify_shift_const_1): Likewise.
12072         (simplify_comparison): Likewise.
12073         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
12074         FALLTHRU.
12075         * config/aarch64/predicates.md: Likewise.
12076         * config/i386/i386.c (function_arg_advance_32): Likewise.
12077         (ix86_gimplify_va_arg): Likewise.
12078         (print_reg): Likewise.
12079         (ix86_print_operand): Likewise.
12080         (ix86_build_const_vector): Likewise.
12081         (ix86_expand_branch): Likewise.
12082         (ix86_sched_init_global): Adjust fall through comment.
12083         (ix86_expand_args_builtin): Add FALLTHRU.
12084         (ix86_expand_builtin): Likewise.
12085         (ix86_expand_vector_init_one_var): Likewise.
12086         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
12087         (rs6000_adjust_cost): Likewise.
12088         (insn_must_be_first_in_group): Likewise.
12089         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
12090         * dbxout.c (dbxout_symbol): Adjust fall through comment.
12091         * df-scan.c (df_uses_record): Likewise.
12092         * dojump.c (do_jump): Add FALLTHRU.
12093         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
12094         comment.
12095         (resolve_args_picking_1): Adjust fall through comment.
12096         (loc_list_from_tree_1): Likewise.
12097         * expmed.c (make_tree): Likewise.
12098         * expr.c (expand_expr_real_2): Add FALLTHRU.
12099         (expand_expr_real_1): Likewise.  Adjust fall through comment.
12100         * fold-const.c (const_binop): Adjust fall through comment.
12101         (fold_truth_not_expr): Likewise.
12102         (fold_cond_expr_with_comparison): Add FALLTHRU.
12103         (fold_binary_loc): Likewise.
12104         (contains_label_1): Adjust fall through comment.
12105         (multiple_of_p): Likewise.
12106         * gcov-tool.c (process_args): Add FALLTHRU.
12107         * genattrtab.c (check_attr_test): Likewise.
12108         (write_test_expr): Likewise.
12109         * genconfig.c (walk_insn_part): Likewise.
12110         * genpreds.c (validate_exp): Adjust fall through comment.
12111         (needs_variable): Likewise.
12112         * gensupport.c (get_alternatives_number): Add FALLTHRU.
12113         (subst_dup): Likewise.
12114         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
12115         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
12116         (gimplify_scan_omp_clauses): Add FALLTHRU.
12117         (goa_stabilize_expr): Likewise.
12118         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
12119         through comment.
12120         * hsa-gen.c (get_address_from_value): Likewise.
12121         * ipa-icf.c (sem_function::hash_stmt): Likewise.
12122         * ira.c (ira_setup_alts): Add FALLTHRU.
12123         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
12124         comment.
12125         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
12126         * opts.c (common_handle_option): Likewise.
12127         * read-rtl.c (read_rtx_code): Likewise.
12128         * real.c (round_for_format): Likewise.
12129         * recog.c (asm_operand_ok): Likewise.
12130         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
12131         * reload1.c (set_label_offsets): Likewise.
12132         (eliminate_regs_1): Likewise.
12133         (reload_reg_reaches_end_p): Likewise.
12134         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
12135         (rtx_cost): Likewise.
12136         * sched-rgn.c (is_exception_free): Likewise.
12137         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
12138         * stor-layout.c (int_mode_for_mode): Likewise.
12139         * toplev.c (print_to_asm_out_file): Likewise.
12140         (print_to_stderr): Likewise.
12141         * tree-cfg.c (gimple_verify_flow_info): Likewise.
12142         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
12143         (chrec_fold_multiply): Likewise.
12144         (evolution_function_is_invariant_rec_p): Likewise.
12145         (for_each_scev_op): Likewise.
12146         * tree-data-ref.c (siv_subscript_p): Likewise.
12147         (get_references_in_stmt): Likewise.
12148         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
12149         (substitute_in_expr): Likewise.
12150         (type_cache_hasher::equal): Likewise.
12151         (walk_type_fields): Likewise.
12152         * var-tracking.c (adjust_mems): Add FALLTHRU.
12153         (set_dv_changed): Adjust fall through comment.
12154         * varasm.c (default_function_section): Add FALLTHRU.
12156 2016-08-12  Marek Polacek  <polacek@redhat.com>
12158         PR c/7652
12159         * tree-complex.c (expand_complex_division): Add missing break.
12161 2016-08-12  Richard Biener  <rguenther@suse.de>
12163         * passes.c (execute_todo): Do not push/pop TV_TODO.
12164         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
12165         (execute_one_pass): Likewise.
12166         * common.opt (ftime-report-details): New switch.
12167         * doc/invoke.texi (ftime-report-details): Document.
12168         * timevar.h (timer::print_row): Adjust signature.
12169         (timer::all_zero): New static helper.
12170         (timer::child_map_t): New typedef.
12171         (timer::time_var_def): Add children field.
12172         * timevar.c (timer::named_items::print): Adjust.
12173         (timer::~timer): Free timevar recorded children.
12174         (timer::pop_internal): When -ftime-report-details record
12175         time spent in sub-timevars.
12176         (timer::print_row): Adjust.
12177         (timer::print): Print sub-timevar stats, use all_zero.
12178         * timevar.def (TV_TODO): Remove.
12180 2016-08-12  Richard Biener  <rguenther@suse.de>
12182         PR tree-optimization/72851
12183         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
12184         worklists to use bitmaps indexed in execution order.
12185         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
12186         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
12187         (cfg_blocks): Make a bitmap.
12188         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
12189         New globals.
12190         (cfg_blocks_empty_p): Adjust.
12191         (cfg_blocks_add): Likewise.
12192         (cfg_blocks_get): Likewise.
12193         (add_ssa_edge): Likewise.
12194         (add_control_edge): Likewise.
12195         (simulate_stmt): Likewise.
12196         (process_ssa_edge_worklist): Likewise.
12197         (simulate_block): Likewise.
12198         (ssa_prop_init): Compute PRE order and stmt UIDs.
12199         (ssa_prop_fini): Adjust.
12200         (ssa_propagate): Adjust.
12202 2016-08-12  Richard Biener  <rguenther@suse.de>
12204         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
12205         the currently executable edges have fixed ranges.  Always
12206         go through update_value_range.
12208 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
12210         PR debug/63240
12211         * langhooks-def.h
12212         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
12213         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
12214         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
12215         (LANG_HOOKS_DECLS): Add it.
12216         * langhooks.h (struct lang_hooks_for_decls): Add
12217         function_decl_defaulted.  Const_tree-ify
12218         function_decl_explicit_p and function_decl_deleted_p.
12219         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
12220         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
12221         also at strict DWARF v5.
12223         PR debug/55641
12224         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
12225         TYPE_QUAL_CONST in reference-typed decls.
12227         PR debug/49366
12228         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
12229         in DW_OP_pieces, just enough to handle pointers to member
12230         functions.
12231         (gen_remaining_tmpl_value_param_die_attribute): Use a location
12232         expression on DWARFv5 if a constant value doesn't work.
12234 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
12236         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
12237         * selftest.c (selftest::test_assertions): New function.
12238         (selftest::selftest_c_tests): New function.
12239         * selftest.h (selftest::selftest_c_tests): New declaration.
12241 2016-08-11  Richard Biener  <rguenther@suse.de>
12242             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12244         PR rtl-optimization/72855
12245         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
12247 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12249         PR target/72863
12250         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
12251         (vsx_store_<mode>): Likewise.
12253 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
12255         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
12256         TImode CONST_WIDE_INT store.
12257         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
12259 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
12261         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
12262         mode if unaligned SSE load and store are optimal.
12264 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12266         PR tree-optimization/71083
12267         * tree-predcom.c (ref_at_iteration): Correctly align the
12268         reference type.
12270 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12272         * config/s390/s390-builtin-types.def: Add INT128 types.
12273         * config/s390/s390-builtins.def: Add INT128 variants for the add
12274         sub low-level builtins dealing with TImode.
12275         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
12276         via subreg when expanding a builtin.
12277         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
12278         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
12279         Fix comment.
12280         * config/s390/vecintrin.h: Adjust builtin names accordingly.
12281         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
12282         ("vec_addc<mode>", "vec_addc_u128"): Merge to
12283         "vacc<bhfgq>_<mode>".
12284         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
12285         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
12286         ("vec_subc<mode>", "vec_subc_u128"): Merge to
12287         "vscbi<bhfgq>_<mode>".
12288         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
12289         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
12291 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12293         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
12295 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
12297         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
12298         unused declaration.
12299         (vcond<v_cmp_mixed><mode>): Ditto.
12300         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
12302 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
12304         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
12305         variable explicitly, also assert on it before use.
12307 2016-08-11  Richard Biener  <rguenther@suse.de>
12309         PR tree-optimization/72772
12310         * cfgloopmanip.c (create_preheader): Use split_edge if there
12311         is a single loop entry, avoiding degenerate PHIs.
12313 2016-08-11  Richard Biener  <rguenther@suse.de>
12315         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
12316         unconditional TODO_cleanup_cfg.
12317         (pass_thread_jumps::execute): Initialize loops, perform a CFG
12318         cleanup only if we threaded a jump.
12320 2016-08-11  Alan Modra  <amodra@gmail.com>
12322         PR target/71680
12323         * lra-constraints.c (simplify_operand_subreg): Allow subreg
12324         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
12325         slow.  Emit two reloads for slow mem case, first loading in
12326         fast innermode, then converting to required mode.
12328 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12330         * config/rs6000/altivec.h (vec_extract_exp): New macro.
12331         (vec_extract_sig): New macro.
12332         (vec_insert_exp): New macro.
12333         (vec_test_data_class): New macro.
12334         (scalar_extract_exp): New macro.
12335         (scalar_extract_sig): New macro.
12336         (scalar_insert_exp): New macro.
12337         (scalar_test_data_class): New macro.
12338         (scalar_test_neg): New macro.
12339         (scalar_cmp_exp_gt): New macro.
12340         (scalar_cmp_exp_lt): New macro.
12341         (scalar_cmp_exp_eq): New macro.
12342         (scalar_cmp_exp_unordered): New macro.
12343         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
12344         to enforce constraint that operand is a 7-bit unsigned literal.
12345         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
12346         for power9 built-ins.
12347         (BU_P9V_VSX_2): Likewise.
12348         (BU_P9V_64BIT_VSX_2): Likewise.
12349         (VSEEDP): Add scalar extract exponent support.
12350         (VSEESP): Add scalar extract signature support.
12351         (VSTDCNDP): Add scalar test negative support.
12352         (VSTDCNSP): Likewise.
12353         (VSIEDP): Add scalar insert exponent support.
12354         (VSCEDPGT): Add scalar compare exponent greater than support.
12355         (VSCEDPLT): Add scalar compare exponent less than support.
12356         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
12357         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
12358         (VSTDCDP): Add scalar test data class support.
12359         (VSTDCSP): Likewise.
12360         (VSEEDP): Add overload support for scalar extract exponent
12361         operation.
12362         (VSESDP): Add overload support for scalar extract signature
12363         operation.
12364         (VSTDCN): Add overload support for scalar test negative
12365         operation.
12366         (VSTDCNDP): Add overload support for scalar test negative
12367         operation.
12368         (VSTDCNSP): Add overload support for scalar test negative
12369         operation.
12370         (VSIEDP): Add overload support for scalar insert exponent
12371         operation.
12372         (VSTDC): Add overload support for scalar test data class
12373         operation.
12374         (VSTDCDP): Add overload support for scalar test data class
12375         operation.
12376         (VSTDCSP): Add overload support for scalar test data class
12377         opreation.
12378         (VSCEDPGT): Add overload support for scalar compare exponent
12379         greater than operation.
12380         (VSCEDPLT): Add overload support for scalar compare exponent
12381         less than operation.
12382         (VSCEDPEQ): Add overload support for scalar compare exponent
12383         test-for-equality operation.
12384         (VSCEDPUO): Add overload support for scalar compare exponent
12385         test-for-unordered operation.
12386         (VEEDP): Add vector extract exponent support.
12387         (VEESP): Likewise.
12388         (VESDP): Add vector extract significand support.
12389         (VESSP): Likewise.
12390         (VIEDP): Add vector insert exponent support.
12391         (VIESP): Likewise.
12392         (VTDCDP): Add vector test data class support.
12393         (VTDCSP): Likewise.
12394         (VES): Add overload support for vector extract significand operation.
12395         (VESDP): Likewise.
12396         (VESSP): Likewise
12397         (VEE): Add overload support for vector extract exponent operation.
12398         (VEEDP): Likewise.
12399         (VEESP): Likewise.
12400         (VTDC): Add overload support for vector test data class operation.
12401         (VTDCDP): Likewise.
12402         (VTDCSP): Likewise.
12403         (VIE): Add overload support for vector insert exponent operation.
12404         (VIEDP): Likewise.
12405         (VIESP): Likewise.
12406         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12407         overloaded binary floating point functions.
12408         (altivec_resolve_overloaded_builtin): Improve error messages to
12409         distinguish between functions not supported in the current
12410         compiler configuration and functions that were invoked with an
12411         invalid parameter combination, and include the built-in function
12412         name in both error messages.
12413         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12414         New prototype.
12415         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12416         function.
12417         (rs6000_expand_binop_builtin): Add check to enforce that argument
12418         2 of the test data class operations is a 7-bit unsigned literal.
12419         (rs6000_invalid_builtin): Add code to issue an error message if a
12420         built-in function that requires the power9_vector and -m32
12421         command-line options is compiled without these options.
12422         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12423         (UNSPEC_VSX_SXSIGDP): New value.
12424         (UNSPEC_VSX_SXSIGPDP): New value.
12425         (UNSPEC_VSX_SIEXPDP): New value.
12426         (UNSPEC_VSX_SCMPEXPDP): New value.
12427         (UNSPEC_VSX_STSTDC): New value.
12428         (UNSPEC_VSX_VXEXP): New value.
12429         (UNSPEC_VSX_VXSIG): New value.
12430         (UNSPEC_VSX_VIEXP): New value.
12431         (UNSPEC_VSX_VTSTDC): New value.
12432         (xsxexpdp): New insn for scalar extract exponent.
12433         (xsxsigdp): New insn for scalar extract significand.
12434         (xsiexpdp): New insn for scalar insert exponent.
12435         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12436         (*xscmpexpdp): New insn for scalar compare exponents.
12437         (xststdc<Fvsx): New expansion for both single- and
12438         double-precision scalar test data class operations.
12439         (xststdcneg<Fvsx>): New expansion for both single- and
12440         double-precision scalar test for negative value operations.
12441         (*xststdc<Fvsx>): New insn for scalar test data class
12442         operation.
12443         (xvxexp<VSs>): New insn for single- and double-precision
12444         vector extract exponent operation.
12445         (xvxsig<VSs>): New insn for single- and double-precision
12446         vector extract significand operation.
12447         (xviexp<VSs>): New insn for single- and double-precision
12448         vector insert exponent operation.
12449         (xvtstdc<VSs>): New insn for single- and double-precision
12450         vector test data class operation.
12451         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12452         built-in functions to represent the Power9 binary floating-point
12453         support instructions.
12455 2016-08-10  bin cheng  <bin.cheng@arm.com>
12457         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12459 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
12460             Renlin Li  <renlin.li@arm.com>
12461             Bin Cheng  <bin.cheng@arm.com>
12463         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12464         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12465         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12466         (aarch64_vcond_internal<mode><mode>): Delete pattern.
12467         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12468         (vcond<v_cmp_result><mode>): Ditto.
12469         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12470         (vcondu<mode><mode>): Ditto.
12471         (vcond<v_cmp_mixed><mode>): New pattern.
12472         (vcondu<mode><v_cmp_mixed>): New pattern.
12473         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12474         of aarch64_vcond_internal.
12476 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
12477             Renlin Li  <renlin.li@arm.com>
12478             Bin Cheng  <bin.cheng@arm.com>
12480         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12481         (vec_cmp<mode><v_cmp_result>): New pattern.
12482         (vec_cmpu<mode><mode>): New pattern.
12483         (vcond_mask_<mode><v_cmp_result>): New pattern.
12485 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12487         PR tree-optimization/71734
12488         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12489         REF_LOOP, invoke ref_indep_loop_p_1.
12490         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12491         to ref_indep_loop_p.
12492         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12493         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12494         is inside LOOP, do not cache dpendence value for loops with
12495         non-zero SAFELEN.
12496         (ref_indep_loop_p_2): Delete function.
12497         (can_sm_ref_p): Pass LOOP as additional argument to
12498         ref_indep_loop_p.
12500 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
12502         PR target/72853
12503         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12504         being an offsettable address.
12506 2016-08-10  Martin Liska  <mliska@suse.cz>
12508         PR gcov-profile/58306
12509         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12510         atomic variants of profile update functions.
12512 2016-08-10  Martin Liska  <mliska@suse.cz>
12514         Cherry picked (and modified) from google-4_7 branch
12515         2012-12-26  Rong Xu  <xur@google.com>
12516         * common.opt (fprofile-update): Add new flag.
12517         * coretypes.h: Define enum profile_update.
12518         * doc/invoke.texi: Document -fprofile-update.
12519         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12520         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12521         * tree-profile.c (gimple_init_edge_profiler): Generate
12522         also atomic profiler update.
12523         (gimple_gen_edge_profiler): Likewise.
12525 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
12527         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12528         stack_usage_file to NULL after fclose calls.
12530 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12532         PR target/71873
12533         * reload.c (push_reload): Compute subreg_in_class for
12534         subregs of constants and plus expressions. Remove special
12535         handling of SYMBOL_REFs.
12537 2016-08-10  Alan Modra  <amodra@gmail.com>
12539         PR target/71680
12540         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12541         SImode for TARGET_E500_DOUBLE when given SImode.
12543 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
12545         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12546         unused variable __O.
12548 2016-08-09  Martin Liska  <mliska@suse.cz>
12550         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12551         _gcov_reset to __gcov_reset.
12552         * doc/gcov-tool.texi: Fix typo.
12554 2016-08-09  Martin Liska  <mliska@suse.cz>
12556         * value-prof.c (gimple_divmod_values_to_profile): Do not
12557         instrument MOD histogram if a value is not a SSA name.
12559 2016-08-09  Martin Liska  <mliska@suse.cz>
12561         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12562         values.
12564 2016-08-09  Renlin Li  <renlin.li@arm.com>
12566         PR middle-end/64971
12567         * calls.c (prepare_call_address): Convert funexp to Pmode when
12568         necessary.
12569         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12570         (sibcall_value): Likewise.
12572 2016-08-09  Marek Polacek  <polacek@redhat.com>
12574         PR c/7652
12575         * cselib.c (cselib_expand_value_rtx_1): Add return.
12576         * gengtype.c (dbgprint_count_type_at): Likewise.
12577         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12578         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12580 2016-08-09  Martin Jambor  <mjambor@suse.cz>
12582         PR ipa/71981
12583         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12584         if instance is a MEM_REF.
12586 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
12588         PR target/72843
12589         * config/i386/i386.md (*movtf_internal): Use
12590         lra_in_progress || reload_completed instead of !can_create_pseudo_p
12591         in the insn constraint.
12592         (*movxf_internal): Ditto.
12593         (*movdf_internal): Ditto.
12594         (*movsf_internal): Ditto.
12596 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
12598         PR tree-optimization/72772
12599         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12600         for expanded base.
12602 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
12604         PR tree-optimization/72772
12605         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12606         parameter STOP.
12607         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12608         parameter STOP and update calls.  Move expand_simple_operations
12609         function call from here...
12610         (simplify_using_initial_conditions): ...to here.  Delete parameter
12611         STOP.
12612         (tree_simplify_using_condition): Delete parameter STOP.
12613         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12614         simplify_using_initial_conditions.
12616 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
12618         PR c/65345
12619         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12620         Use create_tmp_var_raw instead of create_tmp_var.
12622 2016-08-09  Richard Biener  <rguenther@suse.de>
12624         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12625         Treat same SSA names related.
12627 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
12629         PR tree-optimization/72824
12630         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12631         real_zerop is not negative.
12633 2016-08-09  Richard Biener  <rguenther@suse.de>
12635         PR tree-optimization/71802
12636         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12637         all merge opportunities with the predecessor.
12639 2016-08-09  Richard Biener  <rguenther@suse.de>
12641         PR ipa/68273
12642         * ipa-prop.c (ipa_modify_formal_parameters): Build
12643         parameter types with natural alignment also for the
12644         over-aligned case.
12646 2016-08-08  Andi Kleen  <ak@linux.intel.com>
12648         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12650 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
12652         PR c/64955
12653         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12654         do-nothing langhook.
12655         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12656         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12657         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12658         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12660 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
12662         PR bootstrap/72844
12663         * input.c: Ensure that HAVE_ICONV is defined.
12665 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12667         PR middle-end/72781
12668         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12669         private vars for lastprivate and for linear iterator.
12671         PR middle-end/68762
12672         * omp-simd-clone.c: Include varasm.h.
12673         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12674         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12675         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
12676         update function name.
12678 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12680         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12681         (avr_diagnose_devicespecs_error): Remove.
12682         (avr_devicespecs_file): Remove composing absolute path for specfile
12683         and its verbose info. Remove conditions to check specs-file,
12685 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12687         PR rtl-optimization/72821
12688         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12689         just return false for them.
12691 2016-08-08  Alan Modra  <amodra@gmail.com>
12693         PR target/72771
12694         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12695         toc refs created during reload.  Update function comment.
12697 2016-08-08  Alan Modra  <amodra@gmail.com>
12699         PR target/72802
12700         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12701         alternatives.  Put loads first, then stores, and reg/reg moves
12702         within same class later.  Delete attr length.
12704 2016-08-08  Alan Modra  <amodra@gmail.com>
12706         PR target/72802
12707         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12708         (mem_operand_ds_form): New predicate.
12709         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12710         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12711         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12712         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12713         (extendsfdf2_fpr): Replace o constraint with wY.
12715 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
12717         * tree-ssa-threadbackward.c: Include tree-inline.h
12718         (profitable_jump_thread_path): Use estimate_num_insns to estimate
12719         size of copied block; for cold paths reduce duplication.
12720         (find_jump_threads_backwards): Remove redundant tests.
12721         (pass_thread_jumps::gate): Enable for -Os.
12723 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
12725         PR c/72816
12726         * stor-layout.c (layout_decl): Fix up formatting.
12727         (relayout_decl): Allow DECL to be FIELD_DECL.
12729 2016-08-07  Alan Modra  <amodra@gmail.com>
12731         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12733 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12735         * data-streamer-in.c (streamer_read_wide_int): New.
12736         (streamer_read_widest_int): Renamed function.
12737         * data-streamer-out.c (streamer_write_wide_int): New
12738         (streamer_write_widest_int): Renamed function.
12739         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12740         data-stream-in.c.
12741         (input_cfg): Call renamed function.
12742         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12743         data-stream-out.c.
12744         (output_cfg): Call renamed function.
12745         * data-streamer.h: Add declarations.
12747 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12749         * tree-ssa-ccp.c (extend_mask): New param sgn.
12750         Remove ORing with wi::mask.
12751         (get_default_value): Adjust call to extend_mask to pass sign.
12752         (evaluate_stmt): Likewise.
12754 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
12756         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12757         INT64_MAX.
12759 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12761         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12762         transform if operand's type is pointer to function or method.
12764 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
12766         PR tree-optimization/18046
12767         * tree-ssa-threadedge.c: Include cfganal.h.
12768         (simplify_control_statement_condition): If simplifying a
12769         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12770         with the dominating ASSERT_EXPR before handing it off to VRP.
12771         Mention that a CASE_LABEL_EXPR may be returned.
12772         (thread_around_empty_blocks): Adjust to handle
12773         simplify_control_statement_condition() returning a
12774         CASE_LABEL_EXPR.
12775         (thread_through_normal_block): Likewise.
12776         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12777         a switch statement by trying to determine which case label
12778         will be taken.
12780 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
12782         PR rtl-optimization/69847
12783         * lra-constraints.c (process_invariant_for_inheritance): Save
12784         pattern instead of src.
12785         (remove_inheritance_pseudos): Use the pattern.  Add assert.
12787 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
12789         * input.c (string_concat::string_concat): New constructor.
12790         (string_concat_db::string_concat_db): New constructor.
12791         (string_concat_db::record_string_concatenation): New method.
12792         (string_concat_db::get_string_concatenation): New method.
12793         (string_concat_db::get_key_loc): New method.
12794         (class auto_cpp_string_vec): New class.
12795         (get_substring_ranges_for_loc): New function.
12796         (get_source_range_for_substring): New function.
12797         (get_num_source_ranges_for_substring): New function.
12798         (class selftest::lexer_test_options): New class.
12799         (struct selftest::lexer_test): New struct.
12800         (class selftest::ebcdic_execution_charset): New class.
12801         (selftest::ebcdic_execution_charset::s_singleton): New variable.
12802         (selftest::lexer_test::lexer_test): New constructor.
12803         (selftest::lexer_test::~lexer_test): New destructor.
12804         (selftest::lexer_test::get_token): New method.
12805         (selftest::assert_char_at_range): New function.
12806         (ASSERT_CHAR_AT_RANGE): New macro.
12807         (selftest::assert_num_substring_ranges): New function.
12808         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12809         (selftest::assert_has_no_substring_ranges): New function.
12810         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12811         (selftest::test_lexer_string_locations_simple): New function.
12812         (selftest::test_lexer_string_locations_ebcdic): New function.
12813         (selftest::test_lexer_string_locations_hex): New function.
12814         (selftest::test_lexer_string_locations_oct): New function.
12815         (selftest::test_lexer_string_locations_letter_escape_1): New function.
12816         (selftest::test_lexer_string_locations_letter_escape_2): New function.
12817         (selftest::test_lexer_string_locations_ucn4): New function.
12818         (selftest::test_lexer_string_locations_ucn8): New function.
12819         (selftest::uint32_from_big_endian): New function.
12820         (selftest::test_lexer_string_locations_wide_string): New function.
12821         (selftest::uint16_from_big_endian): New function.
12822         (selftest::test_lexer_string_locations_string16): New function.
12823         (selftest::test_lexer_string_locations_string32): New function.
12824         (selftest::test_lexer_string_locations_u8): New function.
12825         (selftest::test_lexer_string_locations_utf8_source): New function.
12826         (selftest::test_lexer_string_locations_concatenation_1): New
12827         function.
12828         (selftest::test_lexer_string_locations_concatenation_2): New
12829         function.
12830         (selftest::test_lexer_string_locations_concatenation_3): New
12831         function.
12832         (selftest::test_lexer_string_locations_macro): New function.
12833         (selftest::test_lexer_string_locations_stringified_macro_argument):
12834         New function.
12835         (selftest::test_lexer_string_locations_non_string): New function.
12836         (selftest::test_lexer_string_locations_long_line): New function.
12837         (selftest::test_lexer_char_constants): New function.
12838         (selftest::input_c_tests): Call the new test functions once per
12839         case within the line_table test matrix.
12840         * input.h (struct string_concat): New struct.
12841         (struct location_hash): New struct.
12842         (class string_concat_db): New class.
12843         * substring-locations.h: New header.
12845 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
12847         PR tree-optimization/72810
12848         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12849         the type of the case labels when truncating.
12851 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
12853         PR Target/72819
12854         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12855         (aarch64_fp16_ptr_type_node): Likewise.
12856         * config/aarch64/aarch64-simd-builtins.c
12857         (aarch64_fp16_ptr_type_node): Define.
12858         (aarch64_init_fp16_types): New, refactored out of...
12859         (aarch64_init_builtins): ...here, update to call
12860         aarch64_init_fp16_types.
12861         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12862         HFmode.
12863         (aapcs_vfp_sub_candidate): Likewise.
12865 2016-08-05  Martin Liska  <mliska@suse.cz>
12866             Joshua Cranmer  <Pidgeot18@gmail.com>
12868         * gcov.c (line_t::has_block): New function.
12869         (enum loop_type): New enum.
12870         (handle_cycle): New function.
12871         (unblock): Likewise.
12872         (circuit): Likewise.
12873         (get_cycles_count): Likewise.
12874         (accumulate_line_counts): Use new loop detection algorithm.
12876 2016-08-05  Martin Liska  <mliska@suse.cz>
12878         * gcov.c (output_intermediate_file): Rename
12879         function_info::line_next to next_file_fn.
12880         (process_file): Likewise.
12881         (read_graph_file): Likewise.
12882         (accumulate_line_counts): Likewise.
12883         (output_lines): Likewise.
12885 2016-08-05  Richard Biener  <rguenther@suse.de>
12887         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12888         restriction on threading to a loop header.
12890 2016-08-05  Richard Biener  <rguenther@suse.de>
12892         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12893         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12894         adjust loop info accordingly.
12896 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
12898         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12899         before folding call to __builtin_constant_p with parameters to false.
12901 2016-08-05  Alan Modra  <amodra@gmail.com>
12903         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12904         code accidentally committed 2016-05-02 providing class when given
12905         NO_REGS.
12907 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
12909         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12910         the case label ranges that partially overlap with OP's value
12911         range.
12913 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
12915         PR target/72805
12916         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12917         Cast builtin function result to __mmask16 instead of __mmask8.
12918         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12919         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12920         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12922 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
12924         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12925         (ASSERT_TRUE_AT): New macro.
12926         (ASSERT_FALSE): Reimplement in terms of...
12927         (ASSERT_FALSE_AT): New macro.
12928         (ASSERT_STREQ_AT): Fix typo in comment.
12930 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
12932         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12933         labels are exhaustive, designate the label with the widest
12934         range to be the default label.
12936 2016-08-04  Andrew Pinski  <apinski@cavium.com>
12938         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12939         (thunderx_tunings): Use thunderx_vector_cost instead of
12940         generic_vector_cost.
12942 2016-08-04  Martin Liska  <mliska@suse.cz>
12944         * gcov.c (main): Fix GNU coding style.
12945         (output_intermediate_file): Likewise.
12946         (process_file): Likewise.
12947         (generate_results): Likewise.
12948         (release_structures): Likewise.
12949         (create_file_names): Likewise.
12950         (find_source): Likewise.
12951         (read_graph_file): Likewise.
12952         (find_exception_blocks): Likewise.
12953         (canonicalize_name): Likewise.
12954         (make_gcov_file_name): Likewise.
12955         (mangle_name): Likewise.
12956         (accumulate_line_counts): Likewise.
12957         (output_branch_count): Likewise.
12958         (read_line): Likewise.
12960 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12962         PR rtl-optimization/71779
12963         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12964         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12965         or if it was truncated.
12967         PR rtl-optimization/70903
12968         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12970 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
12972         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12973         accessing SSA_NAME_PTR_INFO.
12975 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
12977         PR 70677
12978         * common/config/avr/avr-common.c (avr_option_optimization_table)
12979         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12981 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
12983         PR 55181
12984         * config/avr/avr.md: New pattern to work around do_store_flag
12985         generating shift instructions for bit extractions.
12987 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
12989         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12990         BITMAP_ALLOC.
12991         (add_equivalence): Likewise.
12992         (get_value_range): Allocate value range with vrp_value_range_pool.
12993         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12994         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12996 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
12998         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12999         the default for the rs6000 port.
13001 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13003         PR middle-end/71876
13004         * calls.c (special_function_p): Remove special handling of
13005         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
13006         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
13007         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
13009 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
13011         PR middle-end/72778
13012         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
13013         Don't stop on regular insns.
13015 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
13017         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
13018         size to DImode boundary.
13019         (nvptx_propagate): Likewise.
13021 2016-08-03  Alan Modra  <amodra@gmail.com>
13023         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
13024         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
13025         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
13026         from -mefficient-unaligned-vector.  Note that this affects fp too.
13028 2016-08-03  Alan Modra  <amodra@gmail.com>
13030         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
13031         cost more.
13033 2016-08-03  Alan Modra  <amodra@gmail.com>
13035         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
13036         to a reg.  Localize vars.
13038 2016-08-03  Alan Modra  <amodra@gmail.com>
13040         * config/rs6000/rs6000.opt: Remove negatives from help strings
13041         and comments.
13043 2016-08-03  Alan Modra  <amodra@gmail.com>
13045         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
13046         Delete duplicated code.
13048 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
13050         PR middle-end/72778
13051         * lra-spills.c (regno_in_use_p): New.
13052         (lra_final_code_change): Use it.
13054 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
13056         PR rtl-optimization/69847
13057         * lra-int.h (struct lra-reg): Use restore_rtx instead of
13058         restore_regno.
13059         (lra_rtx_hash): New.
13060         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
13061         of restore_regno.
13062         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
13063         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
13064         * lra-spills.c (lra_final_code_change): Don't delete insn when the
13065         next insn is USE with the same reg as the current insn source.
13066         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
13067         of restore_regno.
13068         (lra_constraints_init): Call initiate_invariants.
13069         (lra_constraints_finish): Call finish_invariants.
13070         (struct invariant, invariant_t, invariant_ptr_t): New.
13071         (const_invariant_ptr_t, invariants, invariants_pool): New.
13072         (invariant_table, invariant_hash, invariant_eq_p): New.
13073         (insert_invariant, initiate_invariants, finish_invariants): New.
13074         (clear_invariants, invalid_invariant_regs): New.
13075         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
13076         instead of restore_regno.
13077         (invariant_p, process_invariant_for_inheritance): New.
13078         (inherit_in_ebb): Implement invariant inheritance.
13079         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
13080         (remove_inheritance_pseudos): Implement undoing invariant
13081         inheritance.
13082         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
13083         instead of restore_regno.
13084         * lra-assigns.c (regno_live_length): New.
13085         (reload_pseudo_compare_func): Use regno_live_length.
13086         (assign_by_spills): Use restore_rtx instead of restore_regno.
13087         (lra_assign): Ditto.  Initiate regno_live_length.
13089 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
13091         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
13092         __builtin_aarch64_fmindf.
13094 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
13096         PR tree-optimization/34114
13097         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
13098         information for more control IVs.
13100 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
13102         PR tree-optimization/34114
13103         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
13104         PLUS_EXPR case.  Handle SSA_NAME case.
13106 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
13108         * config/aarch64/aarch64-simd-builtins.def
13109         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
13110         (__builtin_aarch64_fmaxdf): Likewise.
13111         (__builtin_aarch64_smin_nandf): Likewise.
13112         (__builtin_aarch64_smax_nandf): Likewise.
13113         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
13114         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
13115         (<fmaxmin><mode>3): ...this.
13116         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
13117         (vminnm_f64): Likewise.
13118         (vmin_f64): Likewise.
13119         (vmax_f64): Likewise.
13120         * config/aarch64/iterators.md (FMAXMIN): Merge with...
13121         (FMAXMIN_UNS): ...this.
13122         (fmaxmin): Merged with
13123         (fmaxmin_op): ...this...
13124         (maxmin_uns_op): ...in to this.
13126 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13128         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13129         Add support for vec_extract on vector float, vector int, vector
13130         short, and vector char vector types.
13131         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13132         vector float, vector int, vector short, and vector char
13133         optimizations on 64-bit ISA 2.07 systems for both constant and
13134         variable element numbers.
13135         (rs6000_split_vec_extract_var): Likewise.
13136         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
13137         Altivec registers on ISA 2.07 and above.
13138         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
13139         which never was matched due to the split occuring before register
13140         allocation (and the code would not have worked on little endian
13141         systems if it did match).  Allow extracts to go to the Altivec
13142         registers if ISA 2.07 (power8).  Change from using "" around the
13143         C++ code to using {}'s.
13144         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
13145         vec_extracts when the vector is in memory.
13146         (vsx_extract_v4sf_var): New insn to optimize vector float
13147         vec_extracts when the element number is variable on 64-bit ISA
13148         2.07 systems.
13149         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
13150         for 64-bit ISA 2.07 as well as ISA 3.0.
13151         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
13152         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
13153         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
13154         optimize vector int, vector short, and vector char vec_extracts
13155         when the vector is in memory.
13156         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
13157         optimize vector int, vector short, and vector char vec_extracts
13158         when the element number is variable.
13160 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
13162         PR target/71948
13163         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
13164         does not overlap with other symbol flags.
13166 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
13168         * config/aarch64/aarch64.h (aarch64_frame):
13169         Remove padding0 and hardfp_offset.  Add locals_offset,
13170         initial_adjust, callee_adjust, callee_offset and final_adjust.
13171         * config/aarch64/aarch64.c (aarch64_layout_frame):
13172         Remove unused padding0 and hardfp_offset initializations.
13173         Choose frame layout and set frame variables accordingly.
13174         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
13175         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
13176         (aarch64_pop_regs): Likewise.
13177         (aarch64_expand_prologue): Remove all decision code, just emit
13178         prolog according to frame variables.
13179         (aarch64_expand_epilogue): Remove all decision code, just emit
13180         epilog according to frame variables.
13181         (aarch64_initial_elimination_offset): Use offset to local/arg area.
13183 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
13185         PR target/72748
13186         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
13187         fix_debug_reg_uses after changing source register mode to
13188         V1TImode if source register is undefined.
13190 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
13192         PR tree-optimization/71818
13193         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
13194         with non invariant evolutions
13196 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
13198         PR target/72767
13199         * config/avr/avr.md (length) [branch]: Correct insn length
13200         attribute for forward branches.
13202 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
13204         * doc/extend.texi (AVR Built-in Functions): Document
13205         __builtin_avr_nops.
13206         * config/avr/builtins.def (NOPS): New.
13207         * config/avr/avr.c (avr_expand_nops): New static function.
13208         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
13210 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13212         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
13213         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
13214         addresses.
13216 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
13218         * config/aarch64/aarch64.c (vulcan_tunings): Update
13219         vulcan L1 cache_line_size.
13221 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
13223         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
13224         function that takes a vector memory address, a hard register, an
13225         element number and a temporary base register, and recreates an
13226         address that points to the appropriate element within the vector.
13227         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
13228         (rs6000_split_vec_extract_var): Add support for the target of a
13229         vec_extract with variable element number being a scalar memory
13230         location.
13231         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
13232         swappable.
13233         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
13234         vsx_extract_<mode>_load insn with a new insn that optimizes
13235         storing either element to a memory location, using scratch
13236         registers to pick apart the vector and reconstruct the address.
13237         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
13238         (vsx_extract_<mode>_store): Rework alternatives to more correctly
13239         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
13240         store instruction.
13241         (vsx_extract_<mode>_var): Add support for extracting a variable
13242         element number from memory.
13244 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
13246         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
13247         when testing for compares against constants of the form 0xabab.
13249 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
13251         PR tree-optimization/57558
13252         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
13253         function.
13254         (vect_loop_versioning): Support versioning with niter assumptions.
13255         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
13256         (vect_get_loop_niters): New parameter.  Reimplement to support
13257         assumptions in loop niter info.
13258         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
13259         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
13260         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
13261         Support loop versioning for niters.
13262         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
13263         (vect_free_loop_info_assumptions): New function.
13264         (vectorize_loops): Free loop niter info for loops with flag
13265         LOOP_F_ASSUMPTIONS set if vectorization failed.
13266         * tree-vectorizer.h (struct _loop_vec_info): New field
13267         num_iters_assumptions.
13268         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
13269         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
13270         (LOOP_REQUIRES_VERSIONING): New macro.
13271         (vect_free_loop_info_assumptions): New decl.
13273 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
13275         * cfgloop.h (struct loop): New field constraints.
13276         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
13277         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
13278         functions.
13279         * cfgloop.c (alloc_loop): Initialize new field.
13280         * cfgloopmanip.c (copy_loop_info): Copy constraints.
13281         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
13282         Adjust niter analysis wrto loop constraints.
13283         * doc/loop.texi (@node Number of iterations): Add description for loop
13284         constraints.
13286 2016-07-29  Marek Polacek  <polacek@redhat.com>
13288         PR c/7652
13289         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
13290         (ix86_expand_round_builtin): Likewise.
13292 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
13293             Georg-Johann Lay  <avr@gjlay.de>
13295         PR rtl-optimization/71976
13296         * combine.c (get_last_value): Return 0 if the argument for which
13297         the function is called has a wider mode than the recorded value.
13299 2016-07-29  Marek Polacek  <polacek@redhat.com>
13301         PR c/7652
13302         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
13303         (altivec_expand_st_builtin): Likewise.
13305 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
13307         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
13308         introduced in r238381.
13310 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
13312         PR middle-end/68217
13313         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
13314         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
13316 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
13318         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
13319         New declaration.
13320         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13321         Add support for vec_extract of vector double or vector long having
13322         a variable element number on 64-bit ISA 2.07 systems or newer.
13323         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
13324         Likewise.
13325         (rs6000_split_vec_extract_var): New function to split a
13326         vec_extract built-in function with variable element number.
13327         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
13328         swappable.
13329         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
13330         (UNSPEC_VSX_EXTRACT): Likewise.
13331         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
13332         direct move instructions to be generated on 64-bit ISA 2.07
13333         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
13334         instruction.
13335         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
13336         arguments for vec_extract variable element.
13337         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
13338         vec_extract with variable element on V2DFmode and V2DImode
13339         vectors.
13340         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
13341         -mupper-regs-df requirement, since it isn't needed.
13342         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
13343         do direct moves on 64-bit systems, which allows optimization of
13344         vec_extract on 64-bit ISA 2.07 systems and newer.
13346 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
13347 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
13349          * config/aarch64/aarch64.md
13350         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
13351         statement and type.
13352         (<optab>qihi2_aarch64): Likewise, and split into two.
13353         (extendqihi2_aarch64): New.
13354         (zero_extendqihi2_aarch64): New.
13355         * config/aarch64/iterators.md (ldrxt): Remove.
13356         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
13357         uxtb/uxth.
13359 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
13361         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
13363 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
13365         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
13366         (aarch64_push_reg): New function to push 1 or 2 registers.
13367         (aarch64_pop_reg): New function to pop 1 or 2 registers.
13368         (aarch64_expand_prologue): Use aarch64_push_regs.
13369         (aarch64_expand_epilogue): Use aarch64_pop_regs.
13371 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
13373         PR tree-optimization/71734
13374         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13375         attribute instead of REF_LOOP and use it.
13376         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
13377         set it for Loops having non-zero safelen attribute.
13378         (ref_indep_loop_p): Pass zero as initial value for safelen.
13380 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
13382         PR middle-end/72657
13383         PR target/72683
13384         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13385         call using chkp_gimple_call_builtin_p.
13386         (chkp_copy_bounds_for_assign): Likewise.
13388 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13390         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13391         * config/arm/arm-protos.h (struct tune_params): Likewise.
13392         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13393         (cortex_a9_sched_adjust_cost): Likewise.
13394         (fa726te_sched_adjust_cost): Likewise.
13395         (arm_adjust_cost): Likewise.
13396         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13397         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13398         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13399         * config/i386/i386.c (ix86_adjust_cost): Likewise.
13400         * config/ia64/ia64.c: Likewise.
13401         * config/m68k/m68k.c: Likewise.
13402         * config/mep/mep.c (mep_adjust_cost): Likewise.
13403         * config/microblaze/microblaze.c (microblaze_adjust_cost):
13404         * Likewise.
13405         * config/mips/mips.c (mips_adjust_cost): Likewise.
13406         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13407         * Likewise.
13408         * config/pa/pa.c (pa_adjust_cost): Likewise.
13409         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13410         (rs6000_debug_adjust_cost): Likewise.
13411         * config/sh/sh.c (sh_adjust_cost): Likewise.
13412         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13413         (hypersparc_adjust_cost): Likewise.
13414         (sparc_adjust_cost): Likewise.
13415         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13416         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13417         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13418         * Likewise.
13419         * config/visium/visium.c (visium_adjust_cost): Likewise.
13420         * doc/tm.texi: Regenerate.
13421         * haifa-sched.c (dep_cost_1): Adjust.
13422         * target.def: Merge adjust_cost and adjust_cost_2.
13424 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13426         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13428 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13430         * store-motion.c (struct st_expr): Make pattern_regs a vector.
13431         (extract_mentioned_regs): Append to a vector instead of
13432         returning a rtx_expr_list.
13433         (st_expr_entry): Adjust.
13434         (free_st_expr_entry): Likewise.
13435         (store_ops_ok): Likewise.
13436         (store_killed_in_insn): Likewise.
13437         (find_moveable_store): Likewise.
13439 2016-07-28  Martin Liska  <mliska@suse.cz>
13441         PR gcov-profile/68025
13442         * tree-profile.c (tree_profiling): Respect
13443         no_profile_instrument_function attribute.
13444         * doc/extend.texi: Document no_profile_instrument_function
13445         attribute.
13447 2016-07-28  Martin Liska  <mliska@suse.cz>
13449         PR rtl-optimization/70944
13450         * combine.c (make_compound_operation):
13451         Do not allow make_compound_operation for vector mode
13453 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
13455         PR middle-end/71994
13456         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13457          before calling get_ops.
13459 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13461         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13462         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13463         (BITS_PER_UNIT_LOG): Remove.
13464         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13465         * expr.c (expand_assignment): Likewise.
13466         * stor-layout.c (initialize_sizetypes): Likewise.
13468 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13470         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13471         signature of rs6000_expand_vector_extract so that the element
13472         number is a RTX instead of a constant integer.
13473         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13474         Likewise.
13475         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13476         (altivec_expand_vec_ext_builtin): Likewise.
13477         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13478         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13479         MFVSRLD instruction.
13481 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
13483         * input.c (get_pure_location): Move here from tree.c.
13484         (make_location): Likewise.  Add header comment.
13485         (selftest::test_accessing_ordinary_linemaps): Verify
13486         pure_location_p, make_location, get_location_from_adhoc_loc and
13487         get_range_from_loc.
13488         * input.h (get_pure_location): Move declaration here from tree.h.
13489         (get_finish): Likewise for inline function.
13490         (make_location): Likewise for declaration.
13491         * tree.c (get_pure_location): Move to input.c.
13492         (make_location): Likewise.
13493         * tree.h (get_pure_location): Move declaration to tree.h.
13494         (get_finish): Likewise for inline function.
13495         (make_location): Likewise for declaration.
13497 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13499         PR middle-end/71078
13500         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13502 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
13504         * system.h (STATIC_ASSERT): Use static_assert if building
13505         with C++11 onwards.
13507 2016-07-27  Richard Biener  <rguenther@suse.de>
13509         PR tree-optimization/72517
13510         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13511         Revert change to not compute read-read dependences.
13513 2016-07-27  Richard Biener  <rguenther@suse.de>
13515         * predict.c (set_even_probabilities): Make nedges unsigned.
13517 2016-07-27  Martin Liska  <mliska@suse.cz>
13519         * predict.c (set_even_probabilities): Handle unlikely edges.
13520         (combine_predictions_for_bb): Likewise.
13522 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13524         PR target/71869
13525         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13526         __float128 support when we don't have hardware support, so that
13527         the IEEE built-in functions like isgreater, first call __unordkf3
13528         to make sure neither operand is a NaN, and if both operands are
13529         ordered, do the normal comparison.
13531 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
13533         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13534         name.
13535         (extract_code_and_val_from_cond_with_ops): Verify that name is
13536         either cond_op0 or cond_op1.
13538 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
13540         PR tree-optimization/18046
13541         * genmodes.c (emit_mode_size_inline): Emit an assert that
13542         verifies that mode is a valid array index.
13543         (emit_mode_nuinits_inline): Likewise.
13544         (emit_mode_inner_inline): Likewise.
13545         (emit_mode_unit_size_inline): Likewise.
13546         (emit_mode_unit_precision_inline): Likewise.
13547         * tree-vrp.c: Include params.h.
13548         (find_switch_asserts): Register edge assertions for the default
13549         label which correspond to the anti-ranges of each case label.
13550         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13551         * doc/invoke.texi: Document it.
13553 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13555         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13556         and unnecessary call to gimple_bb.
13558 2016-07-26  Richard Biener  <rguenther@suse.de>
13560         PR rtl-optimization/71984
13561         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13562         for VOIDmode.
13564 2016-07-26  Richard Biener  <rguenther@suse.de>
13566         PR middle-end/72517
13567         * expmed.c (extract_bit_field_1): Constrain the vector mode
13568         with element size matching the extraction mode size when
13569         choosing a better vector mode to do the extraction from.
13571 2016-07-26  Richard Biener  <rguenther@suse.de>
13572             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13574         PR middle-end/70920
13575         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13576         pattern.
13578 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13580         * tree-ssa-structalias.c (struct scc_info): Change types of
13581         members to auto_sbitmap and auto_vec.
13582         (scc_info::scc_info): New constructor.
13583         (scc_info::~scc_info): New destructor.
13584         (init_scc_info): Remove.
13585         (free_scc_info): Remove.
13586         (find_indirect_cycles): Adjust.
13587         (perform_var_substitution): Likewise.
13588         (free_var_substitution_info): Likewise.
13590 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13592         * tree-outof-ssa.c (struct elim_graph): Change type of members
13593         to auto_vec and auto_sbitmap.
13594         (elim_graph::elim_graph): New constructor.
13595         (delete_elim_graph): Remove.
13596         (expand_phi_nodes): Adjust.
13598 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13600         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13601         (new_elim_graph): Adjust.
13602         (clear_elim_graph): Likewise.
13603         (delete_elim_graph): Likewise.
13604         (elim_graph_size): Likewise.
13605         (elim_graph_add_node): Likewise.
13606         (elim_graph_add_edge): Likewise.
13607         (elim_graph_remove_succ_edge): Likewise.
13608         (eliminate_name): Likewise.
13609         (eliminate_build): Likewise.
13610         (elim_forward): Likewise.
13611         (elim_unvisited_predecessor): Likewise.
13612         (elim_backward): Likewise.
13613         (elim_create): Likewise.
13614         (eliminate_phi): Likewise.
13615         (expand_phi_nodes): Likewise.
13617 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13619         * bt-load.c (compute_out): Use auto_sbitmap class.
13620         (link_btr_uses): Likewise.
13621         * cfganal.c (mark_dfs_back_edges): Likewise.
13622         (post_order_compute): Likewise.
13623         (inverted_post_order_compute): Likewise.
13624         (pre_and_rev_post_order_compute_fn): Likewise.
13625         (single_pred_before_succ_order): Likewise.
13626         * cfgexpand.c (pass_expand::execute): Likewise.
13627         * cfgloop.c (verify_loop_structure): Likewise.
13628         * cfgloopmanip.c (fix_bb_placements): Likewise.
13629         (remove_path): Likewise.
13630         (update_dominators_in_loop): Likewise.
13631         * cfgrtl.c (break_superblocks): Likewise.
13632         * ddg.c (check_sccs): Likewise.
13633         (create_ddg_all_sccs): Likewise.
13634         * df-core.c (df_worklist_dataflow): Likewise.
13635         * dse.c (dse_step3): Likewise.
13636         * except.c (eh_region_outermost): Likewise.
13637         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13638         * gcse.c (prune_expressions): Likewise.
13639         (prune_insertions_deletions): Likewise.
13640         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13641         * graph.c (draw_cfg_nodes_no_loops): Likewise.
13642         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13643         * lcm.c (compute_earliest): Likewise.
13644         (compute_farthest): Likewise.
13645         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13646         (unroll_loop_runtime_iterations): Likewise.
13647         (unroll_loop_stupid): Likewise.
13648         * lower-subreg.c (decompose_multiword_subregs): Likewise.
13649         * lra-lives.c: Likewise.
13650         * lra.c (lra): Likewise.
13651         * modulo-sched.c (schedule_reg_moves): Likewise.
13652         (optimize_sc): Likewise.
13653         (get_sched_window): Likewise.
13654         (sms_schedule_by_order): Likewise.
13655         (check_nodes_order): Likewise.
13656         (order_nodes_of_sccs): Likewise.
13657         (order_nodes_in_scc): Likewise.
13658         * recog.c (split_all_insns): Likewise.
13659         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13660         * reload1.c (reload): Likewise.
13661         * sched-rgn.c (haifa_find_rgns): Likewise.
13662         (split_edges): Likewise.
13663         (compute_trg_info): Likewise.
13664         * sel-sched.c (init_seqno): Likewise.
13665         * store-motion.c (remove_reachable_equiv_notes): Likewise.
13666         * tree-into-ssa.c (update_ssa): Likewise.
13667         * tree-ssa-live.c (live_worklist): Likewise.
13668         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13669         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13670         * Likewise.
13671         (try_peel_loop): Likewise.
13672         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13673         * Likewise.
13674         * tree-ssa-pre.c (compute_antic): Likewise.
13675         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13676         * tree-stdarg.c (reachable_at_most_once): Likewise.
13677         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13678         * var-tracking.c (vt_find_locations): Likewise.
13680 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13682         * sbitmap.h (auto_sbitmap): New class.
13684 2016-07-26  Alan Modra  <amodra@gmail.com>
13686         PR target/72103
13687         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13688         sri->t_icode.
13690 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
13692         * input.c (selftest::temp_source_file::temp_source_file): Fix
13693         missing "%s" in fprintf.
13695 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
13697         PR middle-end/71732
13698         * cselib.c (cselib_process_insn): Invalidate argument slots for
13699         const/pure calls.
13701 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13703         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13704         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13705         vmulxh_lane_f16, vmulxh_laneq_f16): New.
13707 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13709         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13710         * config/aarch64/aarch64.md (fma, fnma): Support HF.
13711         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13713 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13715         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13716         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13717         New.
13718         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13719         (add<mode>3): Likewise.
13720         (sub<mode>3): Likewise.
13721         (mul<mode>3): Likewise.
13722         (div<mode>3): Likewise.
13723         (*div<mode>3): Likewise.
13724         (<fmaxmin><mode>3): Extend to HF.
13725         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13726         (fabd<mode>3): Likewise.
13727         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13728         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13729         (aarch64_fmulx<mode>): Likewise.
13730         (aarch64_fac<optab><mode>): Likewise.
13731         (aarch64_frecps<mode>): Likewise.
13732         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13733         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13734         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13735         (VSDQ_HSDI): Support HI.
13736         (fcvt_target, FCVT_TARGET): Likewise.
13737         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13738         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13739         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13740         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13741         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13742         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13743         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13744         vrsqrtsh_f16): New.
13746 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13748         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13749         * config/aarch64/aarch64-builtins.c (hi_UP): New.
13750         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13751         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13752         mode.
13753         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13754         (aarch64_cm<optab><mode>): Likewise.
13755         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13756         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13757         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13758         (sqrt<mode>2): Likewise.
13759         (*sqrt<mode>2): Likewise.
13760         (abs<mode>2): Likewise.
13761         (<optab><mode>hf2): New pattern for HF mode.
13762         (<optab>hihf2): Likewise.
13763         * config/aarch64/arm_neon.h: Include arm_fp16.h.
13764         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13765         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13766         Support HF mode.
13767         * config/aarch64/arm_fp16.h: New file.
13768         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13769         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13770         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13771         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13772         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13773         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13774         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13775         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13776         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13777         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13778         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13779         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13780         vsqrth_f16): New.
13782 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13784         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13785         reduc_smin_scal_): Use VDQIF_F16.
13786         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13787         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13788         Use VHSDF.
13789         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13790         * config/aarch64/iterators.md (VDQIF_F16): New.
13791         (vp): Support HF modes.
13792         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13793         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13795 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13797         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13798         "*aarch64_mulx_elt_from_dup<mode>".
13799         (*aarch64_mul3_elt<mode>): Update schedule type.
13800         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13801         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13802         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13803         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13804         (f, fp): Support HF modes.
13805         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13806         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13807         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13808         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13809         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13810         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13812 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13814         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13815         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13816         modes.
13817         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13818         vfmsq_f16): New.
13820 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13822         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13823         * config/aarch64/aarch64-simd.md
13824         (aarch64_rsqrts<mode>): Extend to HF modes.
13825         (fabd<mode>3): Likewise.
13826         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13827         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13828         (aarch64_<maxmin_uns>p<mode>): Likewise.
13829         (<su><maxmin><mode>3): Likewise.
13830         (<maxmin_uns><mode>3): Likewise.
13831         (<fmaxmin><mode>3): Likewise.
13832         (aarch64_faddp<mode>): Likewise.
13833         (aarch64_fmulx<mode>): Likewise.
13834         (aarch64_frecps<mode>): Likewise.
13835         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13836         (add<mode>3): Extend to HF modes.
13837         (sub<mode>3): Likewise.
13838         (mul<mode>3): Likewise.
13839         (div<mode>3): Likewise.
13840         (*div<mode>3): Likewise.
13841         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13842         HF, V4HF and V8HF.
13843         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13844         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13845         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13846         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13847         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13848         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13849         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13850         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13851         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13852         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13853         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13854         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13855         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13856         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13858 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13860         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13861         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13862         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13863         (neg<mode>2): Likewise.
13864         (abs<mode>2): Likewise.
13865         (<frint_pattern><mode>2): Likewise.
13866         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13867         (<optab><VDQF:mode><fcvt_target>2): Likewise.
13868         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13869         (ftrunc<VDQF:mode>2): Likewise.
13870         (<optab><fcvt_target><VDQF:mode>2): Likewise.
13871         (sqrt<mode>2): Likewise.
13872         (*sqrt<mode>2): Likewise.
13873         (aarch64_frecpe<mode>): Likewise.
13874         (aarch64_cm<optab><mode>): Likewise.
13875         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13876         HF, V4HF and V8HF.
13877         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13878         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13879         (stype): New.
13880         * config/aarch64/arm_neon.h (vdup_n_f16): New.
13881         (vdupq_n_f16): Likewise.
13882         (vld1_dup_f16): Use vdup_n_f16.
13883         (vld1q_dup_f16): Use vdupq_n_f16.
13884         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13885         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13886         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13887         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13888         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13889         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13890         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13891         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13892         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13893         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13894         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13895         vsqrt_f16, vsqrtq_f16): New.
13897 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13899         * config/aarch64/aarch64-simd.md
13900         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13901         (aarch64_ext<mode>): Likewise.
13902         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13903         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13904         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13905         and V8HFmode.
13906         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13907         float16x8_t.
13908         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13909         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13910         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13911         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13912         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13913         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13914         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13915         New.
13916         (vmov_n_f16): Reimplement using vdup_n_f16.
13917         (vmovq_n_f16): Reimplement using vdupq_n_f16..
13919 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13921         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13922         "frame_related_p".  Generate CFA annotation when it's necessary.
13923         (aarch64_expand_prologue): Use aarch64_add_constant.
13924         (aarch64_expand_epilogue): Likewise.
13925         (aarch64_output_mi_thunk): Pass "false" when calling
13926         aarch64_add_constant.
13928 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13930         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13931         sequences.
13933 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
13935         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13936         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13937         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13938         (aarch64_build_constant): Delete.
13940 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
13942         Revert
13943         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
13945         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13946         flag_toplevel_reorder.
13948 2016-07-25  Richard Biener  <rguenther@suse.de>
13950         * cgraph.c (cgraph_node::verify_node): Compare against builtin
13951         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13952         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13953         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13954         (streamer_get_builtin_tree): Likewise.
13955         (streamer_write_builtin): Likewise.
13956         * lto-streamer.h (LTO_builtin_decl): Remove.
13957         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13958         (lto_input_scc): Remove LTO_builtin_decl handling.
13959         (lto_input_tree_1): Liekwise.
13960         * lto-streamer-out.c (lto_output_tree_1): Remove special
13961         handling of builtins.
13962         (DFS::DFS): Likewise.
13963         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13964         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13965         assert.
13966         (streamer_write_builtin): Remove.
13968 2016-07-25  Martin Liska  <mliska@suse.cz>
13970         * lto-cgraph.c (input_symtab): Don't call get_working_sets
13971         if flag_auto_profile is set to true.
13973 2016-07-25  Martin Liska  <mliska@suse.cz>
13975         PR gcov-profile/71868
13976         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13977         have a function with multiple latches, count them all.
13979 2016-07-25  Martin Liska  <mliska@suse.cz>
13981         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13983 2016-07-25  Martin Liska  <mliska@suse.cz>
13985         PR tree-optimization/71987
13986         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13987         just for SSA_NAMEs. Fix GNU coding style.
13989 2016-07-25  Martin Liska  <mliska@suse.cz>
13991         PR gcov-profile/64874
13992         * gcov-io.h: Update command about file format.
13993         * gcov-iov.c (main): Adapt the numbering scheme.
13995 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13997         PR middle-end/66726
13998         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13999         whose result is used in PHI.
14000         (final_range_test_p): Likewise.
14001         (maybe_optimize_range_tests): Likewise.
14003 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
14005         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14006         Reformat two multi-line strings.
14008 2016-07-22  Martin Sebor  <msebor@redhat.com>
14010         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
14012 2016-07-22  Martin Sebor  <msebor@redhat.com>
14014         PR c/71560
14015         * doc/extend.texi (Compound Literals): Correct and clarify.
14016         (Cast to Union): Same.
14018 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14020         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14021         comments to explain why certain error messages make mention of
14022         undocumented options.
14023         (rs6000_invalid_builtin): Change error messages to replace mention
14024         of undocumented options with mention of the -mcpu=power9 option
14025         that enables those undocumented options.
14026         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
14027         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
14028         definition of this macro to correct an existing error.
14029         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
14030         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
14031         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
14032         descriptions of built-in functions so that they depend on
14033         -mcpu=power9 instead of on the corresponding undocumented flags.
14034         * doc/invoke.texi (Option Summary):  Remove all mention of newly
14035         undocumented flags.
14036         (IBM RS/6000 and PowerPC Options): Likewise.
14037         * doc/md.texi (Constraints for Particuliar Machines): Remove all
14038         mention of newly undocumented flags.
14040 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
14042         * ipa-cp.c (determine_versionability): Do not create constprop clones,
14043         when target_clones attribute is set.
14045 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
14047         * common.opt (funsafe-loop-optimizations): Mark ignore.
14048         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
14049         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
14050         related code.
14051         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
14052         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
14054 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
14056         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14057         Parameter.
14058         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14059         Parameter.
14060         (number_of_iterations_exit): Warn missed loop optimization for
14061         possible infinite loops.
14063 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
14065         PR target/71216
14066         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
14067         when to emit a ".machine" pseudo-op.
14069 2016-07-22  Martin Liska  <mliska@suse.cz>
14071         PR gcov-profile/69028
14072         PR gcov-profile/62047
14073         * coverage.c (coverage_compute_lineno_checksum): Do not
14074         calculate checksum for fns w/o xloc.file.
14075         (coverage_compute_profile_id): Likewise.
14077 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
14079         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
14080         (avr_secondary_reload): ...and implementation.
14081         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
14082         * config/avr/avr.md (reload_in<mode>): Remove insns.
14083         (adjust_len) [lpm]: Remove insn attribute value.
14084         * config/avr/predicates.md (flash_operand): Remove insn predicate.
14086 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14088         PR middle-end/71876
14089         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
14090         attribute.
14091         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
14092         * calls.c (special_function_p): Remove the special handling of the
14093         "__builtin_" prefix.
14095 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14097         PR middle-end/71876
14098         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
14099         if STMT may be an alloca call.
14100         (gimple_alloca_call_p, alloca_call_p): Return only true for the
14101         builtin alloca call.
14102         * calls.h (gimple_maybe_alloca_call_p): New function.
14103         * tree-inline.c (inline_forbidden_p_stmt): Use
14104         gimple_maybe_alloca_call_p here.
14106 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
14108         * spellcheck-tree.c (best_macro_match::best_macro_match):
14109         Explictly specify the template arguments when invoking the base
14110         class constructor, to help older C++ compilers.
14112 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
14114         PR sanitizer/71953
14115         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
14116         before builtin_decl_implicit.
14118 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
14120         * optabs.c (emit_condiitonal_move): Short circuit for identical
14121         sources.
14123 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
14125         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
14126         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
14127         (noce_conversion_profitable_p): New.
14128         (noce_try_store_flag_constants): Use it.
14129         (noce_try_addcc): Likewise.
14130         (noce_try_store_flag_mask): Likewise.
14131         (noce_try_cmove): Likewise.
14132         (noce_try_cmove_arith): Likewise.
14133         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
14134         overwriting it.
14135         (noce_convert_multiple_sets): Move cost model to here, from...
14136         (bb_ok_for_noce_convert_multiple_sets) ...here.
14137         (noce_process_if_block): Update calls for above changes.
14138         (noce_find_if_block): Record new noce_if_info parameters.
14140 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
14142         * target.def (max_noce_ifcvt_seq_cost): New.
14143         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
14144         * doc/tm.texi: Regenerate.
14145         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
14146         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
14147         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
14148         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
14149         * doc/invoke.texi: Document new params.
14151 2016-07-21  Richard Biener  <rguenther@suse.de>
14153         PR tree-optimization/71947
14154         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
14155         ranges have useful limit_vr information.
14157 2016-07-21  Richard Biener  <rguenther@suse.de>
14159         * function-tests.c (build_trivial_generic_function): Set
14160         BLOCK_SUPERCONTEXT of DECL_INITIAL.
14161         * omp-low.c (create_omp_child_function): Likewise.
14162         (grid_expand_target_grid_body): Likewise.
14163         * cgraphunit.c (init_lowered_empty_function): Likewise.
14164         (cgraph_node::expand_thunk): Likewise.
14165         * tree-parloops.c (create_loop_fn): Likewise.
14166         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
14168 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14170         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
14171         in comment.
14173 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
14175         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
14176         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
14177         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
14178         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
14179         values for insn attribute.
14180         * config/avr/avr.c (avr_out_insert_notbit): New function.
14181         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
14182         ADJUST_LEN_INSV_NOTBIT_0/_7.
14183         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
14185 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
14187         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
14188         (chrec_convert_1, chrec_convert): Ditto.
14189         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
14190         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
14191         * tree-vrp.c (adjust_range_with_scev): Ditto.
14192         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
14193         (scev_var_range_cant_overflow): New function.
14194         (scev_probably_wraps_p): New parameter.  Call above function.
14195         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
14197 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
14199         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
14200         by removing computation of may_be_zero.
14202 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
14204         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
14206 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
14208         Improving concepts performance and diagnostics.
14209         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
14210         for constraint satisfaction and subsumption.
14211         * timevar.h (auto_timevar): New constructor that matches the push/pop
14212         pattern of usage in pt.c.
14214 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
14216         * hwint.h (HOST_WIDE_INT_0): New define.
14217         (HOST_WIDE_INT_0U): Ditto.
14218         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
14219         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
14220         * simplify-rtx.c: Ditto.
14221         * tree-object-size.c: Ditto.
14223 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14225         * config/s390/s390.c (s390_encode_section_info): Remove mode size
14226         check.
14228 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
14230         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
14231         * combine.c: Use HOST_WIDE_INT_M1U instead of
14232         ~(unsigned HOST_WIDE_INT) 0.
14233         * double-int.h: Ditto.
14234         * dse.c: Ditto.
14235         * dwarf2asm.c:Ditto.
14236         * expmed.c: Ditto.
14237         * genmodes.c: Ditto.
14238         * match.pd: Ditto.
14239         * read-rtl.c: Ditto.
14240         * tree-ssa-loop-ivopts.c: Ditto.
14241         * tree-ssa-loop-prefetch.c: Ditto.
14242         * tree-vect-generic.c: Ditto.
14243         * tree-vect-patterns.c: Ditto.
14244         * tree.c: Ditto.
14246 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
14248         * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
14249         constant addresses outside [0,0xc0] into a register.
14250         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
14251         cases where the base address register is unused after.
14252         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
14253         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
14254         (avr_out_store_psi_reg_disp_tiny): Same.
14256 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
14258         Implement attribute progmem on reduced Tiny cores by adding
14259         flash offset 0x4000 to respective symbols.
14261         PR target/71948
14262         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
14263         documentation how it works on reduced Tiny cores.
14264         (AVR Named Address Spaces): No support for reduced Tiny.
14265         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
14266         (avr_address_tiny_pm_p): New static function.
14267         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
14268         if the address is in progmem.
14269         (avr_assemble_integer): Same.
14270         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
14271         for symbol_ref in progmem.
14272         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
14273         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
14274         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
14276 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
14278         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
14279         * configure: Regenerate.
14280         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
14281         (USE_THIN_ARCHIVES): New variable.
14282         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
14283         this archive as a thin archive.
14285 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
14287         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
14288         same location as last time, don't skip if we have fix-it hints.
14289         Clarify the skipping logic by converting it from one "if" clause
14290         to repeated "if" clauses.
14291         * spellcheck-tree.c: Include "cpplib.h".
14292         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
14293         (best_macro_match::best_macro_match): New constructor.
14294         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
14295         Move here from c/c-decl.c.
14296         (class best_macro_match): Move here from c/c-decl.c, converting
14297         from a typedef to a subclass, gaining a ctor.
14299 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
14301         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
14302         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
14303         define...
14304         (avr_addr_space_diagnose_usage): ...and implementation.
14305         (avr_addr_space_supported_p): New function.
14306         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
14307         report bad address space usage if that space is supported.
14308         (avr_insert_attributes): Same.  No more complain about unsupported
14309         address spaces.
14310         * config/avr/avr-c.c (tm_p.h): Include it.
14311         (avr_cpu_cpp_builtins): Only define addr-space related built-in
14312         macro if avr_addr_space_supported_p.
14314 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
14316         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
14317         flag_toplevel_reorder.
14319 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
14321         * gcc-rich-location.c
14322         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
14323         a const char *.
14324         * gcc-rich-location.h
14325         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
14327 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
14329         * target.def (addr_space): Add new diagnose_usage to hook vector.
14330         * targhooks.c (default_addr_space_diagnose_usage): Add default
14331         implementation and...
14332         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
14333         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
14334         is some address space, call targetm.addr_space.diagnose_usage.
14335         * doc/tm.texi.in (Named Address Spaces): Add anchor for
14336         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
14337         * doc/tm.texi: Regenerate.
14339 2016-07-20  Martin Liska  <mliska@suse.cz>
14341         PR middle-end/71898
14342         * graphite-isl-ast-to-gimple.c (later_of_the_two):
14343         Properly handly PHI stmts.
14345 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
14347         PR tree-optimization/71503
14348         PR tree-optimization/71683
14349         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
14350         and break.
14352 2016-07-20  Martin Liska  <mliska@suse.cz>
14354         * doc/invoke.texi (-fipa-ra): Document when the option is
14355         disabled. Fix a typo.
14357 2016-07-20  Martin Liska  <mliska@suse.cz>
14359         * Makefile.in: Include fibonacci_heap.c
14360         * fibonacci_heap.c: New file.
14361         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
14362         (fibonacci_heap::union_with): Fix deletion of the second heap.
14363         * selftest-run-tests.c (selftest::run_tests): Incorporate
14364         fibonacci heap tests.
14365         * selftest.h: Declare fibonacci_heap_c_tests.
14367 2016-07-20  Martin Liska  <mliska@suse.cz>
14369         * selftest-run-tests.c (selftest::run_tests): New function.
14370         * selftest.h (sreal_c_tests): Declare.
14371         * sreal.c (sreal_verify_basics): New function.
14372         (verify_aritmetics): Likewise.
14373         (sreal_verify_arithmetics): Likewise.
14374         (verify_shifting): Likewise.
14375         (sreal_verify_shifting): Likewise.
14376         (void sreal_c_tests): Likewise.
14378 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
14380         PR rtl-optimization/71916
14381         * cfgrtl.c (contains_no_active_insn_p): Return false also for
14382         bb which have a single succ fake edge.
14384 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
14386         PR debug/71855
14387         * dwarf2out.c (gen_subprogram_die): Only call
14388         gen_unspecified_parameters_die while dumping early dwarf.
14390 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
14392         PR middle-end/71874
14393         * gimple-fold.c (fold_builtin_memory_op): Use
14394         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14396 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
14398         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14399         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14400         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14401         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14402         * combine.c: Ditto.
14403         * cse.c: Ditto.
14404         * dojump.c: Ditto.
14405         * double-int.c: Ditto.
14406         * dse.c: Ditto.
14407         * dwarf2out.c: Ditto.
14408         * expmed.c: Ditto.
14409         * expr.c: Ditto.
14410         * fold-const.c: Ditto.
14411         * function.c: Ditto.
14412         * fwprop.c: Ditto.
14413         * genmodes.c: Ditto.
14414         * hwint.c: Ditto.
14415         * hwint.h: Ditto.
14416         * ifcvt.c: Ditto.
14417         * loop-doloop.c: Ditto.
14418         * loop-invariant.c: Ditto.
14419         * loop-iv.c: Ditto.
14420         * match.pd: Ditto.
14421         * optabs.c: Ditto.
14422         * real.c: Ditto.
14423         * reload.c: Ditto.
14424         * rtlanal.c: Ditto.
14425         * simplify-rtx.c: Ditto.
14426         * stor-layout.c: Ditto.
14427         * toplev.c: Ditto.
14428         * tree-ssa-loop-ivopts.c: Ditto.
14429         * tree-vect-generic.c: Ditto.
14430         * tree-vect-patterns.c: Ditto.
14431         * tree.c: Ditto.
14432         * tree.h: Ditto.
14433         * ubsan.c: Ditto.
14434         * varasm.c: Ditto.
14435         * wide-int-print.cc: Ditto.
14436         * wide-int.cc: Ditto.
14437         * wide-int.h: Ditto.
14439 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
14441         * selftest.c (selftest::assert_streq): Handle NULL values of
14442         val_actual and val_expected.
14444 2016-07-19  Martin Jambor  <mjambor@suse.cz>
14446         PR fortran/71688
14447         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14448         rather than cgraph_create_node to get a call graph node.
14450 2016-07-19  Richard Biener  <rguenther@suse.de>
14452         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14453         handle all tcc_constant bases and valueize SSA names.
14454         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14455         tcc_constant bases.
14457 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
14459         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14460         the flags of the exit block and bb2, not just the entry block.
14462 2016-07-19  Richard Biener  <rguenther@suse.de>
14464         PR tree-optimization/71901
14465         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14466         align member, group stuff with the bitfield.
14467         (vn_ref_op_align_unit): New inline.
14468         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14469         record element alignment and operand 3 unchanged.
14470         (ao_ref_init_from_vn_reference): Adjust.
14471         (valueize_refs_1): Likewise.
14472         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14474 2016-07-19  Richard Biener  <rguenther@suse.de>
14476         PR tree-optimization/71908
14477         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14478         symbolic constants in a more reliable way.
14480 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
14482         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14483         comment.
14484         (vect_update_inits_of_drs): Likewise.
14485         (vect_create_cond_for_alias_checks): Likewise.
14486         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14488 2016-07-19  Richard Biener  <rguenther@suse.de>
14490         PR lto/71907
14491         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14492         with an abstract origin that is not an inlined function outer
14493         scope add a self-reference as abstract origin.
14494         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14496 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14498         PR target/71493
14499         * config/rs6000/rs6000.c (rs6000_function_value): Fix
14500         unintentional System V.4 structure return breakage for structures
14501         with a single floating point element.
14503 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
14505         PR tree-optimization/71734
14506         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14507         contains REF, use it to check safelen, assume that safelen value
14508         must be greater 1, fix style.
14509         (ref_indep_loop_p_2): Add REF_LOOP argument.
14510         (ref_indep_loop_p): Pass LOOP as additional argument to
14511         ref_indep_loop_p_2.
14513 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14515         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14516         allocation in the prologue.
14517         * explow.c (get_dynamic_stack_base): New function to return an address
14518         expression for the dynamic stack base.
14519         (get_dynamic_stack_size): New function to do the required dynamic stack
14520         space size calculations.
14521         (allocate_dynamic_stack_space): Use new functions.
14522         (align_dynamic_address): Move some code from
14523         allocate_dynamic_stack_space to new function.
14524         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14526 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14528         * config/s390/s390.c (s390_encode_section_info): Always set
14529         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14530         found.
14532 2016-07-18  Richard Biener  <rguenther@suse.de>
14534         PR tree-optimization/71893
14535         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14536         for sizetype cast added by array_ref_element_size.
14537         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14539 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
14541         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14542         register parameters.  Remove code to initialize argument pointer
14543         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
14544         using a pc-relative branch.  Cleanup conditional code.
14545         * config/pa/pa.md (call_mcount): New expander.
14546         (call_mcount_nonpic): New insn.
14547         (call_mcount_pic): New insn and split.
14548         (call_mcount_pic_post_reload): New insn.
14549         (call_mcount_64bit): New insn and split.
14550         (call_mcount_64bit_post_reload): New insn.
14552 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
14554         * config/avr/predicates.md (const_m255_to_m1_operand): New.
14555         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14556         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14557         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14558         (*usum_widenqihi3, *udiff_widenqihi3)
14559         (*addhi3_zero_extend.const): New combiner insns.
14560         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14561         just 1 bit is affected.
14562         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14563         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14565 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
14567         * omp-low.c (lower_omp_target): Mark data clauses with
14568         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14569         zero-length subarrays.
14571 2016-07-15  Richard Biener  <rguenther@suse.de>
14573         PR tree-optimization/71881
14574         * tree-loop-distribution.c (destroy_loop): Remove blocks in
14575         reverse DOM order to make debug temp generation happy.
14577 2016-07-15  Richard Biener  <rguenther@suse.de>
14579         PR tree-optimization/71887
14580         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14581         verify it is not zero for division / modulo handling.
14582         (value_replacement): Adjust.
14584 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
14585             Julian Brown  <julian@codesourcery.com>
14587         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14588         * config/aarch64/aarch64-cost-tables.h
14589         (vulcan_extra_costs): New variable.
14590         * config/aarch64/aarch64.c
14591         (vulcan_addrcost_table): Likewise.
14592         (vulcan_regmove_cost): Likewise.
14593         (vulcan_vector_cost): Likewise.
14594         (vulcan_branch_cost): Likewise.
14595         (vulcan_tunings): Likewise.
14597 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
14599         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14600         (output_in_order): Loop over undefined variables too.  Output them
14601         via assemble_undefined_decl.  Skip variables that correspond to hard
14602         registers or have value-exprs.
14603         * varpool.c (symbol_table::output_variables): Handle undefined
14604         variables together with defined ones.
14606 2016-07-15  Richard Biener  <rguenther@suse.de>
14608         * tree-ssa-pre.c (get_representative_for): Make sure to return
14609         the value number of SSA names.
14610         (phi_translate_1): get_representative_for cannot return NULL.
14611         (do_pre_regular_insertion): Remove redundant call to
14612         fully_constant_expression.
14613         (do_pre_partial_partial_insertion): Likewise.
14615 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
14617         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14618         (derive_simple_iv_with_niters): New function.
14619         (simple_iv): Rewrite using simple_iv_with_niters.
14620         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14621         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14622         function.
14623         (number_of_iterations_exit): Rewrite using above function.
14624         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14625         Decl.
14627 2016-07-15  Richard Biener  <rguenther@suse.de>
14629         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14630         vec_construct cost.
14632 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
14634         PR tree-optimization/71872
14635         * tree-data-ref.c (get_references_in_stmt): Ignore references
14636         with is_gimple_constant get_base_address.
14638 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14640         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14641         (TARGET_HAVE_LDACQD): New macro.
14642         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14643         than TARGET_HAVE_LDACQ.
14644         (arm_load_acquire_exclusivedi): Likewise.
14645         (arm_store_release_exclusivedi): Likewise.
14647 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14649         PR rtl-optimization/71878
14650         * lra-constraints.c (match_reload): Pass information about other
14651         output operands.  Create new unique register value if matching input
14652         operand shares same register value as output operand being considered.
14653         (curr_insn_transform): Record output operands already processed.
14655 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14657         PR target/65951
14658         PR tree-optimization/70923
14659         * tree-vect-patterns.c: Include mult-synthesis.h.
14660         (target_supports_mult_synth_alg): New function.
14661         (synth_lshift_by_additions): Likewise.
14662         (apply_binop_and_append_stmt): Likewise.
14663         (vect_synth_mult_by_constant): Likewise.
14664         (target_has_vecop_for_code): Likewise.
14665         (vect_recog_mult_pattern): Use above functions to synthesize vector
14666         multiplication by integer constants.
14668 2016-07-14  Alan Modra  <amodra@gmail.com>
14670         * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14671         gpr alternatives.  Correct '*' placement on Y,r alternative.
14672         Add '*' on operand 1 of r,r alternative.
14674 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14676         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14677         * expmed.h: ... Here.
14679 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
14681         * gimple.h (stmt_can_terminate_bb_p): New function.
14682         * tree-cfg.c (need_fake_edge_p): Rename to ...
14683         (stmt_can_terminate_bb_p): ... this; return true if stmt can
14684         throw external; handle const and pure calls.
14685         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14687 2016-07-14  Richard Biener  <rguenther@suse.de>
14689         PR tree-optimization/71866
14690         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14691         (do_hoist_insertion): Avoid endless recursion when we
14692         didn't insert anything because we managed to simplify
14693         things down to a constant or SSA name.
14694         (fully_constant_expression): Re-write in terms of ...
14695         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
14696         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14697         vn_nary_build_or_lookup_1.
14698         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14699         (vn_nary_build_or_lookup): ... this which now wraps it.
14701 2016-07-14  Alan Modra  <amodra@gmail.com>
14703         PR target/71733
14704         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14705         with p9_vector override before power9-dform override.
14707 2016-07-13  Andi Kleen  <ak@linux.intel.com>
14709         * value-prof.c (gimple_value_profile_transformations): Don't run
14710         when auto_profile is on.
14712 2016-07-13  Andi Kleen  <ak@linux.intel.com>
14714         * auto-profile.c (update_inlined_ind_target,
14715         afdo_indirect_call): Print information to dump file.
14717 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
14719         * genrecog.c (special_predicate_operand_p): New function.
14720         (predicate_name): Move function.
14721         (validate_pattern): Don't warn about missing mode for all
14722         define_special_predicate predicates.
14724 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
14726         * tree-vect-data-refs.c (vect_no_alias_p): New function.
14727         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14728         resolve alias checks which are known at compilation time.
14729         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14730         alias checks are resolved.  Move dump info for too many runtime
14731         alias checks to here...
14732         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14734 2016-07-13  Richard Biener  <rguenther@suse.de>
14736         PR tree-optimization/24574
14737         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14738         position and add shift, rotate, divison and modulo support
14739         for left zero.
14740         (value_replacement): Pass in argument position to absorbing_element_p.
14742 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14744         PR ipa/71633
14745         * ipa-inline-transform.c (inline_call): Support
14746         instrumented thunks.
14748 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14750         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14751         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14752         divide feature.
14753         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14754         Baseline.  Make initial alternative TARGET_32BIT only.
14755         (udivsi3): Likewise.
14756         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14757         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14758         target.
14760 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14762         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14763         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14764         availability with TARGET_HAVE_MOVT.
14765         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14766         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14767         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14768         UINTVAL.
14769         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14770         extra instruction if MOVW is available.  Use a cost variable
14771         incremented by COSTS_N_INSNS (1) when the condition match rather than
14772         returning an arithmetic expression based on COSTS_N_INSNS.  Make
14773         constant with bottom half word zero cost 2 instruction if MOVW is
14774         available.
14775         * config/arm/arm.md (define_attr "arch"): Add v8mb.
14776         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14777         target is ARMv8-M Baseline.
14778         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14779         (arm_movtas_ze): Likewise.
14780         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14781         alternative for constants satisfying j constraint.
14782         (thumb1_movsi_insn): Likewise.
14783         (movsi splitter for K alternative): Tighten condition to not trigger
14784         if movt is available and j constraint is satisfied.
14785         (Pe immediate splitter): Likewise.
14786         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14787         constant fitting in an halfword to use MOVW.
14788         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14789         effective target.
14791 2016-07-13  Richard Biener  <rguenther@suse.de>
14793         PR middle-end/71104
14794         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14795         gimplifying the LHS.  Make sure to gimplify a returning twice
14796         call LHS without using SSA names.
14798 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14800         * tree-data-ref.c (find_data_references_in_stmt): Remove
14801         unnecessary call to vec::release.
14802         (graphite_find_data_references_in_stmt): Likewise.
14803         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14804         * tree-vect-stmts.c (vectorizable_condition): Likewise.
14806 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14808         * cfgexpand.c (expand_used_vars): Make the type of a local
14809         variable auto_vec.
14810         * genmatch.c (lower_for): Likewise.
14811         * haifa-sched.c (haifa_sched_init): Likewise.
14812         (add_to_speculative_block): Likewise.
14813         (create_check_block_twin): Likewise.
14814         * predict.c (handle_missing_profiles): Likewise.
14815         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14816         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14817         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14818         Likewise.
14819         (maybe_lower_iteration_bound): Likewise.
14820         * tree-ssa-sccvn.c (DFS): Likewise.
14821         * tree-stdarg.c (reachable_at_most_once): Likewise.
14822         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14823         (vectorizable_store): Likewise.
14825 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14827         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14828         (sccvn_dom_walker): make cond_stack an auto_vec.
14830 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14832         * ree.c (struct ext_state): Make type of members auto_vec.
14833         (find_and_remove_re): Adjust.
14835 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14837         * cfgexpand.c (struct stack_vars_data): Make type of fields
14838         auto_vec.
14839         (expand_used_vars): Adjust.
14841 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14843         * ipa.c (record_cdtor_fn): Adjust.
14844         (build_cdtor_fns): Likewise.
14845         (ipa_cdtor_merge): Make static_ctors and static_dtors local
14846         variables.
14848 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14850         * genextract.c (struct accum_extract): Add constructor and make
14851         members auto_vec.
14852         (gen_insn): Adjust.
14854 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14856         * tree.c (struct free_lang_data_d): Add constructor and change
14857         types of members to ones that automatically manage resources.
14858         (fld_worklist_push): Adjust.
14859         (find_decls_types): Likewise.
14860         (find_decls_types_in_eh_region): Likewise.
14861         (free_lang_data_in_cgraph): Stop manually creating and
14862         destroying members of free_lang_data_d.
14864 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
14866         PR rtl-optimization/68961
14867         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14868         peephole variant.  Use sse_reg_operand predicates.
14870 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
14872         * config/i386/predicates.md (x86_64_immediate_operand)
14873         <case CONST_INT>: Remove unneeded truncation to DImode.
14874         <case CONST>: Ditto.
14875         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14877 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14879         PR target/71805
14880         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14881         The xxperm and xxpermr instructions require that the 2nd input
14882         operand overlap with the output operand, and not the 1st.
14883         (altivec_vperm_v8hiv16qi): Likewise.
14884         (altivec_vperm_<mode>_uns_internal): Likewise.
14885         (altivec_vpermr_<mode>_internal): Likewise.
14886         (vperm_v8hiv4si): Likewise.
14887         (vperm_v16qiv8hi): Likewise.
14889 2016-07-12  Nathan Sidwell  <nathan@acm.org>
14891         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14892         when -mno-pic-data-is-text-relative is in effect, by default.
14893         * doc/invoke.texi (mpic-data-is-text-relative): Document new
14894         behavior and clarify.
14896 2016-07-12  Martin Liska  <mliska@suse.cz>
14898         * params.def: Add avg-loop niter.
14899         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14900         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14901         * doc/invoke.texi: Document the new parameter.
14903 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14905         PR middle-end/71700
14906         * expr.c (store_constructor): Mask sign-extended bits when widening
14907         sub-word constructor element at the start of a word.
14909 2016-07-12  Martin Liska  <mliska@suse.cz>
14911         * Makefile.in: Append rule for params-options.h.
14912         * params-options.h: New file.
14914 2016-07-12  Martin Liska  <mliska@suse.cz>
14916         * ira-build.c (mark_loops_for_removal): Properly iterate
14917         loops.
14919 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
14920             Richard Biener  <rguenther@suse.de>
14922         PR tree-optimization/23286
14923         PR tree-optimization/70159
14924         * doc/invoke.texi: Document -fcode-hoisting.
14925         * common.opt (fcode-hoisting): New flag.
14926         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14927         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14928         (do_regular_insertion): Rename to ...
14929         (do_pre_regular_insertion): ... this and amend general comments
14930         on insertion strathegy.
14931         (do_partial_partial_insertion): Rename to ...
14932         (do_pre_partial_partial_insertion): ... this.
14933         (do_hoist_insertion): New function.
14934         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14935         and call do_hoist_insertion properly.
14936         (insert): Adjust.
14937         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14938         (pass_pre::execute): Register hoist_insert stats.
14940 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
14942         PR middle-end/71716
14943         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14944         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14945         is different from mode's bitsize.  Small cleanup.
14947 2016-07-12  Richard Biener  <rguenther@suse.de>
14949         PR rtl-optimization/68961
14950         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14951         to simplify to a non-constant.
14953 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
14955         PR middle-end/71758
14956         * omp-low.c (expand_omp_target): Gimplify device.
14958         PR tree-optimization/71823
14959         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14960         to get vec_oprnds2 from op2.
14962 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
14964         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14965         Hoist common subexpressions.
14966         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14968 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
14970         PR target/71800
14971         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14972         prevent generation of 'stxsiwx' on pre Power8 hardware.
14974 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
14976         * input.c: Include cpplib.h.
14977         (selftest::temp_source_file): New class.
14978         (selftest::temp_source_file::temp_source_file): New ctor.
14979         (selftest::temp_source_file::~temp_source_file): New dtor.
14980         (selftest::should_have_column_data_p): New function.
14981         (selftest::test_should_have_column_data_p): New function.
14982         (selftest::temp_line_table): New class.
14983         (selftest::temp_line_table::temp_line_table): New ctor.
14984         (selftest::temp_line_table::~temp_line_table): New dtor.
14985         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14986         it to create a temp_line_table.
14987         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14988         locations that are known to have column data.
14989         (selftest::line_table_case): New struct.
14990         (selftest::test_reading_source_line): Move tempfile handling
14991         to class temp_source_file.
14992         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14993         (selftest::assert_token_loc_eq): New function.
14994         (ASSERT_TOKEN_LOC_EQ): New macro.
14995         (selftest::test_lexer): New function.
14996         (selftest::boundary_locations): New array.
14997         (selftest::input_c_tests): Call test_should_have_column_data_p.
14998         Loop over a test matrix of interesting values of location and
14999         default_range_bits, calling test_lexer on each case in the matrix.
15000         Move call to test_accessing_ordinary_linemaps into the matrix.
15001         * selftest.h (ASSERT_EQ): Reimplement in terms of...
15002         (ASSERT_EQ_AT): New macro.
15004 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15006         PR target/71801
15007         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
15008         Don't convert TImode in debug insn.
15010 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15012         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
15013         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
15014         (tree_type_common::lang_flag_7): New.
15015         (tree_type_common::spare): Reduce size.
15016         * tree.h (TYPE_ALIGN_OK): Remove.
15017         (TYPE_LANG_FLAG_7): New.
15018         (get_inner_reference): Adjust header.
15019         * print-tree.c (print_node): Adjust.
15020         * expr.c (get_inner_reference): Remove parameter keep_aligning.
15021         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
15022         calls to get_inner_reference.
15023         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
15024         handling of TYPE_ALIGN_OK.
15025         * builtins.c (get_object_alignment_2): Adjust call to
15026         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
15027         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
15028         TYPE_ALIGN_OK.
15029         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
15030         * cfgexpand.c (expand_debug_expr): Likewise.
15031         * dbxout.c (dbxout_expand_expr): Likewise.
15032         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
15033         loc_list_from_tree, fortran_common): Likewise.
15034         * fold-const.c (optimize_bit_field_compare,
15035         decode_field_reference, fold_unary_loc, fold_comparison,
15036         split_address_to_core_and_offset): Likewise.
15037         * gimple-laddress.c (execute): Likewise.
15038         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
15039         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
15040         * hsa-gen.c (gen_hsa_addr): Likewise.
15041         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
15042         * tsan.c (instrument_expr): Likewise.
15043         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
15044         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
15045         * tree-affine.c (tree_to_aff_combination,
15046         get_inner_reference_aff): Adjust calls to get_inner_reference.
15047         * tree-data-ref.c (split_constant_offset_1,
15048         dr_analyze_innermost): Likewise.
15049         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
15050         * tree-sra.c (ipa_sra_check_caller): Likewise.
15051         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
15052         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
15053         bswap_replace): Likewise.
15054         * tree-vect-data-refs.c (vect_check_gather,
15055         vect_analyze_data_refs): Likewise.
15056         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
15057         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
15058         TYPE_ALIGN_OK.
15060 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
15062         * Makefile.in (selftest-valgrind): New phony target.
15063         * function-tests.c (selftest::build_cfg): Delete pass instances
15064         created by the test.
15065         (selftest::convert_to_ssa): Likewise.
15066         (selftest::test_expansion_to_rtl): Likewise.
15067         * tree-cfg.c (selftest::test_linear_chain): Release dominator
15068         vectors.
15069         (selftest::test_diamond): Likewise.
15071 2016-07-11  Richard Biener  <rguenther@suse.de>
15073         PR tree-optimization/71816
15074         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
15075         than replacing all of its operands.
15077 2016-07-11  Alan Modra  <amodra@gmail.com>
15079         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
15080         (ctr<mode>): Add unspec.
15081         (ctr<mode>_internal*): Likewise.
15083 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
15085         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
15086         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
15088 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
15090         PR rtl-optimization/71621
15091         * lra-constraints.c (process_alt_operands): Check combination of
15092         reg class and mode.
15094 2016-07-08  Jason Merrill  <jason@redhat.com>
15095             Richard Biener  <rguenther@suse.de>
15097         P0145: Refining Expression Order for C++.
15098         * gimplify.c (initial_rhs_predicate_for): New.
15099         (gimplfy_modify_expr): Gimplify RHS before LHS.
15101 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15103         PR target/71297
15104         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15105         Allow standard error handling to take over when a wrong number
15106         of arguments is presented to __builtin_vec_ld () or
15107         __builtin_vec_st ().
15109 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
15111         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
15112         variants.
15113         (smin): Likewise.
15114         (fmax): New entry.
15115         (fmin): Likewise.
15116         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
15117         __builtin_aarch64_fmaxv2sf.
15118         (vmaxnmq_f32): Likewise.
15119         (vmaxnmq_f64): Likewise.
15120         (vminnm_f32): Likewise.
15121         (vminnmq_f32): Likewise.
15122         (vminnmq_f64): Likewise.
15124 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15126         PR target/71806
15127         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
15128         enable -mfloat128-hardware by default.
15129         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
15130         that IEEE 128-bit hardware support needs.
15131         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
15132         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
15133         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
15134         floating point requires.
15135         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15136         -mfloat128 and -mfloat128-hardware changes.
15138 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
15140         PR tree-optimization/71667
15141         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
15143 2016-07-08  Martin Liska  <mliska@suse.cz>
15145         PR middle-end/71606
15146         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
15147         folding produces SAVE_EXPRs, thus return false for the type.
15149 2016-07-07  Martin Liska  <mliska@suse.cz>
15151         * file-find.c (remove_prefix): New function.
15152         * file-find.h (remove_prefix): Declare the function.
15153         * gcc-ar.c (main): Skip a folder of the wrapper if
15154         a wrapped binary would point to the same file.
15156 2016-07-07  Jan Hubicka  <jh@suse.cz>
15158         * tree-scalar-evolution.c (iv_can_overflow_p): export.
15159         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
15160         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
15162 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
15164         PR ipa/71624
15165         * ipa-inline-analysis.c (compute_inline_parameters): Set
15166         local.can_change_signature to false for intrumentation
15167         thunk callees.
15169 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15171         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
15172         with TARGET_HAVE_MOVT.
15173         (TARGET_HAVE_MOVT): Define.
15174         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
15175         availability with TARGET_HAVE_MOVT.
15176         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
15177         availability.
15178         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
15179         TARGET_THUMB2.
15180         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
15181         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
15182         * config/arm/constraints.md (define_constraint "j"): Use
15183         TARGET_HAVE_MOVT to check MOVT availability.
15185 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15187         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
15189 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15191         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
15192         (armv8-m.main): Likewise.
15193         (armv8-m.main+dsp): Likewise.
15194         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
15195         (FL_FOR_ARCH8M_MAIN): Likewise.
15196         * config/arm/arm-tables.opt: Regenerate.
15197         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
15198         armv8-m.main+dsp to BE8_LINK_SPEC.
15199         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
15200         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
15201         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
15202         Baseline and Mainline.
15203         (arm_option_override_internal): Also disable arm_restrict_it when
15204         !arm_arch_notm.  Update comment for -munaligned-access to also cover
15205         ARMv8-M Baseline.
15206         (arm_file_start): Increase buffer size for printing architecture name.
15207         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
15208         and armv8-m.main+dsp.
15209         (mno-unaligned-access): Clarify that this is disabled by default for
15210         ARMv8-M Baseline architectures as well.
15212 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15214         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
15215         decide whether to prevent some libgcc routines being included for some
15216         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
15217         link between this condition and the one in
15218         libgcc/config/arm/lib1func.S.
15220 2016-07-07  Richard Biener  <rguenther@suse.de>
15222         * tree-ssa-pre.c: Include alias.h.
15223         (compute_avail): If we have multiple VN_REFERENCEs with the
15224         same hashtable entry adjust that to make it a valid replacement
15225         for all of them with respect to alignment and aliasing
15226         when doing insertion.
15227         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
15228         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
15230 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
15232         PR target/70098
15233         PR target/71763
15234         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15235         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
15236         constraint.
15238 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15240         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
15241         (adjust_mems): Adjust.
15242         (adjust_insn): Likewise.
15243         (prepare_call_arguments): Likewise.
15245 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15247         * gcse.c (struct ls_expr): Make stores field a vector.
15248         (ldst_entry): Adjust.
15249         (free_ldst_entry): Likewise.
15250         (print_ldst_list): Likewise.
15251         (compute_ld_motion_mems): Likewise.
15252         (update_ld_motion_stores): Likewise.
15254 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15256         * gcse.c (struct ls_expr): Remove loads field.
15257         (ldst_entry): Adjust.
15258         (free_ldst_entry): Likewise.
15259         (print_ldst_list): Likewise.
15260         (compute_ld_motion_mems): Likewise.
15262 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15264         * store-motion.c (struct st_expr): Make antic_stores a vector.
15265         (st_expr_entry): Adjust.
15266         (free_st_expr_entry): Likewise.
15267         (print_store_motion_mems): Likewise.
15268         (find_moveable_store): Likewise.
15269         (compute_store_table): Likewise.
15270         (remove_reachable_equiv_notes): Likewise.
15271         (replace_store_insn): Likewise.
15272         (build_store_vectors): Likewise.
15274 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15276         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
15277         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
15279 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
15281         PR tree-optimization/71518
15282         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
15283         misalign also for outer loops with negative step.
15285 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15287         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
15288         (cortex_a53_shift): Add mov_shift.
15289         (cortex_a53_shift_reg): Add new reservation for register shifts.
15290         (cortex_a53_alu): Remove bfm.
15291         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
15292         (cortex_a53_alu_extr): Add new reservation for EXTR.
15293         (bypasses): Improve bypass modelling.
15295 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15297         PR target/50739
15298         * config/avr/avr.c (avr_asm_select_section): Strip off
15299         SECTION_DECLARED from flags when calling get_section.
15301 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15303         * tree-vectorizer.h (vect_memory_access_type): Add
15304         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
15305         * tree-vect-stmts.c (compare_step_with_zero): New function.
15306         (perm_mask_for_reverse): Move further up file.
15307         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
15308         step is negative.
15309         (get_negative_load_store_type): New function.
15310         (get_load_store_type): Call it.  Add an ncopies argument.
15311         (vectorizable_mask_load_store): Update call accordingly and
15312         remove tests for negative steps.
15313         (vectorizable_store, vectorizable_load): Likewise.  Handle new
15314         memory_access_types.
15316 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15318         * tree-vectorizer.h (vect_memory_access_type): New enum.
15319         (_stmt_vec_info): Add a memory_access_type field.
15320         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
15321         (vect_model_store_cost): Take an access type instead of a boolean.
15322         (vect_model_load_cost): Likewise.
15323         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
15324         vect_model_store_cost and vect_model_load_cost.
15325         * tree-vect-stmts.c (vec_load_store_type): New enum.
15326         (vect_model_store_cost): Take an access type instead of a
15327         store_lanes_p boolean.  Simplify tests.
15328         (vect_model_load_cost): Likewise, but for load_lanes_p.
15329         (get_group_load_store_type, get_load_store_type): New functions.
15330         (vectorizable_store): Use get_load_store_type.  Record the access
15331         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
15332         (vectorizable_load): Likewise.
15333         (vectorizable_mask_load_store): Likewise.  Replace is_store
15334         variable with vls_type.
15336 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15338         * tree-vectorizer.h (vect_grouped_load_supported): Add a
15339         single_element_p parameter.
15340         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
15341         Check the PR65518 case here rather than in vectorizable_load.
15342         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
15343         * tree-vect-stmts.c (vectorizable_load): Likewise.
15345 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15347         * tree-vectorizer.h (gather_scatter_info): New structure.
15348         (vect_check_gather_scatter): Return a bool rather than a decl.
15349         Replace return-by-pointer arguments with a single
15350         gather_scatter_info *.
15351         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
15352         (vect_analyze_data_refs): Update call accordingly.
15353         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15354         (vectorizable_mask_load_store): Likewise.  Also record the
15355         offset dt and vectype in the gather_scatter_info.
15356         (vectorizable_store): Likewise.
15357         (vectorizable_load): Likewise.
15359 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15361         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
15362         strided groups, use the cost of N scalar accesses instead
15363         of ncopies vector accesses.
15364         (vect_model_load_cost): Likewise.
15366 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15368         * tree-vect-stmts.c (vect_cost_group_size): Delete.
15369         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
15370         variable to indicate when once-per-group costs are being used.
15371         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
15373 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
15375         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
15376         peeling-for-gaps condition.
15378 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15380         * config/s390/s390.c (s390_expand_vec_init): Force initializer
15381         element to register if it doesn't match general_operand.
15383 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
15384             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15386         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15387         prototype.
15388         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15389         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15390         (SIGNBIT): New mode iterator.
15391         (Fsignbit): New mode attribute.
15392         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15393         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15394         when direct moves are available.
15395         (signbit<mode>2_dm): New define_insn_and_split).
15396         (signbit<mode>2_dm2): New define_insn.
15398 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15400         PR rtl-optimization/71594
15401         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15402         into subregs of appropriate mode before trying to emit a conditional
15403         move.
15405 2016-07-05  Jan Hubicka  <jh@suse.cz>
15407         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15408         (simple_iv): Use it.
15410 2016-07-05  Jan Hubicka  <jh@suse.cz>
15412         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15414 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
15416         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15417         "offmemok".
15419 2016-07-05  Jan Hubicka  <jh@suse.cz>
15421         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15422         IV can overflow.
15424 2016-07-05  Richard Biener  <rguenther@suse.de>
15426         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15427         Handle empty else block.
15428         (is_feasible_trace): Likewise.
15429         (split_paths): Likewise.
15431 2016-07-05  Richard Biener  <rguenther@suse.de>
15433         * tree-loop-distribution.c (distribute_loop): Fix issue with
15434         the cost model loop.
15436 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
15438         * config/arm/neon-testgen.ml: Delete.
15439         * config/arm/neon.ml: Delete.
15441 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
15443         PR c++/71739
15444         * tree.c (attribute_value_equal): Use get_attribute_name instead of
15445         directly using TREE_PURPOSE.
15447 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
15449         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15450         * config/aarch64/aarch64_neon.h: Likewise.
15451         * config/aarch64/arm_neon.h: Likewise.
15452         * config/aarch64/atomics.md: Likewise.
15453         * config/aarch64/aarch64-simd-builtins.def: Likewise.
15454         * doc/invoke.texi: Likewise.
15456 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15458         * config/s390/s390.md: Add "z13" cpu_facility.
15459         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15460         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15461         condition" type instructions.
15463 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15464             Jeff Law  <law@redhat.com>
15466         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15467         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15469 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
15471         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15472         permutation for TARGET_AVX512F.
15473         (ix86_expand_vec_one_operand_perm_avx512): New function.
15474         (expand_vec_perm_1): Invoke introduced function.
15475         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15476         it may be not valid after vectorization.
15478 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15480         PR target/63874
15481         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15482         typo in comment.  Only force to memory if it is a weak
15483         external reference.
15485 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
15486             Jiong Wang  <jiong.wang@arm.com>
15488         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15489         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15490         (AARCH64_FL_F16): New.
15491         (AARCH64_FL_FOR_ARCH8_2): New.
15492         (AARCH64_ISA_8_2): New.
15493         (AARCH64_ISA_F16): New.
15494         (TARGET_FP_F16INST): New.
15495         (TARGET_SIMD_F16INST): New.
15496         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15497         ("fp"): Disabling "fp" also disables "fp16".
15498         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15499         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15500         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15501         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15503 2016-07-04  Jan Beulich  <jbeulich@suse.com>
15505         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15507 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
15509         PR target/71720
15510         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15511         the insns, use an insn form that does not adjust the offset on
15512         little endian systems.
15514 2016-07-01  Jan Beulich  <jbeulich@suse.com>
15516         * varasm.c (get_variable_section): Validate initializer in
15517         named .bss-like sections.
15519 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15521         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15522         Exchange the order of the second and third operands in the vpermr
15523         instruction tmeplate.
15525 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
15527         PR target/71698
15528         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15529         Disallow TDmode values.
15531 2016-07-01  Alan Modra  <amodra@gmail.com>
15533         PR rtl-optimization/71709
15534         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15535         being set, not referenced.
15537 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
15539         PR tree-optimization/70729
15540         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15541         of loop since it can be not valid after transformation.
15543 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15545         * config/arm/arm.c (thumb_reload_in_hi): Delete.
15546         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15548 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
15550         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15551         for NULL decl.
15553 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
15555         PR target/71677
15556         * config/rs6000/constraints.md (wY constraint): New constraint to
15557         match the requirements for the LXSD and STXSD instructions.
15558         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15559         predicate to match the requirements for the LXSD and STXSD
15560         instructions.
15561         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15562         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15563         to make sure that the bottom 2 bits of offset are 0, the address
15564         form is offsettable, and no updating is done in the address mode.
15565         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15566         (movdi_internal32): Likewise
15567         (movdi_internal64): Likewise.
15569 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
15571         PR tree-optimization/71707
15572         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15573         strinfo even for ADDR_EXPR ptr.
15575 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15577         * config/rs6000/altivec.md (darn_32): Change the condition to
15578         TARGET_P9_MISC instead of TARGET_MODULO.
15579         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15580         condition expression.
15581         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15582         condition expression.
15583         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15584         (DFP_TEST): New code iterator.
15585         (dfptstsfi_<code>_mode>): New define_expand.
15586         (*dfp_sgnfcnc_<mode>): New define_insn.
15587         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15588         definition next to BU_P9_MISC_1 definition and change the MASK
15589         value to RS6000_BTM_P9_MISC.
15590         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15591         (BU_P9_64BIT_MISC_0): Likewise.
15592         (BU_P9_DFP_MISC_0): New macro definition.
15593         (BU_P9_DFP_MISC_1): New macro definition.
15594         (BU_P9_DFP_MISC_2): New macro definition.
15595         (BU_P9_DFP_OVERLOAD_1): New macro definition.
15596         (BU_P9_DFP_OVERLOAD_2): New macro definition.
15597         (BU_P9_DFP_OVERLOAD_3): New macro definition.
15598         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15599         (TSTSFI_LT_TD): Likewise.
15600         (TSTSFI_EQ_DD): Likewise.
15601         (TSTSFI_EQ_TD): Likewise.
15602         (TSTSFI_GT_DD): Likewise.
15603         (TSTSFI_GT_TD): Likewise.
15604         (TSTSFI_OV_DD): Likewise.
15605         (TSTSFI_OV_TD): Likewise.
15606         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15607         (TSTSFI_LT_DD): Likewise.
15608         (TSTSFI_LT_TD): Likewise.
15609         (TSTSFI_EQ): Likewise.
15610         (TSTSFI_EQ_DD): Likewise.
15611         (TSTSFI_EQ_TD): Likewise.
15612         (TSTSFI_GT): Likewise.
15613         (TSTSFI_GT_DD): Likewise.
15614         (TSTSFI_GT_TD): Likewise.
15615         (TSTSFI_OV): Likewise.
15616         (TSTSFI_OV_DD): Likewise.
15617         (TSTSFI_OV_TD): Likewise.
15618         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15619         overloaded test significance functions.
15620         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15621         OPTION_MASK_P9_MISC into the representation of this mask.
15622         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15623         of this mask.
15624         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15625         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15626         non-zero.
15627         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15628         argument is a 6-bit unsigned literal value if the icode argument
15629         represents a DFP test significance built-in call.
15630         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15631         flag used independently and in combination with the
15632         RS6000_BTM_64BIT flag.
15633         (rs6000_opt_masks): Add entry for power9-misc command-line option.
15634         (rs6000_builtin_mask_names): Add entry for power9-misc
15635         command-line option.
15636         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15637         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
15638         RS6000_BTM_P9_MISC macros.
15639         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15640         option and change the description of the -mpower9-vector option to
15641         enable only vector instructions, removing its erroneously claimed
15642         support for scalar instructions.
15643         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15644         the ISA 3.0 digital floating point test significance built-in
15645         functions.
15647 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
15649         * config/aarch64/aarch64.c (cortexa35_tunings):
15650         Enable AES fusion.  Use cortexa57_branch_cost.
15651         (cortexa53_tunings): Use cortexa57_branch_cost.
15652         (cortexa72_tunings): Use cortexa57_branch_cost.
15653         Use AUTOPREFETCHER_WEAK.
15654         (cortexa73_tunings): Use cortexa57_branch_cost.
15656 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15657             James Greenhalgh  <james.greenhalgh@arm.com>
15659         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15660         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15661         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15662         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15663         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15664         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15665         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15666         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15667         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15668         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15669         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15670         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15671         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15672         New intrinsics.
15674 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
15675             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15677         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15678         New define_insn.
15679         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15681 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
15683         PR driver/71651
15684         * gcc.c (driver::build_option_suggestions): Pass "option" to
15685         add_misspelling_candidates.
15686         * opts-common.c (add_misspelling_candidates): Add "option" param;
15687         use it to avoid adding negated forms for options marked with
15688         RejectNegative.
15689         * opts.h (add_misspelling_candidates): Add "option" param.
15691 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
15693         PR middle-end/71693
15694         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15695         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15696         first when permuting bitwise operation with rotate.  Cast
15697         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15699 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
15701         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15702         for misspelled param names.
15703         * params.c: Include spellcheck.h.
15704         (find_param_fuzzy): New function.
15705         * params.h (find_param_fuzzy): New prototype.
15706         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15707         * spellcheck.h (struct edit_distance_traits<const char *>):
15708         ...here.
15710 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
15712         * config/rs6000/predicates.md (const_0_to_7_operand): New
15713         predicate, recognize 0..7.
15714         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15715         support for doing extracts from V16QImode, V8HImode, V4SImode
15716         under ISA 3.0.
15717         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15718         vector extract support.
15719         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15720         for ISA 3.0 vector extract.
15721         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15722         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15723         extracts of a constant element number from small integer vectors
15724         on 64-bit ISA 3.0 systems.
15725         (vsx_extract_<mode>_di): Likewise.
15726         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15727         say when we can do ISA 3.0 vector extracts.
15728         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15729         registers, using the stxsiwx instruction.
15731 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
15733         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15734         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15735         qdf24xx_regmove_cost, qdf24xx_tunings): New.
15736         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15737         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15738         * config/arm/arm.c (arm_qdf24xx_tune): New.
15740 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
15742         * config/aarch64/aarch64.c (cortexa53_tunings):
15743         Increase loop alignment to 8.  Set function alignment to 16.
15744         (cortexa35_tunings): Likewise.
15745         (cortexa57_tunings): Increase loop alignment to 8.
15746         (cortexa72_tunings): Likewise.
15747         (cortexa73_tunings): Likewise.
15749 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
15751         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15752         for arm_fp16_ok and arm_fp16_hw.
15753         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15754         arm_fp16_alternative.
15756 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15758         PR tree-optimization/71655
15759         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15760         types when swapping operands.
15762 2016-06-29  Martin Liska  <mliska@suse.cz>
15764         PR middle-end/71585
15765         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15766         * ipa-inline-transform.c (inline_call): Remove unnecessary call
15767         of build_optimization_node.
15769 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
15771         PR tree-optimization/70729
15772         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15773         independent in loops having positive safelen value.
15774         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15775         it may be not valid after vectorization.
15777 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
15779         PR tree-optimization/71625
15780         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
15781         is sorted by ascending list->offset.  If PTR is non-NULL and there is
15782         previous strinfo, call get_stridx_plus_constant.
15783         (get_stridx): Pass exp as second argument to get_addr_stridx.
15784         (addr_stridxptr): Add missing list = list->next, so that there can be
15785         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
15786         the list is sorted by ascending list->offset.
15787         (get_stridx_plus_constant): Adjust so that it can be also called with
15788         ADDR_EXPR instead of SSA_NAME as PTR.
15789         (handle_char_store): Pass NULL_TREE as second argument to
15790         get_addr_stridx.
15792 2016-06-29  Richard Biener  <rguenther@suse.de>
15794         PR rtl-optimization/68961
15795         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15797 2016-06-29  Richard Biener  <rguenther@suse.de>
15799         PR middle-end/71002
15800         * alias.c (component_uses_parent_alias_set_from): Handle
15801         type punning through union accesses by using the union alias set.
15802         * gimple.c (gimple_get_alias_set): Remove union type punning case.
15804 2016-07-29  Richard Biener  <rguenther@suse.de>
15806         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15807         precision not matching mode precision.
15809 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
15811         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15812         pa_output_arg_descriptor.
15813         (call_val_symref_64bit_post_reload): Likewise.
15814         (call_val_powf_64bit_post_reload): Likewise.
15815         (sibcall_internal_symref_64bit): Likewise.
15816         (sibcall_value_internal_symref_64bit): Likewise.
15818 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
15820         PR middle-end/71626
15821         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15822         a constant, force its SUBREG_REG into memory or register instead
15823         of whole op1.
15825 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15827         PR target/58655
15828         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15829         * doc/invoke.texi (AVR Options): Document it.
15831 2016-06-28  Walter Lee  <walt@tilera.com>
15833         * config/tilegx/linux.h: Do not include arch/icache.h
15834         (CLEAR_INSN_CACHE): Provide inlined definition directly.
15835         * config/tilepro/linux.h: Do not include arch/icache.h
15836         (CLEAR_INSN_CACHE): Provide inlined definition directly.
15838 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
15840         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15841         for big-endian BIT_FIELD_REF.
15843 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
15845         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15846         ('size' attribute): Add '128'.
15847         Include power9.md.
15848         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15849         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15850         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15851         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15852         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15853         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15854         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15855         *trunc<mode>df2_odd): Set size attribute to '128'.
15856         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15857         * config/rs6000/power6.md (power6-fp): Include dfp type.
15858         * config/rs6000/power7.md (power7-fp): Likewise.
15859         * config/rs6000/power8.md (power8-fp): Likewise.
15860         * config/rs6000/power9.md: New file.
15861         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15862         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15863         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15864         htmsimple.
15865         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15866         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15867         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15868         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15869         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15870         dfp_dscri_<mode>): Change type attribute to dfp.
15871         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15872         attribute to vecsimple.
15873         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15874         and prefetch streams.
15875         (rs6000_option_override_internal): Remove temporary code setting
15876         tuning to power8.  Don't set rs6000_sched_groups for power9.
15877         (last_scheduled_insn): Change to rtx_insn *.
15878         (divide_cnt, vec_load_pendulum): New variables.
15879         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15880         (rs6000_issue_rate): Set issue rate for Power9.
15881         (is_power9_pairable_vec_type): New.
15882         (power9_sched_reorder2): New.
15883         (rs6000_sched_reorder2): Call new function for Power9 specific
15884         reordering.
15885         (insn_must_be_first_in_group): Remove Power9.
15886         (insn_must_be_last_in_group): Likewise.
15887         (force_new_group): Likewise.
15888         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15889         Initialize divide_cnt/vec_load_pendulum.
15890         (_rs6000_sched_context, rs6000_init_sched_context,
15891         rs6000_set_sched_context): Handle context save/restore of new
15892         variables.
15894 2016-06-28  Richard Biener  <rguenther@suse.de>
15896         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15897         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15898         COMPONENT_REF operand.
15899         (nonoverlapping_component_refs_p): Likewise.
15900         * stor-layout.c (start_bitfield_representative): Mark
15901         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15903 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
15905         * Makefile.in: Don't cat ../stage_current if it does not exist.
15907         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15908         last argument is a bit-field.
15910         PR rtl-optimization/71673
15911         * internal-fn.c (expand_arith_overflow_result_store): Use
15912         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15913         expand_simple_binop.
15915         PR middle-end/66867
15916         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15917         expand_ifn_atomic_compare_exchange): New functions.
15918         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15919         * tree.h (build_call_expr_internal_loc): Rename to ...
15920         (build_call_expr_internal_loc_array): ... this.  Fix up type of
15921         last argument.
15922         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15923         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15924         ATOMIC_COMPARE_EXCHANGE result.
15925         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15926         * gimple-fold.h (optimize_atomic_compare_exchange_p,
15927         fold_builtin_atomic_compare_exchange): New prototypes.
15928         * gimple-fold.c (optimize_atomic_compare_exchange_p,
15929         fold_builtin_atomic_compare_exchange): New functions..
15930         * tree-ssa.c (execute_update_addresses_taken): If
15931         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15932         of call when finding addressable vars, and if such var becomes
15933         non-addressable, call fold_builtin_atomic_compare_exchange.
15935 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
15937         PR target/71670
15938         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15939         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15941 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
15943         * config/rs6000/rs6000.md ('type' attribute): Add
15944         veclogical,veccmpfx,vecexts,vecmove insn types.
15945         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15946         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15947         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15948         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15949         *nabs<mode>2_hw): Change type to vecmove.
15950         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15951         *boolcc<mode>3_internal, *eqv<mode>3_internal,
15952         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15953         *ieee_128bit_vsx_abs<mode>2_internal,
15954         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15955         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15956         *ieee128_mtvsrd_32bit): Change type to veclogical.
15957         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15958         *movdi_internal32, *movdi_internal64): Update insn types.
15959         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15960         vsx_extract_<mode>): Change type to veclogical.
15961         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15962         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15963         *vsx_sign_extend_si_v2di): Change type to vecexts.
15964         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15965         type to veclogical.
15966         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15967         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15968         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15969         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15970         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15971         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15972         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15973         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15974         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15975         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15976         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15977         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15978         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15979         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15980         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15981         (ppc7450-vecsimple): Add veclogical, vecmove.
15982         (ppc7450-veccmp): Add veccmpfx.
15983         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15984         vecmove.
15985         (ppc8540_vector_compare): Add veccmpfx.
15986         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15987         * config/rs6000/cell.md (cell-fp): Add fpsimple.
15988         (cell-vecsimple): Add veclogical, vecmove.
15989         (cell-veccmp): Add veccmpfx.
15990         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15991         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15992         veccmpfx.
15993         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15994         * config/rs6000/power4.md (power4-fp): Add fpsimple.
15995         (power4-vecsimple): Add veclogical, vecmove.
15996         (power4-veccmp): Add veccmpfx.
15997         * config/rs6000/power5.md (power5-fp): Add fpsimple.
15998         * config/rs6000/power6.md (power6-fp): Add fpsimple.
15999         (power6-vecsimple): Add veclogical, vecmove.
16000         (power6-veccmp): Add veccmpfx.
16001         * config/rs6000/power7.md (power7-fp): Add fpsimple.
16002         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
16003         * config/rs6000/power8.md (power8-fp): Add fpsimple.
16004         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
16005         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
16006         * config/rs6000/titan.md (titan_fp): Add fpsimple.
16007         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
16008         fpsimple.
16009         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
16011 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
16013         PR target/71656
16014         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16015         OPTION_MASK_P9_DFORM_VECTOR.
16016         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
16017         disable -mpower9-dform-vector when using reload.
16018         (quad_address_p): Remove 'gpr_p' argument and all associated code.
16019         New 'strict' argument.  Update all callers.  Add strict addressing
16020         support.
16021         (rs6000_legitimate_offset_address_p): Remove call to
16022         virtual_stack_registers_memory_p.
16023         (rs6000_legitimize_reload_address): Add quad address support.
16024         (rs6000_legitimate_address_p): Move call to quad_address_p above
16025         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
16026         to account for new strict usage.
16027         (rs6000_output_move_128bit): Adjust quad_address_p args to account
16028         for new strict usage.
16029         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
16031 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
16033         PR target/70902
16034         PR target/71453
16035         PR target/71555
16036         PR target/71596
16037         PR target/71657
16038         * config/i386/i386.c (ix86_spill_class): Disable condition to
16039         always return NO_REGS.
16041 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
16043         * predict.c: Include gimple-pretty-print.h
16044         (predicted_by_loop_heuristics_p): Check also
16045         PRED_LOOP_EXIT_WITH_RECURSION
16046         (predict_loops): Find self recursive calls and use special purpose
16047         predictors for them; dump log about decisions.
16048         (pass_profile::execute): Dump info about #of iterations.
16049         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
16050         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
16052 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
16054         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
16055         output_asm_insn calls and shorten long lines.  Output .CALL
16056         argument descriptor using pa_output_arg_descriptor.  Add various
16057         inline $$dyncall and other optimizations.
16058         (pa_attr_length_indirect_call): Adjust ordering and lengths.
16060 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
16062         PR tree-optimization/71643
16063         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
16064         EH preds.
16066         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
16067         leak a bitmap if dep_bb is NULL.
16069         PR tree-optimization/71631
16070         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
16071         to rewrite_expr_tree even if negate_result, move new_lhs var
16072         declaration and initialization earlier, for powi_result set afterwards
16073         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
16074         if new_lhs != lhs, and don't shadow gsi var.
16076 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
16078         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
16079         Add in_loop parameter.
16080         (predict_loops): Add loop guard heuristics.
16081         * predict.def (PRED_LOOP_GUARD): New heuristics.
16083 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
16085         * predict.c: Include ipa-utils.h
16086         (tree_bb_level_prediction): Predict recursive calls.
16087         (tree_estimate_probability_bb): Skip inexpensive calls for call
16088         predictor.
16089         * predict.def (PRED_RECURSIVE_CALL): New.
16091 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16093         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
16094         (BU_FLOAT128_1): Likewise.
16095         (FABSQ): Likewise.
16096         (COPYSIGNQ): Likewise.
16097         (RS6000_BUILTIN_NANQ): Likewise.
16098         (RS6000_BUILTIN_NANSQ): Likewise.
16099         (RS6000_BUILTIN_INFQ): Likewise.
16100         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
16101         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
16102         (TARGET_FOLD_BUILTIN): New #define.
16103         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
16104         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
16105         (rs6000_fold_builtin): New target hook implementation, handling
16106         folding of 128-bit NaNs and infinities.
16107         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
16108         entries are filled in to avoid problems during bootstrap
16109         self-test; define builtins for 128-bit NaNs and infinities.
16110         (rs6000_opt_mask): Add entry for float128.
16111         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
16112         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
16113         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
16114         (const_str_type_node): New #define.
16115         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
16116         to a define_expand that dispatches to either copysign<mode>3_soft
16117         or copysign<mode>3_hard.
16118         (copysign<mode>3_hard): Rename from copysign<mode>3.
16119         (copysign<mode>3_soft): New define_insn.
16120         * doc/extend.texi: Document new builtins.
16122 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
16124         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
16125         PRIu64 instead of lu.
16127 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
16129         PR debug/71642
16130         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
16131         copy the type name.
16133 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
16135         PR tree-optimization/71647
16136         * omp-low.c (lower_rec_input_clauses): Convert
16137         omp_clause_aligned_alignment (c) to size_type_node for the
16138         last argument of __builtin_assume_aligned.
16140 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16142         * configure.ac (calling ___tls_get_addr via GOT): New
16143         assembler/linker check.
16144         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
16145         assembler and linker supports calling ___tls_get_addr via GOT.
16146         Otherise, defined to 0.
16147         * config.in: Regenerated.
16148         * configure: Likewise.
16149         * config/i386/constraints.md (Yb): New constraint.
16150         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
16151         (REG_CLASS_NAMES): Likewise.
16152         (REG_CLASS_CONTENTS): Likewise.
16153         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
16154         the b constraint with the Yb constraint.  Call ___tls_get_addr
16155         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
16156         is 1.
16157         (*tls_local_dynamic_base_32_gnu): Likewise.
16158         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
16159         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
16160         (*tls_local_dynamic_base_64_<mode>): Likewise.
16162 2016-06-24  Martin Liska  <mliska@suse.cz>
16164         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
16165         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
16166         few functions.
16167         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
16168         argument to true if the expected number of iterations is
16169         loop-based.
16171 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
16173         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
16174         assemble for 32bit target.
16175         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
16176         and $ld_ix86_gld_32_opt to link for 32bit target.
16177         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
16178         * configure: Regenerate.
16180 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16182         * config/arm/arm.c (int_log2): Delete definition and prototype.
16183         (shift_op): Use exact_log2 instead of int_log2.
16184         (vfp3_const_double_for_fract_bits): Likewise.
16186 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
16188         * internal-fn.c (expand_arith_set_overflow): New function.
16189         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
16190         Use it.
16191         (expand_arith_overflow_result_store): Likewise.  Handle precision
16192         smaller than mode precision.
16193         * tree-vrp.c (extract_range_basic): For imag part, handle
16194         properly signed 1-bit precision result.
16195         * doc/extend.texi (__builtin_add_overflow): Document that last
16196         argument can't be pointer to enumerated or boolean type.
16197         (__builtin_add_overflow_p): Document that last argument can't
16198         have enumerated or boolean type.
16200 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16201             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16203         * config/rs6000/predicates.md (splat_input_operand): Rework.
16204         Don't allow constants, since the insns that use this predicate
16205         don't support constants.  Constants are handled by other insns
16206         that are created via combine.  During and after register
16207         allocation, only allow indexed or indirect addresses, and not
16208         general addresses.  Only allow modes supported by the hardware.
16209         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
16210         comment.  Move check for using VSPLTIS<x> to a common location,
16211         instead of doing it in two different places.
16213 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
16215         * config/i386/driver-i386.c (host_detect_local_cpu): Set
16216         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
16217         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
16218         signature_CENTAUR_ebx.
16220 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16222         PR target/66232
16223         PR target/67400
16224         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
16225         (as_ix86_gas_32_opt): This.
16226         (ld_ix86_tls_ldm_opt): Renamed to ...
16227         (ld_ix86_gld_32_opt): This.
16228         (R_386_TLS_LDM reloc): Updated.
16229         (R_386_GOT32X reloc): New assembler/linker check.
16230         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
16231         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
16232         defined to 0.
16233         * config.in: Regenerated.
16234         * configure: Likewise.
16235         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
16236         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
16237         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
16238         if ix86_force_load_from_GOT_p returns true.
16239         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
16240         ix86_force_load_from_GOT_p returns true.
16241         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
16242         the external function address via the GOT slot.
16243         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
16244         HAVE_AS_IX86_GOT32X before returning false.
16245         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
16246         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
16248 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
16250         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
16252 2016-06-23  Andi Kleen  <ak@linux.intel.com>
16254         * Makefile.in: Regenerate.
16255         * doc/install.texi: Document autoprofiledbootstrap.
16257 2016-06-23  Andi Kleen  <ak@linux.intel.com>
16259         * config/i386/gcc-auto-profile: New file.
16261 2016-06-23  Martin Liska  <mliska@suse.cz>
16263         PR middle-end/71619
16264         * predict.c (predict_loops): Revert the hunk that was removed
16265         in r237103.
16267 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
16269         * config.gcc: Add support for arm*-*-phoenix* targets.
16270         * config/arm/t-phoenix: New.
16271         * config/phoenix.h: New.
16273 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
16274             H.J. Lu  <hongjiu.lu@intel.com>
16276         PR target/67400
16277         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
16278         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
16279         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
16280         ix86_force_load_from_GOT_p returns true.
16281         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
16282         ix86_force_load_from_GOT_p returns true.
16283         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
16284         ix86_force_load_from_GOT_p returns true.
16285         (ix86_expand_move): Load the external function address via the
16286         GOT slot if ix86_force_load_from_GOT_p returns true.
16287         * config/i386/predicates.md (x86_64_immediate_operand): Return
16288         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
16289         (x86_64_zext_immediate_operand): Ditto.
16291 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
16293         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
16295 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
16297         PR c/70339
16298         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
16299         * diagnostic.c (pedwarn_at_rich_loc): New function.
16300         * spellcheck.h (best_match::best_match): Add a
16301         "best_distance_so_far" optional parameter.
16302         (best_match::set_best_so_far): New method.
16303         (best_match::get_best_distance): New accessor.
16304         (best_match::get_best_candidate_length): New accessor.
16306 2016-06-22  Nick Clifton  <nickc@redhat.com>
16308         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
16309         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
16310         modes are accepted as well.
16311         (ucompare_loc_descriptor): Likewise.
16312         (minmax_loc_descriptor): Likewise.
16313         (clz_loc_descriptor): Likewise.
16314         (popcount_loc_descriptor): Likewise.
16315         (bswap_loc_descriptor): Likewise.
16316         (rotate_loc_descriptor): Likewise.
16317         (mem_loc_descriptor): Likewise.
16318         (loc_descriptor): Likewise.
16320 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
16322         * common.opt (fdiagnostics-parseable-fixits): New option.
16323         * diagnostic.c: Include "selftest.h".
16324         (print_escaped_string): New function.
16325         (print_parseable_fixits): New function.
16326         (diagnostic_report_diagnostic): Call print_parseable_fixits.
16327         (selftest::assert_print_escaped_string): New function.
16328         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
16329         (selftest::test_print_escaped_string): New function.
16330         (selftest::test_print_parseable_fixits_none): New function.
16331         (selftest::test_print_parseable_fixits_insert): New function.
16332         (selftest::test_print_parseable_fixits_remove): New function.
16333         (selftest::test_print_parseable_fixits_replace): New function.
16334         (selftest::diagnostic_c_tests): New function.
16335         * diagnostic.h (struct diagnostic_context): Add field
16336         "parseable_fixits_p".
16337         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
16338         -fdiagnostics-parseable-fixits.
16339         (-fdiagnostics-parseable-fixits): New option.
16340         * opts.c (common_handle_option): Handle
16341         -fdiagnostics-parseable-fixits.
16342         * selftest-run-tests.c (selftest::run_tests): Call
16343         selftest::diagnostic_c_tests.
16344         * selftest.h (selftest::diagnostic_c_tests): New prototype.
16346 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
16348         PR tree-optimization/71488
16349         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
16350         comparison of boolean vectors.
16351         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
16352         of boolean vectors using bitwise operations.
16354 2016-06-22  Andreas Schwab  <schwab@suse.de>
16356         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
16357         Remove declaration.
16359 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
16361         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
16363 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16365         * config/i386/i386.c (print_reg): Emit an error message on attempt to
16366         print FLAGS_REG.
16368 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16370         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
16371         * config/arm/arm-cores.def (cortex-a73): New entry.
16372         (cortex-a73.cortex-a35): Likewise.
16373         (cortex-a73.cortex-a53): Likewise.
16374         * config/arm/arm-tables.opt: Regenerate.
16375         * config/arm/arm-tune.md: Likewise.
16376         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
16377         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16378         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16379         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16380         * doc/invoke.texi (ARM Options): Document cortex-a73,
16381         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16383 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16385         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16386         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16387         (cortex-a73.cortex-a35): Likewise.
16388         (cortex-a73.cortex-a53): Likewise.
16389         * config/aarch64/aarch64-tune.md: Regenerate.
16390         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16391         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16392         -mcpu and -mtune.
16394 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16396         * configure.ac (gcc_cv_as_compress_debug): Remove
16397         --compress-debug-sections as extra as switch.
16398         Handle gas --compress-debug-sections=type.
16399         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16400         Handle gld --compress-debug-sections=type.
16401         * configure: Regenerate.
16403 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
16405         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16407 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
16409         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16410         (do_rewrite): likewise.
16412 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16414         * common/config/mep/mep-common.c: Remove.
16415         * config.gcc: Remove mep-* support.
16416         * config/mep/constraints.md: Remove.
16417         * config/mep/default.h: Remove.
16418         * config/mep/intrinsics.h: Remove.
16419         * config/mep/intrinsics.md: Remove.
16420         * config/mep/ivc2-template.h: Remove.
16421         * config/mep/mep-c5.cpu: Remove.
16422         * config/mep/mep-core.cpu: Remove.
16423         * config/mep/mep-default.cpu: Remove.
16424         * config/mep/mep-ext-cop.cpu: Remove.
16425         * config/mep/mep-intrin.h: Remove.
16426         * config/mep/mep-ivc2.cpu: Remove.
16427         * config/mep/mep-pragma.c: Remove.
16428         * config/mep/mep-protos.h: Remove.
16429         * config/mep/mep.c: Remove.
16430         * config/mep/mep.cpu: Remove.
16431         * config/mep/mep.h: Remove.
16432         * config/mep/mep.md: Remove.
16433         * config/mep/mep.opt: Remove.
16434         * config/mep/predicates.md: Remove.
16435         * config/mep/t-mep: Remove.
16436         * doc/install.texi: Remove mep-* documentation.
16437         * doc/md.texi: Likewise.
16439 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16441         * config.gcc: Remove support for avr-rtems.
16442         * config/avr/gen-avr-mmcu-specs.c: Likewise.
16443         * config/avr/rtems.h: Remove.
16444         * config/avr/t-rtems: Remove.
16446 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16448         * config.gcc: Remove m32r-rtems support.
16449         * config/m32r/rtems.h: Remove.
16451 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16453         * config.gcc: Remove h8300-rtems support.
16454         * config/h8300/rtems.h: Remove.
16455         * config/h8300/t-rtems: Remove.
16457 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16459         * config.gcc: Remove support for knetbsd.
16460         * configure.ac: Likewise.
16461         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
16462         * config/knetbsd-gnu.h: Remove.
16463         * configure: Regenerate.
16465 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16467         * config.gcc: Remove support for openbsd 2 and 3.
16468         * config/openbsd-oldgas.h: Remove.
16470 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16472         * config.gcc: Remove interix support.
16473         * config/i386/i386-interix.h: Remove.
16474         * config/i386/interix.opt: Remove.
16475         * config/i386/t-interix: Remove.
16476         * configure: Regenerate.
16477         * configure.ac: Remove interix support.
16478         * doc/install.texi: Remove interix documentation.
16480 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16482         * config/rs6000/rs6000.h: Add conditional preprocessing directives
16483         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16484         not defined.
16486 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
16488         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16489         they are both PLACEHOLDER_EXPRs.
16491 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16493         * stor-layout.c (layout_type): Move setting complex MODE to
16494         layout_type, instead of setting it ahead of time by the caller.
16495         * tree.c (build_complex_type): Likewise.
16497 2016-06-21  Martin Liska  <mliska@suse.cz>
16499         * predict.c (force_edge_cold): Replace imposisble with
16500         impossible.
16502 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
16504         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16505         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16507 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
16509         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16511 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
16512             Ilya Enkovich  <ilya.enkovich@intel.com>
16514         PR target/71549
16515         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16516         New member function to convert V1TImode register to SUBREG
16517         TImode in debug insn.
16518         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16519         after changing register mode to V1TImode.
16521 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
16523         * config/aarch64/aarch64-cores.def (vulcan): New core.
16524         * config/aarch64/aarch64-tune.md: Regenerate.
16525         * doc/invoke.texi: Document vulcan as an available option.
16527 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
16529         * cse.c (canon_asm_operands): New function extracted from...
16530         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
16531         either standalone or member of a PARALLEL.
16533 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
16535         PR target/30417
16536         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16537         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16538         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16540 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
16542         PR target/71103
16543         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16544         constant addresses if can_create_pseudo_p.
16546 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
16548         PR tree-optimization/71588
16549         * tree-ssa-strlen.c (valid_builtin_call): New function.
16550         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16551         it.
16553 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
16555         PR middle-end/71581
16556         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16557         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16558         for conversion of scalar user var to complex type and use the
16559         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
16560         punt.
16562         PR rtl-optimization/71591
16563         * toplev.c (toplev::run_self_tests): If no_backend, complain and
16564         don't run any tests.
16566 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
16568         PR target/71571
16569         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16570         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
16571         space for PIC with non-v32 and the common non-PIC "jump".
16573 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
16575         PR target/71559
16576         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16577         returned values and add UN*/LTGT/*ORDERED cases with values matching
16578         D operand modifier on vcmp for AVX.
16580 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
16582         * config/aarch64/aarch64.opt
16583         (mpc-relative-literal-loads): Rename internal option name.
16584         * config/aarch64/aarch64.c
16585         (aarch64_nopcrelative_literal_loads): Rename to
16586         aarch64_pcrelative_literal_loads.
16587         (aarch64_expand_mov_immediate): Likewise.
16588         (aarch64_secondary_reload): Likewise.
16589         (aarch64_can_use_per_function_literal_pools_p): Likewise.
16590         (aarch64_override_options_after_change_1): Rename and simplify logic.
16591         (aarch64_classify_symbol): Merge large model checks into switch,
16592         remove pc-relative load check.
16594 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
16596         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16597         costs relative to the cost of a register move.
16599 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
16601         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16602         (vcvt_n_f64_u64): Likewise.
16603         (vcvt_n_s64_f64): Likewise.
16604         (vcvt_n_u64_f64): Likewise.
16605         (vcvt_f64_s64): Likewise.
16606         (vrecpe_f64): Likewise.
16607         (vcvt_f64_u64): Likewise.
16608         (vrecps_f64): Likewise.
16610 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
16612         * config/aarch64/aarch64.md
16613         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16614         iterators.
16615         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
16616         attributes.
16617         * config/aarch64/aarch64-builtins.c
16618         (aarch64_types_binop_uss_qualifiers): Delete.
16619         (TYPES_BINOP_USS): Likewise.
16620         (aarch64_types_binop_sus_qualifiers): Likewise.
16621         (TYPES_BINOP_SUS): Likewise.
16622         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16623         (TYPES_FCVTIMM_SUS): Likewise.
16624         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16625         rather than BINOP.
16626         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16627         (fcvtzs): Use SHIFTIMM rather than BINOP.
16628         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16630 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
16632         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16633         costs relative to the cost of a register move.
16635 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
16637         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16638         Allow scalar/single vector modes to be tieable.
16640 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
16642         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16644 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16646         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16647         "alignement".
16648         * tree.h (TYPE_ALIGN): Likewise.
16650 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
16652         PR target/71103
16653         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16655 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
16657         * config/avr/avr.c (avr_print_operand): Fix "format not a string
16658         literal" build warnings.
16659         (avr_print_operand_address): Dito.
16661 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
16663         PR target/71375
16664         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16665         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16667 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
16669         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16671 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16673         PR bootstrap/71435
16674         * reload1.c (reload): Pass 0 to finish_spills when called because
16675         update_eliminables_and_spill returns true and remove did_spill.
16676         (finish_spills): Adjust comment and document GLOBAL parameter.
16678 2016-06-17  DJ Delorie  <dj@redhat.com>
16680         PR target/71338
16681         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16682         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16683         (umulqihi3_virt): Likewise.
16684         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16685         (umulqihi3_real): Likewise.
16687 2016-06-17  Martin Liska  <mliska@suse.cz>
16689         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16691 2016-06-17  Martin Liska  <mliska@suse.cz>
16693         * predict.def: PRED_LOOP_EXIT from 92 to 85.
16695 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
16697         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16698         __FAST_MATH__.
16699         (vaddq_f32): Likewise.
16700         (vmul_f32): Likewise.
16701         (vmulq_f32): Likewise.
16702         (vsub_f32): Likewise.
16703         (vsubq_f32): Likewise.
16705 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16707         PR tree-optimization/71347
16708         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16709         cost for all uses in group.
16711 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16713         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16714         insert gimple seq if it's not empty.
16716 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
16718         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16719         member OFFSET.
16720         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16721         rather than OFFSET.
16722         (comp_dr_with_seg_len_pair): Ditto.
16723         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
16724         struct dr_with_seg_len_pair against DR_OFFSET.
16725         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16726         DR_OFFSET directly.
16728 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16730         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16732 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
16734         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16735         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16736         (pa_output_millicode_call): Likewise.
16737         (pa_output_call): Likewise.
16738         (pa_output_indirect_call): Likewise.
16739         (pa_asm_output_mi_thunk): Likewise.
16741 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16743         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16745 2016-06-16  Martin Liska  <mliska@suse.cz>
16747         * predict.c (combine_predictions_for_insn): When we find a first
16748         match predictor, we should consider just predictors with
16749         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
16750         DS theory predictor.
16751         (combine_predictions_for_bb): Likewise.
16753 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
16755         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16756         with base of reference to struct.
16758 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
16760         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16762 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16764         PR target/71151
16765         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16766         progmem_swtable_section.
16767         (progmem_swtable_section): Remove.
16768         (avr_asm_function_rodata_section): Remove.
16769         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16770         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16772 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
16774         * config/i386/driver-i386.c (host_detect_local_cpu): Set
16775         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16776         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16777         signature_CENTAUR_ebx.
16778         * config/i386/i386.c (ix86_option_override_internal): Add
16779         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16780         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16781         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16783 2016-06-16  Martin Liska  <mliska@suse.cz>
16785         * predict.def: Add fortran loop preheader predictor.
16786         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16787         fold IFN_BUILTIN_EXPECT with a known constant argument.
16789 2016-06-16  Martin Liska  <mliska@suse.cz>
16791         * predict.def: Add 'Fortran' to display text of all
16792         PRED_FORTRAN_* predictors.
16794 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
16796         PR target/71242
16797         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16798         [IA64_BUILTIN_NANSQ]: Ditto.
16799         (ia64_fold_builtin): New function.
16800         (TARGET_FOLD_BUILTIN): New define.
16801         (ia64_init_builtins) Declare const_string_type node.
16802         Add __builtin_nanq and __builtin_nansq builtin functions.
16803         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16805 2016-06-16  Nick Clifton  <nickc@redhat.com>
16807         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16808         MSP430_HWMULT_ prefix to enum values.
16809         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16810         * config/msp430/msp430.c: Update use of enum values.
16811         * config/msp430/msp430.md: Likewise.
16812         * config/msp430/msp430.opt: Likewise.
16814 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
16816         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16817         of comparsions in the last iteration.
16819 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
16820             Joern Rennecke  <joern.rennecke@embecosm.com>
16822         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16823         addresses.
16824         (arc_needs_pcl_p): Add GOTOFFPC.
16825         (arc_legitimate_pic_addr_p): Likewise.
16826         (arc_output_pic_addr_const): Likewise.
16827         (arc_legitimize_pic_address): Generate a pc-relative address using
16828         GOTOFFPC.
16829         (arc_output_libcall): Use @pcl syntax.
16830         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16831         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16832         (*movsi_insn): Use @pcl syntax.
16833         (doloop_begin_i): Likewise.
16835 2016-06-16  Martin Liska  <mliska@suse.cz>
16837         * predict.def: Define a new predictor.
16839 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
16841         * config/arc/arc.opt (mtp-regno): Update text.
16843 2016-06-16  Renlin Li  <renlin.li@arm.com>
16845         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16847 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
16849         PR target/71554
16850         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16851         (setcc + and peephole2): Likewise.
16853         PR rtl-optimization/71532
16854         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16855         memory slots.
16857 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16859         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16860         DImode constants with XXSPLTIB in vector registers.
16861         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16862         vsx_extract_<mode>_internal{1,2} into a single insn that handles
16863         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16864         extraction of the element at the top of the register as a scalar
16865         value.
16866         (vsx_extract_<mode>_internal1): Likewise.
16867         (vsx_extract_<mode>_internal2): Likewise.
16868         * config/rs6000/constraints.md (wi constraint): Remove a comment
16869         about DImode not being allowed in Altivec registers.
16870         (wB constraint): New constraint for constants that can be
16871         generated in Altivec registers with VSPLTISW/VUPKHSW.
16872         * config/rs6000/predicates.md (xxspltib_constant_split): Update
16873         comments.
16874         (xxspltib_constant_nosplit): Likewise.
16875         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16876         support for -mupper-regs-di to enable DImode to go into Altivec
16877         registers.
16878         (POWERPC_MASKS): Likewise.
16879         (power7 cpu): Likewise.
16880         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16881         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16882         for DImode being allowed in Altivec registers.  Update wi/wj
16883         constraints.  Set scalar_in_vmx_p flag.
16884         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16885         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
16886         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16887         (rs6000_opt_masks): Add -mupper-regs-di.
16888         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16889         direct move to use wi and not wj.
16890         (lfiwzx): Likewise.
16891         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16892         alternative.
16893         (floatunssi<mode>2_lfiwzx_mem): Likewise.
16894         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16895         any VSX register, instead of just Altivec registers, to allow
16896         either operand to be an Altivec register or both.
16897         (fixuns_trunc<mode>di2_fctiduz): Likewise.
16898         (movdi_internal32): Add support for -mupper-regs-di.  Add support
16899         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
16900         the alternatives and attributes to be lined up to be easier to
16901         read.
16902         (movdi_internal64): Likewise.
16903         (64-bit DImode splitters): Change predicates to only split loading
16904         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
16905         load constants in ISA 3.0 or ISA 2.07 respectively.
16906         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16907         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
16908         mention -mcpu=power9 sets these options.
16909         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16910         wB constraint.
16912 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16914         PR target/67353
16915         * config/avr/avr.c (avr_set_current_function): Warn misspelled
16916         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16917         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16918         by default to warn misspelled interrupt/ signal handler.
16919         * doc/invoke.texi (AVR Options): Document it. Update description
16920         for -nodevicelib option.
16922 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16924         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16925         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
16926         (aarch64_<sur>shll2_n<mode>): Likewise.
16928 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
16930         PR middle-end/71529
16931         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16932         DECL_CONTEXT for copied arguments.
16934 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
16936         PR tree-optimization/71483
16937         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16938         for slp
16940 2016-06-15  Martin Liska  <mliska@suse.cz>
16942         * predict.c (tree_predict_by_opcode): Call predict_edge_def
16943         instead of predict_edge w/o a probability.
16945 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
16947         PR tree-optimization/71439
16948         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16949         live PHIs.
16951 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16953         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16954         register subregs in SET_SRC.
16956 2016-06-15  Richard Biener  <rguenther@suse.de>
16958         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16959         store restrictions.
16961 2016-06-15  Richard Biener  <rguenther@suse.de>
16963         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16964         not consider dependences between accesses that belong to the
16965         same group.
16966         (vect_analyze_data_ref_dependences): Do not analyze read-read
16967         or self-dependences.
16969 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
16971         * spellcheck-tree.c: Include spellcheck-tree.h rather than
16972         spellcheck.h.
16973         (find_closest_identifier): Reimplement in terms of
16974         best_match<tree,tree>.
16975         * spellcheck-tree.h: New file.
16976         * spellcheck.c (struct edit_distance_traits<const char *>): New
16977         struct.
16978         (find_closest_string): Reimplement in terms of
16979         best_match<const char *, const char *>.
16980         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16981         overload to spellcheck-tree.h.
16982         (find_closest_identifier): Likewise.
16983         (struct edit_distance_traits<T>): New template.
16984         (class best_match): New class.
16986 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
16988         * selftest-run-tests.c (selftest::run_tests): Call
16989         selftest::spellcheck_tree_c_tests.
16990         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16991         * spellcheck-tree.c: Include selftest.h and stringpool.h.
16992         (selftest::test_find_closest_identifier): New function.
16993         (selftest::spellcheck_tree_c_tests): New function.
16994         * spellcheck.c (selftest::test_find_closest_string): Verify that
16995         the order of the vec does not affect the results for this case.
16996         (selftest::test_data): New array.
16997         (selftest::test_metric_conditions): New function.
16998         (selftest::spellcheck_c_tests): Add a test of case-comparison.
16999         Call selftest::test_metric_conditions.
17001 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17003         * config/rs6000/rs6000-builtin.def (commentary): Typo.
17004         (BU_P9_MISC_1): Likewise.
17005         (BU_P9_64BIT_MISC_0): Likewise.
17006         (BU_P9_MISC_0): Likewise.
17008 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
17010         * gcc-rich-location.c
17011         (gcc_rich_location::add_fixit_misspelled_id): New method.
17012         * gcc-rich-location.h
17013         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
17015 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
17017         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
17018         FreeBSD 11 and above.
17020 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
17022         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
17024 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17026         * expmed.h: Close parenthesis in "at your option" in copyright
17027         boilerplate.
17028         * lower-subreg.h: Likewise.
17030 2016-06-14  Richard Biener  <rguenther@suse.de>
17032         PR middle-end/71526
17033         * genmatch.c (expr::gen_transform): Use in_type for comparisons
17034         if available.
17036 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17038         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
17039         New function.
17040         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
17041         mask+shift version.
17042         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
17043         New prototype.
17044         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
17045         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
17047 2016-06-14  Richard Biener  <rguenther@suse.de>
17049         PR tree-optimization/71522
17050         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
17051         copying into float copying.
17053 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
17055         PR tree-optimization/71520
17056         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
17057         (replace_block_by): Move user labels from bb1 to bb2.
17059 2016-06-14  Richard Biener  <rguenther@suse.de>
17061         PR middle-end/71310
17062         PR bootstrap/71510
17063         * expr.h (get_bit_range): Declare.
17064         * expr.c (get_bit_range): Export.
17065         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
17066         word_mode again to constrain the bitfield access.
17068 2016-06-14  Richard Biener  <rguenther@suse.de>
17070         PR tree-optimization/71521
17071         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
17072         division int_const_binop against zero divisor.
17074 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
17076         * config/i386/i386.md (signbittf2): New expander.
17077         * config/i386/sse.md (ptesttf2): New insn pattern.
17079 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
17081         PR bootstrap/71481
17082         * input.c (selftest::test_reading_source_line): Avoid reading from
17083         __FILE__ by creating a tempfile with known content and reading
17084         from that instead.
17086 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
17088         * pretty-print.c (assert_pp_format_colored): Skip the test if
17089         GCC_COLORS is set.
17090         (test_pp_format): Remove comment about GCC_COLORS.
17092 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
17094         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
17095         * pretty-print.c (assert_pp_format_va): Add location param and use
17096         it with ASSERT_STREQ_AT.
17097         (assert_pp_format): Add location param and pass it to
17098         assert_pp_format_va.
17099         (assert_pp_format_colored): Likewise.
17100         (ASSERT_PP_FORMAT_1): New.
17101         (ASSERT_PP_FORMAT_2): New.
17102         (ASSERT_PP_FORMAT_3): New.
17103         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
17104         explicitly, or implicitly via the above macros.
17105         * selftest.c (selftest::pass): Use a selftest::location rather
17106         than file and line.
17107         (selftest::fail): Likewise.  Print the function name.
17108         (selftest::fail_formatted): Likewise.
17109         (selftest::assert_streq): Use a selftest::location rather than
17110         file and line.
17111         * selftest.h (selftest::location): New struct.
17112         (SELFTEST_LOCATION): New macro.
17113         (selftest::pass): Accept a const location & rather than file
17114         and line.
17115         (selftest::fail): Likewise.
17116         (selftest::fail_formatted): Likewise.
17117         (selftest::assert_streq): Likewise.
17118         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
17119         (ASSERT_FALSE): Likewise.
17120         (ASSERT_EQ): Likewise.
17121         (ASSERT_NE): Likewise.
17122         (ASSERT_STREQ): Likewise.
17123         (ASSERT_PRED1): Likewise.
17124         (ASSERT_STREQ_AT): New macro.
17126 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
17128         * selftest.c (selftest::fail_formatted): New function.
17129         (selftest::assert_streq): New function.
17130         * selftest.h (selftests::fail_formatted): New decl.
17131         (selftest::assert_streq): New decl.
17132         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
17134 2016-06-13  Jeff Law  <law@redhat.com>
17136         PR tree-optimization/71403
17137         * tree-ssa-threadbackward.c
17138         (convert_and_register_jump_thread_path): No longer accept reference
17139         to path.  Do not pop items off the path anymore.
17140         (fsm_find_control_statement_thread_paths): Do not allow threading
17141         to a deeper loop nest.  Pop the last item off the path here rather
17142         than in convert_and_register_jump_thread_path.
17144 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
17145             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
17147         [AArch64] Emit division using the Newton series
17149         * config/aarch64/aarch64-protos.h
17150         (cpu_approx_modes): Add new member "division".
17151         (aarch64_emit_approx_div): Declare new function.
17152         * config/aarch64/aarch64.c
17153         (generic_approx_modes): New member "division".
17154         (exynosm1_approx_modes): Likewise.
17155         (xgene1_approx_modes): Likewise.
17156         (aarch64_emit_approx_div): Define new function.
17157         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
17158         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
17159         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
17160         * doc/invoke.texi (-mlow-precision-div): Describe new option.
17162 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
17163             Wilco Dijkstra  <wilco.dijkstra@arm.com>
17165         [AArch64] Emit square root using the Newton series
17167         * config/aarch64/aarch64-protos.h
17168         (aarch64_emit_approx_rsqrt): Replace with new function
17169         "aarch64_emit_approx_sqrt".
17170         (cpu_approx_modes): New member "sqrt".
17171         * config/aarch64/aarch64.c
17172         (generic_approx_modes): New member "sqrt".
17173         (exynosm1_approx_modes): Likewise.
17174         (xgene1_approx_modes): Likewise.
17175         (aarch64_emit_approx_rsqrt): Replace with new function
17176         "aarch64_emit_approx_sqrt".
17177         (aarch64_override_options_after_change_1): Handle new option.
17178         * config/aarch64/aarch64-simd.md
17179         (rsqrt<mode>2): Use new function instead.
17180         (sqrt<mode>2): New expansion and insn definitions.
17181         * config/aarch64/aarch64.md: Likewise.
17182         * config/aarch64/aarch64.opt
17183         (mlow-precision-sqrt): Add new option description.
17184         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
17186 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
17188         [AArch64] Add more choices for the reciprocal square root approximation
17190         Allow a target to prefer such operation depending on the operation mode.
17192         * config/aarch64/aarch64-protos.h
17193         (AARCH64_APPROX_MODE): New macro.
17194         (AARCH64_APPROX_{NONE,ALL}): Likewise.
17195         (cpu_approx_modes): New structure.
17196         (tune_params): New member "approx_modes".
17197         * config/aarch64/aarch64-tuning-flags.def
17198         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
17199         * config/aarch64/aarch64.c
17200         (generic_approx_modes): New core "cpu_approx_modes" structure.
17201         (exynosm1_approx_modes): Likewise.
17202         (xgene1_approx_modes): Likewise.
17203         (generic_tunings): New member "approx_modes".
17204         (cortexa35_tunings): Likewise.
17205         (cortexa53_tunings): Likewise.
17206         (cortexa57_tunings): Likewise.
17207         (cortexa72_tunings): Likewise.
17208         (exynosm1_tunings): Likewise.
17209         (thunderx_tunings): Likewise.
17210         (xgene1_tunings): Likewise.
17211         (use_rsqrt_p): New argument for the mode and use new member from
17212         "tune_params".
17213         (aarch64_builtin_reciprocal): Devise mode from builtin.
17214         (aarch64_optab_supported_p): New argument for the mode.
17215         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
17217 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17219         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
17220         RS6000_BTM_MODULO flag into the set of flags that are considered
17221         to be part of the common configuration.
17223 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17225         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
17226         difference unsigned.
17227         (vec_absdb): New macro for vector absolute difference unsigned
17228         byte.
17229         (vec_absdh): New macro for vector absolute difference unsigned
17230         half-word.
17231         (vec_absdw): New macro for vector absolute difference unsigned word.
17232         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
17233         (vadu<mode>3): New insn.
17234         (*p9_vadu<mode>3): New insn.
17235         * config/rs6000/rs6000-builtin.def (vadub): New built-in
17236         definition.
17237         (vaduh): New built-in definition.
17238         (vaduw): New built-in definition.
17239         (vadu): New overloaded built-in definition.
17240         (vadub): New overloaded built-in definition.
17241         (vaduh): New overloaded built-in definition.
17242         (vaduw): New overloaded built-in definition.
17243         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17244         overloaded vector absolute difference unsigned functions.
17245         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17246         the ISA 3.0 vector absolute difference unsigned built-in functions.
17248 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
17250         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
17251         update shared_lookup_references only once after changing operands.
17253 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
17255         PR middle-end/71373
17256         * tree-nested.c (convert_nonlocal_omp_clauses)
17257         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
17259         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
17260         * tree.def (CASE_LABEL_EXPR): Likewise.
17262 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17264         PR bootstrap/71481
17265         * input.c (test_builtins): Fix an assertion.
17267 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
17269         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
17270         (paritysi2): Ditto.
17271         (isinfxf2): Ditto.
17272         (isinf<mode>2): Ditto.
17274 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
17276         * ggc-tests.c (test_finalization): Only test need_finalization_p
17277         for GCC_VERSION >= 4003.
17279 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17281         * config/s390/vecintrin.h: Fix file description in comment.
17283 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17285         * config/s390/s390-builtin-types.def: Change builtin type naming
17286         scheme to match builtin-types.def.
17288 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
17290         * fold-const.c (optimize_minmax_comparison): Remove.
17291         (fold_comparison): Remove call to the above.
17292         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
17293         New transformations.
17295 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
17297         PR tree-optimization/71416
17298         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
17299         multiple entries
17301 2016-06-13  Martin Liska  <mliska@suse.cz>
17303         * predict.c (enum predictor_reason): Prefix enum with REASON_.
17304         (combine_predictions_for_insn): Likewise.
17305         (prune_predictions_for_bb): Likewise.
17306         (combine_predictions_for_bb): Likewise.
17308 2016-06-13  Richard Biener  <rguenther@suse.de>
17310         PR tree-optimization/71505
17311         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
17312         assert match comment.
17314 2016-06-13  Marek Polacek  <polacek@redhat.com>
17316         PR middle-end/71476
17317         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
17318         gimplify_switch_expr.
17319         (warn_switch_unreachable_r): New function.
17321 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17323         PR target/71379
17324         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
17325         one.
17327 2016-06-13  Richard Biener  <rguenther@suse.de>
17329         PR middle-end/64516
17330         * fold-const.c (fold_unary_loc): Preserve alignment when
17331         folding a VIEW_CONVERT_EXPR into a MEM_REF.
17333 2016-06-13  Martin Liska  <mliska@suse.cz>
17335         PR sanitizer/71458
17336         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
17337         w/ -fsanitize=bounds.
17339 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
17341         * config/i386/i386.c (ix86_init_builtins): Calculate
17342         FLOAT128_FTYPE_CONST_STRING function type only once.
17343         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
17344         built-in functions are available for x86-32 and x86-64 targets.
17346 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
17348         PR target/71241
17349         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
17350         New primitive type.
17351         (FLOAT128_FTYPE_CONST_STRING): New function type.
17352         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
17353         [IX86_BUILTIN_NANSQ]: Ditto.
17354         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17355         (ix86_init_builtin_types): Declare const_string_type_node.
17356         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
17357         builtin functions.
17358         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17359         * doc/extend.texi (x86 Built-in Functions): Document
17360         __builtin_nanq and __builtin_nansq.
17362 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
17364         PR target/71061
17365         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
17366         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
17367         length for pop patterns.
17368         (arm_attr_length_push_multi): Update comments.
17369         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
17370         attribute.
17371         (*pop_multiple_with_writeback_and_return): Likewise.
17372         (*pop_multiple_with_return): Likewise.
17374 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
17376         PR middle-end/71310
17377         * fold-const.c (optimize_bit_field_compare): Don't try to use
17378         word_mode unconditionally for reading the bit field, look at
17379         DECL_BIT_FIELD_REPRESENTATIVE instead.
17381 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
17383         PR middle-end/71478
17384         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17385         vector integer type.
17387 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
17389         PR middle-end/71494
17390         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17391         without LABEL_DECL, set *handled_ops_p to false instead of true.
17393 2016-06-10  Martin Sebor  <msebor@redhat.com>
17395         PR c/71392
17396         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17397         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17398         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17399         them.
17400         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17401         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17402         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17403         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17404         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17405         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17406         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17407         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17409 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17411         * config/arm/arm.h (pool_vector_label,
17412         return_used_this_function): Remove.
17414 2016-06-10  Jeff Law  <law@redhat.com>
17416         PR tree-optimization/71335
17417         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17418         zero length paths here.
17419         (convert_and_register_jump_thread_path): Remove hacks related to
17420         duplicated blocks in the jump thread path.
17421         (fsm_find_control_statement_thread_paths): Avoid putting the same
17422         block on the thread path twice, but ensure the thread path is
17423         unchanged from the caller's point of view.
17425 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
17427         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17428         * predict.def (PRED_LOOP_BRANCH): Remove.
17430 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
17432         * Makefile.in (OBJS): Add ggc-tests.o.
17433         (GTFILES): Add ggc-tests.c.
17434         * ggc-tests.c: New file.
17435         * selftest-run-tests.c (selftest::run_tests): Call
17436         selftest::ggc_tests_c_tests.
17437         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17439 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
17441         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17443 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
17445         PR sanitizer/71480
17446         * varasm.c (place_block_symbol): Adjust alignment for asan protected
17447         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17449 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
17451         * profile.c: Include cfgloop.h.
17452         (branch_prob): Compute estimated number of iterations.
17453         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17454         recompute estimate number of iterations from profile.
17456 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17458         PR inline-asm/68843
17459         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17460         must be grouped on top of stack.  Don't force early clobber
17461         on ordinary reg outputs.
17463 2016-06-10  Richard Biener  <rguenther@suse.de>
17465         * targhooks.c (default_builtin_vectorization_cost): Adjust
17466         vec_construct cost.
17468 2016-06-10  Richard Biener  <rguenther@suse.de>
17470         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17471         to fold the RHS to a constant if possible.
17473 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17475         PR middle-end/71373
17476         * tree-nested.c (convert_nonlocal_omp_clauses)
17477         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17478         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17479         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17481         * gimplify.c (gimplify_adjust_omp_clauses): Discard
17482         OMP_CLAUSE_TILE.
17483         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17485         * omp-low.c (scan_sharing_clauses): Don't expect
17486         OMP_CLAUSE__CACHE_.
17488 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
17490         PR tree-optimization/71407
17491         PR tree-optimization/71416
17492         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17493         BIT_FIELD_REF type.
17495 2016-06-10  Richard Biener  <rguenther@suse.de>
17497         PR middle-end/71477
17498         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17500 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
17502         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17504 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
17505             Jiong Wang  <jiong.wang@arm.com>
17507         PR rtl-optimization/70751
17508         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17509         spilled into memory.
17511 2016-06-09  Jonathan Yong  <10walls@gmail.com>
17513         Revert:
17514         2015-09-21  Jonathan Yong  <10walls@gmail.com>
17516         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17517         sysroot/usr/lib/32api for additional win32 libraries,
17518         fixes failing Cygwin bootstrapping.
17520 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
17522         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17523         Delete.
17525 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
17527         PR bootstrap/71471
17528         * pretty-print.c (pp_indent): Specify that %p is printed in a
17529         host-dependent manner.
17530         (test_pp_format): Remove the test for %p.
17532 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
17534         * config/mips/mips.c (mips_output_jump): Fix formatting.
17536 2016-06-09  Richard Biener  <rguenther@suse.de>
17538         PR tree-optimization/71462
17539         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17540         removed blocks.
17542 2016-06-09  Martin Liska  <mliska@suse.cz>
17544         * predict.c (dump_prediction): Add new argument.
17545         (enum predictor_reason): New enum.
17546         (struct predictor_hash): New struct.
17547         (predictor_hash::hash): New function.
17548         (predictor_hash::equal): Likewise.
17549         (not_removed_prediction_p): New function.
17550         (prune_predictions_for_bb): Likewise.
17551         (combine_predictions_for_bb): Prune predictions.
17553 2016-06-09  Martin Liska  <mliska@suse.cz>
17555         * predict.c (filter_predictions): New function.
17556         (remove_predictions_associated_with_edge): Use the filter
17557         function.
17558         (equal_edge_p): New function.
17560 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
17562         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17563         Correct usage of @samp vs @option, add @samp where appropriate.
17564         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17565         Add armv6s-m and document it, as it is no official ARM name.
17567 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17569         * ifcvt.c (struct noce_if_info): Add transform_name field.
17570         (noce_try_move): Set if_info->transform_name to the function name.
17571         (noce_try_ifelse_collapse): Likewise.
17572         (noce_try_store_flag): Likewise.
17573         (noce_try_inverse_constants): Likewise.
17574         (noce_try_store_flag_constants): Likewise.
17575         (noce_try_addcc): Likewise.
17576         (noce_try_store_flag_mask): Likewise.
17577         (noce_try_cmove): Likewise.
17578         (noce_try_cmove_arith): Likewise.
17579         (noce_try_minmax): Likewise.
17580         (noce_try_abs): Likewise.
17581         (noce_try_sign_mask): Likewise.
17582         (noce_try_bitop): Likewise.
17583         (noce_convert_multiple_sets): Likewise.
17584         (noce_process_if_block): Print if_info->transform_name to
17585         dump_file if transformation succeeded.
17587 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17589         * config/arm/cortex-a57.md (cortex_a57_alu):
17590         Handle csel type.
17592 2016-06-08  Martin Sebor  <msebor@redhat.com>
17593             Jakub Jelinek  <jakub@redhat.com>
17595         PR c++/70507
17596         PR c/68120
17597         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17598         BUILT_IN_MUL_OVERFLOW_P): New builtins.
17599         * builtins.c: Include gimple-fold.h.
17600         (fold_builtin_arith_overflow): Handle
17601         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17602         (fold_builtin_3): Likewise.
17603         * doc/extend.texi (Integer Overflow Builtins): Document
17604         __builtin_{add,sub,mul}_overflow_p.
17606 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
17608         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17609         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17611 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
17613         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17614         Rewrite, looking one level down for records and arrays.
17616 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
17618         * pretty-print.c: Include "selftest.h".
17619         (pp_format): Fix comment.
17620         (identifier_to_locale): Likewise.
17621         (selftest::test_basic_printing): New function.
17622         (selftest::assert_pp_format): New function.
17623         (selftest::test_pp_format): New function.
17624         (selftest::pretty_print_c_tests): New function.
17625         * selftest-run-tests.c (selftest::run_tests): Call
17626         selftest::pretty_print_c_tests.
17627         * selftest.h (pretty_print_c_tests): New declaration.
17629 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17631         * invoke.texi (max-loop-headers-insns): Document.
17632         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17633         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17634         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17636 2016-06-08  Richard Biener  <rguenther@suse.de>
17638         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17639         on strided SLP loads and fall back to scalar loads in case
17640         we can't chunk them.
17642 2016-06-08  Richard Biener  <rguenther@suse.de>
17644         PR tree-optimization/71452
17645         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17646         type used for the SSA rewrite has enough precision to cover
17647         the dynamic type of the location.
17649 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
17650             Richard Biener  <rguenther@suse.de>
17652         PR c++/71448
17653         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17654         the same as DECL_P (base0) for indirect_base0.  Use equality_code
17655         in one further place.
17657 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
17659         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17660         to one word if the field is known to overlap other words.
17661         (extract_bit_field_1): Likewise.
17662         (store_split_bit_field): Remove compensating code.
17663         (extract_split_bit_field): Likewise.
17665 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
17667         PR debug/71432
17668         PR ada/71413
17669         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17671 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17673         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17674         VDQF.
17675         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17676         (arch64_addpv4sf): Delete.
17677         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17678         "gen_aarch64_addpv4sf".
17679         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
17680         builtin.
17681         (vpadds_f32): Likewise.
17682         (vpaddq_f32): Likewise.
17683         (vpaddq_f64): Likewise.
17685 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17687         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17688         VALLF.
17689         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17690         to VALLF.  Rename to "fabd<mode>3".
17691         "*fabd_scalar<mode>3): Delete.
17692         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17693         Use builtin.
17694         (vabdd_f64): Likewise.
17695         (vabd_f32): Likewise.
17696         (vabd_f64): Likewise.
17697         (vabdq_f32): Likewise.
17698         (vabdq_f64): Likewise.
17700 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17702         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17703         VALLF.
17704         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17705         "aarch64_rsqrts<mode>".
17706         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17707         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
17708         builtin.
17709         (vrsqrtsd_f64): Likewise.
17710         (vrsqrts_f32): Likewise.
17711         (vrsqrts_f64): Likewise.
17712         (vrsqrtsq_f32): Likewise.
17713         (vrsqrtsq_f64): Likewise.
17715 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17717         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17718         VALLF.
17719         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17720         "aarch64_rsqrte<mode>".
17721         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17722         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
17723         builtin.
17724         (vrsqrted_f64): Likewise.
17725         (vrsqrte_f32): Likewise.
17726         (vrsqrte_f64): Likewise.
17727         (vrsqrteq_f32): Likewise.
17728         (vrsqrteq_f64): Likewise.
17730 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17732         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17733         (ucvtf): Likewise.
17734         (fcvtzs): Likewise.
17735         (fcvtzu): Likewise.
17736         * config/aarch64/aarch64-simd.md
17737         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17738         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17739         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17740         Use builtin.
17741         (vcvt_n_f32_u32): Likewise.
17742         (vcvt_n_s32_f32): Likewise.
17743         (vcvt_n_u32_f32): Likewise.
17744         (vcvtq_n_f32_s32): Likewise.
17745         (vcvtq_n_f32_u32): Likewise.
17746         (vcvtq_n_f64_s64): Likewise.
17747         (vcvtq_n_f64_u64): Likewise.
17748         (vcvtq_n_s32_f32): Likewise.
17749         (vcvtq_n_s64_f64): Likewise.
17750         (vcvtq_n_u32_f32): Likewise.
17751         (vcvtq_n_u64_f64): Likewise.
17752         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17753         (VSDQ_SDI): Likewise.
17754         (fcvt_target): Support V4DI, V4SI and V2SI.
17755         (FCVT_TARGET): Likewise.
17757 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
17759         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17760         (TYPES_BINOP_SUS): Likewise.
17761         (aarch64_simd_builtin_data): Update include file name.
17762         (aarch64_builtins): Likewise.
17763         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17764         for conversion between scalar float-point and fixed-point.
17765         (ucvtf): Likewise.
17766         (fcvtzs): Likewise.
17767         (fcvtzu): Likewise.
17768         * config/aarch64/aarch64.md
17769         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17770         pattern for conversion between scalar float to fixed-pointer.
17771         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17772         (UNSPEC_FCVTZS): New UNSPEC enumeration.
17773         (UNSPEC_FCVTZU): Likewise.
17774         (UNSPEC_SCVTF): Likewise.
17775         (UNSPEC_UCVTF): Likewise.
17776         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17777         Use builtin.
17778         (vcvtd_n_f64_u64): Likewise.
17779         (vcvtd_n_s64_f64): Likewise.
17780         (vcvtd_n_u64_f64): Likewise.
17781         (vcvtd_n_f32_s32): Likewise.
17782         (vcvts_n_f32_u32): Likewise.
17783         (vcvtd_n_s32_f32): Likewise.
17784         (vcvts_n_u32_f32): Likewise.
17785         * config/aarch64/iterators.md (fcvt_target): Support integer to float
17786         mapping.
17787         (FCVT_TARGET): Likewise.
17788         (FCVT_FIXED2F): New iterator.
17789         (FCVT_F2FIXED): Likewise.
17790         (fcvt_fixed_insn): New define_int_attr.
17792 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17794         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17795         some statements was removed.
17797 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
17799         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17800         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17801         (vect_can_advance_ivs_p): likewise.
17802         (vect_update_ivs_after_vectorizer): likewise.
17803         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17804         (vect_analyze_scalar_cycles_1): likewise.
17805         (vect_analyze_loop_operations): likewise.
17806         (report_vect_op): likewise.
17807         (vect_is_slp_reduction): likewise.
17808         (vect_is_simple_reduction): likewise.
17809         (get_initial_def_for_induction): likewise.
17810         (vect_transform_loop): likewise.
17811         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17812         (vect_recog_sad_pattern): likewise.
17813         (vect_recog_widen_sum_pattern): likewise.
17814         (vect_recog_widening_pattern): likewise.
17815         (vect_recog_divmod_pattern): likewise.
17816         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17817         (vect_analyze_slp_instance): likewise.
17818         (vect_transform_slp_perm_load): likewise.
17819         (vect_schedule_slp_instance): likewise.
17821 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17823         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17824         (return_prediction): PRED_CONST_RETURN predict return as not taken.
17825         * predict.def (PRED_CONTINUE): Change hitrate 50->67
17826         (PRED_LOOP_BRANCH): Document predictor as broken.
17827         (PRED_LOOP_EXIT): Change hitrate 91->92.
17828         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17829         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17830         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17831         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17832         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17833         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17834         (PRED_CALL): Chane hitrate 71->67.
17835         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17836         (PRED_GOTO): Document as unused right now.
17837         (PRED_CONST_RETURN): Change hitrate 67->69
17838         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17839         (PRED_NULL_RETURN): Change hitrate 91->90.
17840         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17841         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17842         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17844 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
17846         * config/rs6000/altivec.h: Add __builtin_vec_mul.
17847         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17848         special case Altivec builtin.
17849         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17850         VSX_BUILTIN_VEC_MUL (replaced with special case code).
17851         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17852         code for ALTIVEC_BUILTIN_VEC_MUL.
17853         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17854         for __builtin_vec_mul.
17856 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
17858         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17859         -mno-htm.
17861 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
17863         * spellcheck.c (selftest::test_find_closest_string): New function.
17864         (spellcheck_c_tests): Call the above.
17866 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17868         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17870 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
17872         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17873         Yv=Yv,C alternatives.
17875 2016-06-07  Richard Biener  <rguenther@suse.de>
17877         PR c/61564
17878         * common.opt (ffast-math): Make Optimization.
17880 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
17881             Prachi Godbole  <prachi.godbole@imgtec.com>
17883         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17884         `fabs' and `fneg' type attributes.
17885         (p5600_fpu_fabs): Add `fmove' to the comment.
17887 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
17889         * gimple.c: Include builtins.h
17890         (gimple_inexpensive_call_p): New function.
17891         * gimple.h (gimple_inexpensive_call_p): Declare.
17892         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17893         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17894         fix formatting.
17896 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
17898         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17899         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17900         warning_at_rich_loc, warning_n, pedwarn, permerror,
17901         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17902         sorry, fatal_error, internal_error, internal_error_no_backtrace):
17903         Use the above.
17905 2016-06-07  Richard Biener  <rguenther@suse.de>
17907         PR tree-optimization/71428
17908         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17909         BIT_FIELD_REF op vs. load.
17911 2016-06-07  Richard Biener  <rguenther@suse.de>
17913         PR middle-end/71423
17914         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17915         for signed ops.
17917 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
17919         * config/pa/pa.md (call): Generate indirect long calls to non-local
17920         functions on TARGET_64BIT.
17921         (call_value): Likewise.
17923 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
17925         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17926         pattern and subsequent splitters.
17927         (call_val_reg_64bit_post_reload): Likewise.
17929 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17931         PR middle-end/71408
17932         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17933         propagate_op_to_single_use.
17935 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
17937         PR middle-end/71281
17938         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17940 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
17942         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17943         (enum x86_dirflag_state): New enum.
17944         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17945         (machine_function): Remove needs_cld.
17946         (ix86_current_function_needs_cld): Remove.
17947         * config/i386/i386.c (ix86_set_func_type): Set
17948         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17949         (ix86_expand_prologue): Do not emit CLD here.
17950         (ix86_dirflag_mode_needed): New function.
17951         (ix86_dirflag_mode_entry): Ditto.
17952         (ix86_mode_needed): Handle X86_DIRFLAG entity.
17953         (ix86_mode_after): Ditto.
17954         (ix86_mode_entry): Ditto.
17955         (ix86_mode_exit): Ditto.
17956         (ix86_emit_mode_set): Ditto.
17957         * config/i386/i386.md (strmov_singleop): Set
17958         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17959         Do not set ix86_current_function_needs_cld.
17960         (rep_mov): Ditto.
17961         (strset_singleop): Ditto.
17962         (rep_stos): Ditto.
17963         (cmpstrnqi_nz_1): Ditto.
17964         (cmpstrnqi_1): Ditto.
17965         (strlenqi_1): Ditto.
17967 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
17969         PR tree-optimization/71259
17970         * tree-vect-slp.c (vect_get_constant_vectors): For
17971         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17972         one for constant op, and use COND_EXPR for non-constant.
17974 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
17976         * Makefile.in (OBJS): Add function-tests.o,
17977         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17978         selftest-run-tests.o.
17979         (OBJS-libcommon): Add selftest.o.
17980         (OBJS-libcommon-target): Add selftest.o.
17981         (all.internal): Add "selftest".
17982         (all.cross): Likewise.
17983         (selftest): New phony target.
17984         (s-selftest): New target.
17985         (selftest-gdb): New phony target.
17986         (COLLECT2_OBJS): Add selftest.o.
17987         * bitmap.c: Include "selftest.h".
17988         (selftest::test_gc_alloc): New function.
17989         (selftest::test_set_range): New function.
17990         (selftest::test_clear_bit_in_middle): New function.
17991         (selftest::test_copying): New function.
17992         (selftest::test_bitmap_single_bit_set_p): New function.
17993         (selftest::bitmap_c_tests): New function.
17994         * common.opt (fself-test): New.
17995         * diagnostic-show-locus.c: Include "selftest.h".
17996         (make_range): New function.
17997         (test_range_contains_point_for_single_point): New function.
17998         (test_range_contains_point_for_single_line): New function.
17999         (test_range_contains_point_for_multiple_lines): New function.
18000         (assert_eq): New function.
18001         (test_get_line_width_without_trailing_whitespace): New function.
18002         (selftest::diagnostic_show_locus_c_tests): New function.
18003         * et-forest.c: Include "selftest.h".
18004         (selftest::test_single_node): New function.
18005         (selftest::test_simple_tree): New function.
18006         (selftest::test_disconnected_nodes): New function.
18007         (selftest::et_forest_c_tests): New function.
18008         * fold-const.c: Include "selftest.h".
18009         (selftest::assert_binop_folds_to_const): New function.
18010         (selftest::assert_binop_folds_to_nonlvalue): New function.
18011         (selftest::test_arithmetic_folding): New function.
18012         (selftest::fold_const_c_tests): New function.
18013         * function-tests.c: New file.
18014         * gimple.c: Include "selftest.h".
18015         Include "gimple-pretty-print.h".
18016         (selftest::verify_gimple_pp): New function.
18017         (selftest::test_assign_single): New function.
18018         (selftest::test_assign_binop): New function.
18019         (selftest::test_nop_stmt): New function.
18020         (selftest::test_return_stmt): New function.
18021         (selftest::test_return_without_value): New function.
18022         (selftest::gimple_c_tests): New function.
18023         * hash-map-tests.c: New file.
18024         * hash-set-tests.c: New file.
18025         * input.c: Include "selftest.h".
18026         (selftest::assert_loceq): New function.
18027         (selftest::test_accessing_ordinary_linemaps): New function.
18028         (selftest::test_unknown_location): New function.
18029         (selftest::test_builtins): New function.
18030         (selftest::test_reading_source_line): New function.
18031         (selftest::input_c_tests): New function.
18032         * rtl-tests.c: New file.
18033         * selftest-run-tests.c: New file.
18034         * selftest.c: New file.
18035         * selftest.h: New file.
18036         * spellcheck.c: Include "selftest.h".
18037         (selftest::levenshtein_distance_unit_test_oneway): New function,
18038         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
18039         (selftest::levenshtein_distance_unit_test): Likewise.
18040         (selftest::spellcheck_c_tests): Likewise.
18041         * toplev.c: Include selftest.h.
18042         (toplev::run_self_tests): New.
18043         (toplev::main): Handle -fself-test.
18044         * toplev.h (toplev::run_self_tests): New.
18045         * tree.c: Include "selftest.h".
18046         (selftest::test_integer_constants): New function.
18047         (selftest::test_identifiers): New function.
18048         (selftest::test_labels): New function.
18049         (selftest::tree_c_tests): New function.
18050         * tree-cfg.c: Include "selftest.h".
18051         (selftest::push_fndecl): New function.
18052         (selftest::test_linear_chain): New function.
18053         (selftest::test_diamond): New function.
18054         (selftest::test_fully_connected): New function.
18055         (selftest::tree_cfg_c_tests): New function.
18056         * vec.c: Include "selftest.h".
18057         (selftest::safe_push_range): New function.
18058         (selftest::test_quick_push): New function.
18059         (selftest::test_safe_push): New function.
18060         (selftest::test_truncate): New function.
18061         (selftest::test_safe_grow_cleared): New function.
18062         (selftest::test_pop): New function.
18063         (selftest::test_safe_insert): New function.
18064         (selftest::test_ordered_remove): New function.
18065         (selftest::test_unordered_remove): New function.
18066         (selftest::test_block_remove): New function.
18067         (selftest::reverse_cmp): New function.
18068         (selftest::test_qsort): New function.
18069         (selftest::vec_c_tests): New function.c.
18070         * wide-int.cc: Include selftest.h and wide-int-print.h.
18071         (selftest::from_int <wide_int>): New function.
18072         (selftest::from_int <offset_int>): New function.
18073         (selftest::from_int <widest_int>): New function.
18074         (selftest::assert_deceq): New function.
18075         (selftest::assert_hexeq): New function.
18076         (selftest::test_printing <VALUE_TYPE>): New function template.
18077         (selftest::test_ops <VALUE_TYPE>): New function template.
18078         (selftest::test_comparisons <VALUE_TYPE>): New function template.
18079         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
18080         template.
18081         (selftest::wide_int_cc_tests): New function.
18083 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18085         PR middle-end/37780
18086         * ifcvt.c (noce_try_ifelse_collapse): New function.
18087         Declare prototype.
18088         (noce_process_if_block): Call noce_try_ifelse_collapse.
18089         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
18090         (simplify_ternary_operation): Use the above to simplify
18091         conditional CLZ/CTZ expressions.
18093 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18095         PR middle-end/37780
18096         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
18097         define_insn_and_split.
18099 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18101         PR middle-end/37780
18102         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
18104 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18106         PR c/24414
18107         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
18108         Implicitly clobber memory for basic asm with non-empty assembler
18109         string.  Use targetm.md_asm_adjust also here.
18110         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
18111         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
18112         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
18113         non-empty assembler string.
18114         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
18115         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
18116         (decode_asm_operands): Handle basic asm in PARALLEL block.
18117         (extract_insn): Handle basic asm in PARALLEL block.
18118         * doc/extend.texi: Mention new behavior of basic asm.
18119         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
18120         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
18121         branch_needs_nop_p): Use asm_noperands.
18123 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
18125         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
18126         Include the M7 SPARC DFA scheduler.
18127         New attribute v3pipe.
18128         Annotate insns with v3pipe where appropriate.
18129         Define cpu_feature vis4.
18130         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
18131         Add (V8QI "8") to vbits.
18132         Add insns {add,sub}v8qi3
18133         Add insns ss{add,sub}v8qi3
18134         Add insns us{add,sub}{v8qi,v4hi}3
18135         Add insns {min,max}{v8qi,v4hi,v2si}3
18136         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
18137         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
18138         * config/sparc/niagara4.md: Add a comment explaining the
18139         discrepancy between the documented latenty numbers and the
18140         implemented ones.
18141         * config/sparc/niagara7.md: New file.
18142         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
18143         supports SPARC5 and VIS 4.0 instructions.
18144         * configure: Regenerate.
18145         * config.in: Likewise.
18146         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
18147         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
18148         TARGET_CPU_niagara7.
18149         (ASM_CPU64_DEFAULT_SPEC): Likewise.
18150         (CPP_CPU_SPEC): Handle niagara7.
18151         (ASM_CPU_SPEC): Likewise.
18152         * config/sparc/sparc-opts.h (processor_type): Add
18153         PROCESSOR_NIAGARA7.
18154         (mvis4): New option.
18155         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
18156         (AS_NIAGARA7_FLAG): Define.
18157         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
18158         (CPP_CPU64_DEFAULT_SPEC): Likewise.
18159         (CPP_CPU_SPEC): Handle niagara7.
18160         (ASM_CPU_SPEC): Likewise.
18161         * config/sparc/sparc.c (niagara7_costs): Define.
18162         (sparc_option_override): Handle niagara7 and adjust cache-related
18163         parameters with better values for niagara cpus.  Also support VIS4.
18164         (sparc32_initialize_trampoline): Likewise.
18165         (sparc_use_sched_lookahead): Likewise.
18166         (sparc_issue_rate): Likewise.
18167         (sparc_register_move_cost): Likewise.
18168         (dump_target_flag_bits): Support VIS4.
18169         (sparc_vis_init_builtins): Likewise.
18170         (sparc_builtins): Likewise.
18171         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
18172         VIS4 4.0.
18173         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
18174         UltraSparc M7.
18175         * config/sparc/sparc.opt (sparc_processor_type): New value
18176         niagara7.
18177         * config/sparc/visintrin.h (__attribute__): Prototypes for the
18178         VIS4 builtins.
18179         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
18180         -mvis4.
18181         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
18182         VIS4 builtins.
18184 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
18186         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
18188 2016-06-06  Richard Biener  <rguenther@suse.de>
18190         PR tree-optimization/71398
18191         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
18192         remove edges.
18194 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
18196         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
18197         ft32_expand_prolog, ft32_expand_epilogue):
18198         Handle pretend_args.
18199         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
18200         * config/ft32/ft32.md: Add pretend_returner.
18202 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
18204         PR target/71389
18205         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18206         Copy op1 RTX to avoid invalid sharing.
18207         (ix86_expand_vector_move_misalign): Ditto.
18209 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
18211         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
18212         ATTRIBUTE_UNUSED.
18214 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
18216         * predict.c (predicted_by_loop_heuristics_p): New function.
18217         (predict_iv_comparison): Use it.
18218         (predict_loops): Walk from innermost loops; do not predict edges
18219         leaving multiple loops multiple times; implement
18220         PRED_LOOP_ITERATIONS_MAX heuristics.
18221         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
18223 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
18225         * cfg.c (check_bb_profile): Do not report mismatched profiles when
18226         only edges out of BB are EH edges.
18228 2016-06-04  Martin Sebor  <msebor@redhat.com>
18229             Marcin Baczyński  <marbacz@gmail.com>
18231         PR c/48116
18232         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
18233         a void expression in a void function.
18235 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
18237         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
18238         aux; dump reasons of decisions.
18239         (should_duplicate_loop_header_p): Likewise.
18240         (do_while_loop_p): Likewise.
18241         (ch_base::copy_headers): Dump asi num insns duplicated.
18243 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
18245         PR tree-optimization/71405
18246         * tree-ssa.c (execute_update_addresses_taken): For clobber with
18247         incompatible type, build a new clobber with the right type instead
18248         of building a VIEW_CONVERT_EXPR around it.
18250 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
18252         PR tree-optimization/52171
18253         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
18254         by_pieces_ninsns instead of move_by_pieces_ninsns.
18256 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
18258         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
18259         for reg+reg addressing mode.
18261 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18263         * rs6000-c.c (c/c-tree.h): Add #include.
18264         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
18265         in C++ when found in the base position of vec_ld or vec_st.
18267 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
18269         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
18270         use of profile unless profile status is PROFILE_READ.
18271         * profile.c (compute_branch_probabilities): Set profile status
18272         only after reporting predictor hitrates.
18274 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
18276         PR target/71276
18277         PR target/71277
18278         * common.opt (ffp-int-builtin-inexact): New option.
18279         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
18280         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
18281         (ceil@var{m}2): Document dependence on this option.
18282         * ipa-inline-transform.c (inline_call): Handle
18283         flag_fp_int_builtin_inexact.
18284         * ipa-inline.c (can_inline_edge_p): Likewise.
18285         * config/i386/i386.md (rintxf2): Do not test
18286         flag_unsafe_math_optimizations.
18287         (rint<mode>2_frndint): New define_insn.
18288         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
18289         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
18290         for 387 instead of extending and truncating.
18291         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
18292         !flag_trapping_math instead of flag_unsafe_math_optimizations.
18293         Change to frndint<mode>2_<rounding>.
18294         (frndintxf2_<rounding>_i387): Likewise.  Change to
18295         frndint<mode>2_<rounding>_i387.
18296         (<rounding_insn>xf2): Likewise.
18297         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
18298         !flag_trapping_math instead of flag_unsafe_math_optimizations for
18299         x87.  Test TARGET_ROUND || !flag_trapping_math ||
18300         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
18301         SSE.  Use ROUND_NO_EXC in constant operand of
18302         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
18303         for 387 instead of extending and truncating.
18305 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
18306             Julia Koval  <julia.koval@intel.com>
18308         PR target/66960
18309         PR target/67630
18310         PR target/67634
18311         PR target/67841
18312         PR target/68037
18313         PR target/68618
18314         PR target/68661
18315         PR target/69575
18316         PR target/69596
18317         PR target/69734
18318         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
18319         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
18320         all registers, except for function return registers if there are
18321         no caller-saved registers.
18322         (ix86_set_func_type): New function.
18323         (ix86_set_current_function): Call ix86_set_func_type to set
18324         no_caller_saved_registers and func_type.  Call reinit_regs if
18325         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
18326         nor x87 instructions in interrupt handler nor function with
18327         no_caller_saved_registers attribute.
18328         (ix86_function_ok_for_sibcall): Return false if there are no
18329         caller-saved registers.
18330         (type_natural_mode): Don't warn ABI change for MMX in interrupt
18331         handler.
18332         (ix86_function_arg_advance): Skip for callee in interrupt handler.
18333         (ix86_function_arg): Return special arguments in interrupt handler.
18334         (ix86_promote_function_mode): Promote pointer to word_mode only
18335         for normal functions.
18336         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
18337         interrupt handler.
18338         (ix86_epilogue_uses): New function.
18339         (ix86_hard_regno_scratch_ok): Likewise.
18340         (ix86_save_reg): Preserve all registers in interrupt handler
18341         after reload.  Preserve all registers, except for function return
18342         registers, if there are no caller-saved registers after reload.
18343         (find_drap_reg): Always use callee-saved register if there are
18344         no caller-saved registers.
18345         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
18346         for interrupt handler.
18347         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
18348         Emit cld instruction if stringops are used in interrupt handler
18349         or interrupt handler isn't a leaf function.
18350         (ix86_expand_epilogue): Generate interrupt return for interrupt
18351         handler and pop the 'ERROR_CODE' off the stack before interrupt
18352         return in exception handler.
18353         (ix86_expand_call): Disallow calling interrupt handler directly.
18354         If there are no caller-saved registers, mark all registers that
18355         are clobbered by the call which returns as clobbered.
18356         (ix86_handle_no_caller_saved_registers_attribute): New function.
18357         (ix86_handle_interrupt_attribute): Likewise.
18358         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
18359         attributes.
18360         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
18361         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
18362         accumulation in interrupt function if stack may be realigned to
18363         avoid DRAP.
18364         (EPILOGUE_USES): New.
18365         (function_type): New enum.
18366         (machine_function): Add func_type and no_caller_saved_registers.
18367         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
18368         (interrupt_return): New pattern.
18369         * doc/extend.texi: Document x86 interrupt and
18370         no_caller_saved_registers attributes.
18372 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
18374         PR tree-optimization/52171
18375         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
18376         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
18377         Look for constant strings.  Move some code to emit_block_cmp_hints
18378         and use it.
18379         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18380         * defaults.h (COMPARE_MAX_PIECES): New macro.
18381         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18382         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18383         (clear_by_pieces_1): Don't declare.  Move definition before use.
18384         (can_do_by_pieces): New static function.
18385         (can_move_by_pieces): Use it.  Return bool.
18386         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
18387         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
18388         (class pieces_addr); New.
18389         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18390         pieces_addr::adjust, pieces_addr::increment_address,
18391         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18392         functions for it.
18393         (class op_by_pieces_d): New.
18394         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18395         functions for it.
18396         (class move_by_pieces_d, class compare_by_pieces_d,
18397         class store_by_pieces_d): New subclasses of op_by_pieces_d.
18398         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18399         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18400         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18401         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18402         compare_by_pieces_d::finish_mode): New member functions.
18403         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18404         functions.
18405         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18406         (emit_block_cmp_hints): New function.
18407         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18408         use the newly defined classes.
18409         * expr.h (by_pieces_constfn): New typedef.
18410         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18411         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18412         (move_by_pieces_ninsns): Don't declare.
18413         (can_move_by_pieces): Change return value to bool.
18414         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18415         (compare_by_pieces_branch_ratio): New hook.
18416         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18417         (by_pieces_ninsns): Declare.
18418         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18419         COMPARE_BY_PIECES.
18420         (default_compare_by_pieces_branch_ratio): New function.
18421         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18422         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18423         * doc/tm.texi: Regenerate.
18424         * tree-ssa-strlen.c: Include "builtins.h".
18425         (handle_builtin_memcmp): New static function.
18426         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18427         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18429 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
18431         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18432         relevant stmts which are simple and invariant.
18433         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18434         instead of simple and invariant
18436 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
18438         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18439         (vectorizable_reduction): Check for new relevant state.
18440         (vectorizable_live_operation): vectorize live stmts using
18441         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
18442         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18443         (vect_stmt_relevant_p): Check for stmts which are only used live.
18444         (process_use): Use of a stmt does not inherit it's live value.
18445         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18446         (vect_analyze_stmt): Check for new relevant state.
18447         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18448         outside the loop, but not inside it.
18450 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
18452         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18453         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18454         (vect_get_vec_def_for_operand): Split out code.
18456 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
18458         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18460 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
18462         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18464 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18466         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18468 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
18470         PR middle-end/71387
18471         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18472         to noreturn e->callee->decl that has void return type and void
18473         arguments, adjust gimple_call_fntype and remove lhs even if it had
18474         previously addressable type.
18476 2016-06-02  Jeff Law  <law@redhat.com>
18478         PR tree-optimization/71328
18479         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18480         error when checking for a jump back onto the copied path.
18482 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
18484         * config/microblaze/microblaze.c (get_branch_target): Add return
18485         NULL_RTX for the non-CALL_P case.
18486         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18487         (insert_wic): Remove unused local "j".
18489 2016-06-02  Martin Liska  <mliska@suse.cz>
18491         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18493 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18494             Julia Koval  <julia.koval@intel.com>
18496         * function.c (assign_parm_setup_stack): Force source into a
18497         register if needed.
18498         * target.def (function_incoming_arg): Update documentation to
18499         allow arbitrary address computation based on hard register.
18500         * doc/tm.texi: Regenerated.
18502 2016-06-02  Martin Liska  <mliska@suse.cz>
18504         * predict.c (combine_predictions_for_bb): Fix first match in
18505         cases where a first predictor contains more than one occurence
18506         in list of predictors.  Take the best value in such case.
18508 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18510         PR rtl-optimization/71295
18511         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18512         offset would go over the size of the inner mode reject it.
18514 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
18516         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18517         x=x,x and v=v,m instead of x=x,m.
18519         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18520         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
18521         alternative to v=rm,C.
18523         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18524         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
18525         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
18526         instead of vex for the last two above mentioned alternatives.
18528 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18530         PR target/70830
18531         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18533 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
18535         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18537 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
18539         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18540         from int to unsigned.
18542 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
18544         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18545         alternatives, eliminating preferred register class.  Add support
18546         for the MTVSRDD instruction in ISA 3.0.
18547         (vsx_splat_v4si_internal): Use splat_input_operand instead of
18548         reg_or_indexed_operand.
18549         (vsx_splat_v4sf_internal): Likewise.
18551 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
18553         PR target/71186
18554         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18555         for loading up all 0's or all 1's.
18557 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18559         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18561 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
18563         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18564         extension.
18565         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18566         * gcc.c (set_source_date_epoch_envvar): New function, sets
18567         the SOURCE_DATE_EPOCH environment variable to the current time.
18569 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18571         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18572         the factor for live Phi nodes.
18574 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
18576         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18577         * tree-parloops.c (parallelize_loops): likewise.
18578         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18579         tree_unswitch_outer_loop): likewise.
18581 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
18583         PR middle-end/71371
18584         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18585         around creation of the temporary.
18587 2016-06-01  Richard Biener  <rguenther@suse.de>
18589         PR tree-optimization/71366
18590         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18591         (unloop_loops): Move removing edges here ...
18592         (try_unroll_loop_completely): ... from here.
18593         (try_peel_loop): ... and here.
18594         (tree_unroll_loops_completely_1): Track parent loops via
18595         bitmap of header BBs.
18596         (tree_unroll_loops_completely): Adjust for that.
18598 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18600         * config/rs6000/altivec.h (vec_slv): New macro.
18601         (vec_srv): New macro.
18602         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18603         (UNSPEC_VSRV): New value.
18604         (vslv): New insn.
18605         (vsrv): New insn.
18606         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18607         (vsrv): New builtin definition.
18608         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18609         define argument types for new builtin.
18610         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18611         new builtin.
18612         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18613         functions.
18615 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
18616             Jocelyn Mayer  <l_indien@magic.fr>
18618         PR target/67310
18619         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18620         detect processor family for signature_CENTAUR_ebx.
18621         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18622         signature_CENTAUR_ebx.
18623         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18624         <default>: Pass x86-64 for has_longmode.
18626 2016-06-01  Nathan Sidwell  <nathan@acm.org>
18628         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18629         undefined weak.
18631 2016-06-01  Richard Biener  <rguenther@suse.de>
18633         PR tree-optimization/71261
18634         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18635         of stmts successfully put in the bool pattern.  Remove
18636         single-use restriction.
18637         (adjust_bool_pattern_cast): Add cast at the use site via the
18638         pattern def sequence.
18639         (adjust_bool_pattern): Remove recursion, maintain a hash-map
18640         of patterned defs.  Use the pattern def seqence instead of
18641         multiple independent patterns.
18642         (sort_after_uid): New qsort compare function.
18643         (adjust_bool_stmts): New function to process stmts in the bool
18644         pattern in IL order.
18645         (vect_recog_bool_pattern): Adjust.
18646         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18647         (ifcvt_walk_pattern_tree): Likewise.
18648         (stmt_is_root_of_bool_pattern): Likewise.
18649         (ifcvt_repair_bool_pattern): Likewise.
18650         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18652 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
18654         * loop-unroll.c (decide_unroll_constant_iterations,
18655         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18656         likely upper bounds.
18657         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18659 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
18661         * tree-core.h (enum omp_clause_code): Remove
18662         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
18664 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18666         * config/arm/sync.md (arm_store_exclusive<mode>):
18667         Use 'H' output modifier on operands[2] rather than creating a new
18668         entry in out-of-bounds memory of the operands array.
18669         (arm_store_release_exclusivedi): Likewise.
18671 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18673         * config/arm/arm.c (arm_fusion_enabled_p): New function.
18674         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18675         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18676         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
18678 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
18680         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18681         into account live statements for mask producers.
18683 2016-06-01  Richard Biener  <rguenther@suse.de>
18685         PR tree-optimization/71311
18686         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18687         restrict to non-INTEGER_CST @0.
18689 2016-06-01  Richard Biener  <rguenther@suse.de>
18691         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18692         (relational patterns): Use :c to avoid pattern duplications.
18694 2016-06-01  Richard Biener  <rguenther@suse.de>
18696         * genmatch.c (comparison_code_p): New predicate.
18697         (swap_tree_comparison): New function.
18698         (commutate): Add for_vec parameter to append new for entries.
18699         Support commutating relational operators by swapping it alongside
18700         operands.
18701         (lower_commutative): Adjust.
18702         (dt_simplify::gen): Do not pass artificial operators to gen
18703         functions.
18704         (decision_tree::gen): Do not add artificial operators as parameters.
18705         (parser::parse_expr): Verify operator commutativity when :c is
18706         applied.  Allow :C to override this.
18707         * match.pd: Adjust patterns to use :C instead of :c where required.
18709 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
18711         PR tree-optimization/71077
18712         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18713         the combining step, use boolean_false_node and boolean_true_node
18714         as the designated false/true return values.
18716 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18718         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18719         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18720         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18721         PRED_LOOP_EXIT.
18723 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18725         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18726         of flags impliying the register renaming.
18727         * toplev.c (process_options): Do not imply flag_rename_registers with
18728         loop peeling.
18730 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18732         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18733         default implementation.
18735 2016-05-31  Nathan Sidwell  <nathan@acm.org>
18737         * dwarf2out.c (cur_line_info_table): Add GTY marker.
18739 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18741         * config/sh/constraints.md (b): Remove constraint.
18742         * config/sh/predicates.md (arith_reg_operand): Remove
18743         TARGET_REGISTER_P.
18744         * config/sh/sh-modes.def (PDI): Remove.
18745         * config/sh/sh.c (sh_target_reg_class,
18746         sh_optimize_target_register_callee_saved): Remove functions.
18747         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18748         (sh_expand_epilogue): Update comment.
18749         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18750         sh_secondary_reload): Remove TARGET_REGS related code.
18751         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18752         TARGET_REGISTER_P): Remove macros.
18753         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18754         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18755         TR1_REG, TR2_REG): Remove constants.
18756         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18758 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18760         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18761         define_expand patterns.
18762         (adddi3_compact): Rename to adddi3.
18763         (subdi3_compact): Rename to subdi3.
18764         (*negdi2): Rename to negdi2.
18765         (*abs<mode>2): Rename to abs<mode>2.
18767 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
18769         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18770         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18771         (atomic_sub_fetchsi): ... this new pattern.
18772         (mvtc): Add CC_REG clobber.
18774 2016-05-31  Marek Polacek  <polacek@redhat.com>
18776         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18778 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18780         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18781         aarch64_fusion_enabled_p to check for fusion capabilities.
18783 2016-05-31  Richard Biener  <rguenther@suse.de>
18785         PR tree-optimization/71352
18786         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18787         minus one and a negate.
18789 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18791         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18792         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18793         Delete prototype.
18794         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18795         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18796         Remove use of aarch64_simd_attr_length_move, set length attribute
18797         directly.
18798         (*aarch64_be_movoi): Likewise.
18799         (*aarch64_be_movci): Likewise.
18800         (*aarch64_be_movxi): Likewise.
18802 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
18804         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18805         It no longer does that.
18806         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18808 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
18810         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18811         attribute __unused__.
18813 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18815         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18816         * config/arm/arm.c (arm_arch_thumb1): Define.
18817         (arm_option_override): Initialize arm_arch_thumb1.
18818         * config/arm/arm.h (arm_arch_thumb1): Declare.
18819         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18820         support Thumb-1 ISA.
18822 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18824         PR target/71346
18825         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18826         `Yv' for scalar operand.
18828 2016-05-31  Tom de Vries  <tom@codesourcery.com>
18830         PR tree-optimization/69068
18831         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18832         phis with more than two args.
18834 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
18836         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18837         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18838         target.
18840 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
18842         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18843         tune_64.
18844         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18845         support on SPARC.
18846         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18847         cpu_32, cpu_64, tune_32 and tune_64.
18848         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18850 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
18852         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18854 2016-05-30  Andi Kleen  <ak@linux.intel.com>
18856         * auto-profile.c (read_profile): Replace asserts with errors
18857         when file does not exist.
18858         * gcov-io.c (gcov_read_words): Dito.
18860 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18862         * tree-cfg.c (print_loop): Print likely upper bounds.
18864 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18866         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18867         * opts.c (default_options): Enable peel loops at -O3.
18868         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18869         (try_peel_loop): Do not re-peel already peeled loops;
18870         use likely upper bounds; fix profile updating.
18871         (pass_complete_unroll::execute): Initialize peeled_loops.
18873 2016-05-30  Martin Liska  <mliska@suse.cz>
18875         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18876         computed costs by frequency of BB they belong to.
18877         (get_scaled_computation_cost_at): New function.
18879 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
18880             Marc Glisse  <marc.glisse@inria.fr>
18882         PR tree-optimization/71289
18883         * match.pd (-1 / B < A, A > -1 / B): New transformations.
18885 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18887         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18889 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18891         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18892         for peeled copies; avoid underflow when updating estimates; correctly
18893         scale loop profile.
18895 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18897         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18898         r236875. Corrected oe3 to oe2 as obvious.
18900 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18902         PR middle-end/71269
18903         PR middle-end/71252
18904         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18905         that inserted stmt will not dominate stmts that defines its operand.
18906         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18907         (rewrite_expr_tree_parallel): Likewise.
18909 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
18911         PR middle-end/71252
18912         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18913         all fields including stmt_to_insert are swapped.
18915 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18917         * predict.h (force_edge_cold): Declare.
18918         * predict.c (force_edge_cold): New function.
18919         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18920         updating.
18921         (canonicalize_loop_induction_variables): Fix formating.
18923 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
18925         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18926         (visium_expand_copysign): Use gen_int_mode directly.
18927         (visium_compute_frame_size): Minor tweaks.
18929 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
18931         * tree-vect-loop.c (vect_analyze_loop_2): Use
18932         likely_max_stmt_executions_int.
18934 2016-05-30  Tom de Vries  <tom@codesourcery.com>
18936         PR tree-optimization/69067
18937         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18939 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
18941         PR target/71245
18942         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18943         New peepholes to remove unneeded fild/fistp pairs.
18944         (define_peephole2 atomic_loaddi_fpu): Ditto.
18946 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18948         * predict.c (maybe_hot_frequency_p): Avoid division.
18950 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
18952         * doc/install.texi: Use https for shop.fsf.org.
18954 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18956         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18957         likely_max_stmt_executions_int.
18959 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18961         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18962         likely_max_stmt_executions_int.
18964 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18966         * profile.c (compute_branch_probabilities): Do not report hitrates
18967         here.
18968         (branch_prob): Report hitrates here.
18969         * predict.c (gimple_predict_edge): Do not assert profile status;
18970         fix formatting issues.
18972 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18974         * predict.c (edge_predicted_by_p): New function.
18975         (predict_paths_for_bb): Do not put multiple predictions of the same type
18976         on one edge.
18978 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
18980         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18981         commit.
18983 2016-05-28  Alan Modra  <amodra@gmail.com>
18985         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18987 2016-05-28  Alan Modra  <amodra@gmail.com>
18989         PR rtl-optimization/71275
18990         * ira.c (ira): Free dominance info.
18992 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
18994         * doc/sourcebuild.texi: New address for upstream Go repository.
18996 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18998         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18999         (TARGET_ARM_V7M): Likewise.
19001 2016-05-26  Jeff Law  <law@redhat.com>
19003         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
19004         (thread_across_edge): Remove calls to find_jump_threads_backwards.
19005         * passes.def: Add jump threading passes before DOM/VRP.
19006         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
19007         argument to a basic block from an edge.  Remove tests which are
19008         handled elsewhere.
19009         (pass_data_thread_jumps, class pass_thread_jumps): New.
19010         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
19011         (make_pass_thread_jumps): Likewise.
19012         * tree-pass.h (make_pass_thread_jumps): Declare.
19014 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19016         * config/visium/visium-protos.h (split_double_move): Rename into...
19017         (visium_split_double_move): ...this.
19018         (visium_split_double_add): Declare.
19019         * config/visium/visium.c (split_double_move): Rename into...
19020         (visium_split_double_move): ...this.
19021         (visium_split_double_add): New function.
19022         (visium_expand_copysign): Renumber operands for consistency.
19023         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
19024         (DFmode move splitter): Likewise.
19025         (*addi3_insn): Split by means of visium_split_double_add.
19026         (*adddi3_insn_flags): Delete.
19027         (*plus_plus_sltu<subst_arith>): New insn.
19028         (*subdi3_insn): Split by means of visium_split_double_add.
19029         (subdi3_insn_flags): Delete.
19030         (*minus_minus_sltu<subst_arith>): New insn.
19031         (*negdi2_insn): Split by means of visium_split_double_add.
19032         (*negdi2_insn_flags): Delete.
19034 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
19036         * configure.ac: Treat a --with-headers option without argument
19037         the same as the default (i.e. consult sys-include directory).
19038         * configure: Regenerate.
19040 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19042         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
19043         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
19044         prototype.
19045         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
19046         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
19048 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
19050         PR target/63596
19051         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
19052         tree-stdarg analysis results.
19053         (aarch64_setup_incoming_varargs): Likewise.
19055 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
19057         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
19058         va_list_gpr_counter_field and va_list_fpr_counter_field.
19060 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
19062         PR67609
19063         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
19064         * config/aarch64/aarch64.c
19065         (aarch64_cannot_change_mode_class): Remove function.
19066         * config/aarch64/aarch64-protos.h
19067         (aarch64_cannot_change_mode_class): Remove.
19069 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
19071         * cfgloop.c (record_niter_bound): Record likely upper bounds.
19072         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
19073         get_likely_max_loop_iterations_int): New.
19074         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
19075         any_likely_upper_bound.
19076         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
19077         Declare.
19078         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
19079         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
19080         upper bound.
19081         (unroll_loop_constant_iterations): Likewise.
19082         (unroll_loop_runtime_iterations): Likewise.
19083         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
19084         * lto-streamer-out.c (output_cfg): Likewise.
19085         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
19086         bounds.
19087         (canonicalize_loop_induction_variables): Dump likely upper bounds.
19088         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
19089         (likely_max_loop_iterations): New.
19090         (likely_max_loop_iterations_int): New.
19091         (likely_max_stmt_executions): New.
19092         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
19093         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
19094         likely_max_stmt_executions): Declare.
19096 2016-05-27  Marek Polacek  <polacek@redhat.com>
19098         PR middle-end/71308
19099         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
19101 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19103         * config/s390/s390.md (2x risbg splitters): Use
19104         reg_overlap_mentioned_p instead of rtx_equal_p.
19106 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19108         * combine.c (make_compound_operation): Take known zero bits into
19109         account when checking for possible zero_extend.
19111 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19113         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
19114         Use const_int_operand for operand 2 predicate.  Simplify expand code
19115         as a result.
19117 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
19119         PR middle-end/71279
19120         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
19121         into comparison.
19123 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19125         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
19126         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
19127         that returns CC_SESWPmode and CC_ZESWPmode.
19128         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
19129         and CC_SESWPmode.
19130         (aarch64_rtx_costs): Likewise.
19132 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19134         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
19135         for ISA 3.0 min/max support.
19136         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
19137         conditional move support.
19138         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
19139         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
19140         available.
19141         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
19142         conditional moves where the comparison type is different from move
19143         type.
19144         (fp_minmax): New code iterator for smin/smax.
19145         (minmax): New code attributes for min/max.
19146         (SMINMAX): Likewise.
19147         (smax<mode>3): Combine min, max insns into one insn using the
19148         fp_minmax code iterator.  Add support for ISA 3.0 min/max
19149         instructions that don't need -ffast-math.
19150         (s<minmax><mode>3): Likewise.
19151         (smax<mode>3_vsx): Likewise.
19152         (smin<mode>3): Likewise.
19153         (s<minmax><mode>3_vsx): Likewise.
19154         (smin<mode>3_vsx): Likewise.
19155         (pre-VSX min/max splitters): Likewise.
19156         (s<minmax><mode>3_fpr): Likewise.
19157         (movsfcc): Rewrite floating point conditional moves to combine
19158         SFmode/DFmode into a single insn.
19159         (mov<mode>cc): Likewise.
19160         (movdfcc): Likewise.
19161         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
19162         SFDF2 iterators to handle all combinations.
19163         (fseldfsf4): Likewise.
19164         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
19165         (fseldfdf4): Likewise.
19166         (fselsfdf4): Likewise.
19167         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
19168         comparison instructions that set a 0/-1 mask, and use it for
19169         floating point conditional move via XXSEL.
19170         (fpmask<mode>): Likewise.
19171         (xxsel<mode>): Likewise.
19172         * config/rs6000/predicates.md (min_max_operator): Delete, no
19173         longer used.
19174         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
19175         instructions that generate a 0/-1 mask for use with XXSEL.
19176         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
19177         say whether floating point min/max is available, either through
19178         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
19179         (TARGET_MINMAX_DF): Likewise.
19181 2016-05-27  Alan Modra  <amodra@gmail.com>
19183         PR rtl-optimization/71275
19184         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
19185         for update_equiv_regs and combine_and_move_insns.
19187 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
19189         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
19190         if_then_else or cond RTXes to calculate attribute value.
19191         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
19192         <attr "length_immediate>: Ditto.
19193         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
19194         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
19195         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
19196         <attr "type">: Ditto.
19197         <attr "prefix_data16">: Ditto.
19198         <attr "prefix_extra">: Ditto.
19199         <attr "length_immediate">: Ditto.
19200         <attr "prefix">: Ditto.
19201         (vec_set<mode>_0) <attr "isa">: Ditto.
19202         <attr "prefix_extra">: Ditto.
19203         <attr "length_immediate">: Ditto.
19204         <attr "prefix">: Ditto.
19205         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
19206         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
19207         (sse2_storelpd) <attr "prefix_data16">: Ditto.
19208         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
19209         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
19210         <attr "length_immediate">: Ditto.
19211         <attr "prefix">: Ditto.
19212         (sse2_movsd) <attr "length_immediate">: Ditto.
19213         <attr "prefix">: Ditto.
19214         (vec_concatv2df)  <attr "isa">: Ditto.
19215         <attr "prefix">: Ditto.
19216         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
19217         (*vec_extractv2di_1) <attr "isa">: Ditto.
19218         <attr "type">: Ditto.
19219         <attr "length_immediate">: Ditto.
19220         <attr "prefix_rex">: Ditto.
19221         <attr "prefix_extra">: Ditto.
19222         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
19223         <attr "prefix_extra">: Ditto.
19224         <attr "length_immediate">: Ditto.
19225         (vec_concatv2di) <attr "isa">: Ditto.
19226         <attr "prefix_extra">: Ditto.
19227         <attr "length_immediate">: Ditto.
19228         <attr "prefix">: Ditto.
19230 2016-05-26  Martin Liska  <mliska@suse.cz>
19232         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
19233         function.
19234         (operator+): Likewise.
19235         (operator-): Likewise.
19236         (comp_cost::operator+=): Likewise.
19237         (comp_cost::operator-=): Likewise.
19238         (comp_cost::operator/=): Likewise.
19239         (comp_cost::operator*=): Likewise.
19240         (operator<): Likewise.
19241         (operator==): Likewise.
19242         (operator<=): Likewise.
19243         (new_cost): Remove.
19244         (infinite_cost_p): Likewise.
19245         (add_costs): Likewise.
19246         (sub_costs): Likewise.
19247         (compare_costs): Likewise.
19248         (set_group_iv_cost): Use the newly introduced functions.
19249         (get_address_cost): Likewise.
19250         (get_shiftadd_cost): Likewise.
19251         (force_expr_to_var_cost): Likewise.
19252         (split_address_cost): Likewise.
19253         (ptr_difference_cost): Likewise.
19254         (difference_cost): Likewise.
19255         (get_computation_cost_at): Likewise.
19256         (determine_group_iv_cost_generic): Likewise.
19257         (determine_group_iv_cost_address): Likewise.
19258         (determine_group_iv_cost_cond): Likewise.
19259         (autoinc_possible_for_pair): Likewise.
19260         (determine_group_iv_costs): Likewise.
19261         (cheaper_cost_pair): Likewise.
19262         (iv_ca_recount_cost): Likewise.
19263         (iv_ca_set_no_cp): Likewise.
19264         (iv_ca_set_cp): Likewise.
19265         (iv_ca_cost): Likewise.
19266         (iv_ca_new): Likewise.
19267         (iv_ca_dump): Likewise.
19268         (iv_ca_narrow): Likewise.
19269         (iv_ca_prune): Likewise.
19270         (iv_ca_replace): Likewise.
19271         (try_add_cand_for): Likewise.
19272         (try_improve_iv_set): Likewise.
19273         (find_optimal_iv_set): Likewise.
19275 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
19277         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
19278         that internal functions will clobber all caller-saved registers.
19280 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
19282         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
19283         Return a better case_values_threshold when optimizing.
19285 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
19287         * config/aarch64/aarch64-simd.md (aarch64_combinez):
19288         Add ? to integer variant.
19289         (aarch64_combinez_be): Likewise.
19291 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
19293         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
19294         instead of x constraint.
19295         (vcvtps2ph256<mask_name>): Likewise.
19297         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
19298         alternative.  Formatting fix.
19300         * config/i386/sse.md
19301         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
19302         to ...
19303         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
19304         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
19305         maybe_evex prefix instead of vex.
19306         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
19307         EXT_REX_SSE_REG_P (op0) case in the splitter.
19309 2016-05-25  Jeff Law  <law@redhat.com>
19311         PR tree-optimization/71272
19312         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
19313         Update comments.  Add test for empty path.
19315 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
19317         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
19318         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
19319         special case builtin.
19320         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19321         code for ALTIVEC_BUILTIN_VEC_CMPNE.
19322         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19323         for __builtin_vec_cmpne.
19325 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
19327         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
19328         redundant test and bail out if the type of the new operand is not
19329         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
19331 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
19333         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
19334         (x_ix86_target_flags_explicit): Remove.
19335         * config/i386/i386.c (ix86_function_specific_save): Do not copy
19336         x_ix86_target_flags_explicit.
19337         (ix86_function_specific_restore): Ditto.
19339 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
19340             H.J. Lu  <hongjiu.lu@intel.com>
19342         PR target/70738
19343         * common/config/i386/i386-common.c
19344         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
19345         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
19346         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
19347         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
19348         (-mgeneral-regs-only): Add new option.
19349         * config/i386/i386.c (ix86_option_override_internal): Don't enable
19350         x87 instructions if only general registers are allowed.
19351         (ix86_target_string): Add ix86_flags argument. Handle additional
19352         flags options through ix86_flags argument.  Update all callers.
19353         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
19355 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19357         PR rtl-optimization/66940
19358         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
19359         decrementing desired_val will not overflow before performing these
19360         operations.
19362 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
19364         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
19365         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
19366         * config/i386/i386.c (enum ix86_builtins): Add
19367         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
19368         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
19369         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
19370         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
19371         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
19372         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
19373         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
19374         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
19375         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
19376         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
19377         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
19378         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19379         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19380         __builtin_ia32_cvtps2dq512_mask.
19381         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19382         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19383         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19384         * config/i386/sse.md
19385         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19386         Rename to ...
19387         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19388         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19389         to ...
19390         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19391         (avx512f_vec_pack_sfix_v8df): New define_expand.
19392         (avx512f_roundpd512): Rename to ...
19393         (avx512f_round<castmode>512): ... this.  Change iterator.
19394         (avx512f_roundps512_sfix): New define_expand.
19395         (round<mode>2_sfix): Change iterator.
19397 2016-05-25  Nick Clifton  <nickc@redhat.com>
19399         * config/msp430/msp430.c (msp430_attr): Produce an error if a
19400         static interrupt handler is detected.
19401         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19402         default linker script.
19403         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19404         the low part of a symbolic pointer.
19406 2016-05-25  Richard Biener  <rguenther@suse.de>
19408         PR tree-optimization/71261
19409         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19410         interesting stmt instead of immediate uses when looking
19411         for the use operand to replace.
19413 2016-05-25  Martin Liska  <mliska@suse.cz>
19415         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19417 2016-05-25  Richard Biener  <rguenther@suse.de>
19419         PR tree-optimization/71264
19420         * tree-vect-stmts.c (vect_init_vector): Properly deal with
19421         vector type val.
19423 2016-05-25  Martin Liska  <mliska@suse.cz>
19425         PR tree-optimization/71239
19426         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19427         if DECL_SIZE is NULL.
19429 2016-05-25  Richard Biener  <rguenther@suse.de>
19431         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19432         * tree-if-conv.c (pass_data_if_conversion): Use it.
19434 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19436         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19437         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19438         * varpool.c (varpool_node::get_availability): Likewise.
19440 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19442         * config/rs6000/altivec.md (VNEG iterator): New iterator for
19443         VNEGW/VNEGD instructions.
19444         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19445         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19446         support for ISA 3.0 VNEGW/VNEGD instructions.
19448 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
19450         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19451         pointers inside OACC_DATA regions.
19452         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19453         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19454         (gimplify_adjust_omp_clauses): Fix typo in comment.
19456 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19458         * config/rs6000/altivec.md (VParity): New mode iterator for vector
19459         parity built-in functions.
19460         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19461         zeros.
19462         (p9v_parity<mode>2): Likewise.
19463         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19464         parity.
19465         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19466         (parity<mode>2): ISA 3.0 expander for vector parity.
19467         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19468         power9 built-ins.
19469         (BU_P9_64BIT_MISC_0): Likewise.
19470         (BU_P9_MISC_0): Likewise.
19471         (BU_P9V_AV_1): Likewise.
19472         (BU_P9V_AV_2): Likewise.
19473         (BU_P9V_AV_3): Likewise.
19474         (BU_P9V_AV_P): Likewise.
19475         (BU_P9V_VSX_1): Likewise.
19476         (BU_P9V_OVERLOAD_1): Likewise.
19477         (BU_P9V_OVERLOAD_2): Likewise.
19478         (BU_P9V_OVERLOAD_3): Likewise.
19479         (VCTZB): Add vector count trailing zeros support.
19480         (VCTZH): Likewise.
19481         (VCTZW): Likewise.
19482         (VCTZD): Likewise.
19483         (VPRTYBD): Add vector parity support.
19484         (VPRTYBQ): Likewise.
19485         (VPRTYBW): Likewise.
19486         (VCTZ): Add overloaded vector count trailing zeros support.
19487         (VPRTYB): Add overloaded vector parity support.
19488         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19489         overloaded vector count trailing zeros and parity instructions.
19490         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19491         vector parity support.
19492         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19493         trailing zeros support.
19494         (vec_cntlz): Likewise.
19495         (vec_vctzb): Likewise.
19496         (vec_vctzd): Likewise.
19497         (vec_vctzh): Likewise.
19498         (vec_vctzw): Likewise.
19499         (vec_vprtyb): Add ISA 3.0 vector parity support.
19500         (vec_vprtybd): Likewise.
19501         (vec_vprtybw): Likewise.
19502         (vec_vprtybq): Likewise.
19503         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19504         the ISA 3.0 vector count trailing zeros and vector parity built-in
19505         functions.
19507 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
19509         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19510         when there is stmt_to_insert.
19512 2016-05-24  Martin Sebor  <msebor@redhat.com>
19514         PR c++/71147
19515         * tree.h (complete_or_array_type_p): New inline function.
19517 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
19519         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19520         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19521         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19523         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19524         Limit 1st alternative to noavx isa, split 2nd alternative into one
19525         noavx and one avx alternative, use *x and Bm in the former and
19526         x and m in the latter.
19528         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19529         of sse4 for the first alternative, drop %v from the template
19530         and d operand modifier.  Split second alternative into one sse4_noavx
19531         and one avx alternative, use *x instead of *v in the former and v
19532         instead of *v in the latter.
19533         (*sse4_1_extractps): Use noavx isa instead of * for the first
19534         alternative, drop %v from the template.  Split second alternative into
19535         one noavx and one avx alternative, use *x instead of *v in the
19536         former and v instead of *v in the latter.
19537         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19538         with noavx and the last one with avx.
19539         (sse4_1_phminposuw): Guard first alternative with noavx isa,
19540         split the second one into one noavx and one avx alternative,
19541         use *x and Bm in the former and x and m in the latter one.
19542         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19543         alternatives.
19545         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19546         first two alternatives to noavx, use *x instead of *v in the second
19547         one, add avx alternative without *.
19548         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19549         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19550         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19552 2016-05-24  Jeff Law  <law@redhat.com>
19554         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19555         New function, extracted from...
19556         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
19557         Allow simple copies and constant initializations in the SSA chain.
19559 2016-05-24  Marek Polacek  <polacek@redhat.com>
19561         PR c/71249
19562         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19563         scope.
19565 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
19567         PR c++/71257
19568         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19569         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19570         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
19571         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19572         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19574 2016-05-24  Richard Biener  <rguenther@suse.de>
19576         PR tree-optimization/71240
19577         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19578         has integral type.
19580 2016-05-24  Richard Biener  <rguenther@suse.de>
19582         PR tree-optimization/71230
19583         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19585 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
19587         * tree-vectorizer.h (vectorizable_comparison): Delete.
19588         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19589         PURE_SLP_STMT check.
19590         * tree-vect-stmts.c (vectorizable_call): Likewise.
19591         (vectorizable_simd_clone_call): Likewise.
19592         (vectorizable_conversion): Likewise.
19593         (vectorizable_assignment): Likewise.
19594         (vectorizable_shift): Likewise.
19595         (vectorizable_operation): Likewise.
19596         (vectorizable_load): Likewise.
19597         (vectorizable_condition): Likewise.
19598         (vectorizable_store): Likewise.  Assert that we don't have
19599         hybrid SLP.
19600         (vectorizable_comparison): Make static.  Remove redundant
19601         PURE_SLP_STMT check.
19602         (vect_transform_stmt): Assert that we always have an slp_node
19603         if PURE_SLP_STMT.
19605 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19607         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
19608         operands[2] against 1 with comparison against CONST1_RTX.
19609         (<shift>di3_neon): Likewise.
19610         * config/arm/predicates.md (const0_operand): Replace with comparison
19611         against CONST0_RTX.
19613 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19615         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19616         operands[2] against 1 with comparison against CONST1_RTX.
19617         (ashrdi3): Likewise.
19618         (lshrdi3): Likewise.
19619         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19620         UINTVAL.
19621         (ashrsi3): Likewise.
19622         (lshrsi3): Likewise.
19623         (rotrsi3): Likewise.
19624         (define_split above *compareqi_eq0): Likewise.
19625         (define_split above "prologue"): Likewise.
19626         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19627         * config/arm/predicates.md (shift_operator): Likewise.
19628         (shift_nomul_operator): Likewise.
19629         (sat_shift_operator): Likewise.
19630         (thumb1_cmp_operand): Likewise.
19631         (const_neon_scalar_shift_amount_operand): Replace manual range
19632         check with IN_RANGE.
19633         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19634         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19636 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19638         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19639         with HOST_WIDE_INT_1.
19640         (insv): Likewise.
19641         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19642         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19643         (arm_canonicalize_comparison): Likewise.
19644         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19645         HOST_WIDE_INT_1.
19646         (thumb1_size_rtx_costs): Likewise.
19647         (vfp_const_double_index): Replace cast of 1 to unsigned
19648         HOST_WIDE_INT with HOST_WIDE_INT_1U.
19649         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19650         HOST_WIDE_INT_1.
19651         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19652         HOST_WIDE_INT with HOST_WIDE_INT_1U.
19653         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19654         HOST_WIDE_INT with HOST_WIDE_INT_1.
19656 2016-05-24  Marek Polacek  <polacek@redhat.com>
19658         * tree-cfg.h (should_remove_lhs_p): New predicate.
19659         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19660         * gimplify.c (gimplify_modify_expr): Likewise.
19661         * tree-cfg.c (verify_gimple_call): Likewise.
19662         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19663         * gimple-fold.c: Include "tree-cfg.h".
19664         (gimple_fold_call): Use should_remove_lhs_p.
19666 2016-05-24  Richard Biener  <rguenther@suse.de>
19668         PR tree-optimization/71253
19669         * cfganal.h (control_dependences): Make robust against edge
19670         and BB removal.
19671         (control_dependences::control_dependences): Remove edge_list argument.
19672         (control_dependences::get_edge): Remove.
19673         (control_dependences::get_edge_src): Add.
19674         (control_dependences::get_edge_dest): Likewise.
19675         (control_dependences::m_el): Make a vector of edge src/dest index.
19676         * cfganal.c (control_dependences::find_control_dependence): Adjust.
19677         (control_dependences::control_dependences): Likewise.
19678         (control_dependences::~control_dependence): Likewise.
19679         (control_dependences::get_edge): Remove.
19680         (control_dependences::get_edge_src): Add.
19681         (control_dependences::get_edge_dest): Likewise.
19682         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19683         get_edge_src.
19684         (perform_tree_ssa_dce): Adjust.
19685         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19686         get_edge_src.
19687         (pass_loop_distribution::execute): Adjust.  Do loop destroying
19688         conditional on changed.
19690 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19692         PR target/69857
19693         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19694         return.  Reindent transformation comment and mention the ARM state
19695         behavior.
19697 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
19699         PR middle-end/71252
19700         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19701         after build_and_add_sum creates new use stmt.
19703 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
19705         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19706         load_lanes/grouped_load classification comes first.  Don't check
19707         whether the vectorization factor is a multiple of the group size
19708         for load_lanes.
19710 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
19712         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19713         GROUP_GAP for single-element interleaving.
19714         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19715         variable.
19717 2016-05-24  Richard Biener  <rguenther@suse.de>
19719         PR middle-end/70434
19720         PR c/69504
19721         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19722         bases which are accessed with non-invariant indices.
19723         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19724         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19726 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
19728         PR middle-end/71170
19729         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19730         (add_to_ops_vec): Add stmt_to_insert.
19731         (add_repeat_to_ops_vec): Init stmt_to_insert.
19732         (insert_stmt_before_use): New.
19733         (transform_add_to_multiply): Remove mult_stmt insertion and add it
19734         to ops vector.
19735         (get_ops): Init stmt_to_insert.
19736         (maybe_optimize_range_tests): Likewise.
19737         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19738         (rewrite_expr_tree_parallel): Likewise.
19739         (reassociate_bb): Likewise.
19741 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19743         PR target/71201
19744         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19745         ISA 3.0 xxperm fusion alternative.
19746         (altivec_vperm_v8hiv16qi): Likewise.
19747         (altivec_vperm_<mode>_uns_internal): Likewise.
19748         (vperm_v8hiv4si): Likewise.
19749         (vperm_v16qiv8hi): Likewise.
19751 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19752             Kelvin Nilsen  <kelvin@gcc.gnu.org>
19754         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19755         vpermr/xxpermr on ISA 3.0.
19756         (altivec_expand_vec_perm_le): Likewise.
19757         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19758         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19759         ISA 3.0.
19761 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
19763         * config/i386/i386.h (IS_STACK_MODE): Enable for
19764         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
19765         SSE_FLOAT_MODE_P macros.
19766         * config/i386/i386.c (ix86_preferred_reload_class): Use
19767         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19768         Cleanup regclass processing for CONST_DOUBLE_P.
19769         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19770         (ix86_rtx_costs): Remove redundant TARGET_80387 check
19771         with IS_STACK_MODE macro.
19772         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19773         with TARGET_SSE2.
19774         (*movdf_internal): Use IS_STACK_MODE macro.
19775         (*movsf_internal): Ditto.
19777 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
19779         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19780         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19782 2016-05-23  Jeff Law  <law@redhat.com>
19784         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19785         extracted from ...
19786         (fsm_find_control_statement_thread_paths): Call it.
19788 2016-05-23  Martin Jambor  <mjambor@suse.cz>
19790         PR ipa/71234
19791         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19792         from_global_constant if t is not NULL.
19794 2016-05-23  Marek Polacek  <polacek@redhat.com>
19796         PR c/49859
19797         * common.opt (Wswitch-unreachable): New option.
19798         * doc/invoke.texi: Document -Wswitch-unreachable.
19799         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19800         warning.
19802 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
19804         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19805         TMR_INDEX is non-NULL.
19807 2016-05-23  Richard Biener  <rguenther@suse.de>
19809         PR tree-optimization/71230
19810         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19811         (try_special_add_to_ops): ... here.  Always test for single-use.
19813 2016-05-23  Martin Jambor  <mjambor@suse.cz>
19815         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19816         default block if a PHI node in the original one would be resized.
19818 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19820         PR tree-optimization/58135
19821         * tree-vect-slp.c: When group size is not multiple
19822         of vector size, allow splitting of store group at
19823         vector boundary.
19825 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
19827         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19829 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
19831         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19832         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19833         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
19834         of 64x2.
19836         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19837         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19838         v constraint instead of x and vinserti32x4 insn.
19840         * config/i386/sse.md (i128vldq): New mode iterator.
19841         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19842         avx512dq and avx512vl alternatives.
19844         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19845         constraint, use maybe_evex prefix instead of vex.
19846         (vec_dupv4sf): Use v constraint instead of x for output
19847         operand except for noavx alternative, use Yv constraint
19848         instead of x for input.  Use maybe_evex prefix instead of vex.
19849         (*vec_dupv4si): Likewise.
19850         (*vec_dupv2di): Likewise.
19852 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
19854         PR middle-end/40921
19855         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19856         (linearize_expr_tree): Call try_special_add_to_ops.
19857         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19859 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19861         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19862         to computed stack_usage.
19864 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19866         PR target/71103
19867         * config/avr/avr.md (define_expand "mov<mode>"): If the source
19868         operand is subreg (symbol_ref) then move the symbol ref to register.
19870 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
19872         * tree.c (array_at_struct_end_p): Look through MEM_REF.
19874 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
19876         PR middle-end/71179
19877         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19878         VECTOR type.
19880 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19882         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19883         ranges by calling get_single_symbol and tidy up.  Look more closely
19884         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19886 2016-05-20  Jeff Law  <law@redhat.com>
19888         * bitmap.c (bitmap_find_bit): Remove useless test.
19890 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19892         * function.c (thread_prologue_and_epilogue_insns): Commit the
19893         insertion of the epilogue.
19895 2016-05-20  Martin Jambor  <mjambor@suse.cz>
19897         PR tree-optimization/70884
19898         * tree-sra.c (initialize_constant_pool_replacements): Do not check
19899         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19900         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19901         of constant pool data as a reason for scalarization.
19903 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
19905         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19906         for naked functions.
19907         (thumb1_expand_prologue): Likewise.
19909 2016-05-20  Nathan Sidwell  <nathan@acm.org>
19911         * config/nvptx/nptx.c (nvptx_option_override): Only set
19912         flag_toplevel_reorder, if not explicitly specified.  Set
19913         flag_no_common, unless explicitly specified.
19915 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19917         * calls.c (can_implement_as_sibling_call_p): Mark param
19918         reg_parm_stack_space with ATTRIBUTE_UNUSED.
19920 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
19922         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19923         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19924         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19925         constants.
19926         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19927         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19928         and CASE_CONST_ANY.
19930 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
19932         * config/nvptx/nvptx.md (sincossf3): New pattern.
19934 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19936         * calls.c (maybe_complain_about_tail_call): New function.
19937         (initialize_argument_information): Call
19938         maybe_complain_about_tail_call when clearing *may_tailcall.
19939         (can_implement_as_sibling_call_p): Call
19940         maybe_complain_about_tail_call when returning false.
19941         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19942         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
19943         if tail-call optimization fails.
19944         * cfgexpand.c (expand_call_stmt): Initialize
19945         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19946         * gimple-pretty-print.c (dump_gimple_call): Dump
19947         gimple_call_must_tail_p.
19948         * gimple.c (gimple_build_call_from_tree): Call
19949         gimple_call_set_must_tail with the value of
19950         CALL_EXPR_MUST_TAIL_CALL.
19951         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19952         (gimple_call_set_must_tail): New function.
19953         (gimple_call_must_tail_p): New function.
19954         * print-tree.c (print_node): Update printing of TREE_STATIC
19955         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19956         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19957         trailing comment listing applicable flags.
19958         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19960 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
19962         * calls.c (expand_call): Move "Rest of purposes for tail call
19963         optimizations to fail" to...
19964         (can_implement_as_sibling_call_p): ...this new function, and
19965         split into multiple "if" statements.
19967 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19969         * cfgloop.h (expected_loop_iterations_unbounded,
19970         expected_loop_iterations): Unconstify.
19971         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19972         profile with known upper bound; return 3 when profile is absent.
19973         (expected_loop_iterations): Update.
19975 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19977         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19978         and get_max_loop_iterations_int.
19980 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
19982         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19983         realistic upper bounds here.
19985 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
19987         PR c++/71210
19988         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19989         calls if the LHS is variable length or has addressable type.
19990         If targets[0]->decl is a noreturn call with void return type and
19991         zero arguments, adjust fntype and remove lhs in that case.
19993 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
19995         PR tree-optimization/71079
19996         PR tree-optimization/71206
19997         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19999 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20001         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
20002         (get_vec_alignment_for_array_decl): Likewise.
20003         (get_vec_alignment_for_record_decl): Likewise.
20004         (increase_alignment::execute): Move code to find alignment to
20005         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
20006         (type_align_map): New hash_map.
20008 2016-05-20  Richard Guenther  <rguenther@suse.de>
20010         PR tree-optimization/29756
20011         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
20012         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
20013         * fold-const.c (operand_equal_p): Likewise.
20014         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
20015         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
20016         * tree-inline.c (estimate_operator_cost): Likewise.
20017         * tree-pretty-print.c (dump_generic_node): Likewise.
20018         * tree-ssa-operands.c (get_expr_operands): Likewise.
20019         * cfgexpand.c (expand_debug_expr): Likewise.
20020         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20021         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
20022         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
20023         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
20024         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
20025         (execute_update_addresses_taken): Do it.
20027 2016-05-20  Richard Biener  <rguenther@suse.de>
20029         PR tree-optimization/71185
20030         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
20031         register operations.
20033 2016-05-20  Richard Biener  <rguenther@suse.de>
20035         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
20036         gimple_seq_add_seq_without_update.
20037         (release_bb_predicate): Assert we have no operands to free.
20038         (if_convertible_loop_p_1): Calculate post dominators later.
20039         Do not free BB predicates here.
20040         (combine_blocks): Do not recompute BB predicates.
20041         (version_loop_for_if_conversion): Save BB predicates around
20042         loop versioning.
20044 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
20046         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
20047         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
20048         code.  Ignore sibcalls on EDGE_IGNORE edges.
20049         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
20050         on edges for sibcalls that run without prologue.  The rest of the
20051         function is combined from...
20052         (fix_fake_fallthrough_edge): ... this, and ...
20053         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
20054         function argument, make it a local variable.
20056 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
20058         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
20059         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
20060         for 32-bit mode and SEH for 64-bit.
20061         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
20062         TARGET_64BIT_DEFAULT.
20064 2016-05-19  Ryan Burn  <contact@rnburn.com>
20066         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
20067         * gengtype.c (open_base_files): Add cilk.h to ifiles.
20069 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
20071         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
20072         force pending loads from memory.
20074 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20076         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
20077         (UNSPEC_DARN_32): New unspec constant.
20078         (UNSPEC_DARN_RAW): New unspec constant.
20079         (darn_32): New instruction.
20080         (darn_raw): New instruction.
20081         (darn): New instruction.
20082         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
20083         support and documentation for this macro.
20084         (BU_P9_MISC_1): New macro definition.
20085         (BU_P9_64BIT_MISC_0): New macro definition.
20086         (BU_P9_MISC_0): New macro definition.
20087         (darn_32): New builtin definition.
20088         (darn_raw): New builtin definition.
20089         (darn): New builtin definition.
20090         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
20091         RS6000_BUILTIN_0 directives to surround each occurrence of
20092         #include "rs6000-builtin.def".
20093         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
20094         RS6000_BTM_64BIT flags to the returned mask, depending on
20095         configuration.
20096         (def_builtin): Correct an error in the assignments made to the
20097         debugging variable attr_string.
20098         (rs6000_expand_builtin): Add support for no-operand built-in
20099         functions.
20100         (builtin_function_type): Remove fatal_error assertion that is no
20101         longer valid.
20102         (rs6000_common_init_builtins): Add support for no-operand built-in
20103         functions.
20104         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
20105         definition.
20106         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
20107         definition.
20108         (RS6000_BTM_64BIT): New macro definition.
20109         * doc/extend.texi: Document __builtin_darn (void),
20110         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
20111         functions.
20113 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
20115         * tree-vect-loop.c (vect_analyze_loop_2): Use also
20116         max_loop_iterations_int.
20118 2016-05-19  Marek Polacek  <polacek@redhat.com>
20120         PR tree-optimization/71031
20121         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
20122         condition and adjust the code a bit.
20124 2016-05-19  Martin Liska  <mliska@suse.cz>
20126         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
20127         auto_vec instead of vec.
20129 2016-05-19  Martin Liska  <mliska@suse.cz>
20131         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
20133 2016-05-19  Martin Liska  <mliska@suse.cz>
20135         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
20137 2016-05-19  Martin Liska  <mliska@suse.cz>
20139         * ipa-pure-const.c (set_function_state): Remove an existing
20140         funct_state.
20141         (remove_node_data): Do not free it as it's released
20142         in set_function_state.
20144 2016-05-19  Martin Liska  <mliska@suse.cz>
20146         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
20147         bitmap.
20149 2016-05-19  Martin Liska  <mliska@suse.cz>
20151         * omp-simd-clone.c (simd_clone_adjust): Release vector.
20153 2016-05-19  Martin Liska  <mliska@suse.cz>
20155         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
20156         an auto_vec instead of re-creating it.
20158 2016-05-19  Martin Liska  <mliska@suse.cz>
20160         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
20161         auto_vec instead of vec.
20163 2016-05-19  Martin Liska  <mliska@suse.cz>
20165         * lto-section-in.c (lto_get_section_data): Call
20166         lto_check_version with additional argument.
20167         * lto-streamer.c (lto_check_version): Add new argument.
20168         * lto-streamer.h (lto_check_version): Likewise.
20170 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20172         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
20173         Don't add cost of inner memory when handling sign-extended loads.
20175 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
20177         PR rtl-optimization/71148
20178         * cse.c (cse_main): Free dominance info.
20179         (rest_of_handle_cse): Don't free dominance info.
20180         (rest_of_handle_cse2): Likewise.
20181         (rest_of_handle_cse_after_global_opts): Likewise.
20183 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20185         PR target/71056
20186         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
20187         NULL_TREE early if NEON is not available.  Remove now redundant check
20188         in ARM_CHECK_BUILTIN_MODE.
20190 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
20192         PR sanitizer/64354
20193         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
20194         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
20195         * doc/cpp.texi: Document new macros.
20197 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
20199         PR tree-optimization/69848
20200         * tree-vect-loop.c (vectorizable_reduction): Don't factor
20201         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
20203 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
20205         * function.c (thread_prologue_and_epilogue_insn): Move the
20206         "goto epilogue_done" one block later.
20208 2016-05-19  Richard Biener  <rguenther@suse.de>
20210         PR tree-optimization/70729
20211         * passes.def: Move LIM pass before PRE.  Remove no longer
20212         required copyprop and move first DCE out of the loop pipeline.
20214 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
20216         PR driver/69265
20217         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
20218         (OBJS-libcommon-target): ...here.
20219         * opts-common.c: Include spellcheck.h.
20220         (cmdline_handle_error): Build a vec of valid options and use it
20221         to suggest provide hints for misspelled arguments.
20223 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
20225         PR c++/71100
20226         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
20227         lhs if it has TREE_ADDRESSABLE type.
20229 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
20231         PR target/71145
20232         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
20233         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
20235 2016-05-18  Martin Jambor  <mjambor@suse.cz>
20237         PR ipa/69708
20238         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
20239         input for NOP_EXPR pass-through functions.
20240         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
20241         aggregate global constant VAR_DECLs in constant jump functions.
20243 2016-05-18  Martin Jambor  <mjambor@suse.cz>
20245         PR ipa/69708
20246         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
20247         from TREE_READONLY parameters.
20249 2016-05-18  Martin Jambor  <mjambor@suse.cz>
20251         PR ipa/69708
20252         * cgraph.h (cgraph_indirect_call_info): New field
20253         guaranteed_unmodified.
20254         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
20255         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20256         appropriate.
20257         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
20258         pass the parameter value to ipa_find_agg_cst_for_param.
20259         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
20260         guaranteed_unmodified, store AA results there instead of bailing out
20261         if present.
20262         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
20263         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
20264         (find_constructor_constant_at_offset): New function.
20265         (ipa_find_agg_cst_from_init): Likewise.
20266         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
20267         static initializers of contants, report back through a new paameter
20268         from_global_constant if that was the case.
20269         (try_make_edge_direct_simple_call): Also pass parameter value to
20270         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
20271         appropriate.
20272         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
20273         (ipa_read_indirect_edge_info): Likewise.
20274         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
20275         (ipa_load_from_parm_agg): Likewise.
20277 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
20279         PR rtl-optimization/71150
20280         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
20281         check.
20283 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20285         PR target/70915
20286         * config/rs6000/constraints.md (wE constraint): New constraint
20287         for a vector constant that can be loaded with XXSPLTIB.
20288         (wM constraint): New constraint for a vector constant of a 1's.
20289         (wS constraint): New constraint for a vector constant that can be
20290         loaded with XXSPLTIB and a vector sign extend instruction.
20291         * config/rs6000/predicates.md (xxspltib_constant_split): New
20292         predicates for wE/wS constraints.
20293         (xxspltib_constant_nosplit): Likewise.
20294         (easy_vector_constant): Add support for constants that can be
20295         loaded via XXSPLTIB.
20296         (all_ones_constant): New predicate for vector constant with all
20297         1's set.
20298         (splat_input_operand): Add support for ISA 3.0 word splat operations.
20299         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
20300         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
20301         instruction and possibly with a sign extension.
20302         (output_vec_const_move): Add support for XXSPLTIB. If we are
20303         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
20304         instead of XXLXOR/XXLORC.
20305         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
20306         operations.
20307         (rs6000_legitimize_reload_address): Likewise.
20308         (rs6000_output_move_128bit): Use output_vec_const_move to emit
20309         constants.
20310         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
20311         combine VSX_M and VSX_M2 into one iterator.
20312         (VSX_M2): Likewise.
20313         (VSINT_84): New iterators for loading constants with XXSPLTIB.
20314         (VSINT_842): Likewise.
20315         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
20316         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
20317         XXSPLTIB instruction.
20318         (xxspltib_<mode>_nosplit): Likewise.
20319         (xxspltib_<mode>_split): New insn to load up constants with
20320         XXSPLTIB and a sign extend instruction.
20321         (vsx_mov<mode>): Replace single move that handled all vector types
20322         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
20323         moves (when -mvsx-timode is in effect) into the main vector
20324         moves.  Eliminate separate moves for <VSr> <VSa>, where the
20325         preferred register class (<VSr>) is listed first, and the
20326         secondary register class (<VSa>) is listed second with a '?' to
20327         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
20328         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
20329         that if the register was involved in a slow operation, the
20330         clear/set operation does not wait for the slow operation to
20331         finish.  Adjust the length attributes for 32-bit mode.  Use
20332         rs6000_output_move_128bit and drop the use of the string
20333         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
20334         spacing so that the alternatives and attributes don't generate
20335         long lines, and put things in columns, so that it is easier to
20336         match up the operands and attributes with the insn alternatives.
20337         (vsx_mov<mode>_64bit): Likewise.
20338         (vsx_mov<mode>_32bit): Likewise.
20339         (vsx_movti_64bit): Fold movti into normal vector moves.
20340         (vsx_movti_32bit): Likewise.
20341         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
20342         splat instructions.
20343         (vsx_splat_v4si_internal): Likewise.
20344         (vsx_splat_v4sf_internal): Likewise.
20345         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
20346         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
20347         extend vector elements.
20348         (vsx_sign_extend_hi_<mode>): Likewise.
20349         (vsx_sign_extend_si_v2di): Likewise.
20350         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
20351         declaration.
20352         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
20353         constraints.  Add trailing period to wL documentation.
20355 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
20357         PR middle-end/71020
20358         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
20359         * tree-dfa.c (replace_abnormal_ssa_names): New function.
20360         * tree-call-cdce.c: Include tree-dfa.h.
20361         (can_guard_call_p): New function, extracted from...
20362         (can_use_internal_fn): ...here.
20363         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
20364         and return void.
20365         (shrink_wrap_one_built_in_call): Likewise.
20366         (use_internal_fn): Likewise.
20367         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
20368         and return void.  Call replace_abnormal_ssa_names.
20369         (pass_call_cdce::execute): Check can_guard_call_p during the
20370         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
20371         will always change something.
20373 2016-05-18  Martin Jambor  <mjambor@suse.cz>
20375         PR ipa/70646
20376         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
20377         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20379 2016-05-18  Martin Jambor  <mjambor@suse.cz>
20381         PR ipa/70646
20382         * ipa-inline.h (condition): New field size.
20383         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20384         for comaprison and store it into the new condition.
20385         (evaluate_conditions_for_known_args): Use condition size to check
20386         access sizes for all but CHANGED conditions.
20387         (unmodified_parm_1): New parameter size_p, store access size into it.
20388         (unmodified_parm): Likewise.
20389         (unmodified_parm_or_parm_agg_item): Likewise.
20390         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20391         (set_cond_stmt_execution_predicate): Extract access sizes and store
20392         them to conditions.
20393         (set_switch_stmt_execution_predicate): Likewise.
20394         (will_be_nonconstant_expr_predicate): Likewise.
20395         (will_be_nonconstant_predicate): Likewise.
20396         (inline_read_section): Stream condition size.
20397         (inline_write_summary): Likewise.
20399 2016-05-18  Richard Biener  <rguenther@suse.de>
20401         * tree-ssa-loop-im.c (determine_max_movement): Properly add
20402         condition cost to PHI cost instead of total_cost.
20404 2016-05-18  Martin Liska  <mliska@suse.cz>
20406         PR fortran/70856
20407         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20408         merged variables.
20410 2016-05-18  Richard Biener  <rguenther@suse.de>
20412         * lto-streamer.h (LTO_major_version): Bump to 6.
20414 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
20416         * function.c (make_split_prologue_seq, make_prologue_seq,
20417         make_epilogue_seq): New functions, factored out from...
20418         (thread_prologue_and_epilogue_insns): Here.
20420 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
20422         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20423         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20424         of before.  Add a comment.
20426 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
20428         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20429         expression pointer, not pointer to the pointer.
20431 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
20433         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20434         (avx2_pbroadcast<mode>): Add another alternative with v instead
20435         of x constraints in it, using <pbroadcast_evex_isa> isa.
20436         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20438         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20439         constraint x instead of v in second alternative, add avx512bw
20440         alternative.
20442         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20443         constraint x instead of v in second alternative, add avx512bw
20444         alternative.
20446         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20447         constraint x instead of v in second alternative, add avx512bw
20448         alternative.
20450         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20451         avx512bw alternative.
20453 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
20455         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20456         array to 128 chars.
20457         (define_insn "*andnottf3"): Ditto.
20458         (define_insn "*<code><mode>3"/any_logic): Ditto.
20459         (define_insn "*<code>tf3"/any_logic): Ditto.
20460         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20461         operand to block AVX-512VL insn variant emit when it is not enabled.
20463 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
20465         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20466         constraint fot SF mode.
20468 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
20469             Kirill Yukhin  <kirill.yukhin@intel.com>
20471         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20472         modifiers.
20473         (define_insn "rsqrt14<mode>"): Ditto.
20474         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20475         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20476         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20477         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20478         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20479         Ditto.
20480         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20481         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20482         * config/i386/i386.c (ix86_print_operand): Expand check for size
20483         override codes for Intel syntax.
20485 2016-05-18  Richard Biener  <rguenther@suse.de>
20487         PR tree-optimization/71168
20488         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20489         initialization earlier.
20491 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
20493         * config/aarch64/aarch64-simd.md
20494         (aarch64_reduc_plus_internal<mode>): Rename to...
20495         (reduc_plus_scal): ...This, and remove previous implementation.
20497 2016-05-18  Richard Biener  <rguenther@suse.de>
20499         * passes.def: Put late dse and cd_dce in canonical order.
20501 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
20503         * ipa-inline-transform.c (preserve_function_body_p): Look for
20504         first non-thunk clone.
20505         (save_function_body): Save into first non-thunk.
20506         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20507         up call stmt id.
20508         (lto_output_node): Inline thunks don't need body in every
20509         partition.
20510         * lto-streamer-in.c: Do not fixup thunk clones.
20511         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20512         thunks.
20513         * tree-inline.c (copy_bb): Be prepared for target node to be new after
20514         folding suceeds.
20516 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20518         PR middle-end/63586
20519         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20520         (reassociate_bb): Call transform_add_to_multiply.
20522 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
20524         * config/aarch64/aarch64.c (all_extensions): Removed unused
20525         static variable.
20527 2016-05-17  Nathan Sidwell  <nathan@acm.org>
20529         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20530         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20532 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
20534         PR tree-optimization/54579
20535         PR middle-end/55299
20536         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20538 2016-05-17  Marek Polacek  <polacek@redhat.com>
20540         PR ipa/71146
20541         * tree-inline.c (expand_call_inline): Call
20542         maybe_remove_unused_call_args.
20544 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
20546         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20547         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20548         * doc/md.texi (fmin@var{m}3): Likewise.
20550 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
20552         * match.pd (X & C): New transformation.
20554 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
20556         * match.pd (~X & Y): New transformation.
20558 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
20560         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20561         information for new SSA_NAME.
20562         (simplify_conversion_using_ranges): Get range through get_range_info
20563         instead of get_value_range.
20565 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
20567         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20568         Remove inline assembly.
20569         (vmvn_s16): Likewise.
20570         (vmvn_s32): Likewise.
20571         (vmvn_u8): Likewise.
20572         (vmvn_u16): Likewise.
20573         (vmvn_u32): Likewise.
20574         (vmvnq_s8): Likewise.
20575         (vmvnq_s16): Likewise.
20576         (vmvnq_s32): Likewise.
20577         (vmvnq_u8): Likewise.
20578         (vmvnq_u16): Likewise.
20579         (vmvnq_u32): Likewise.
20580         (vmvn_p8): Likewise.
20581         (vmvnq_p16): Likewise.
20583 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
20585         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20586         Use builtin.
20587         (vmul_n_s16): Likewise.
20588         (vmul_n_s32): Likewise.
20589         (vmul_n_u16): Likewise.
20590         (vmul_n_u32): Likewise.
20591         (vmulq_n_f32): Likewise.
20592         (vmulq_n_f64): Likewise.
20593         (vmulq_n_s16): Likewise.
20594         (vmulq_n_s32): Likewise.
20595         (vmulq_n_u16): Likewise.
20596         (vmulq_n_u32): Likewise.
20598 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
20600         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20601         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
20603 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
20605         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20606         to *aarch64_fma4_elt_from_dup<mode>.
20607         (*aarch64_fnma4_elt_to_128df): Rename to
20608         *aarch64_fnma4_elt_from_dup<mode>.
20609         * config/aarch64/arm_neon.h (vfma_n_f64): New.
20610         (vfms_n_f32): Likewise.
20611         (vfms_n_f64): Likewise.
20612         (vfmsq_n_f32): Likewise.
20613         (vfmsq_n_f64): Likewise.
20615 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
20617         * wide-int.h: Change fixed_wide_int_storage from class to struct.
20619 2016-05-17  Richard Biener  <rguenther@suse.de>
20621         PR tree-optimization/71132
20622         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20623         Only add control dependences for blocks in the loop.
20624         (build_rdg): Adjust.
20625         (generate_code_for_partition): Return whether loop should
20626         be destroyed and delay that.
20627         (distribute_loop): Likewise.
20628         (pass_loop_distribution::execute): Record loops to be destroyed
20629         and perform delayed destroying of loops.
20631 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20633         PR target/70809
20634         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20636 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
20638         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20640 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
20642         PR target/71114
20643         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20644         insertion point for instructions generated by validize_mem.
20646 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
20648         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20649         in brackets.
20651 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
20653         * config/aarch64/aarch64.c
20654         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20655         rather than a macro.
20657 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
20659         * doc/invoke.texi (AArch64 Options): Various updates.
20661 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20663         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20664         into instrumentation thunks.
20665         * cif-code.def (CIF_CHKP): New.
20667 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
20669         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20671 2016-05-16  Martin Jambor  <mjambor@suse.cz>
20673         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20674         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20676 2016-05-16  Marek Polacek  <polacek@redhat.com>
20678         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20679         commentary.
20681 2016-05-16  Martin Jambor  <mjambor@suse.cz>
20683         PR hsa/70857
20684         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20685         the outlined kernel function.
20687 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
20689         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20690         (ISA_HAS_DLSA): Ditto.
20692 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
20694         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20696 2016-05-16  Nathan Sidwell  <nathan@acm.org>
20698         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20699         (nvptx_name_replacement): Restore.  Add comment.
20700         (write_fn_proto, write_fn_proto_from_insn,
20701         nvptx_output_call_insn): Restore
20702         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20704 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
20706         * config/aarch64/aarch64.md
20707         (add<mode>3_compareC_cconly_imm): Remove use of %w.
20708         (add<mode>3_compareC_imm): Likewise.
20709         (<optab>si3_uxtw): Split into register and immediate variants.
20710         (andsi3_compare0_uxtw): Likewise.
20711         (and<mode>3_compare0): Likewise.
20712         (and<mode>3nr_compare0): Likewise.
20713         (stack_protect_test_<mode>): Don't use %x for memory operands.
20715 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
20717         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20719 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
20721         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20722         Split integer shifts into shift_reg and bfm.
20723         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20724         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20725         (ror<mode>3_insn): Likewise.
20726         (<optab>si3_insn_uxtw): Likewise.
20727         (<optab><mode>3_insn): Change to rotate_imm.
20728         (extr<mode>5_insn_alt): Likewise.
20729         (extrsi5_insn_uxtw): Likewise.
20730         (extrsi5_insn_uxtw_alt): Likewise.
20732 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20734         * doc/tm.texi: Regenerate.
20735         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20736         (TARGET_INVALID_RETURN_TYPE): Remove.
20737         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20738         TARGET_INVALID_RETURN_TYPE.
20739         * target.def (invalid_parameter_type): Remove.
20740         (invalid_return_type): Remove.
20742 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20744         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20745         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20746         calls from thunk.
20747         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20748         gimple body.
20749         (preserve_function_body_p): No need to preserve function body
20750         * cif-codes.def (CIF_THUNK): Remove.
20751         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20753 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20755         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20757 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20759         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20760         for thunks.
20762 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20764         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20765         (inline_small_functions): Do not look for function symbol when
20766         resetting caches.
20768 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
20770         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20771         of inline thunks
20773 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20774             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20775             Jiong Wang  <jiong.wang@arm.com>
20777         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20778         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20779         Define __ARM_FP16_ARGS when appropriate.
20780         * config/arm/arm.c (arm_invalid_parameter_type): Remove
20781         declaration.
20782         (arm_invalid_return_type): Likewise.
20783         (TARGET_INVALID_PARAMETER_TYPE): Remove.
20784         (TARGET_INVALID_RETURN_TYPE): Remove.
20785         (aapcs_vfp_sub_candidate): Allow HFmode.
20786         (aapcs_vfp_allocate): Add comment.  Support HFmode.
20787         (aapcs_vfp_allocate_return_reg): Likewise.
20788         (struct aapcs_cp_arg_layout): Slightly reword comments for
20789         is_return_candidate and allocate_return_reg.
20790         (output_mov_vfp): Update assert.
20791         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20792         condition.
20793         (arm_invalid_parameter_type): Remove.
20794         (amr_invalid_return_type): Remove.
20795         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20796         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20797         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20799 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
20801         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20802         * config/aarch64/arch64-protos.h
20803         (aarch64_legitimize_reload_address): Remove.
20804         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20805         Remove.
20807 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20809         * configure.ac: Add ACX_NONCANONICAL_HOST.
20810         * configure: Regenerate.
20811         * Makefile.in: Set host_noncanonical.
20813 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
20815         PR target/71097
20816         * config/i386/i386.md (*movtf_internal): Before register allocation,
20817         do not allow FP constants for CM_MEDIUM memory model, allow only
20818         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20819         (*movxf_internal): Ditto.
20820         (*movdf_internal): Ditto.
20821         (*movsf_internal): Ditto.
20823 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
20825         PR rtl-optimization/67483
20826         * combine.c (make_compound_operation): Don't call extract_left_shift
20827         with negative shift amounts.
20829 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
20831         PR bootstrap/71071
20832         * fold-const.c (fold_checksum_tree): Allow modification
20833         of TYPE_ALIAS_SET during folding.
20835         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20836         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20837         (ix86_split_to_parts): Likewise.  Fix up formatting.
20839 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
20841         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20842         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20843         printf format.
20845 2016-05-13  Nathan Sidwell  <nathan@acm.org>
20847         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20848         (nvptx_name_replacement): Delete.
20849         (write_fn_proto, write_fn_proto_from_insn,
20850         nvptx_output_call_insn): Remove nvptx_name_replacement call.
20851         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20852         * langhooks.c (add_builtin_funcction_common): Call
20853         targetm.mangle_decl_assembler_name.
20855         * config/nvptx/nvptx.c (write_fn_proto): Handle
20856         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20858 2016-05-13  Martin Liska  <mliska@suse.cz>
20860         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20861         and PRIu64 in printf format.
20863 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20865         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20866         comment.
20868 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20870         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20871         Change --param max-completely-peeled-times to
20872         --param max-completely-peel-times in dump file printing.
20874 2016-05-13  Richard Biener  <rguenther@suse.de>
20876         PR tree-optimization/42587
20877         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20878         (find_bswap_or_nop_1): Likewise.
20879         (bswap_replace): Likewise.
20881 2016-05-13  Martin Liska  <mliska@suse.cz>
20883         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20884         Initialize a variable with default value.
20886 2016-05-13  Martin Liska  <mliska@suse.cz>
20888         * doc/invoke.texi: Enhance explanation of error recovery
20889         of sanitizers.
20891 2016-05-13  Martin Liska  <mliska@suse.cz>
20893         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20894         (struct cost_pair): Change inv_expr_id (int) to inv_expr
20895         (iv_inv_expr_ent *).
20896         (struct iv_inv_expr_ent): Comment struct fields.
20897         (sort_iv_inv_expr_ent): New function.
20898         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20899         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20900         a hash_map between iv_inv_expr_ent and number of usages.
20901         (niter_for_exit): Fix coding style.
20902         (tree_ssa_iv_optimize_init): Use renamed variable.
20903         (determine_base_object): Fix coding style.
20904         (alloc_iv): Likewise.
20905         (find_interesting_uses_outside): Likewise.
20906         (add_candidate_1): Likewise.
20907         (add_standard_iv_candidates): Likewise.
20908         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20909         (prepare_decl_rtl): Fix coding style.
20910         (get_address_cost): Likewise.
20911         (get_shiftadd_cost): Likewise.
20912         (force_expr_to_var_cost): Likewise.
20913         (compare_aff_trees): Likewise.
20914         (get_expr_id): Restructure the function.
20915         (get_loop_invariant_expr_id): Renamed to
20916         get_loop_invariant_expr.
20917         (get_computation_cost_at): Replace usage of inv_expr_id with
20918         inv_expr.
20919         (get_computation_cost): Likewise.
20920         (determine_group_iv_cost_generic): Likewise.
20921         (determine_group_iv_cost_address): Likewise.
20922         (iv_period): Fix coding style.
20923         (iv_elimination_compare_lt): Likewise.
20924         (may_eliminate_iv): Likewise.
20925         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
20926         inv_expr.
20927         (determine_group_iv_costs): Dump invariant expressions.
20928         (iv_ca_recount_cost): Use the newly added hash_map.
20929         (iv_ca_set_remove_invariants): Fix coding style.
20930         (iv_ca_set_add_invariants): Fix coding style.
20931         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20932         invariants.
20933         (iv_ca_set_cp): Likewise.
20934         (iv_ca_new): Initialize the newly added hash_map and remove
20935         initialization of fields.
20936         (iv_ca_free): Delete the hash_map.
20937         (iv_ca_dump): Dump invariant expressions.
20938         (iv_ca_extend): Fix coding style.
20939         (try_add_cand_for): Likewise.
20940         (create_new_ivs): Dump information about # of avg iterations and
20941         # of used invariant expressions.
20942         (rewrite_use_compare): Fix coding style.
20943         (free_loop_data): Set default value for max_inv_expr_id.
20945 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20947         * cse.c (rest_of_handle_cse): Use cleanup_cfg
20948         returned value cse_cfg_altered computation.
20949         (rest_of_handle_cse2): Likewise.
20950         (rest_of_handle_cse_after_global_opts): Likewise.
20952 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20954         PR target/53440
20955         * config/arm/arm.c (arm32_output_mi_thunk): New.
20956         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20957         to split Thumb1 vs TARGET_32BIT functionality.
20958         (arm_thumb1_mi_thunk): New.
20960 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20962         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20963         to true.
20965 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20967         PR target/71080
20968         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20970 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20972         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20973         (expand_builtin_trap): Emit a regular call.
20974         (set_builtin_user_assembler_name): Remove obsolete cases.
20975         * dse.c (scan_insn): Adjust.
20976         * except.c: Include calls.h.
20977         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20978         emit a regular call to setjmp.
20979         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20980         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20981         (emit_block_move_via_libcall): Delete.
20982         (block_move_fn): Delete.
20983         (init_block_move_fn): Likewise.
20984         (emit_block_move_libcall_fn): Likewise.
20985         (emit_block_op_via_libcall): New function.
20986         (set_storage_via_libcall): Tidy up and use memset builtin.
20987         (block_clear_fn): Delete.
20988         (init_block_clear_fn): Likewise.
20989         (clear_storage_libcall_fn): Likewise.
20990         (expand_assignment): Call emit_block_move_via_libcall.
20991         Do not include gt-expr.h.
20992         * expr.h (emit_block_op_via_libcall): Declare.
20993         (emit_block_copy_via_libcall): New inline function.
20994         (emit_block_move_via_libcall): Likewise.
20995         (emit_block_comp_via_libcall): Likewise.
20996         (block_clear_fn): Delete.
20997         (init_block_move_fn): Likewise.
20998         (init_block_clear_fn): Likewise.
20999         (emit_block_move_via_libcall): Likewise.
21000         (set_storage_via_libcall): Add default parameter value.
21001         * libfuncs.h (enum libfunc_index): Remove obsolete values.
21002         (abort_libfunc): Delete.
21003         (memcpy_libfunc): Likewise.
21004         (memmove_libfunc): Likewise.
21005         (memcmp_libfunc): Likewise.
21006         (memset_libfunc): Likewise.
21007         (setbits_libfunc): Likewise.
21008         (setjmp_libfunc): Likewise.
21009         (longjmp_libfunc): Likewise.
21010         (profile_function_entry_libfunc): Likewise.
21011         (profile_function_exit_libfunc): Likewise.
21012         (gcov_flush_libfunc): Likewise.
21013         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
21014         and DECL_VISIBILITY on the declaration.
21015         (init_optabs): Do not initialize obsolete libfuncs.
21016         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
21017         * tree-core.h (ECF_RET1): Define.
21018         (ECF_TM_PURE): Adjust.
21019         (ECF_TM_BUILTIN): Likewise.
21020         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
21021         (build_common_builtin_nodes): Initialize abort builtin.
21022         Add ECF_RET1 on memcpy, memmove and memset builtins.
21023         Pass final flags for alloca and alloca_with_align builtins.
21024         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
21025         obsolete builtins.
21026         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
21027         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
21028         set_storage_via_libcall and call emit_block_copy_via_libcall.
21030 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
21032         * config/i386/i386.md (*call_got_x32): Change operand 0 to
21033         DImode before it is passed to ix86_output_call_operand.
21034         (*call_value_got_x32): Ditto for operand 1.
21036 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
21038         PR rtl-optimization/70904
21039         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
21040         reload for wide mode.
21042 2016-05-12  Marek Polacek  <polacek@redhat.com>
21044         PR c/70756
21045         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
21046         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
21047         * langhooks.h (incomplete_type_error): Likewise.
21048         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
21049         parameter, pass it down to incomplete_type_error.
21050         * tree.h (size_in_bytes): New inline overload.
21051         (size_in_bytes_loc): Renamed from size_in_bytes.
21053 2016-05-12  Richard Biener  <rguenther@suse.de>
21055         PR tree-optimization/71059
21056         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
21057         nary before looking up or entering the expression into the VN
21058         hashes.
21059         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
21060         Make sure to re-use NARYs without result as inserted by
21061         phi-translation.
21063 2016-05-12  Richard Biener  <rguenther@suse.de>
21065         PR tree-optimization/71062
21066         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
21067         field.
21068         * tree-ssa-structalias.c (set_uids_in_ptset): Set
21069         vars_contains_restrict if the var is a restrict tag.
21070         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
21071         do not disambiguate pointers against it.
21072         (dump_points_to_solution): Re-structure and adjust for new
21073         vars_contains_restrict flag.
21074         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
21076 2016-05-12  Martin Liska  <mliska@suse.cz>
21078         * doc/invoke.texi: Explain connection between
21079         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
21081 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
21083         PR tree-optimization/71006
21084         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
21085         consider COND_EXPR as a mask producer.
21087 2016-05-12  Marek Polacek  <polacek@redhat.com>
21089         PR driver/71063
21090         * opts.c (common_handle_option): Detect missing argument for --help^.
21092 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21094         PR target/70830
21095         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
21096         when popping the PC and within an interrupt handler routine.
21097         Add missing tab to output of "ldmfd".
21098         (output_return_instruction): Output LDMFD with SP update rather
21099         than POP when returning from interrupt handler.
21101 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
21103         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
21104         TARGET_64BIT && TARGET_AVX512DQ.
21105         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
21106         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
21107         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
21108         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
21109         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
21110         (*vec_extractv4si_zext): Add avx512dq alternative.
21111         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
21112         use v instead of x constraint in other alternatives where possible.
21114         * config/i386/sse.md (sse2_loadld): Use v instead of x
21115         constraint in alternatives 0,1,4.
21117         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
21118         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
21119         v constraints instead of x and <pinsr_evex_isa> isa attribute.
21121         PR target/71019
21122         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
21123         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
21124         is not emitted unless TARGET_AVX512BW.
21125         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
21126         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
21127         for the result operand.
21129         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
21130         constraint instead of x in avx alternatives.  Use maybe_evex instead
21131         of vex prefix.
21133         * config/i386/constraints.md (Yv): New constraint.
21134         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
21135         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
21136         * config/i386/i386.md (avx512fvecmode): New mode attr.
21137         (*pushtf): Use v constraint instead of x.
21138         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
21139         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
21140         (*absneg<mode>2): Use Yv constraint instead of x constraint.
21141         (*absnegtf2_sse): Likewise.
21142         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
21143         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
21144         avx512f alternatives.
21145         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
21147 2016-05-12  Richard Biener  <rguenther@suse.de>
21149         PR tree-optimization/71060
21150         * tree-data-ref.c (initialize_data_dependence_relation): Do not
21151         require exact match of DR_BASE_OBJECT but only matching address and
21152         type.
21154 2016-05-12  Richard Biener  <rguenther@suse.de>
21156         PR tree-optimization/70986
21157         * cfganal.c: Include cfgloop.h.
21158         (dfs_find_deadend): Prefer to take edges exiting loops.
21160 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21162         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
21163         compile and run time.
21165 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
21167         PR c/43651
21168         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
21170 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
21172         * config/i386/i386.c (legitimize_pic_address): Use
21173         copy_to_suggested_reg instead of gen_movsi.
21175 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21177         * config/rs6000/predicates.md (quad_memory_operand): Move most of
21178         the code into quad_address_p and call it to share code with
21179         vsx_quad_dform_memory_operand.
21180         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
21181         d-form support.
21182         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
21183         bit instead of being a separate word.  Split -mpower9-dform into
21184         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21185         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
21186         for the register class supporting 128-bit quad word memory offsets.
21187         (mode_supports_vsx_dform_quad): Helper function to return if the
21188         register class uses quad word memory offsets.
21189         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
21190         (rs6000_debug_reg_global): Always print if we are using LRA or not.
21191         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
21192         instructions are enabled, set up the appropriate addr_masks for
21193         128-bit types.
21194         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
21195         -mpower9-dform-scalar, instead of -mpower9-dform.
21196         (rs6000_option_override_internal): Split -mpower9-dform into two
21197         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
21198         -mpower9-dform switch sets or clears both.  If we are not using
21199         the LRA register allocator, do not enable -mpower9-dform-vector by
21200         default.  If we are using LRA, enable -mpower9-dform-vector and
21201         -mvsx-timode if it is appropriate.  Issue a warning if either
21202         -mpower9-dform-vector or -mvsx-timode are explicitly used without
21203         enabling LRA.
21204         (quad_address_offset_p): New helper function to return if the
21205         offset is legal for quad word memory instructions.
21206         (quad_address_p): New function to determin if GPR or vector
21207         register quad word memory addresses are legal.
21208         (mem_operand_gpr): Validate quad word address offsets.
21209         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
21210         d-form (register + offset) instructions.
21211         (offsettable_ok_by_alignment): Likewise.
21212         (rs6000_legitimate_offset_address_p): Likewise.
21213         (legitimate_lo_sum_address_p): Likewise.
21214         (rs6000_legitimize_address): Likewise.
21215         (rs6000_legitimize_reload_address): Add more debug statements for
21216         -mdebug=addr.
21217         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
21218         d-form instructions.
21219         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
21220         d-form instructions.  Distinguish different cases in debug
21221         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
21222         d-form instructions.
21223         (rs6000_preferred_reload_class): Likewise.
21224         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
21225         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
21226         of the ISA 2.06 indexed memory instructions.
21227         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
21228         use them to save/restore the saved vector registers instead of
21229         using Altivec instructions.
21230         (rs6000_emit_epilogue): Likewise.
21231         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
21232         (rs6000_opt_masks): Split -mpower9-dform into
21233         -mpower9-dform-scalar and -mpower9-dform-vector.
21234         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
21235         was not selected.
21236         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
21237         ISA 3.0 vector indexed memory instructions, and fold the code into
21238         the normal mov<mode> patterns.
21239         (p9_vecstore_<mode>): Likewise.
21240         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
21241         instructions.
21242         (vsx_movti_64bit): Likewise.
21243         (vsx_movti_32bit): Likewise.
21244         * config/rs6000/constraints.md (wO constraint): New constraint for
21245         ISA 3.0 vector d-form support.
21246         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
21247         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
21248         include -mpower9-dform-vector until we switch over to LRA.
21249         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
21250         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
21251         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
21252         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21253         for -mpower9-dform and -mlra.
21254         * doc/md.texi (wO constraint): Document wO constraint.
21256 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
21258         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
21259         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
21260         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
21261         Move handling of non-insn arguments inline into the sole user:
21262         (output_trans_func): ...here.
21263         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
21264         in emitted function prototype.
21265         (output_internal_insn_latency_func): Ditto.  Simplify.
21266         (output_internal_maximal_insn_latency_func): Ditto.  Delete
21267         always-unused argument.
21268         (output_insn_latency_func): Ditto.
21269         (output_maximal_insn_latency_func): Ditto.
21271 2016-05-11  Richard Biener  <rguenther@suse.de>
21273         PR tree-optimization/71055
21274         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
21275         sth with precision not equal to access size verify we don't chop
21276         off bits.
21278 2016-05-11  Richard Biener  <rguenther@suse.de>
21280         PR debug/71057
21281         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
21282         (dwarf2out_finish): Move retry_incomplete_types call ...
21283         (dwarf2out_early_finish): ... here.
21285 2016-05-11  Richard Biener  <rguenther@suse.de>
21287         PR middle-end/71002
21288         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
21289         if the langhook insists on it.
21290         * fold-const.c (make_bit_field_ref): Add arg for the original
21291         reference and preserve its alias-set.
21292         (decode_field_reference): Take exp by reference and adjust it
21293         to the original memory reference.
21294         (optimize_bit_field_compare): Adjust callers.
21295         (fold_truth_andor_1): Likewise.
21296         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
21298 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
21300         PR middle-end/70807
21301         * cfgrtl.h (delete_insn_and_edges): Now return bool.
21302         * cfgrtl.c (delete_insn_and_edges): Likewise.
21303         * config/i386/i386.c (convert_scalars_to_vector): Remove
21304         redundant code.
21305         * cse.c (cse_insn): Compute cse_cfg_altered.
21306         (delete_trivially_dead_insns): Likewise.
21307         (cse_cc_succs): Likewise.
21308         (rest_of_handle_cse): Free dominance info if required.
21309         (rest_of_handle_cse2): Likewise.
21310         (rest_of_handle_cse_after_global_opts): Likewise.
21312 2016-05-11  Alan Modra  <amodra@gmail.com>
21314         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
21315         abi_v4_pass_in_fpr): New functions.
21316         (rs6000_function_arg_boundary): Exclude complex IBM long double
21317         from 64-bit alignment when ABI_V4.
21318         (rs6000_function_arg, rs6000_function_arg_advance_1,
21319         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
21321 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
21323         PR rtl-optimization/71028
21324         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
21325         jump with just a return in the fallthrough block if the branch
21326         block contains just a return as well.
21328 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
21330         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
21331         * match.pd ((X & Y) ^ Y): ... this.
21332         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
21333         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
21335 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
21337         * read-md.c (require_char_ws): New function.
21338         (read_string): Simplify using require_char_ws.
21339         (handle_constants): Likewise.
21340         (handle_enum): Likewise.
21341         (handle_file): Likewise.
21342         * read-md.h (require_char_ws): New declaration.
21343         * read-rtl.c (read_conditions): Simplify using require_char_ws.
21344         (read_mapping): Likewise.
21345         (read_rtx_code): Likewise.
21346         (read_nested_rtx): Likewise.
21348 2016-05-10  James Norris  <jnorris@codesourcery.com>
21350         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
21351         if offloading is enabled and -fopenacc or -fopenmp is specified.
21352         (CRTOFFLOADEND): Likewise.
21353         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
21354         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
21356 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
21358         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
21359         gotoff_operand code paths.  Use copy_to_suggested_regs and
21360         expand_simple_binop where appropriate.  Cleanup.
21362 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21364         PR target/70799
21365         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
21366         integer constants.
21367         (dimode_scalar_chain::vector_const_cost): New.
21368         (dimode_scalar_chain::compute_convert_gain): Handle constants.
21369         (dimode_scalar_chain::convert_op): Likewise.
21370         (dimode_scalar_chain::convert_insn): Likewise.
21372 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
21374         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
21375         unary operation, not a binary one.
21377 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21379         PR middle-end/70877
21380         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21381         calls with type casted fndecl.
21383 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21385         PR tree-optimization/70786
21386         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21387         * calls.c (initialize_argument_information): Bind bounds
21388         with corresponding args passed by reference.
21390 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
21392         PR target/70927
21393         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21394         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21395         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21396         accordingly.
21398 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21400         PR target/70963
21401         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21402         code for a zero scale factor.
21403         (vsx_xvcvdpuxds_scale): Likewise.
21405 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
21407         * diagnostic-show-locus.c (layout::layout): Call show_ruler
21408         if show_ruler_p was set on the context.
21409         (layout::show_ruler): New method.
21410         * diagnostic.h (struct diagnostic_context): Add field
21411         "show_ruler_p".
21413 2016-05-10  Richard Biener  <rguenther@suse.de>
21415         PR tree-optimization/71039
21416         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21417         (chk_uses): New function.
21418         (propagate_with_phi): Verify we can safely replicate the lhs of an
21419         aggregate assignment on all incoming edges.
21421 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
21423         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21424         Forward declare.
21425         (rx_atomic_sequence): New class.
21426         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21427         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21428         non-inline.
21429         (rx_atomic_sequence::rx_atomic_sequence,
21430         rx_atomic_sequence::~rx_atomic_sequence): New functions.
21431         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21432         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21433         CTRLREG_INTB): New constants.
21434         (FETCHOP): New code iterator.
21435         (fethcop_name, fetchop_name2): New iterator code attributes.
21436         (QIHI): New mode iterator.
21437         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21438         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21439         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21441 2016-05-10  Martin Liska  <mliska@suse.cz>
21443         * tree-inline.c (remap_dependence_clique): Do not remap
21444         debugging statements.
21446 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21448         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21449         ("*fixuns_truncdfdi2_z13")
21450         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21451         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21452         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21454 2016-05-10  Richard Biener  <rguenther@suse.de>
21456         PR tree-optimization/70497
21457         PR tree-optimization/28367
21458         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21459         split out from ...
21460         (visit_reference_op_load): ... here.
21461         (vn_reference_lookup_3): Use it to handle subreg-like accesses
21462         with simplified BIT_FIELD_REFs.
21463         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21464         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21465         correctly.
21467 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
21469         * dwarf2out.c (add_abstract_origin_attribute): Adjust
21470         documentation comment.  For BLOCK nodes, add a
21471         DW_AT_abstract_origin attribute that points to the DIE generated
21472         for the origin BLOCK.
21473         (gen_lexical_block_die): Call add_abstract_origin_attribute for
21474         blocks from inlined functions.
21476 2016-05-10  Alan Modra  <amodra@gmail.com>
21478         PR target/70947
21479         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21480         regrename modifying insns saving lr before __morestack call.
21481         * config/rs6000/rs6000.md (split_stack_return): Similarly for
21482         insns restoring lr after __morestack call.
21484 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
21486         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21487         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21488         expanders.
21489         * config/i386/sse.md (vec_interleave_high<mode>,
21490         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21491         <avx512>_vpermt2var<mode>3_maskz): Likewise.
21493 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
21495         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21496         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21497         parallel reassociation for power8 and forward.
21499 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
21501         * config/i386/i386.md (absneg splitters with general regs): Use
21502         general_reg_operand predicate.
21503         (btsq peephole2): Use x86_64_immediate_operand to check if new
21504         value is suitable for immediate operand.  Generate emitted insn
21505         using RTL expressions.
21506         (btcq peephole2): Ditto.
21507         (btrq peephole2): Ditto.  Generate correct immediate operand
21508         for AND masking.
21510 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
21512         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21513         bitpos.
21515 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
21517         * tree-affine.c (wide_int_constant_multiple_p): Add missing
21518         pointer dereference.
21520 2016-05-09  Richard Biener  <rguenther@suse.de>
21522         PR tree-optimization/70985
21523         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21524         op0 isn't a gimple register.
21526 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
21528         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21529         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21530         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21531         (i6400_fpu_mult): New cpu units.
21532         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21533         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21534         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21535         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21536         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21537         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21538         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21539         (i6400_msa_long_float4, i6400_msa_long_float5)
21540         (i6400_msa_long_float8, i6400_msa_fdiv_df)
21541         (i6400_msa_fdiv_sf): New reservations.
21542         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21543         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21544         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21545         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21546         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21547         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21548         (msa_short_cmp, msa_short_float2, msa_short_logic3)
21549         (msa_short_store4, msa_long_load, msa_short_store)
21550         (msa_long_logic, msa_long_float2, msa_long_float4)
21551         (msa_long_float5, msa_long_float8, msa_long_mult)
21552         (msa_long_fdiv, msa_long_div): New reservations.
21554 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
21555             Sameera Deshpande  <sameera.deshpande@imgtec.com>
21556             Matthew Fortune  <matthew.fortune@imgtec.com>
21557             Graham Stott  <graham.stott@imgtec.com>
21558             Chao-ying Fu  <chao-ying.fu@imgtec.com>
21560         * config.gcc: Add MSA header file for mips*-*-* target.
21561         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21562         (Ubv8i, Urv8):  New constraints.
21563         * config/mips/mips-ftypes.def: Add function types for MSA
21564         builtins.
21565         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21566         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21567         * config/mips/mips-msa.md: New file.
21568         * config/mips/mips-protos.h
21569         (mips_split_128bit_const_insns): New prototype.
21570         (mips_msa_idiv_insns): Likewise.
21571         (mips_split_128bit_move): Likewise.
21572         (mips_split_128bit_move_p): Likewise.
21573         (mips_split_msa_copy_d): Likewise.
21574         (mips_split_msa_insert_d): Likewise.
21575         (mips_split_msa_fill_d): Likewise.
21576         (mips_expand_msa_branch): Likewise.
21577         (mips_const_vector_same_val_p): Likewise.
21578         (mips_const_vector_same_bytes_p): Likewise.
21579         (mips_const_vector_same_int_p): Likewise.
21580         (mips_const_vector_shuffle_set_p): Likewise.
21581         (mips_const_vector_bitimm_set_p): Likewise.
21582         (mips_const_vector_bitimm_clr_p): Likewise.
21583         (mips_msa_vec_parallel_const_half): Likewise.
21584         (mips_msa_output_division): Likewise.
21585         (mips_ldst_scaled_shift): Likewise.
21586         (mips_expand_vec_cond_expr): Likewise.
21587         * config/mips/mips.c (enum mips_builtin_type): Add
21588         MIPS_BUILTIN_MSA_TEST_BRANCH.
21589         (mips_gen_const_int_vector_shuffle): New prototype.
21590         (mips_const_vector_bitimm_set_p): New function.
21591         (mips_const_vector_bitimm_clr_p): Likewise.
21592         (mips_const_vector_same_val_p): Likewise.
21593         (mips_const_vector_same_bytes_p): Likewise.
21594         (mips_const_vector_same_int_p): Likewise.
21595         (mips_const_vector_shuffle_set_p): Likewise.
21596         (mips_symbol_insns): Forbid loading symbols via immediate for
21597         MSA.
21598         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21599         stores.
21600         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21601         MSA.
21602         (mips_lx_address_p): Add support load indexed address for MSA.
21603         (mips_address_insns): Add calculation of instructions needed for
21604         stores and loads for MSA.
21605         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
21606         CONST_VECTOR for MSA and let it fall through.
21607         (mips_ldst_scaled_shift): New function.
21608         (mips_subword_at_byte): Likewise.
21609         (mips_msa_idiv_insns): Likewise.
21610         (mips_legitimize_move): Validate MSA moves.
21611         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
21612         calculation of costs for MSA division.
21613         (mips_split_move_p): Check if MSA moves need splitting.
21614         (mips_split_move): Split MSA moves if necessary.
21615         (mips_split_128bit_move_p): New function.
21616         (mips_split_128bit_move): Likewise.
21617         (mips_split_msa_copy_d): Likewise.
21618         (mips_split_msa_insert_d): Likewise.
21619         (mips_split_msa_fill_d): Likewise.
21620         (mips_output_move): Handle MSA moves.
21621         (mips_expand_msa_branch): New function.
21622         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21623         Reinstate 'y' modifier.
21624         (mips_file_start): Add MSA .gnu_attribute.
21625         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21626         FPRs.
21627         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21628         (mips_class_max_nregs): Add register size for MSA supported mode.
21629         (mips_cannot_change_mode_class): Allow conversion between MSA
21630         vector modes and TImode.
21631         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21632         instruction.
21633         (mips_secondary_reload_class): Force MSA loads/stores via memory.
21634         (mips_preferred_simd_mode): Add preffered modes for MSA.
21635         (mips_vector_mode_supported_p): Add MSA supported modes.
21636         (mips_autovectorize_vector_sizes): New function.
21637         (mips_msa_output_division): Likewise.
21638         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21639         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21640         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21641         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21642         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21643         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21644         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21645         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21646         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21647         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21648         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21649         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21650         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21651         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21652         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21653         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21654         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21655         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21656         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21657         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21658         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21659         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21660         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21661         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21662         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21663         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21664         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21665         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21666         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21667         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21668         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21669         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21670         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21671         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21672         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21673         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21674         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21675         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21676         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21677         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21678         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21679         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21680         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21681         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21682         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21683         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21684         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21685         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21686         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21687         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21688         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21689         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21690         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21691         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21692         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21693         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21694         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21695         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21696         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21697         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21698         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21699         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21700         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21701         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21702         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21703         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21704         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21705         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21706         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21707         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21708         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21709         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21710         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21711         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21712         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21713         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21714         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21715         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21716         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21717         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21718         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21719         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21720         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21721         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21722         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21723         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21724         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21725         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21726         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21727         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21728         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21729         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21730         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21731         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21732         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21733         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21734         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21735         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21736         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21737         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21738         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21739         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21740         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21741         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21742         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21743         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21744         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21745         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21746         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21747         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21748         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21749         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21750         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21751         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21752         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21753         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21754         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21755         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21756         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21757         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21758         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21759         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21760         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21761         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21762         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21763         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21764         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21765         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21766         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21767         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21768         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21769         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21770         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21771         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21772         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21773         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21774         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21775         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21776         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21777         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21778         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21779         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21780         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21781         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21782         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21783         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21784         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21785         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21786         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21787         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21788         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21789         move_v builtins.
21790         (mips_get_builtin_decl_index): New array.
21791         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21792         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21793         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21794         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21795         (mips_init_builtins): Initialize mips_get_builtin_decl_index
21796         array.
21797         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21798         hook.
21799         (mips_expand_builtin_insn): Prepare operands for
21800         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21801         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21802         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21803         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21804         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21805         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21806         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21807         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21808         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21809         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21810         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21811         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21812         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21813         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21814         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21815         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21816         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21817         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21818         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21819         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21820         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21821         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21822         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21823         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21824         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21825         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21826         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21827         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21828         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21829         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21830         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21831         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21832         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21833         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21834         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21835         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21836         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21837         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21838         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21839         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21840         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21841         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21842         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21843         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21844         These are set implicitly and an error is reported if overridden.
21845         (mips_expand_builtin_msa_test_branch): New function.
21846         (mips_expand_msa_shuffle): Likewise.
21847         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21848         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21849         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21850         (mips_expand_vec_unpack): Add support for MSA.
21851         (mips_expand_vector_init): Likewise.
21852         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21853         instead of const0_rtx.
21854         (mips_msa_vec_parallel_const_half): New function.
21855         (mips_gen_const_int_vector): Likewise.
21856         (mips_gen_const_int_vector_shuffle): Likewise.
21857         (mips_expand_msa_cmp): Likewise.
21858         (mips_expand_vec_cond_expr): Likewise.
21859         * config/mips/mips.h
21860         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21861         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21862         specified.
21863         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21864         (ISA_HAS_MSA): New macro.
21865         (UNITS_PER_MSA_REG): Likewise.
21866         (BITS_PER_MSA_REG): Likewise.
21867         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21868         (MSA_REG_FIRST): New macro.
21869         (MSA_REG_LAST): Likewise.
21870         (MSA_REG_NUM): Likewise.
21871         (MSA_REG_P): Likewise.
21872         (MSA_REG_RTX_P): Likewise.
21873         (MSA_SUPPORTED_MODE_P): Likewise.
21874         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21875         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21876         * config/mips/mips.md: Include mips-msa.md.
21877         (alu_type): Add simd_add.
21878         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21879         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21880         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21881         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21882         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21883         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21884         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21885         simd_move, simd_load, simd_store.  Choose "multi" for moves
21886         for "qword_mode".
21887         (qword_mode): New attribute.
21888         (insn_count): Add instruction count for quad moves.
21889         Increase the count for MIPS SIMD division.
21890         (UNITMODE): Add UNITMODEs for vector types.
21891         (addsub): New code iterator.
21892         * config/mips/mips.opt (mmsa): New option.
21893         * config/mips/msa.h: New file.
21894         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21895         specified.
21896         * config/mips/mti-linux.h: Likewise.
21897         * config/mips/predicates.md
21898         (const_msa_branch_operand): New constraint.
21899         (const_uimm3_operand): Likewise.
21900         (const_uimm4_operand): Likewise.
21901         (const_uimm5_operand): Likewise.
21902         (const_uimm8_operand): Likewise.
21903         (const_imm5_operand): Likewise.
21904         (aq10b_operand): Likewise.
21905         (aq10h_operand): Likewise.
21906         (aq10w_operand): Likewise.
21907         (aq10d_operand): Likewise.
21908         (const_m1_operand): Likewise.
21909         (reg_or_m1_operand): Likewise.
21910         (const_exp_2_operand): Likewise.
21911         (const_exp_4_operand): Likewise.
21912         (const_exp_8_operand): Likewise.
21913         (const_exp_16_operand): Likewise.
21914         (const_vector_same_val_operand): Likewise.
21915         (const_vector_same_simm5_operand): Likewise.
21916         (const_vector_same_uimm5_operand): Likewise.
21917         (const_vector_same_uimm6_operand): Likewise.
21918         (const_vector_same_uimm8_operand): Likewise.
21919         (par_const_vector_shf_set_operand): Likewise.
21920         (reg_or_vector_same_val_operand): Likewise.
21921         (reg_or_vector_same_simm5_operand): Likewise.
21922         (reg_or_vector_same_uimm6_operand): Likewise.
21923         * doc/extend.texi (MIPS SIMD Architecture Functions): New
21924         section.
21925         * doc/invoke.texi (-mmsa): Document new option.
21927 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21929         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21930         * configure: Regenerate.
21931         * config.in: Regenerate.
21932         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21933         on -fvtable-verify.
21934         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21935         (ENDFILE_VTV_SPEC): Define.
21937 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
21939         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21940         registers in all interrupt handlers if necessary.
21941         (rl78_option_override): Add warning.
21942         (MUST_SAVE_MDUC_REGISTERS): New macro.
21943         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21944         * config/rl78/rl78.c (check_mduc_usage): New function.
21945         (mduc_regs): New structure to hold MDUC register data.
21946         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21947         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21948         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21949         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21950         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21951         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21953 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
21955         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21956         (tree-ssa-loop-niter.h): Ditto.
21957         (idx_within_array_bound, ref_within_array_bound): New functions.
21958         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21959         Factor out check on writable base object to ...
21960         (base_object_writable): ... here.
21962 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21964         * config/arm/arm.md (probe_stack): Add modes to set source
21965         and destination.
21967 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
21969         * regrename.c (base_reg_class_for_rename): New static function.
21970         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21972 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
21974         * cgraph.c (thunk_adjust): Export.
21975         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21976         * cgraphunit.c (thunk_adjust): Export.
21977         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21978         thunks.
21979         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21980         inlinable.
21981         * tree-inline.c (expand_call_inline): Expand thunks inline.
21983 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
21985         PR target/70998
21986         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21987         (*sse2_vd_cvtss2sd): Ditto.
21988         * config/i386/i386.md
21989         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21990         Generate *sse2_vd_cvtsd2ss pattern.
21991         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21992         Generate *sse2_vd_cvtss2sd pattern.
21994 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
21996         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21997         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
21998         users.
22000 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
22002         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
22003         * config/sh/sh.c: Define and declare variables on first use throughout
22004         the file.
22005         (current_function_interrupt): Change to bool type.
22006         (frame_insn): Rename to emit_frame_insn and update users.
22007         (push_regs): Use bool for 'interrupt_handler' argument.
22008         (save_schedule_s): Remove.
22009         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
22010         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
22011         targetm.asm_out.unaligned_op.di.
22012         (gen_far_branch): Remove redundant forward declaration.
22013         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
22014         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
22015         (sh_set_return_address, sh_function_ok_for_sibcall,
22016         scavenge_reg): Update comments.
22017         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
22018         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
22019         (sh_attr_renesas_p): Remove unnecessary parentheses.
22020         (branch_dest): Simplify.
22021         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
22022         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
22023         (CUMULATIVE_ARGS): Change macro to typedef.
22024         (current_function_interrupt): Change to bool type.
22025         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
22026         Surround with __cplusplus ifdef.
22027         (sh_compare_op0, sh_compare_op1): Remove.
22028         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
22030 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
22032         * config/arm/arm.md (arch): Add neon.
22033         (arch_enabled): Return yes for arch neon when TARGET_NEON.
22034         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
22035         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
22036         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
22037         attributes for alt renumbering.  Mark alt 3 as non-predicable.
22038         (thumb2_movdf_vfp): Likewise.
22040 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
22042         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
22043         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
22044         (*andqi_1): Add preferred_for_speed attribute to disparage
22045         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
22046         (*<code>qi_1): Ditto.
22047         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
22048         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
22049         (*ashlqi3_1): Ditto.
22050         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
22051         Add preferred_for_size attribute to disparage alternative 0 and
22052         preferred_for_speed attribute to disparage alternative 1 for
22053         TARGET_PARTIAL_REG_STALL targets.
22055 2016-05-07  Tom de Vries  <tom@codesourcery.com>
22057         PR tree-optimization/70956
22058         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
22059         def.
22061 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
22063         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
22064         * config/sh/sh.c (sh_cbranch_distance): Implement it.
22065         * config/sh/sh.md (branch_zero): Remove define_attr.
22066         (define_delay): Disable delay slot if branch distance is one insn.
22068 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
22070         * config/i386/i386.md (LEAMODE): New mode attribute.
22071         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
22072         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
22073         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
22074         operand 2 predicate.
22075         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
22076         (*lea<mode>_general_3): Ditto.
22077         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
22079 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
22081         * genmddump.c (main): Convert argv from char ** to const char **.
22083 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
22085         * coretypes.h (OVERRIDE): New macro.
22086         (FINAL): New macro.
22088 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
22090         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
22091         allow coalescing if the types are compatible.
22093 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
22095         * pass_manager.h (pass_manager::register_pass_name): New method.
22096         (pass_manager::get_pass_by_name): New method.
22097         (pass_manager::create_pass_tab): New method.
22098         (pass_manager::m_name_to_pass_map): New field.
22099         * passes.c (name_to_pass_map): Delete global in favor of field
22100         "m_name_to_pass_map" of pass_manager.
22101         (register_pass_name): Rename from a function to...
22102         (pass_manager::register_pass_name): ...this method, updating
22103         for renaming of global "name_to_pass_map" to field
22104         "m_name_to_pass_map".
22105         (create_pass_tab): Rename from a function to...
22106         (pass_manager::create_pass_tab): ...this method, updating
22107         for renaming of global "name_to_pass_map" to field.
22108         (get_pass_by_name): Rename from a function to...
22109         (pass_manager::get_pass_by_name): ...this method.
22110         (enable_disable_pass): Convert use of get_pass_by_name to
22111         a method call, locating the pass_manager singleton.
22113 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
22115         * genattr-common.c (main): Convert argv from char ** to const char **.
22116         * genattr.c (main): Likewise.
22117         * genattrtab.c (main): Likewise.
22118         * genautomata.c (initiate_automaton_gen): Likewise.
22119         (main): Likewise.
22120         * gencodes.c (main): Likewise.
22121         * genconditions.c (main): Likewise.
22122         * genconfig.c (main): Likewise.
22123         * genconstants.c (main): Likewise.
22124         * genemit.c (main): Likewise.
22125         * genenums.c (main): Likewise.
22126         * genextract.c (main): Likewise.
22127         * genflags.c (main): Likewise.
22128         * genmddeps.c (main): Likewise.
22129         * genopinit.c (main): Likewise.
22130         * genoutput.c (main): Likewise.
22131         * genpeep.c (main): Likewise.
22132         * genpreds.c (main): Likewise.
22133         * genrecog.c (main): Likewise.
22134         * gensupport.c (init_rtx_reader_args_cb): Likewise.
22135         (init_rtx_reader_args): Likewise.
22136         * gensupport.h (init_rtx_reader_args_cb): Likewise.
22137         (init_rtx_reader_args): Likewise.
22138         * gentarget-def.c (main): Likewise.
22139         * read-md.c (read_md_files): Likewise.
22140         * read-md.h (read_md_files): Likewise.
22142 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
22144         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
22145         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
22146         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
22147         Remove unused predicate.
22148         (register_and_not_fp_reg_operand): Ditto.
22150 2016-05-06  Martin Liska  <mliska@suse.cz>
22152         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
22153         instead of vec as the vector is local to the function.
22155 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
22157         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
22158         avx512bw alternative.
22160         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
22161         before the ashr<mode>3 pattern.
22163         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
22164         v instead of x in vex or maybe_vex alternatives, use
22165         maybe_evex instead of vex in prefix.
22167         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
22168         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
22169         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
22170         in vex or maybe_vex alternatives, use maybe_evex instead of vex
22171         in prefix.
22173         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
22174         v instead of x in vex or maybe_vex alternatives, use
22175         maybe_evex instead of vex in prefix.
22177         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
22178         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
22179         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
22180         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
22181         alternatives, use maybe_evex instead of vex in prefix.
22183         * config/i386/sse.md (vec_interleave_lowv4sf,
22184         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
22185         v instead of x in vex or maybe_vex alternatives, use
22186         maybe_evex instead of vex in prefix.
22188         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
22189         v instead of x in vex or maybe_vex alternatives, use
22190         maybe_evex instead of vex in prefix.
22192         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
22193         v constraint instead of x.
22195 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
22197         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
22198         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
22199         equality first.
22201 2016-05-06  Richard Biener  <rguenther@suse.de>
22203         PR tree-optimization/70948
22204         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22205         Properly clobber all fields of va_list for __builtin_va_start.
22207 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
22209         PR debug/70935
22210         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
22211         loop latch destination.
22213 2016-05-06  Martin Liska  <mliska@suse.cz>
22215         * tree-ssa-uninit.c: Apply manual changes
22216         to the GNU coding style.
22217         (prune_uninit_phi_opnds): Rename from
22218         prune_uninit_phi_opnds_in_unrealizable_paths.
22220 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22222         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
22223         mspace): Remove deprecated options.
22224         * doc/invoke.texi (SH options): Remove -mspace.
22226 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22228         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
22230 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22232         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
22233         corresponding combine split pattern.
22235 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22237         PR target/58219
22238         * config/sh/predicates.md (long_displacement_mem_operand): New.
22239         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
22240         Add movi20, movi20s alternatives.  Adjust length attribute for
22241         alternatives.
22242         (movsi_ie): Allow for any FPU.  Adjust length attribute for
22243         alternatives.
22244         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
22245         attribute for alternatives.
22246         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
22247         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
22248         length attribute for alternatives.
22250 2016-05-06  Richard Biener  <rguenther@suse.de>
22252         PR tree-optimization/70960
22253         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
22255 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22257         PR target/52933
22258         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
22259         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
22261 2016-05-06  Marek Polacek  <polacek@redhat.com>
22263         PR sanitizer/70875
22264         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
22266 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
22268         PR target/54089
22269         * config/sh/sh.md (*rotcr): Add another variant.
22271 2016-05-06  Richard Biener  <rguenther@suse.de>
22273         PR middle-end/70931
22274         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
22276 2016-05-06  Richard Biener  <rguenther@suse.de>
22278         PR middle-end/70941
22279         * fold-const.c (split_tree): Always convert to the original type
22280         before negating.
22282 2016-05-06  Richard Biener  <rguenther@suse.de>
22284         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
22285         (fwprop_addr): Likewise.
22287 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
22289         PR target/70873
22290         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
22291         New prototype.
22292         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
22293         * config/i386/i386.md (push mem splitter): Use find_constant_src in
22294         the splitter condition.
22295         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
22296         the splitter condition.
22297         (FP float_extend load splitter): Ditto.
22299 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
22301         * config/i386/i386.md (peehole2 patterns): Change true_regnum
22302         to REGNO in all peephole2 patterns.
22303         (post-reload splitters): Change true_regnum to REGNO in
22304         post-reload splitters.
22305         (zero_extend splitters): Use general_reg_operand and
22306         nonimmediate_gr_operand predicates.
22308 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
22310         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
22311         v constraint instead of x.
22313 2016-05-05  Alan Modra  <amodra@gmail.com>
22315         PR target/68662
22316         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
22317         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
22318         TARGET_NO_FP_IN_TOC for -mrelocatable.
22319         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
22320         TARGET_RELOCATABLE test.
22321         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22322         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22323         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22324         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22325         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22326         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
22327         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22328         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
22329         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
22330         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22331         Likewise.
22332         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
22333         (rs6000_stack_info): Likewise.
22334         (rs6000_elf_asm_out_constructor): Likewise.
22335         (rs6000_elf_asm_out_destructor): Likewise.
22336         (rs6000_elf_declare_function_name): Likewise.
22337         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
22338         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
22339         Don't define.
22341 2016-05-05  Alan Modra  <amodra@gmail.com>
22343         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
22345 2016-05-05  Alan Modra  <amodra@gmail.com>
22347         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
22348         out-of-line gpr restore for one or two regs if that would add
22349         a save of lr.
22351 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
22353         PR target/70873
22354         * config/i386/i386.md
22355         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
22356         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
22357         as operand 0 predicate.
22358         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
22359         Ditto.
22360         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
22361         Ditto.  Emit the pattern using RTX.
22363         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
22364         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
22365         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
22366         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
22367         Ditto.
22368         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
22369         sse_reg_operand as operand 0 predicate.
22371         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
22372         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
22373         instead of gen_rtx_REG.
22374         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
22375         Ditto.
22377 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
22379         * function.c (emit_use_return_register_into_block): Delete.
22380         (gen_return_pattern): Delete.
22381         (emit_return_into_block): Delete.
22382         (active_insn_between): Delete.
22383         (convert_jumps_to_returns): Delete.
22384         (emit_return_for_exit): Delete.
22385         (thread_prologue_and_epilogue_insns): Delete all code dealing with
22386         simple_return for shrink-wrapped blocks.
22387         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22388         end of blocks that need one.
22389         (get_unconverted_simple_return): Delete.
22390         (convert_to_simple_return): Delete.
22391         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22392         (convert_to_simple_return): Ditto.
22394 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
22396         * cfgcleanup.c (bb_is_just_return): New function.
22397         (try_optimize_cfg): Simplify jumps to return, branches to return,
22398         and branches around return.
22400 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
22402         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22403         branch to a return.
22405 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
22407         PR c++/70906
22408         PR c++/70933
22409         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22410         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22411         assert flags & OEP_HASH_CHECK, instead of asserting it
22412         never happens.  Handle TARGET_EXPR.
22413         * fold-const.c (operand_equal_p): For hash verification,
22414         or in OEP_HASH_CHECK into flags.
22416 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
22418         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22419         comment.
22420         (compute_samebase_partition_bases): Fix typo.
22422 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
22424         * config/i386/sse.md (vec_interleave_highv8sf,
22425         vec_interleave_lowv8sf, vec_interleave_highv4df,
22426         vec_interleave_lowv4df): Remove constraints from expanders.
22428         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22430 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
22432         * tree-inline.c (expand_call_inline): Fix path dealing with
22433         making lhs of call statement undefined.
22435 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
22437         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22438         Check availability on NODE, too.
22439         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22440         (cgraph_node::call_for_symbol_and_aliases): Likewise.
22441         (varpool_node::call_for_symbol_and_aliase): Likewise.
22442         * ipa-pure-const.c (add_new_function): Analyze all bodies.
22443         (propagate_pure_const): Propagate across interposable functions, too.
22444         (skip_function_for_local_pure_const): Do not skip interposable bodies
22445         with aliases.
22446         (pass_local_pure_const::execute): Update.
22448 2016-05-04  Marek Polacek  <polacek@redhat.com>
22450         * doc/invoke.texi: Document -Wdangling-else.
22452 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22454         * config.gcc: Error out when conflicting multilib is detected.  Do not
22455         loop over multilibs since no combination is legal.
22457 2016-05-04  Alan Modra  <amodra@gmail.com>
22459         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22460         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22461         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22462         Align .toc.
22464 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22466         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22467         Clean up p5600 comments.
22469 2016-05-04  Richard Biener  <rguenther@suse.de>
22471         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22472         constructor simplifications.
22473         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22475 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
22477         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22478         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22479         result.set_rtx is null instead of aborting.
22480         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22481         Always enable.
22482         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22483         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22484         *mov<mode>_store_postinc): New patterns.
22486 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
22488         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
22489         as commutative.  Check both conversions are NOP.
22490         ((A & B) OP (C & B)): Remove.
22492 2016-05-04  Alan Modra  <amodra@gmail.com>
22494         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22496 2016-05-04  Alan Modra  <amodra@gmail.com>
22498         PR target/70866
22499         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22500         when cr2,3,4 are all fixed regs.
22502 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
22504         PR rtl-optimization/57193
22505         * opts.c (default_options_table): Revert OPT_frename_registers change.
22506         * doc/invoke.texi (-frename-registers, -O2): Likewise.
22508 2016-05-03  Martin Sebor  <msebor@redhat.com>
22510         PR c++/66561
22511         * builtins.c (fold_builtin_FILE): New function.
22512         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22513         (fold_builtin_0): Call them.
22514         * gimplify.c (gimplify_call_expr): Remove the handling of
22515         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22517         PR c++/66561
22518         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22519         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22520         constants.
22522         PR c++/66639
22523         * doc/extend.texi (Function Names as Strings): Update __func__,
22524         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22525         constants.
22527 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
22528             Richard Biener  <rguenther@suse.de>
22530         PR tree-optimization/70916
22531         * tree-if-conv.c: Include cfganal.h.
22532         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22533         and remove_fake_exit_edges around the optimization pass.
22535 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
22537         * cgraph.c (symbol_table::create_edge): Set inline_failed.
22538         (cgraph_edge::make_direct): Likewise.
22539         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22540         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22541         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22542         (CIF_THUNK): New code.
22543         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22544         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22545         (compute_inline_parameters): Set inline_failed for thunks.
22546         (inline_analyze_function): Cleanup.
22547         * ipa-inline.c (can_inline_edge_p): Do not deal with
22548         call_stmt_cannot_inline_p.
22549         (can_early_inline_edge_p): Likewise.
22550         (early_inliner): Initialize inline_failed.
22551         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22553 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
22555         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22556         from nonimm_ssenomem_operand.
22557         (nonimm_ssenomem_operand): New predicate.
22558         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22559         as operand 0 predicate.
22560         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22561         Disable unsupported alternatives using "enabled" attribute.
22562         Use register_ssemem_operand as operand 0 predicate.
22563         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22565 2016-05-03  Marek Polacek  <polacek@redhat.com>
22567         PR c/70859
22568         * input.c (expansion_point_location): New function.
22569         * input.h (expansion_point_location): Declare.
22571 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
22573         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22574         occurence with frame_offset_ ones.
22576 2016-05-03  Alan Modra  <amodra@gmail.com>
22578         PR rtl-optimization/70890
22579         * ira.c (combine_and_move_insns): When moving def_insn, remove
22580         equivs on use_insn.
22582 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22584         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22585         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22586         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22587         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22589 2016-05-03  Alan Modra  <amodra@gmail.com>
22591         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22592         for SAVE_MULTIPLE/STORE_MULTIPLE.
22594 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
22596         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22597         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22599 2016-05-03  Richard Biener  <rguenther@suse.de>
22601         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22602         default true.
22603         (gimplify_arg): Likewise.
22604         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22605         re-writing the result to a decl if required.
22606         (internal_get_tmp_var): Add allow_ssa parameter
22607         and override into_ssa with it.
22608         (get_formal_tmp_var): Adjust.
22609         (get_initialized_tmp_var): Add allow_ssa parameter.
22610         (gimplify_arg): Add allow_ssa parameter and avoid generating
22611         SSA names for the result false.
22612         (gimplify_call_expr): If the call may return twice do not
22613         gimplify parameters into SSA.
22614         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22615         (gimplify_modify_expr): Adjust assert.  For noreturn calls
22616         with a SSA name LHS adjust its def.
22617         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22618         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22619         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22620         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22621         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
22622         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
22623         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22624         (optimize_target_teams): Do not allow SSA names for clause operands.
22625         (gimplify_expr): Likewise for where we mark the result addressable.
22626         * passes.def (pass_init_datastructures): Remove.
22627         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22628         (rewrite_stmt): Likewise.
22629         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22630         (replace_locals_op): Replace SSA names.
22631         (copy_gimple_seq_and_replace_locals): Init src_cfun.
22632         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22633         * cgraph.c (release_function_body): Free CFG annotations only
22634         when we have a CFG.  Simplify.
22635         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22636         force_gimple_operand instead of get_initialized_tmp_var.
22637         * tree-pass.h (make_pass_init_datastructures): Remove.
22638         * tree-ssa.c (execute_init_datastructures): Remove.
22639         (pass_data_init_datastructures): Likewise.
22640         (class pass_init_datastructures): Likewise.
22641         (make_pass_init_datastructures): Likewise.
22642         * omp-low.c (create_omp_child_function): Init SSA data structures.
22643         (grid_expand_target_grid_body): Likewise.
22644         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22645         name before adding it to names_to_release.
22646         (remove_bb): Always release SSA defs.
22647         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22648         before dereferencing it.
22649         * cgraphunit.c (init_lowered_empty_function): Always
22650         int SSA data structures.
22651         * tree-ssanames.c (release_defs): Remove assert that we are in
22652         SSA form.
22653         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22655 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
22656             Uros Bizjak  <ubizjak@gmail.com>
22658         PR rtl-optimization/70467
22659         * config/i386/predicates.md (x86_64_hilo_int_operand,
22660         x86_64_hilo_general_operand): New predicates.
22661         * config/i386/constraints.md (Wd): New constraint.
22662         * config/i386/i386.md (mode attr di): Use Wd instead of e.
22663         (general_hilo_operand): New mode attr.
22664         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22665         instead of <general_operand>.
22666         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22667         x86_64_hilo_general_operand instead of <general_operand>.
22669 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
22671         PR tree-optimization/70916
22672         * tree-if-conv.c (constant_or_ssa_name): Removed.
22673         (fold_build_cond_expr): Use is_gimple_val instead of
22674         constant_or_ssa_name.
22676         PR tree-optimization/70916
22677         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22678         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22680         PR target/49244
22681         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22682         (optimize_atomic_bit_test_and): New function.
22683         (pass_fold_builtins::execute): Use it.
22684         * optabs.def (atomic_bit_test_and_set_optab,
22685         atomic_bit_test_and_complement_optab,
22686         atomic_bit_test_and_reset_optab): New optabs.
22687         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22688         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22689         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22690         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22691         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22692         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22693         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22694         * doc/md.texi (atomic_bit_test_and_set@var{mode},
22695         atomic_bit_test_and_complement@var{mode},
22696         atomic_bit_test_and_reset@var{mode}): Document.
22697         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22698         atomic_bit_test_and_complement<mode>,
22699         atomic_bit_test_and_reset<mode>): New expanders.
22700         (atomic_bit_test_and_set<mode>_1,
22701         atomic_bit_test_and_complement<mode>_1,
22702         atomic_bit_test_and_reset<mode>_1): New insns.
22704 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
22706         PR rtl-optimization/70687
22707         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
22708         instead of unsigned HOST_WIDE_INT.
22710 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
22712         PR rtl-optimization/44281
22713         * hard-reg-set.h (struct target_hard_regs): New field
22714         x_fixed_nonglobal_reg_set.
22715         (fixed_nonglobal_reg_set): New macro.
22716         * reginfo.c (init_reg_sets_1): Initialize it.
22717         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22718         of fixed_reg_set.
22719         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22721 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22723         PR tree-optimization/56541
22724         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22725         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22726         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22727         (any_complicated_phi): new static variable.
22728         (aggressive_if_conv): delete.
22729         (if_convertible_phi_p): support phis with more than two arguments.
22730         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22731         critical pred edges.
22732         (ifcvt_split_critical_edges): support phis with more than two
22733         arguments by checking new parameter.  only split critical edges
22734         if needed.
22735         (tree_if_conversion): handle simd pragma marked loop using new
22736         local variable aggressive_if_conv.  check any_complicated_phi.
22738 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22740         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22741         before using it.
22743 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
22745         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22746         cbase.
22748 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
22750         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22751         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22752         define_insn_and_split.
22753         (mulsi3_i): New define_insn_and_split.
22754         (mulsi3_call): Convert to define_insn.
22755         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22756         Remove constraints.
22758 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22760         * machmode.h (mode_complex): Add support to give the complex mode
22761         for a given mode.
22762         (GET_MODE_COMPLEX_MODE): Likewise.
22763         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22764         stored by build_complex_type and gfc_build_complex_type instead of
22765         trying to figure out the appropriate mode based on the size. Raise
22766         an assertion error, if the type was not set.
22767         * genmodes.c (struct mode_data): Add field for the complex type of
22768         the given type.
22769         (blank_mode): Likewise.
22770         (make_complex_modes): Remember the complex mode created in the
22771         base type.
22772         (emit_mode_complex): Write out the mode_complex array to map a
22773         type mode to the complex version.
22774         (emit_insn_modes_c): Likewise.
22775         * tree.c (build_complex_type): Set the complex type to use before
22776         calling layout_type.
22777         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22778         support for __float128 complex datatypes.
22779         (rs6000_hard_regno_mode_ok): Likewise.
22780         (rs6000_setup_reg_addr_masks): Likewise.
22781         (rs6000_complex_function_value): Likewise.
22782         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22783         __float128 and __ibm128 complex.
22784         (FLOAT128_IBM_P): Likewise.
22785         (ALTIVEC_ARG_MAX_RETURN): Likewise.
22786         * doc/extend.texi (Additional Floating Types): Document that
22787         -mfloat128 must be used to enable __float128.  Document complex
22788         __float128 and __ibm128 support.
22790 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
22792         PR target/49244
22793         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22794         char/short arguments promoted to int because of promote_prototypes.
22796 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
22798         * config/i386/predicates.md (register_ssemem_operand): New predicate.
22799         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22800         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22801         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
22802         alternatives using "enabled" attribute.  Use register_ssemem_operand
22803         as operand 1 predicate.
22804         (*cmpi<unord>xf_i387): Split XFmode pattern from
22805         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22806         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22807         *absneg<mode>2_i387.  Disable unsupported alternatives using
22808         "enabled" attribute.
22809         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22811 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
22813         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22814         marker.
22815         (oacc_loop_process): Check mask for loop termination.
22817 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
22819         * cif-code.def (CIF_THUNK): Add.
22820         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22821         accidental change.
22823 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
22825         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22826         (dump_inline_summary): Dump it.
22827         (fp_expression_p): New predicate.
22828         (estimate_function_body_sizes): Use it.
22829         (inline_merge_summary): Merge fp_expressions.
22830         (inline_read_section): Read fp_expressions.
22831         (inline_write_summary): Write fp_expressions.
22832         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22833         codegen boundary if either caller or callee is !fp_expressions.
22834         * ipa-inline.h (inline_summary): Add fp_expressions.
22835         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22836         to fp_expressions be sure the fp generation flags are updated.
22838 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
22840         PR rtl-optimization/70467
22841         * cse.c (cse_insn): Handle no-op MEM moves after folding.
22843         PR rtl-optimization/70467
22844         * ipa-pure-const.c (check_call): Handle internal calls even in
22845         ipa mode like in local mode.
22847 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22849         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22851 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
22853         * match.pd (X u< X, X u> X): New transformations.
22855 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
22857         * flag-types.h (enum warn_strict_overflow_code): Move ...
22858         * coretypes.h: ... here.
22859         * fold-const.h (fold_overflow_warning): Declare.
22860         * fold-const.c (fold_overflow_warning): Make non-static.
22861         (fold_comparison): Move the transformation of X +- C1 CMP C2
22862         into X CMP C2 -+ C1 ...
22863         * match.pd: ... here.
22864         * gimple-fold.c (fold_stmt_1): Protect with
22865         fold_defer_overflow_warnings.
22867 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
22869         * omp-low.c (struct oacc_loop): Add 'inner' field.
22870         (new_oacc_loop_raw): Initialize it to zero.
22871         (oacc_loop_fixed_partitions): Initialize it.
22872         (oacc_loop_auto_partitions): Partition outermost loop to outermost
22873         available partitioning.
22875 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22877         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22878         register_operand.
22879         (umulsidi3): Likewise.
22880         (indirect_jump): Fix jump instruction assembly patterns.
22882 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
22884         PR target/70860
22885         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22886         (nvptx_function_value): Assert non-NULL cfun.
22888 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
22890         PR rtl-optimization/70886
22891         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22893         * cselib.h (rtx_equal_for_cselib_1): Declare.
22894         (rtx_equal_for_cselib_p: New inline function.
22895         * cselib.c (rtx_equal_for_cselib_p): Delete.
22896         (rtx_equal_for_cselib_1): Make public.
22898 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
22900         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22901         (register_mixssei387nonimm_operand): Remove predicate.
22902         * config/i386/i386.md (*fop_<mode>_comm): Merge from
22903         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
22904         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
22905         for TARGET_MIX_SSE_I387 alternatives.
22906         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22907         Disable unsupported alternatives using "enabled" attribute.  Use
22908         nonimm_ssenomem_operand as operand 1 predicate.  Also check
22909         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22911 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22913         * tree.c (cst_and_fits_in_hwi): Simplify.
22915 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22917         * tree.h (wi::to_wide): New function.
22918         * expr.c (expand_expr_real_1): Use wi::to_wide.
22919         * fold-const.c (int_const_binop_1): Likewise.
22920         (extract_muldiv_1): Likewise.
22922 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22924         * wide-int.h: Update offset_int and widest_int documentation.
22925         (WI_SIGNED_SHIFT_RESULT): New macro.
22926         (wi::binary_shift): Define signed_shift_result_type for
22927         shifts on offset_int- and widest_int-like types.
22928         (generic_wide_int): Support <<= and >>= if << and >> are supported.
22929         * tree.h (int_bit_position): Use shift operators instead of wi::
22930          shifts.
22931         * alias.c (adjust_offset_for_component_ref): Likewise.
22932         * expr.c (get_inner_reference): Likewise.
22933         * fold-const.c (fold_comparison): Likewise.
22934         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22935         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22936         * tree-dfa.c (get_ref_base_and_extent): Likewise.
22937         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22938         (stmt_kills_ref_p): Likewise.
22939         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22940         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22941         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22942         (ao_ref_init_from_vn_reference): Likewise.
22944 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
22946         * wide-int.h: Update offset_int and widest_int documentation.
22947         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22948         (wi::binary_traits): Allow ordered comparisons between offset_int and
22949         offset_int, between widest_int and widest_int, and between either
22950         of these types and basic C types.
22951         (operator <, <=, >, >=): Define for the same combinations.
22952         * tree.h (tree_int_cst_lt): Use comparison operators instead
22953         of wi:: comparisons.
22954         (tree_int_cst_le): Likewise.
22955         * gimple-fold.c (fold_array_ctor_reference): Likewise.
22956         (fold_nonarray_ctor_reference): Likewise.
22957         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22958         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22959         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22960         * tree-sra.c (completely_scalarize): Likewise.
22961         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22962         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22963         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22964         (check_for_binary_op_overflow): Likewise.
22965         (search_for_addr_array): Likewise.
22966         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22968 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22970         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22971         (arc_save_restore): Likewise.
22972         (arc_dwarf_register_span): Likewise.
22973         (arc_output_pic_addr_const): Initialize suffix variable.
22975 2016-05-02  Martin Liska  <mliska@suse.cz>
22977         * symbol-summary.h (function_summary::function_summary):
22978         Remove checking assert for all cgraph nodes.
22979         (function_summary::get): Check summary_uid.
22980         (symtab_insertion): Check summary_uid.
22982 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
22984         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22985         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22986         bmaskn instruction.
22987         (arc_dwarf_register_span): Remove enum keyword.
22988         (compact_memory_operand_p): New function.
22989         * config/arc/arc.h (reg_class): Add code density register classes.
22990         (REG_CLASS_NAMES): Likewise.
22991         (REG_CLASS_CONTENTS): Likewise.
22992         * config/arc/arc.md (*movqi_insn): Add code density instructions.
22993         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22994         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22995         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22996         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22997         constraints.
22998         (h, Rcd, Rsd, Rzd): New register constraints.
22999         (T): Use compact_memory_operand_p function.
23000         * config/arc/predicates.md (compact_load_memory_operand): Remove.
23002 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
23004         * config/sh/sh.md (*negnegt, *movtt): Remove.
23006 2016-05-02  Marek Polacek  <polacek@redhat.com>
23007             Tom de Vries  <tom@codesourcery.com>
23009         PR tree-optimization/70700
23010         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
23011         bigger than FIRST_REF_NODE.
23013 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
23015         PR target/52898
23016         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
23017         TARGET_CMPEQDI_T.
23018         (prepare_cbranch_operands): Don't use scratch register.  Assume that
23019         function is used when pseudos can be created.
23020         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
23021         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
23022         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
23023         define_expand.  Allow it only when pseudos can be created.
23024         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
23026 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
23028         * config/i386/constraints.md (BC): Only allow -1 operands.
23029         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
23030         Add "enabled" attribute.  Update XI mode attribute calculation.
23031         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
23032         (*movoi_internal_avx): Update XI mode attribute calculation.
23033         (*movti_internal): Ditto.
23035 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
23037         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
23038         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
23040 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
23042         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
23043         statement on instruction code.  Remove trailing spaces.
23044         (altivec_expand_stv_builtin): Likewise.
23046 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
23048         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
23049         (TARGET_FPU_DOUBLE): Simplify.
23050         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
23051         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
23052         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
23053         with 'TARGET_FPU_DOUBLE'.
23054         * config/sh/sh.md: Likewise.
23056 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
23058         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
23059         SH_DIV_STR_FOR_SIZE): Remove.
23060         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
23061         SH_DIV_STR_FOR_SIZE): Remove.
23063 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
23065         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
23066         logical_reg_operand): Delete.
23067         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
23068         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
23069         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
23070         match_operand and match_test.
23071         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
23072         variables on their first use.  Return bool values.
23073         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
23074         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
23075         arith_reg_operand for input operand.  Remove empty constraints.
23076         (xorsi3): Delete.
23077         (*xorsi3_compact): Rename to xorsi3.
23078         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
23079         (*zero_extend<mode>si2_disp_mem): Update comment.
23080         (mov_nop): Delete.
23082 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
23084         * config/sh/t-sh: Remove SH5 support.
23085         * config.gcc: Likewise.
23086         * configure: Likewise.
23088 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23090         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
23092 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
23094         * config/sh/sh.c (register_sh_passes, sh_option_override,
23095         sh_print_operand, prepare_move_operands,
23096         sh_can_follow_jump): Remove TARGET_SH1 checks.
23097         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
23098         PROMOTE_MODE): Likewise.
23099         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
23100         movdi): Likewise.
23102 2016-04-30  Alan Modra  <amodra@gmail.com>
23104         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
23105         restoring when fixed_reg_p, but allow out-of-line or stmw save.
23106         Check for user regs later to avoid unnecessary looping over regs.
23107         Merge user reg check with non-saved reg check.  Don't force
23108         inline VR restore when static chain used.
23109         (rs6000_frame_related): Omit eh_frame info for user regs when
23110         saving.
23111         (fixed_regs_p): Delete.
23113 2016-04-30  Alan Modra  <amodra@gmail.com>
23115         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
23116         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
23117         Update all uses.
23119 2016-04-30  Alan Modra  <amodra@gmail.com>
23121         PR target/69645
23122         * config/rs6000/rs6000.c (fixed_reg_p): New function.
23123         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
23124         Update all uses.
23126 2016-04-30  Alan Modra  <amodra@gmail.com>
23128         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
23129         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
23130         flag_pic test for Darwin.
23132 2016-04-30  Alan Modra  <amodra@gmail.com>
23134         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
23135         throw_calls_crossed.
23136         (REG_FREQ_CALLS_CROSSED): Delete.
23137         (REG_N_THROWING_CALLS_CROSSED): Delete.
23138         * regstat.c (regstat_bb_compute_ri): Don't calculate
23139         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
23140         (dump_reg_info): Don't print call cross frequency.
23141         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
23142         and REG_N_THROWING_CALLS_CROSSED.
23144 2016-04-30  Alan Modra  <amodra@gmail.com>
23146         * regs.h (struct reg_info_t): Delete live_length.
23147         (REG_LIVE_LENGTH): Delete macro.
23148         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
23149         local_live, local_processed and local_live_last_luid params.
23150         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
23151         Formatting fixes.
23152         (regstat_compute_ri): Adjust for above.  Don't set
23153         REG_LIVE_LENGTH.
23154         (dump_reg_info): Don't print live length.
23155         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
23156         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
23157         Localize loop_depth var.
23159 2016-04-30  Alan Modra  <amodra@gmail.com>
23161         * ira.c (enum valid_equiv): New.
23162         (validate_equiv_mem): Return enum.
23163         (update_equiv_mem): Create replacement in more cases.
23164         (add_store_equivs): Update validate_equiv_mem call.
23166 2016-04-30  Alan Modra  <amodra@gmail.com>
23168         * ira.c (combine_and_move_insns): Rather than scanning insns,
23169         use DF infrastucture to find use and def insns.
23171 2016-04-30  Alan Modra  <amodra@gmail.com>
23173         ira.c (combine_and_move_insns): Move invariant conditions..
23174         (ira.c): ..to here.  Call combine_and_move_insns before
23175         add_store_equivs.  Call grow_reg_equivs later.  Allocate
23176         req_equiv later using max_reg_num() rather than global max_regno.
23177         (contains_replace_regs): Delete.
23178         (add_store_equivs): Remove contains_replace_regs test.
23180 2016-04-30  Alan Modra  <amodra@gmail.com>
23182         * ira.c (struct equiv_mem_data): New.
23183         (equiv_mem, equiv_mem_modified): Delete static vars.
23184         (validate_equiv_mem_from_store): Use "data" param to communicate..
23185         (validate_equiv_mem): ..from here.
23187 2016-04-30  Alan Modra  <amodra@gmail.com>
23189         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
23190         split out from..
23191         (update_reg_equivs): ..here.  Move allocation and freeing of
23192         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
23193         end_alias_analysis to..
23194         (ira): ..here.
23196 2016-04-30  Alan Modra  <amodra@gmail.com>
23198         * ira.c (pdx_subregs): Delete.
23199         (struct equivalence): Add pdx_subregs field.
23200         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
23201         pdx_subregs access.
23202         (update_equiv_regs): Don't create or free pdx_subregs.  Update
23203         pdx_subregs access.
23205 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23207         * config/rs6000/altivec.h: Change definitions of vec_xl and
23208         vec_xst.
23209         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
23210         (LD_ELEMREV_V2DI): New.
23211         (LD_ELEMREV_V4SF): New.
23212         (LD_ELEMREV_V4SI): New.
23213         (LD_ELEMREV_V8HI): New.
23214         (LD_ELEMREV_V16QI): New.
23215         (ST_ELEMREV_V2DF): New.
23216         (ST_ELEMREV_V2DI): New.
23217         (ST_ELEMREV_V4SF): New.
23218         (ST_ELEMREV_V4SI): New.
23219         (ST_ELEMREV_V8HI): New.
23220         (ST_ELEMREV_V16QI): New.
23221         (XL): New.
23222         (XST): New.
23223         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23224         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
23225         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
23226         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
23227         (altivec_expand_builtin): Add handling for
23228         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
23229         (rs6000_invalid_builtin): Add error-checking for
23230         RS6000_BTM_P9_VECTOR.
23231         (altivec_init_builtins): Define builtins used to implement vec_xl
23232         and vec_xst.
23233         (rs6000_builtin_mask_names): Define power9-vector.
23234         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
23235         (RS6000_BTM_P9_VECTOR): Define.
23236         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
23237         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
23238         (vsx_ld_elemrev_v2df): Likewise.
23239         (vsx_ld_elemrev_v4sf): Likewise.
23240         (vsx_ld_elemrev_v4si): Likewise.
23241         (vsx_ld_elemrev_v8hi): Likewise.
23242         (vsx_ld_elemrev_v16qi): Likewise.
23243         (vsx_st_elemrev_v2df): Likewise.
23244         (vsx_st_elemrev_v2di): Likewise.
23245         (vsx_st_elemrev_v4sf): Likewise.
23246         (vsx_st_elemrev_v4si): Likewise.
23247         (vsx_st_elemrev_v8hi): Likewise.
23248         (vsx_st_elemrev_v16qi): Likewise.
23249         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
23250         grammar.
23252 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
23254         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
23255         out into ...
23256         (simplify_control_stmt_condition_1): ... here.  Recurse into
23257         BIT_AND_EXPRs and BIT_IOR_EXPRs.
23259 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
23261         PR target/69810
23262         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
23263         (zero_extendqi<mode>2_dot): Revert earlier conversion from
23264         define_insn_and_split to define_insn.
23265         (zero_extendqi<mode>2_dot2): Same.
23266         (extendqi<mode>2_dot): Same.
23267         (extendqi<mode>2_dot2): Same.
23269 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
23271         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
23272         (probe_stack): New expander.
23273         (probe_stack_<mode>): New insn pattern.
23275 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
23277         * config/i386/i386.md
23278         (operations with memory inputs setting flags peephole2):
23279         Remove uneeded REG_P checks.  Cleanup pattern generation.
23281 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
23283         * tree-vect-loop.c (vect_transform_loop): Fix
23284         nb_iterations_upper_bound computation for vectorized loop.
23286 2016-04-29  Marek Polacek  <polacek@redhat.com>
23287             Jakub Jelinek  <jakub@redhat.com>
23289         PR sanitizer/70342
23290         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
23291         TARGET_EXPR_SLOT as a base.
23293 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
23295         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
23296         with 'rCm2' constraints to limit possible immediate size.
23297         (*load_zeroextendqisi_update): Likewise.
23298         (*load_signextendqisi_update): Likewise.
23299         (*loadhi_update): Likewise.
23300         (*load_zeroextendhisi_update): Likewise.
23301         (*load_signextendhisi_update): Likewise.
23302         (*loadsi_update): Likewise.
23303         (*loadsf_update): Likewise.
23305 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
23307         * config/i386/predicates.md (constm1_operand): Fix comparison.
23309 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
23311         * testsuite/gcc.target/arc/ieee_eq.c: New test.
23313 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
23315         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
23316         remaining SH5 related settings.
23317         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
23318         shmedia_prepare_call_address): Delete.
23319         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
23320         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
23321         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
23322         UNSUPPORTED_SH2A): Remove m5 checks.
23323         (sh_divide_strategy_e): Remove SH5 division strategies.
23324         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
23325         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
23327 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23329         * config/s390/s390.c (s390_rtx_costs): Update documentation.
23331 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23333         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
23334         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
23335         Change lder to ldr.
23336         * config/s390/vector.md ("mov<mode>"): Likewise.
23338 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
23340         * config/s390/constraints.md ("U", "W"): Invoke
23341         s390_mem_constraint with "ZR" and "ZT".
23342         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
23343         addresses when using LRA.  Accept also short displacements for S
23344         and T constraints.  Do not check for long displacement target for
23345         S and T constraints.
23346         (s390_mem_constraint): Remove handling of U and W constraints.
23347         * config/s390/s390.md (various patterns): Remove the short
23348         displacement constraints (Q and R) if a long displacement
23349         constraint is present.  Add longdisp as required CPU capability.
23350         * config/s390/vector.md: Likewise.
23351         * config/s390/vx-builtins.md: Likewise.
23353 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23355         PR target/60040
23356         * reload1.c (reload): Call finish_spills before
23357         restarting reload loop. Skip select_reload_regs
23358         if update_eliminables_and_spill returns true.
23360 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
23362         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
23363         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
23364         (umulhisi3_imm): Update predicates and constraint letters.
23365         (umulhisi3_reg): Declare instruction as commutative.
23366         * config/arc/constraints.md (J12, J16): New constraints.
23367         * config/arc/predicates.md (short_unsigned_const_operand): New
23368         predicate.
23369         (arc_short_operand): Likewise.
23370         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
23372 2016-04-29  Richard Biener  <rguenther@suse.de>
23374         PR tree-optimization/13962
23375         PR tree-optimization/65686
23376         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
23377         * tree-ssa-alias.c (ptrs_compare_unequal): New function
23378         using PTA to compare pointers.
23379         * match.pd: Add pattern for pointer equality compare simplification
23380         using ptrs_compare_unequal.
23382 2016-04-29  Richard Biener  <rguenther@suse.de>
23384         * stor-layout.c (layout_type): Do not build a pointer-to-element
23385         type for arrays.
23387 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
23389         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23390         Use SWI mode iterator.  Use general_reg_operand predicate.
23391         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23392         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
23393         predicates.
23395 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
23397         PR middle-end/70843
23398         * fold-const.c (operand_equal_p): Don't verify hash value equality
23399         if arg0 == arg1.
23400         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
23401         and OMP_CLAUSE.
23403 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
23405         PR target/70858
23406         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23407         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23408         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23409         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23410         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23412 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
23414         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23415         to info.  Don't initialize separate fields to 0.  Clean up
23416         formatting a bit.
23418 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
23420         * config/i386/i386.md (peephole2s for operations with memory inputs):
23421         Use SWI mode iterator.
23422         (peephole2s for operations with memory outputs): Ditto.
23423         Do not check for stack checking probe.
23425         (probe_stack): Remove expander.
23427 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23428             Andrew Burgess  <andrew.burgess@embecosm.com>
23430         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23431         operands as 32-bits.
23433 2016-04-28  Jason Merrill  <jason@redhat.com>
23435         * gdbinit.in: Skip line-map.h.
23437 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23438             Andrew Burgess  <andrew.burgess@embecosm.com>
23440         * config/arc/arc.c (arc_conditional_register_usage): Take
23441         TARGET_RRQ_CLASS into account.
23442         (arc_print_operand): Support printing 'p' and 's' operands.
23443         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23444         as 0.
23445         (TARGET_RRQ_CLASS): Define.
23446         (IS_POWEROF2_OR_0_P): Define.
23447         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23448         alternatives.
23449         (*tst_movb): New define_insn.
23450         (*tst): Avoid recognition if it could prevent '*tst_movb'
23451         combination; replace c/CnL with c/Chs alternative.
23452         (*tst_bitfield_tst): New define_insn.
23453         (*tst_bitfield_asr): New define_insn.
23454         (*tst_bitfield): New define_insn.
23455         (andsi3_i): Add Rrq variant.
23456         (extzv): New define_expand.
23457         (insv): New define_expand.
23458         (*insv_i): New define_insn.
23459         (*movb): New define_insn.
23460         (*movb_signed): New define_insn.
23461         (*movb_high): New define_insn.
23462         (*movb_high_signed): New define_insn.
23463         (*movb_high_signed + 1): New define_split pattern.
23464         (*mrgb): New define_insn.
23465         (*mrgb + 1): New define_peephole2 pattern.
23466         (*mrgb + 2): New define_peephole2 pattern.
23467         * config/arc/arc.opt (mbitops): New option for nps400, uses
23468         TARGET_NPS_BITOPS_DEFAULT.
23469         * config/arc/constraints.md (q): Make register class conditional.
23470         (Rrq): New register constraint.
23471         (Chs): New constraint.
23472         (Clo): New constraint.
23473         (Chi): New constraint.
23474         (Cbf): New constraint.
23475         (Cbn): New constraint.
23476         (C18): New constraint.
23477         (Cbi): New constraint.
23479 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
23481         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23482         dst->popcount.
23483         (bitmap_intersection_of_preds): Ditto.
23484         (bitmap_union_of_succs): Ditto.
23485         (bitmap_union_of_preds): Ditto.
23486         * sbitmap.c (do_popcount): Delete.
23487         (BITMAP_DEBUGGING): Delete.
23488         (sbitmap_verify_popcount): Delete.
23489         (sbitmap_alloc): Don't initialize the popcount field.
23490         (sbitmap_alloc_with_popcount): Delete.
23491         (sbitmap_resize): Don't resize the popcount array.
23492         (sbitmap_vector_alloc): Don't initialize the popcount field.
23493         (bitmap_copy): Don't copy the popcount array.
23494         (bitmap_clear): Don't clear the popcount array.
23495         (bitmap_clear): Delete the popcount array handling.
23496         (bitmap_ior_and_compl): Delete the popcount assert.
23497         (bitmap_not): Ditto.
23498         (bitmap_and_compl): Ditto.
23499         (bitmap_and): Delete the popcount array handling.
23500         (bitmap_xor): Ditto.
23501         (bitmap_ior): Ditto.
23502         (bitmap_or_and): Delete the popcount assert.
23503         (bitmap_and_or): Ditto.
23504         (popcount_table): Delete.
23505         (sbitmap_elt_popcount): Delete.
23506         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23507         (bitmap_set_bit): Delete the popcount assert.
23508         (bitmap_clear_bit): Ditto.
23509         (sbitmap_free): Don't free the popcount array.
23510         (sbitmap_alloc_with_popcount): Delete declaration.
23511         (sbitmap_popcount): Ditto.
23513 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23514             Andrew Burgess  <andrew.burgess@embecosm.com>
23516         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23517         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23518         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23519         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23520         * config/arc/arc.opt (mcmem): New option.
23521         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23522         supply length for r/m alternative.
23523         (*extendqisi2_ac): Likewise.
23524         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23525         r/Uex alternative.
23526         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23527         (movhi_insn): Likewise.
23528         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23529         (*zero_extendqihi2_i): Add r/Ucm alternative.
23530         (*zero_extendqisi2_ac): Likewise.
23531         (*zero_extendhisi2_i): Likewise.
23532         * config/arc/constraints.md (Uex): New memory constraint.
23533         (Ucm): New define_constraint.
23534         * config/arc/predicates.md (long_immediate_loadstore_operand):
23535         Return 0 for MEM with cmem_address address.
23536         (cmem_address_0): New predicates.
23537         (cmem_address_1): Likewise.
23538         (cmem_address_2): Likewise.
23539         (cmem_address): Likewise.
23541 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
23543         * config/rs6000/rs6000.c (machine_function): Rename
23544         insn_chain_scanned_p to spe_insn_chain_scanned_p.
23545         (rs6000_stack_info): Adjust.
23547 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23548             Andrew Burgess  <andrew.burgess@embecosm.com>
23550         * config/arc/constraints.md (Usd): Convert to define_constraint.
23551         (Us<): Likewise.
23552         (Us>): Likewise.
23554 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
23556         PR target/70821
23557         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23558         Add new peephole2 where the first insn is *mov<mode>_or instead of
23559         *mov<mode>_internal.
23561 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
23563         * tracer.c (bb_seen): Make static.
23565 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
23567         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23568         support, setup defaults.
23569         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23570         * config/arc/arc.c (arc_init): Add NPS400 support.
23571         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23572         (TARGET_ARC700): NPS400 is also an ARC700.
23573         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23575 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
23577         PR target/70668
23578         * config/nds32/nds32.md (casesi): Don't access the operands array
23579         out of bounds.
23581 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
23583         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23584         (or $-1,reg peephole2): Ditto.
23585         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23587 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
23589         * doc/extend.texi (Common Function Attributes) [optimize]:
23590         Discourage use of the optimize attribute.
23592 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
23594         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23595         special case builtin.
23596         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23597         ALTIVEC_BUILTIN_VEC_ADDE.
23598         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23599         support for ALTIVEC_BUILTIN_VEC_ADDE.
23600         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23601         for __builtin_vec_adde.
23603 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
23605         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23606         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23608 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23610         PR testsuite/70595
23611         * doc/sourcebuild.texi (Effective-Target Keywords, Other
23612         attributes): Document cilkplus_runtime.
23614 2016-04-28  Martin Jambor  <mjambor@suse.cz>
23616         * tree-cfg.c (verify_expr): Verify that local declarations belong to
23617         this function.  Call verify_expr on MEM_REFs and bases of other
23618         handled_components.
23620 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23622         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23623         for WORD_REGISTER_OPERATIONS to runtime check.
23625 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23627         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23629 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23631         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23632         big-endian compilation.
23633         * config/arc/arc.md (addf3): Likewise.
23634         (subdf3): Likewise.
23635         (muldf3): Likewise.
23637 2016-04-28  Richard Biener  <rguenther@suse.de>
23639         PR tree-optimization/70840
23640         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23641         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23642         Mark x * pow(x,c) -> pow(x,c+1) commutative.
23643         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23645 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23647         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23648         and explain why in a comment.
23650 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23652         * config/arc/arc.md (cpu_facility): Add fpx variant.
23653         (subdf3): Prohibit use reverse sub when assist operations option
23654         is enabled.
23655         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23656         instructions only when FPX is enabled.
23657         * testsuite/gcc.target/arc/trsub.c: New test.
23659 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
23661         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23662         mult_operator when calculating "type" attribute.
23663         (*fop_<mode>_1_i387): Ditto.
23664         (*fop_xf_1_i387): Ditto.
23665         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23666         Use std::swap to swap operands.  Use RTL expressions to generate
23667         converted pattern.
23669 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23670             Joern Rennecke  <joern.rennecke@embecosm.com>
23672         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23673         declaration.
23674         (emit_pic_move): Remove.
23675         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23676         * config/arc/arc.c (emit_pic_move): Removed.
23677         (TARGET_HAVE_TLS): Define.
23678         (arc_conditional_register_usage): Test for arc_tp_regno.
23679         (arc_print_operand, arc_print_operand_address): Handle TLS
23680         unspecs.
23681         (arc_needs_pcl_p): New function.
23682         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23683         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23684         (arc_raw_symbolic_reference_mentioned_p): Likewise.
23685         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23686         (arc_legitimize_tls_address): Likewise.
23687         (DTPOFF_ZERO_SYM): Define.
23688         (arc_legitimize_pic_address): Make it static, handle TLS cases.
23689         (arc_output_pic_addr_const): Print TLS unspecs.
23690         (prepare_pic_move): New function, replaces emit_pic_move.
23691         (arc_legitimate_constant_p): Handle TLS unspecs.
23692         (arc_legitimate_address_p): Likewise.
23693         (arc_rewrite_small_data_p): Use assert for TLS constants.
23694         (prepare_move_operands): Use prepare_pic_move.
23695         (arc_legitimize_address): Legitimize tls addresses.
23696         (arc_epilogue_uses): Check for arc_tp_regno.
23697         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23698         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23699         Define.
23700         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23701         Likewise.
23702         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23703         %(arc_tls_extra_start_spec).
23704         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23705         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23706         (EH_USES): Define.
23707         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23708         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23709         (UNSPEC_TLS_OFF): Add.
23710         (R10_REG): Define.
23711         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23712         (get_thread_pointersi): New patterns.
23713         * config/arc/arc.opt (mtp-regno): New option.
23714         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23715         (move_dest_operand): Likewise.
23716         * configure: Regenerate.
23717         * configure.ac: Add arc*-*-* case to test for tls.
23718         * doc/invoke.texi (ARC options): Document mtp-regno.
23720 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
23722         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23723         the new ARC HS SIMD instructions.
23724         (arc_preferred_simd_mode): New function.
23725         (arc_autovectorize_vector_sizes): Likewise.
23726         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23727         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23728         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23729         (arc_init_builtins): Add new SIMD builtin types.
23730         (arc_split_move): Handle 64 bit vector moves.
23731         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23732         (TARGET_PLUS_QMACW): Define.
23733         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23734         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23735         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23736         (VSUBADD4H): New builtins.
23737         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23738         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23740 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
23741             Matthias Klose  <doko@debian.org>
23743         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23745 2016-04-28  Richard Biener  <rguenther@suse.de>
23747         PR middle-end/70777
23748         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23749         canonicalization.
23751 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
23753         * common/config/sh/sh-common.c: Remove SH5 support.
23754         * config/sh/constraints.md: Likewise.
23755         * config/sh/config/sh/elf.h: Likewise.
23756         * config/sh/linux.h: Likewise.
23757         * config/sh/netbsd-elf.h: Likewise.
23758         * config/sh/predicates.md: Likewise.
23759         * config/sh/sh-c.c: Likewise.
23760         * config/sh/sh-protos.h: Likewise.
23761         * config/sh/sh.c: Likewise.
23762         * config/sh/sh.h: Likewise.
23763         * config/sh/sh.md: Likewise.
23764         * config/sh/sh.opt: Likewise.
23765         * config/sh/sync.md: Likewise.
23766         * config/sh/sh64.h: Delete.
23767         * config/sh/shmedia.h: Likewise.
23768         * config/sh/shmedia.md: Likewise.
23769         * config/sh/sshmedia.h: Likewise.
23770         * config/sh/t-netbsd-sh5-64: Likewise.
23771         * config/sh/t-sh64: Likewise.
23772         * config/sh/ushmedia.h: Likewise.
23774 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
23776         * config/i386/i386.md (sign_extend to memory peephole2s): Use
23777         general_reg_operand instead of register_operand predicate.
23779 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23781         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23783 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
23785         * match.pd (A - B > A, A + B < A): New transformations.
23787 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
23789         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23790         which defaults to true.  Emit an outer pair of parentheses only if
23791         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
23792         don't emit parentheses for the right-hand operand.
23794 2016-04-27  Jeff Law  <law@redhat.com>
23796         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23798 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23800         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23801         (altivec_lvx_<mode>_internal): Document.
23802         (altivec_lvx_<mode>_2op): New define_insn.
23803         (altivec_lvx_<mode>_1op): Likewise.
23804         (altivec_lvx_<mode>_2op_si): Likewise.
23805         (altivec_lvx_<mode>_1op_si): Likewise.
23806         (altivec_stvx_<mode>): Remove.
23807         (altivec_stvx_<mode>_internal): Document.
23808         (altivec_stvx_<mode>_2op): New define_insn.
23809         (altivec_stvx_<mode>_1op): Likewise.
23810         (altivec_stvx_<mode>_2op_si): Likewise.
23811         (altivec_stvx_<mode>_1op_si): Likewise.
23812         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23813         Expand vec_ld and vec_st during parsing.
23814         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23815         changes.
23816         (altivec_expand_stvx_be): Likewise.
23817         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23818         address-masking behavior in RTL.
23819         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23820         address-masking behavior in RTL.
23821         (altivec_expand_builtin): Change builtin code arguments for calls
23822         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23823         (insn_is_swappable_p): Avoid incorrect swap optimization in the
23824         presence of lvx/stvx patterns.
23825         (alignment_with_canonical_addr): New function.
23826         (alignment_mask): Likewise.
23827         (find_alignment_op): Likewise.
23828         (recombine_lvx_pattern): Likewise.
23829         (recombine_stvx_pattern): Likewise.
23830         (recombine_lvx_stvx_patterns): Likewise.
23831         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23832         stvx patterns from expand.
23833         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23834         expansions.
23835         (vector_altivec_store_<mode>): Likewise.
23837 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
23839         * config/aarch64/aarch64.md
23840         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23841         remove the "fp" attributes.
23842         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23843         add the "simd" attributes.
23844         (*movdf_aarch64): Likewise.
23845         (*movtf_aarch64): Remove the "fp" attributes.
23846         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23847         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23849 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23851         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23852         rtx to rtx_code_label *.
23853         * rtl.h (maybe_set_first_label_num): Likewise.
23855 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23857         * df-core.c (df_add_problem): Make the problem param be const.
23858         (df_remove_problem): Make local "problem" be const.
23859         * df-problems.c (problem_RD): Make const.
23860         (problem_LR): Likewise.
23861         (problem_LIVE): Likewise.
23862         (problem_MIR): Likewise.
23863         (problem_CHAIN): Likewise.
23864         (problem_WORD_LR): Likewise.
23865         (problem_NOTE): Likewise.
23866         (problem_MD): Likewise.
23867         * df-scan.c (problem_SCAN): Likewise.
23868         * df.h (struct df_problem): Make field "dependent_problem" be
23869         const.
23870         (struct dataflow): Likewise for field "problem".
23871         (df_add_problem): Make param const.
23873 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
23875         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23876         inter-unit moves to/from vector registers are enabled.  Do not disable
23877         for TARGET_MMX.
23879 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23881         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23882         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23883         #define to...
23884         (enum df_problem_id): ...this new enum.
23885         (struct df_problem): Convert field "id" from "int" to
23886         enum df_problem_id.
23888 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
23890         * rtl.def: Update comment for "things in the instruction chain" to
23891         reflect the removal of the leading "i" field for INSN_UID in
23892         r210360.  Fix bogus apostrophe.
23894 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
23896         * config/i386/i386.md
23897         (lea arith with mem operand + setcc peephole2): Set operator mode.
23899 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
23901         PR target/70155
23902         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23903         (dimode_scalar_to_vector_candidate_p): This.
23904         (timode_scalar_to_vector_candidate_p): New function.
23905         (scalar_to_vector_candidate_p): Likewise.
23906         (timode_check_non_convertible_regs): Likewise.
23907         (timode_remove_non_convertible_regs): Likewise.
23908         (remove_non_convertible_regs): Likewise.
23909         (remove_non_convertible_regs): Renamed to ...
23910         (dimode_remove_non_convertible_regs): This.
23911         (scalar_chain::~scalar_chain): Make it virtual.
23912         (scalar_chain::compute_convert_gain): Make it pure virtual.
23913         (scalar_chain::mark_dual_mode_def): Likewise.
23914         (scalar_chain::convert_insn): Likewise.
23915         (scalar_chain::convert_registers): Likewise.
23916         (scalar_chain::add_to_queue): Make it protected.
23917         (scalar_chain::emit_conversion_insns): Likewise.
23918         (scalar_chain::replace_with_subreg): Likewise.
23919         (scalar_chain::replace_with_subreg_in_insn): Likewise.
23920         (scalar_chain::convert_op): Likewise.
23921         (scalar_chain::convert_reg): Likewise.
23922         (scalar_chain::make_vector_copies): Likewise.
23923         (scalar_chain::convert_registers): New pure virtual function.
23924         (class dimode_scalar_chain): New class.
23925         (class timode_scalar_chain): Likewise.
23926         (scalar_chain::mark_dual_mode_def): Renamed to ...
23927         (dimode_scalar_chain::mark_dual_mode_def): This.
23928         (timode_scalar_chain::mark_dual_mode_def): New function.
23929         (timode_scalar_chain::convert_insn): Likewise.
23930         (dimode_scalar_chain::convert_registers): Likewise.
23931         (scalar_chain::compute_convert_gain): Renamed to ...
23932         (dimode_scalar_chain::compute_convert_gain): This.
23933         (scalar_chain::replace_with_subreg): Renamed to ...
23934         (dimode_scalar_chain::replace_with_subreg): This.
23935         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23936         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23937         (scalar_chain::make_vector_copies): Renamed to ...
23938         (dimode_scalar_chain::make_vector_copies): This.
23939         (scalar_chain::convert_reg): Renamed to ...
23940         (dimode_scalar_chain::convert_reg ): This.
23941         (scalar_chain::convert_op): Renamed to ...
23942         (dimode_scalar_chain::convert_op): This.
23943         (scalar_chain::convert_insn): Renamed to ...
23944         (dimode_scalar_chain::convert_insn): This.
23945         (scalar_chain::convert): Call convert_registers.
23946         (convert_scalars_to_vector): Change to scalar_chain pointer to
23947         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23948         in 32-bit mode.  Delete scalar_chain pointer.  Call
23949         free_dominance_info in 64-bit mode.
23950         (pass_stv::gate): Remove TARGET_64BIT check.
23951         (ix86_option_override): Put the 64-bit STV pass before the CSE
23952         pass.
23954 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
23956         * dwarf2out.h (struct dw_loc_descr_node): Remove the
23957         dw_loc_frame_offset field.
23958         * dwarf2out.c (new_loc_descr): Likewise.
23959         (resolve_args_picking_1): Turn the VISITED hash set into a
23960         FRAME_OFFSET hash map. Use it to associate a frame offset to
23961         visited nodes. Remove uses of the CHECKING_P macro.
23962         (resolve_args_picking): Update call to resolve_args_picking_1.
23964 2016-04-27  Martin Liska  <mliska@suse.cz>
23966         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23967         (free_loop_data): Release vuses of groups.
23969 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
23971         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23972         instead of redundant use_id and boolean have_use_for.
23973         (struct iv_use): Change sub_id into group_id.  Remove field next.
23974         Move fields: related_cands, n_map_members, cost_map and selected
23975         to ...
23976         (struct iv_group): ... here.  New structure.
23977         (struct iv_common_cand): Use structure declaration directly.
23978         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23979         (MAX_CONSIDERED_USES): Rename macro to ...
23980         (MAX_CONSIDERED_GROUPS): ... here.
23981         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23982         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23983         (dump_uses): Rename to ...
23984         (dump_groups): ... here.  Update all uses.
23985         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23986         (find_induction_variables): Refactor format of dump information.
23987         (record_sub_use): Delete.
23988         (record_use): Update all uses.
23989         (record_group): New function.
23990         (record_group_use, find_interesting_uses_op): Call above functions.
23991         Update all uses.
23992         (find_interesting_uses_cond): Ditto.
23993         (group_compare_offset): New function.
23994         (split_all_small_groups): Rename to ...
23995         (split_small_address_groups_p): ... here.  Update all uses.
23996         (split_address_groups):  Update all uses.
23997         (find_interesting_uses): Refactor format of dump information.
23998         (add_candidate_1): Update all uses.  Remove redundant check on iv,
23999         base and step.
24000         (add_candidate, record_common_cand): Remove redundant assert.
24001         (add_iv_candidate_for_biv): Update use.
24002         (add_iv_candidate_derived_from_uses): Update all uses.
24003         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
24004         (alloc_use_cost_map): Ditto.
24005         (set_use_iv_cost, get_use_iv_cost): Rename to ...
24006         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
24007         (determine_use_iv_cost_generic): Ditto.
24008         (determine_group_iv_cost_generic): Ditto.
24009         (determine_use_iv_cost_address): Ditto.
24010         (determine_group_iv_cost_address): Ditto.
24011         (determine_use_iv_cost_condition): Ditto.
24012         (determine_group_iv_cost_cond): Ditto.
24013         (determine_use_iv_cost): Ditto.
24014         (determine_group_iv_cost): Ditto.
24015         (set_autoinc_for_original_candidates): Update all uses.
24016         (find_iv_candidates): Update all uses.  Refactor dump information.
24017         (determine_use_iv_costs): Ditto.
24018         (determine_iv_costs): Ditto.
24019         (iv_ca_cand_for_use): Rename to ...
24020         (iv_ca_cand_for_group): ... here.  Update all uses.
24021         (iv_ca_add_use, iv_ca_add_group): Ditto.
24022         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
24023         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
24024         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
24025         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
24026         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
24027         (create_new_iv, adjust_iv_update_pos): Ditto.
24028         (rewrite_use_address): Delete.
24029         (rewrite_use_address_1): Rename to ...
24030         (rewrite_use_address): ... here.
24031         (rewrite_use_compare): Update all uses.
24032         (rewrite_use): Delete.
24033         (rewrite_uses): Rename to ...
24034         (rewrite_groups): ... here.  Update all uses.
24035         (remove_unused_ivs, free_loop_data): Update all uses.
24036         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
24038 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24040         * rtlanal.c (nonzero_bits1): Convert preprocessor check
24041         for WORD_REGISTER_OPERATIONS to runtime check.
24043 2016-04-27  Richard Biener  <rguenther@suse.de>
24045         PR ipa/70760
24046         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
24047         aggregate_value_p to determine if a function result is
24048         returned by reference.
24049         (ipa_pta_execute): Functions having their address taken are
24050         not automatically nonlocal.
24052 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
24054         PR sanitizer/70683
24055         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
24056         * fold-const.c (operand_equal_p): If flag_checking and
24057         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
24058         and if it returns non-zero, assert iterative_hash_expr on both
24059         args is the same.
24061 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
24063         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
24065 2016-04-27  Nick Clifton  <nickc@redhat.com>
24067         PR middle-end/49889
24068         * varasm.c (merge_weak): Generate an error if an attempt is made
24069         to convert a non-weak static function into a weak, public function.
24071 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24073         * params.def (MAX_PARTITION_SIZE): New param.
24074         * doc/invoke.texi: Document lto-max-partition.
24076 2016-04-27  Richard Biener  <rguenther@suse.de>
24078         PR ipa/70785
24079         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
24080         function cummulating used_from_other_partition, externally_visible
24081         and force_output from aliases.
24082         (refered_from_nonlocal_var): Likewise.
24083         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
24084         node flags properly.
24086 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
24088         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
24089         (-Wmemset-elt-size): New item.
24091 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24093         PR ada/70759
24094         * stor-layout.h (internal_reference_types): Delete.
24095         * stor-layout.c (reference_types_internal): Likewise.
24096         (internal_reference_types): Likewise.
24097         (layout_type) <REFERENCE_TYPE>: Adjust.
24099 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
24101         PR sanitizer/70683
24102         * tree.h (inchash::add_expr): Add FLAGS argument.
24103         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
24104         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
24105         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
24106         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
24107         if swap_tree_comparison (code) is smaller than code, hash that
24108         and arguments in the other order.  Hash CONVERT_EXPR the same
24109         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
24110         of ADDR_EXPR of decl as the decl itself.  Add or remove
24111         OEP_ADDRESS_OF from recursive flags as needed.  For
24112         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
24113         operands commutatively and only the third one normally.
24114         For internal CALL_EXPR hash in CALL_EXPR_IFN.
24116 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24118         * config/rtems.h (LIB_SPEC): Add -latomic.
24120 2016-04-27  Joel Sherrill  <joel@rtems.org>
24122         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
24123         xilink.ld and flags not relevant to RTEMS.
24125 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24127         * toplev.c (backend_init_target): Avoid calling init_reload when using
24128         LRA.
24130 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
24132         * reorg.c (try_merge_delay_insns): Declare i and j inside the
24133         for loops rather than one for the whole function.
24135 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
24137         * match.pd (X + CST CMP X): New transformation.
24139 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
24141         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
24142         * fold-const.c (fold_binary_loc): Remove 2 transformations
24143         superseded by match.pd.
24144         * match.pd (x+x -> x*2): Generalize to integers.
24146 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
24148         * config/i386/i386.md (operation on memory peephole): Duplicate an
24149         existing peephole and adapt it to match lea rather than an operation
24150         that clobbers CC.
24152         PR rtl-optimization/57193
24153         * opts.c (default_options_table): Add OPT_frename_registers at -O2
24154         and above.
24155         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
24157 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
24159         * tree-if-conv.c (any_pred_load_store): New static variable.
24160         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
24161         any_pred_load_store instead of and_mask_load_store.
24162         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
24163         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
24164         (combine_blocks, tree_if_conversion): Ditto.
24166 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
24168         PR tree-optimization/70771
24169         PR tree-optimization/70775
24170         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
24171         virtual PHI nodes.  Delete parameter.
24172         (if_convertible_loop_p_1): Delete argument to above function.
24173         (predicate_all_scalar_phis): Delete code handling single-argument
24174         PHIs.
24175         (tree_if_conversion): Mark and update virtual SSA.
24177 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24179         PR target/61821
24180         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
24181         (x86_elf_aligned_common): Rename to ...
24182         (x86_elf_aligned_decl_common): ... this.
24183         Add decl arg.  Switch to .lbss for largecomm object.  Use
24184         LARGECOMM_SECTION_ASM_OP.
24185         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
24186         renaming.
24187         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
24188         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
24189         Pass new decl arg.
24190         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24191         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
24193 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24195         PR target/59407
24196         * config/i386/i386.c (SECTION_LARGE): Define.
24197         (x86_64_elf_select_section): Set it for large data/bss sections.
24198         Only clear SECTION_WRITE for .lrodata.
24199         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
24200         data/bss sections.
24201         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
24202         * varasm.c (default_elf_asm_named_section): Grow flagchars.
24203         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
24204         SECTION_MACH_DEP.
24205         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
24206         * doc/tm.texi: Regenerate.
24208 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
24210         PR bootstrap/70704
24211         * configure.ac (--enable-checking): Document extra flag, for
24212         non-release builds default to --enable-checking=yes,extra.
24213         If misc checking and extra checking, define CHECKING_P to 2 instead
24214         of 1.
24215         * common.opt (fchecking=): Add.
24216         * doc/invoke.texi (-fchecking=): Document.
24217         * doc/install.texi: Document --enable-checking changes.
24218         * configure: Regenerated.
24219         * config.in: Regenerated.
24221 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
24223         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
24224         attribute instead of which_alternative.
24225         * config/i386/sse.md (*mov<mode>_internal): Ditto.
24226         Use EXT_REX_SSE_REG_P where appropriate.
24228 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
24230         * config/i386/predicates.md (const0_operand): Do not match
24231         const_wide_int code.
24232         (const1_operand): Ditto.
24234 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
24236         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
24237         for SSE constm1 operands and TARGET_AVX512VL.
24238         (*movti_internal): Ditto.
24239         (*mov<mode>_or): Use constm1_operand predicate.
24240         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
24241         for SSE vector_all_ones operands and TARGET_AVX512VL.
24242         * config/i386/predicates.md (constm1_operand): New predicate.
24243         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
24244         emission of constant -1 load.
24246 2016-04-25  Jason Merrill  <jason@redhat.com>
24248         * gdbinit.in: Skip is-a.h.
24250         * attribs.c (register_scoped_attributes): Fix logic.
24251         * attribs.h: Declare register_scoped_attributes.
24253 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24255         * config/rs6000/rs6000-builtin.def: Correct pasto error for
24256         stxvd2x and stxvw4x built-in functions.
24258 2016-04-25  DJ Delorie  <dj@redhat.com>
24260         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
24261         (ashrhi3): Likewise.
24262         (lshrhi3): Likewise.
24264 2016-04-25  Richard Biener  <rguenther@suse.de>
24266         PR tree-optimization/70780
24267         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
24268         wasn't visited yet.
24269         (compute_antic): Mark blocks with abnormal preds as visited as
24270         they have a final empty antic-in solution already.
24272 2016-04-25  Michael Collison  <michael.collison@linaro.org>
24274         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
24276 2016-04-25  Michael Collison  <michael.collison@linaro.org>
24278         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
24279         mode is VQI to improve mixed mode vectorization.
24280         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
24281         define_insn to match low half of signed vaddw.
24282         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
24283         define_insn to match high half of signed vaddw.
24284         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
24285         define_insn to match low half of unsigned vaddw.
24286         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
24287         define_insn to match high half of unsigned vaddw.
24288         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
24289         (arm_simd_check_vect_par_cnst_half_p): Likewise.
24290         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
24291         for new function.
24292         (arm_simd_check_vect_par_cnst_half_p): Likewise.
24293         * config/arm/predicates.md (vect_par_constant_high): Support
24294         big endian and simplify by calling
24295         arm_simd_check_vect_par_cnst_half
24296         (vect_par_constant_low): Likewise.
24298 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
24300         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
24301         predicate for operand 2.
24303 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
24304             H.J. Lu  <hongjiu.lu@intel.com>
24306         * config/i386/i386-protos.h (standard_sse_constant_p): Add
24307         machine_mode argument.
24308         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
24309         constm1_rtx operands.  For VOIDmode constants, get mode from
24310         pred_mode.  Check mode size if the mode is supported by ABI.
24311         (standard_sse_constant_opcode): Do not use standard_constant_p.
24312         Strictly check ABI support for all-ones operands.
24313         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
24314         immediates. Update calls to standard_sse_constant_p.
24315         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
24316         (ix86_rtx_costs): Ditto.
24317         * config/i386/i386.md (*movxi_internal_avx512f): Use
24318         nonimmediate_or_sse_const_operand instead of vector_move_operand.
24319         Use (v,BC) alternative instead of (v,C). Use register_operand
24320         checks instead of MEM_P.
24321         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
24322         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
24323         isa attribute.  Use register_operand checks instead of MEM_P.
24324         (*movti_internal): Use nonimmediate_or_sse_const_operand for
24325         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
24326         alternative and corresponding sse2 isa attribute.
24327         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
24328         to standard_sse_constant_p.
24329         (FP constant splitters): Ditto.
24330         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
24331         (C): Ditto.
24332         * config/i386/predicates.md (constm1_operand): Remove.
24333         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
24334         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
24335         vector_all_ones_operand instead of constm1_operand.
24337 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24339         * print-rtl.c (print_rtx_insn_vec): New function.
24340         * print-rtl.h: New prototype.
24341         * store-motion.c (struct st_expr): Make avail_stores a vector.
24342         (st_expr_entry): Adjust.
24343         (free_st_expr_entry): Likewise.
24344         (print_store_motion_mems): Likewise.
24345         (find_moveable_store): Likewise.
24346         (compute_store_table): Likewise.
24347         (delete_store): Likewise.
24348         (build_store_vectors): Likewise.
24350 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24352         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
24354 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24356         * vec.h (vec_safe_contains): New function.
24357         (vec::contains): Likewise.
24358         (vec::begin): Likewise.
24359         (vec::end): Likewise.
24361 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
24363         PR sanitizer/70712
24364         * cfgexpand.c (expand_stack_vars): Fix typo.
24366 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24368         * system.h (list, map, set, vector): Include conditionally.
24369         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24370         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
24371         * ipa-icf.c (INCLUDE_LIST): Define.
24372         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
24373         * config/sh/sh.c (INCLUDE_VECTOR): Define.
24374         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
24375         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
24376         * cp/logic.cc (INCLUDE_LIST): Define.
24377         * fortran/trans-common.c (INCLUDE_MAP): Define.
24379 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24381         * auto-profile.c: Remove <string.h> include.
24382         * ipa-icf-gimple.c: Remove <list> include.
24383         * diagnostic.c: Remove <new> include.
24384         * genmatch.c: Likewise.
24385         * pretty-print.c: Likewise.
24386         * toplev.c: Likewise
24387         * c/c-objc-common.c: Likewise.
24388         * cp/error.c: Likewise.
24389         * fortran/error.c: Likewise.
24391 2016-04-22  Richard Biener  <rguenther@suse.de>
24393         * lto-streamer-in.c (input_ssa_names): Do not allocate
24394         GIMPLE_NOP for all SSA names.
24395         * lto-streamer-out.c (output_ssa_names): Do not output
24396         SSA names that should have been released.
24398 2016-04-22  Richard Biener  <rguenther@suse.de>
24400         PR tree-optimization/70740
24401         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24402         VDEF.
24404 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
24406         PR target/70750
24407         * config/i386/predicates.md (call_insn_operand): Replace
24408         sibcall_memory_operand with memory_operand.
24410 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
24412         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24413         has_single_use() tests.
24414         (register_edge_assert_for_1): Likewise.
24415         (find_assert_locations_1): Check the liveness bitmap instead of
24416         checking has_single_use().
24418 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
24420         PR target/70728
24421         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24422         Extract AVX-512BW constraint from AVX.
24424 2016-04-21  Richard Biener  <rguenther@suse.de>
24426         PR tree-optimization/70725
24427         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24428         for phi_convertible_by_degenerating_args.
24429         (predicate_all_scalar_phis): Handle single-argument PHIs.
24431 2016-04-21  Richard Biener  <rguenther@suse.de>
24433         PR middle-end/70747
24434         * fold-const.c (fold_comparison): Return properly typed
24435         constant boolean.
24437 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
24439         PR tree-optimization/70715
24440         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24441         after expanding BASE using expand_simple_operations.
24443 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
24445         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24446         New transformations.
24448 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
24450         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24452 2016-04-20  Jan Hubicka  <jh@suse.cz>
24454         * ipa-inline.c (can_inline_edge_p): Pass caller info to
24455         ultiimate_alias_target.
24456         (update_callee_keys): Likewise.
24457         (lookup_recursive_calls): Likewise.
24458         (speculation_useful_p): Likewise.
24460 2016-04-20  Jan Hubicka  <jh@suse.cz>
24462         PR ipa/70018
24463         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24464         (set_nothrow_flag_1): ... this; handle interposition correctly;
24465         recurse on aliases and thunks.
24466         (cgraph_node::set_nothrow_flag): New.
24467         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24468         functions compiled with non-call exceptions that binds to current
24469         def.
24470         (propagate_nothrow): Be safe WRT interposition.
24471         * cgraph.h (set_nothrow_flag): Update prototype.
24473 2016-04-18  Jan Hubicka  <jh@suse.cz>
24475         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24476         max_loop_iterations_int.
24477         (tree_unswitch_outer_loop): Likewise.
24479 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
24481         PR tree-optimization/69489
24482         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24483         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24484         Revise dump message.
24485         (if_convertible_bb_p): Remove check on edge count of basic block's
24486         predecessors.
24488 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
24490         PR tree-optimization/56625
24491         PR tree-optimization/69489
24492         * tree-data-ref.h (DR_INNERMOST): New macro.
24493         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24494         hashing struct innermost_loop_behavior.
24495         (ref_DR_map): Remove.
24496         (innermost_DR_map): New map.
24497         (baseref_DR_map): Revise comment.
24498         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24499         to innermost_DR_map accroding to its innermost loop behavior.
24500         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24501         to its innermost loop behavior.
24502         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24503         Add initialization for innermost_DR_map.  Record memory reference
24504         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24505         have innermost loop behavior.
24506         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
24507         innermost_DR_map.
24509 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
24511         * config/i386/i386.md (*lea<mode>_general_1): Rename from
24512         *lea_general_1.  Use explicit SWI12 mode interator.
24513         (*lea<mode>_general_2): Rename from *lea_general_2.
24514         Use explicit SWI12 mode interator.
24515         (*lea<mode>_general_3): Rename from *lea_general_3.
24516         Use explicit SWI12 mode interator.
24517         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24518         Use explicit SWI12 mode interator.
24519         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24520         Use explicit SWI48 mode interator.
24522 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24524         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24525         Short-cut unaligned load and store cases.  Handle all integer
24526         vector modes.
24527         (ix86_expand_vector_move_misalign): Short-cut unaligned load
24528         and store cases.  Call ix86_avx256_split_vector_move_misalign
24529         directly without checking mode class.
24531 2016-04-20  Andrew Pinski  <apinski@cavium.com>
24532             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24534         PR target/64971
24535         * config/aarch64/aarch64.md (sibcall): Force call
24536         address to be DImode for ILP32.
24537         (sibcall_value): Likewise.
24539 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24541         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24543 2016-04-20  Richard Biener  <rguenther@suse.de>
24545         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24546         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24547         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24548         (maybe_push_res_to_seq): Adjust.
24549         * gimple-fold.c (maybe_build_generic_op): Likewise.
24551 2016-04-20  Marek Polacek  <polacek@redhat.com>
24553         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24554         rather than true.
24556 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
24558         * config/i386/sse.md (vec_unpacks_lo_hi): Always
24559         use kmovw to support AVX512F target.
24561 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
24563         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24565 2016-04-20  Marek Polacek  <polacek@redhat.com>
24567         PR tree-optimization/70725
24568         * tree-if-conv.c (is_false_predicate): New function.
24569         (predicate_mem_writes): Use it.
24571 2016-04-20  Richard Biener  <rguenther@suse.de>
24573         PR tree-optimization/70726
24574         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24575         shift amounts from a pattern stmt operand.
24577 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24579         PR target/70674
24580         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24581         stack_restore_from_fpr pattern when restoring r15.
24582         (s390_optimize_prologue): Strip away the memory barrier in the
24583         parallel when trying to get rid of restore insns.
24584         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24585         definition for loading the stack pointer from an FPR.  Compared to
24586         the normal move insn this pattern includes a full memory barrier.
24588 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
24590         PR middle-end/70680
24591         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24592         implicitly linear or lastprivate iterator on the outer context.
24594 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
24596         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24597         alignment check.
24598         * config/i386/i386.md (ssememalign): Removed.
24599         * config/i386/sse.md: Remove ssememalign attribute from patterns.
24601 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
24603         PR target/69201
24604         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24605         const short * to __builtin_ia32_loaddquhi512_mask.
24606         (_mm512_maskz_loadu_epi16): Likewise.
24607         (_mm512_mask_storeu_epi16): Pass short * to
24608         __builtin_ia32_storedquhi512_mask.
24609         (_mm512_mask_loadu_epi8): Pass const char * to
24610         __builtin_ia32_loaddquqi512_mask.
24611         (_mm512_maskz_loadu_epi8): Likewise.
24612         (_mm512_mask_storeu_epi8): Pass char * to
24613         __builtin_ia32_storedquqi512_mask.
24614         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24615         const double * to __builtin_ia32_loadupd512_mask.
24616         (_mm512_mask_loadu_pd): Likewise.
24617         (_mm512_maskz_loadu_pd): Likewise.
24618         (_mm512_storeu_pd): Pass double * to
24619         __builtin_ia32_storeupd512_mask.
24620         (_mm512_mask_storeu_pd): Likewise.
24621         (_mm512_loadu_ps): Pass const float * to
24622         __builtin_ia32_loadups512_mask.
24623         (_mm512_mask_loadu_ps): Likewise.
24624         (_mm512_maskz_loadu_ps): Likewise.
24625         (_mm512_storeu_ps): Pass float * to
24626         __builtin_ia32_storeups512_mask.
24627         (_mm512_mask_storeu_ps): Likewise.
24628         (_mm512_mask_loadu_epi64): Pass const long long * to
24629         __builtin_ia32_loaddqudi512_mask.
24630         (_mm512_maskz_loadu_epi64): Likewise.
24631         (_mm512_mask_storeu_epi64): Pass long long *
24632         to __builtin_ia32_storedqudi512_mask.
24633         (_mm512_loadu_si512): Pass const int * to
24634         __builtin_ia32_loaddqusi512_mask.
24635         (_mm512_mask_loadu_epi32): Likewise.
24636         (_mm512_maskz_loadu_epi32): Likewise.
24637         (_mm512_storeu_si512): Pass int * to
24638         __builtin_ia32_storedqusi512_mask.
24639         (_mm512_mask_storeu_epi32): Likewise.
24640         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24641         char * to __builtin_ia32_storedquqi256_mask.
24642         (_mm_mask_storeu_epi8): Likewise.
24643         (_mm256_mask_loadu_epi16): Pass const short * to
24644         __builtin_ia32_loaddquhi256_mask.
24645         (_mm256_maskz_loadu_epi16): Likewise.
24646         (_mm_mask_loadu_epi16): Pass const short * to
24647         __builtin_ia32_loaddquhi128_mask.
24648         (_mm_maskz_loadu_epi16): Likewise.
24649         (_mm256_mask_loadu_epi8): Pass const char * to
24650         __builtin_ia32_loaddquqi256_mask.
24651         (_mm256_maskz_loadu_epi8): Likewise.
24652         (_mm_mask_loadu_epi8): Pass const char * to
24653         __builtin_ia32_loaddquqi128_mask.
24654         (_mm_maskz_loadu_epi8): Likewise.
24655         (_mm256_mask_storeu_epi16): Pass short * to.
24656         __builtin_ia32_storedquhi256_mask.
24657         (_mm_mask_storeu_epi16): Pass short * to.
24658         __builtin_ia32_storedquhi128_mask.
24659         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24660         const double * to __builtin_ia32_loadupd256_mask.
24661         (_mm256_maskz_loadu_pd): Likewise.
24662         (_mm_mask_loadu_pd): Pass onst double * to
24663         __builtin_ia32_loadupd128_mask.
24664         (_mm_maskz_loadu_pd): Likewise.
24665         (_mm256_mask_storeu_pd): Pass double * to
24666         __builtin_ia32_storeupd256_mask.
24667         (_mm_mask_storeu_pd): Pass double * to
24668         __builtin_ia32_storeupd128_mask.
24669         (_mm256_mask_loadu_ps): Pass const float * to
24670         __builtin_ia32_loadups256_mask.
24671         (_mm256_maskz_loadu_ps): Likewise.
24672         (_mm_mask_loadu_ps): Pass const float * to
24673         __builtin_ia32_loadups128_mask.
24674         (_mm_maskz_loadu_ps): Likewise.
24675         (_mm256_mask_storeu_ps): Pass float * to
24676         __builtin_ia32_storeups256_mask.
24677         (_mm_mask_storeu_ps): ass float * to
24678         __builtin_ia32_storeups128_mask.
24679         (_mm256_mask_loadu_epi64): Pass const long long * to
24680         __builtin_ia32_loaddqudi256_mask.
24681         (_mm256_maskz_loadu_epi64): Likewise.
24682         (_mm_mask_loadu_epi64): Pass const long long * to
24683         __builtin_ia32_loaddqudi128_mask.
24684         (_mm_maskz_loadu_epi64): Likewise.
24685         (_mm256_mask_storeu_epi64): Pass long long * to
24686         __builtin_ia32_storedqudi256_mask.
24687         (_mm_mask_storeu_epi64): Pass long long * to
24688         __builtin_ia32_storedqudi128_mask.
24689         (_mm256_mask_loadu_epi32): Pass const int * to
24690         __builtin_ia32_loaddqusi256_mask.
24691         (_mm256_maskz_loadu_epi32): Likewise.
24692         (_mm_mask_loadu_epi32): Pass const int * to
24693         __builtin_ia32_loaddqusi128_mask.
24694         (_mm_maskz_loadu_epi32): Likewise.
24695         (_mm256_mask_storeu_epi32): Pass int * to
24696         __builtin_ia32_storedqusi256_mask.
24697         (_mm_mask_storeu_epi32): Pass int * to
24698         __builtin_ia32_storedqusi128_mask.
24699         * config/i386/i386-builtin-types.def (PCSHORT): New.
24700         (PINT64): Likewise.
24701         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24702         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24703         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24704         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24705         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24706         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24707         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24708         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24709         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24710         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24711         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24712         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24713         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24714         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24715         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24716         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24717         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24718         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24719         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24720         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24721         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24722         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24723         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24724         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24725         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24726         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24727         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24728         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24729         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24730         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24731         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24732         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24733         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24734         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24735         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24736         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24737         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24738         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24739         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24740         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24741         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24742         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24743         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24744         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24745         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24746         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24747         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24748         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24749         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24750         use UNSPEC_STOREU.
24751         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24752         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24753         load nor store.
24754         (ix86_expand_vector_move_misalign): Likewise.
24755         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24756         to scalar function prototype for unaligned load/store builtins.
24757         (ix86_expand_special_args_builtin): Updated.
24758         * config/i386/sse.md (UNSPEC_LOADU): Removed.
24759         (UNSPEC_STOREU): Likewise.
24760         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24761         (VI_ULOADSTORE_F_AVX512VL): Likewise.
24762         (ssescalarsize): Handle V4TI, V2TI and V1TI.
24763         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24764         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24765         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24766         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24767         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24768         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24769         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24770         (<avx512>_storedqu<mode>_mask): Likewise.
24771         (*sse4_2_pcmpestr_unaligned): Likewise.
24772         (*sse4_2_pcmpistr_unaligned): Likewise.
24773         (*mov<mode>_internal): Renamed to ...
24774         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
24775         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24776         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24777         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24779 2016-04-19  Richard Biener  <rguenther@suse.de>
24781         PR tree-optimization/70171
24782         * tree-ssa-phiprop.c: Include stor-layout.h.
24783         (phiprop_insert_phi): Handle the aggregate copy case.
24784         (propagate_with_phi): Likewise.
24786 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
24788         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24789         instead of simplify_gen_subreg (... , 0).
24790         (ix86_delegitimize_address): Ditto.
24791         (ix86_split_divmod): Ditto.
24792         (ix86_split_copysign_const): Ditto.
24793         (ix86_split_copysign_var): Ditto.
24794         (ix86_expand_args_builtin): Ditto.
24795         (ix86_expand_round_builtin): Ditto.
24796         (ix86_expand_special_args_builtin): Ditto.
24797         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24798         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24799         (udivmodqi4): Ditto.
24800         (absneg splitters): Ditto.
24801         (*jcc_bt<mode>_1): Ditto.
24803 2016-04-19  Richard Biener  <rguenther@suse.de>
24805         PR tree-optimization/70724
24806         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24807         restoring out from ...
24808         (free_scc_vn): ... here.
24809         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24810         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24811         tail merging.
24812         (pass_fre::execute): Restore SSA info.
24814 2016-04-19  Richard Biener  <rguenther@suse.de>
24816         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24817         * gimple-walk.c (walk_gimple_op): Initialize it.
24818         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24819         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24820         remapping SSA names of defs.
24821         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24822         adjustment.
24824 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
24826         PR middle-end/70689
24827         * lra-constraints.c (equiv_substition_p): New.
24828         (process_alt_operands): Use it.
24829         (swap_operands): Swap it.
24830         (curr_insn_transform): Update it.
24832 2016-04-18  Michael Matz  <matz@suse.de>
24834         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24835         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24836         * tree-core.h (tree_type_common.align): Use bit-field.
24837         (tree_type_common.spare): New.
24838         (tree_decl_common.off_align): Make smaller.
24839         (tree_decl_common.align): Use bit-field.
24841         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24842         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24843         (scan_sharing_clauses): Ditto.
24844         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24845         (omp_finish_file): Ditto.
24846         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24847         (layout_decl): Ditto.
24848         (relayout_decl): Ditto.
24849         (finalize_record_size): Use SET_TYPE_ALIGN.
24850         (finalize_type_size): Ditto.
24851         (finish_builtin_struct): Ditto.
24852         (layout_type): Ditto.
24853         (initialize_sizetypes): Ditto.
24854         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24855         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24856         (lookup_field_for_decl): Use SET_DECL_ALIGN.
24857         (get_chain_field): Ditto.
24858         (get_trampoline_type): Ditto.
24859         (get_nl_goto_field): Ditto.
24860         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24861         SET_DECL_ALIGN.
24862         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24863         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24864         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24865         (build_qualified_type): Use SET_TYPE_ALIGN.
24866         (build_aligned_type, build_range_type_1): Ditto.
24867         (build_atomic_base): Ditto.
24868         (build_common_tree_nodes): Ditto.
24869         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24870         (expand_one_stack_var_at): Ditto.
24871         * coverage.c (build_var): Use SET_DECL_ALIGN.
24872         * except.c (init_eh): Ditto.
24873         * function.c (assign_parm_setup_block): Ditto.
24874         * symtab.c (increase_alignment_1): Ditto.
24875         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24876         * tree-vect-stmts.c (ensure_base_align): Ditto.
24877         * varasm.c (align_variable): Ditto.
24878         (assemble_variable): Ditto.
24879         (build_constant_desc): Ditto.
24880         (output_constant_def_contents): Ditto.
24882         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24883         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24884         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24885         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24886         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24888 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
24890         PR target/70708
24891         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24892         replace %vmovsd with "%vmovq".
24893         (vec_concatv2df): Likewise.
24895 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
24897         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24898         (*vec_extractv2si_0): Ditto.
24899         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24900         (zero_extended_scalar_load_operand splitters): Ditto.
24901         (vec_extract splitters): Ditto.
24902         (*vec_extractv4si_0_zext): Ditto.
24903         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24904         and lowpart_subreg.
24905         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24906         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24907         (*sse4_1_extractps): Use lowpart_subreg.
24908         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24910 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24912         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24913         gld requirements.
24914         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24915         Mention Solaris 11 packaging changes.
24916         Update gas and gld requirements.
24917         Remove reference to pre-Solaris 10 bug.
24918         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24919         systems and bugs.
24920         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24921         with cc.
24923 2016-04-17  Jan Hubicka  <jh@suse.cz>
24925         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24926         max_loop_iterations_int.
24928 2016-04-18  Richard Biener  <rguenther@suse.de>
24930         PR tree-optimization/43434
24931         * tree-ssa-structalias.c (struct vls_data): New.
24932         (visit_loadstore): Handle all pointer-based accesses.
24933         (compute_dependence_clique): Compute a bitmap of restrict tags
24934         assigned bases and pass it to visit_loadstore.
24936 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
24938         PR target/70711
24939         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24940         armv8.1-a and armv8.1-a+crc.
24942 2016-04-18  Richard Biener  <rguenther@suse.de>
24944         PR tree-optimization/70701
24945         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24946         references after translating through a memcpy.
24948 2016-04-18  Richard Biener  <rguenther@suse.de>
24950         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24951         (compute_antic): ... here.  For partial antic use regular
24952         postorder and scrap iteration.
24953         (compute_partial_antic_aux): Remove unused return value.
24954         (init_pre): Do not allocate postorder.
24955         (fini_pre): Do not free postorder.
24957 2016-04-18  Richard Biener  <rguenther@suse.de>
24959         PR middle-end/37870
24960         * expmed.c (extract_bit_field_1): Remove broken case
24961         using a wider MODE_INT mode.
24963 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
24965         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24966         unless compiling with at least GCC-4.8.
24968 2016-04-17  Jan Hubicka  <jh@suse.cz>
24970         PR bootstrap/70706
24971         * graphite.c (graphite_finalize): Update call to
24972         tree_estimate_probability.
24973         * predict.h (tree_estimate_probability): Update prototype.
24975 2016-04-17  Jan Hubicka  <jh@suse.cz>
24977         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24978         (tree_estimate_probability): Likewise.
24979         (pass_profile::execute): Update.
24980         (report_predictor_hitrates): New function.
24981         * profile.c (compute_branch_probabilities): Use it.
24982         * predict.h (report_predictor_hitrates): Declare.
24984 2016-04-17  Jan Hubicka  <jh@suse.cz>
24986         PR ipa/70018
24987         * cgraph.h (cgraph_node::set_const_flag,
24988         cgraph_node::set_pure_flag): Update prototype to return bool;
24989         update comment.
24990         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24991         of interposable symbol are interposable, too.
24992         (cgraph_set_const_flag_1): Rename to ...
24993         (set_const_flag_1): ... this one; change to self recursive function
24994         instead of call_for_symbol_thunks_and_aliases. Handle correctly
24995         clearnig the flag in all variants and also virtual thunks of const
24996         functions are pure; track if any change was done.
24997         (cgraph_node::set_const_flag): Update.
24998         (struct set_pure_flag_info): New struct.
24999         (cgraph_set_pure_flag_1): Rename to ...
25000         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
25001         rather than pointer encoded flags; track if any changes was done;
25002         handle correctly clearning flag and setting flag of aliases already
25003         declared const.
25004         (cgraph_node::set_pure_flag): Update.
25005         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
25007 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25009         PR other/70433
25010         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
25011         backslash in label.
25013 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25015         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
25016         '{}<> ' as escape-for-record.
25018 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25020         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
25021         structure.
25023 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25025         PR other/70185
25026         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
25027         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
25028         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
25029         * passes.c (finish_optimization_passes): Only call
25030         finish_graph_dump_file if dfi->graph_dump_initialized.
25031         (execute_function_dump, pass_init_dump_file): Use
25032         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
25034 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25036         PR tree-optimization/70256
25037         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
25038         (debug_varmap): New function.
25040 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25042         PR other/70183
25043         * passes.c (pass_manager::register_pass): Propagate pflags.
25045 2016-04-17  Tom de Vries  <tom@codesourcery.com>
25047         PR other/68875
25048         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
25049         * passes.c (pass_manager::pass_manager): Declare and init p_start in
25050         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
25051         check if it's equal to p_start.
25052         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
25054 2016-04-15  Jan Hubicka  <jh@suse.cz>
25056         PR ipa/70018
25057         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
25058         function does not bind to current def.
25059         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
25060         handle conservatively calls to functions that does not need to bind
25061         to current def.
25062         (check_call): Update call of worse_state.
25063         (ignore_edge_for_nothrow): Update.
25064         (ignore_edge_for_pure_const): Likewise.
25065         (propagate_pure_const): Update calls to worse_state.
25066         (skip_function_for_local_pure_const): Reformat comments.
25068 2016-04-15  Jan Hubicka  <jh@suse.cz>
25070         PR ipa/70018
25071         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
25072         (cgraph_node::function_symbol): Likewise.
25073         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25074         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
25075         (symtab_node::ultimate_alias_target): Add REF parameter.
25076         (symtab_node::binds_to_current_def_p): Declare.
25077         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
25078         (cgraph_node::function_symbol): Likewise.
25079         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25080         (cgraph_node::get_availability): Likewise.
25081         (cgraph_edge::binds_to_current_def_p): New inline function.
25082         (varpool_node::get_availability): Add REF parameter.
25083         (varpool_node::ultimate_alias_target): Likewise.
25084         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
25085         (symtab_node::binds_to_current_def_p): Likewise.
25086         * varpool.c (varpool_node::get_availability): Likewise.
25088 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
25090         PR target/70662
25091         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
25092         Fix mode size check.
25094 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
25096         * BASE-VER: Set to 7.0.0.
25098 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
25100         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
25102 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25104         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
25105         architecture revisions.
25107 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
25109         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
25110         * config/i386/i386.c (ix86_using_red_zone): No longer static.
25111         * config/i386/i386.md (stack decrement to push peepholes): Guard
25112         with !x86_using_red_zone ().
25114 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
25116         PR c++/70675
25117         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
25118         to dump_generic_node.
25119         (NIY): Pass also flags to do_niy.
25121 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
25123         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
25124         (simd_clone_vector_of_formal_parm_types)
25125         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
25126         (simd_clone_mangle, simd_clone_create)
25127         (simd_clone_adjust_return_type, create_tmp_simd_array)
25128         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
25129         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
25130         (ipa_simd_modify_function_body, simd_clone_linear_addend)
25131         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
25132         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
25133         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
25134         * omp-simd-clone.c: ... this new file.
25135         (simd_clone_vector_of_formal_parm_types): Make it static.
25136         * Makefile.in (OBJS): Add omp-simd-clone.o.
25138 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
25140         PR target/70662
25141         * config/i386/sse.md: Use proper memory operand modifiers.
25144 2016-04-15  Richard Biener  <rguenther@suse.de>
25145         Alan Modra  <amodra@gmail.com>
25147         PR tree-optimization/70130
25148         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
25149         when alignment stays not the same and no not use the realign
25150         scheme then.
25152 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25154         PR target/70669
25155         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25156         direct move handlers for KFmode. Change TFmode handlers test from
25157         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
25159 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
25161         PR c++/70594
25162         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
25163         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
25164         (inlined_polymorphic_ctor_dtor_block_p): Use it.
25165         * tree-ssa-live.c (remove_unused_scope_block_p): When
25166         in_ctor_dtor_block, avoid discarding not just BLOCKs with
25167         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
25168         block_ultimate_origin is FUNCTION_DECL.
25169         (remove_unused_locals): If current_function_decl is
25170         polymorphic_ctor_dtor_p, pass initial true to
25171         remove_unused_scope_block_p' is_ctor_dtor_block.
25173 2016-04-14  Martin Sebor  <msebor@redhat.com>
25175         PR c++/69517
25176         PR c++/70019
25177         PR c++/70588
25178         * doc/extend.texi (Variable Length): Revert.
25180 2016-04-14  Marek Polacek  <polacek@redhat.com>
25181             Jan Hubicka  <hubicka@ucw.cz>
25183         PR c++/70029
25184         * tree.c (verify_type): Disable the canonical type of main variant
25185         check.
25187 2016-04-14  Jason Merrill  <jason@redhat.com>
25189         * cfgexpand.c, expr.c: Revert previous change.
25191 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
25193         PR middle-end/70643
25194         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
25195         when building a mem ref for the incoming reduction variable.
25197 2016-04-14  Richard Biener  <rguenther@suse.de>
25199         PR tree-optimization/70614
25200         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
25201         loop if the evolution dropped to chrec_dont_know.
25202         (interpret_condition_phi): Likewise.
25204 2016-04-14  Richard Biener  <rguenther@suse.de>
25206         PR tree-optimization/70623
25207         * tree-ssa-pre.c (changed_blocks): Make global ...
25208         (compute_antic): ... local here.  Move and fix worklist
25209         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
25210         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
25211         worklist handling, dump when ANTIC_IN changed.
25212         (compute_partial_antic_aux): Remove worklist handling.
25213         (init_pre): Do not compute post dominators.  Add a comment about
25214         the CFG order chosen.
25215         (fini_pre): Do not free post dominators.
25217 2016-04-13  Martin Sebor  <msebor@redhat.com>
25219         PR c++/69517
25220         PR c++/70019
25221         PR c++/70588
25222         * doc/extend.texi (Variable Length): Document C++ specifics.
25224 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
25226         PR c++/70641
25227         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
25228         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
25229         eh edges have been purged.
25231         PR c++/70594
25232         * tree-sra.c (create_access_replacement,
25233         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
25234         gets fancy name.
25235         * tree-pretty-print.c (dump_fancy_name): New function.
25236         (dump_decl_name, dump_generic_node): Use it.
25238 2016-04-13  Jason Merrill  <jason@redhat.com>
25240         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
25241         * expr.c (expand_expr_real_1): Likewise.
25243 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
25245         * config/i386/i386.md (kunpckhi): Swap operands.
25246         (kunpcksi): Likewise.
25247         (kunpckdi): Likewise.
25248         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
25249         (vec_pack_trunc_<mode>): Likewise.
25251 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
25253         PR debug/70628
25254         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
25256         PR middle-end/70633
25257         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
25258         gimplification turns some element into non-constant.
25260         PR debug/70628
25261         * rtl.h (convert_memory_address_addr_space_1): New prototype.
25262         * explow.c (convert_memory_address_addr_space_1): No longer static,
25263         add NO_EMIT argument and don't call convert_modes if true, pass
25264         it down recursively, remove break after return.
25265         (convert_memory_address_addr_space): Adjust caller.
25266         * simplify-rtx.c (simplify_unary_operation_1): Call
25267         convert_memory_address_addr_space_1 instead of convert_memory_address,
25268         if it returns NULL, don't simplify.
25270 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
25272         PR target/70630
25273         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
25275 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
25277         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25278         Bump the upper SIMDLEN limits, so that if the return type or
25279         characteristic type if the return type is void can be passed in
25280         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
25281         allowed.
25283 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25285         PR target/70640
25286         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
25287         Do not use "=" constraint on an input constraint.
25288         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
25289         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
25290         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
25291         generates (neg (abs ...)) instead of (abs ...).
25293 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
25295         PR rtl-optimization/70596
25296         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
25297         just invalidate LRA data and reset them.  Adjust dump wording.
25299 2016-04-12  Martin Liska  <mliska@suse.cz>
25301         Revert
25302         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
25304         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25305         estimates here.
25306         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25307         max_loop_iterations_int.
25308         (tree_unswitch_outer_loop): Likewise.
25309         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25310         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25312 2016-04-12  Tom de Vries  <tom@codesourcery.com>
25314         PR tree-optimization/68756
25315         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
25316         instead of new_name.
25318 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
25320         PR tree-optimization/70602
25321         * tree-sra.c (generate_subtree_copies): Don't write anything into
25322         constant pool decls.
25324         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
25325         regardless whether there are depend clauses or not.
25327 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25329         PR target/70381
25330         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
25331         target attribute and pragma from changing the -mfloat128
25332         and -mfloat128-hardware options.
25334         * doc/extend.texi (Additional Floating Types): Document PowerPC
25335         __float128 restrictions.
25337 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
25339         PR target/70133
25340         * config/aarch64/driver-aarch64.c
25341         (aarch64_get_extension_string_for_isa_flags): New.
25342         (arch_extension): Rename to...
25343         (aarch64_arch_extension): ...This.
25344         (ext_to_feat_string): Rename to...
25345         (aarch64_extensions): ...This.
25346         (aarch64_core_data): Keep track of architecture extension flags.
25347         (cpu_data): Rename to...
25348         (aarch64_cpu_data): ...This.
25349         (aarch64_arch_driver_info): Keep track of architecture extension
25350         flags.
25351         (get_arch_name_from_id): Rename to...
25352         (get_arch_from_id): ...This, change return type.
25353         (host_detect_local_cpu): Update and reformat for renames, handle
25354         extensions through common infrastructure.
25356 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
25358         PR target/70133
25359         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
25360         track of a canonical flag name.
25361         (all_extensions): Likewise.
25362         (arch_to_arch_name): Also track extension flags enabled by the arch.
25363         (all_architectures): Likewise.
25364         (aarch64_parse_extension): Move to here.
25365         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
25366         rework.
25367         (aarch64_rewrite_selected_cpu): Update for above change.
25368         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
25369         are handled, such that the single explicit value enabled by an
25370         extension is kept seperate from the implicit values it also enables.
25371         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
25372         to here.
25373         (aarch64_parse_extension): New.
25374         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
25375         here to config/aarch64/aarch64-protos.h.
25376         (aarch64_parse_extension): Move from here to
25377         common/config/aarch64/aarch64-common.c.
25378         (aarch64_option_print): Update.
25379         (aarch64_declare_function_name): Likewise.
25380         (aarch64_start_file): Likewise.
25381         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25382         the canonical flag for extensions.
25383         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25384         flags.
25386 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
25388         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25389         AARCH64_FL_CRC.
25391 2016-04-09  Tom de Vries  <tom@codesourcery.com>
25393         PR tree-optimization/68953
25394         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25395         first to last subscript.
25397 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
25399         PR tree-optimization/70586
25400         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25401         for any calls.
25403 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
25405         PR lto/70289
25406         PR ipa/70348
25407         PR tree-optimization/70373
25408         PR middle-end/70533
25409         PR middle-end/70534
25410         PR middle-end/70535
25411         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25412         clauses for acc parallel reductions as necessary.  Error on those
25413         that are private.
25414         * omp-low.c (scan_sharing_clauses): Don't install variables which
25415         are used in acc parallel reductions.
25416         (lower_rec_input_clauses): Remove dead code.
25417         (lower_oacc_reductions): Add support for reference reductions.
25418         (lower_reduction_clauses): Remove dead code.
25419         (lower_omp_target): Don't remap variables appearing in acc parallel
25420         reductions.
25421         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25423 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
25425         PR middle-end/70593
25426         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25427         with multiple SSA_NAME defs, force the outputs other than first
25428         to be live before calling live_track_process_def on each output.
25430         PR rtl-optimization/70574
25431         * fwprop.c (forward_propagate_and_simplify): Don't add
25432         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25433         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25434         paradoxical subregs within *loc.
25436 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
25438         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25439         -ftree-parallelize-loops={0,1}.
25440         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25441         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25442         * config/ia64/hpux.h (LIB_SPEC): Likewise.
25443         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25444         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25446 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
25448         PR sanitizer/70541
25449         * asan.c (instrument_derefs): If we get unknown location, extract it
25450         with EXPR_LOCATION.
25451         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25453 2016-04-08  Tom de Vries  <tom@codesourcery.com>
25455         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25456         implicit firstprivate clause.
25458 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25460         PR target/70566
25461         * config/arm/thumb2.md (tst + branch-> lsls + branch
25462         peephole below *orsi_not_shiftsi_si): Require that condition
25463         register is dead after the peephole.
25464         (second peephole after the above): Likewise.
25466 2016-04-08  Alan Modra  <amodra@gmail.com>
25468         PR target/70117
25469         * builtins.c (fold_builtin_classify): For IBM extended precision,
25470         look at just the high-order double to test for NaN.
25471         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
25472         test just the high double for Inf but both doubles for subnormal
25473         limit.
25475 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
25477         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25478         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25479         node->simdclone->mask_mode != VOIDmode masks.
25480         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
25481         earlier, use it instead of node->simdclone.
25482         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25483         Set clonei->mask_mode.
25485 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
25487         PR c/70436
25488         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25489         Pass it through to cp_parser_already_scoped_statement.
25490         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
25491         it through to cp_parser_statement.
25492         (cp_parser_statement): Pass IF_P through to
25493         cp_parser_iteration_statement.
25494         (cp_parser_pragma): Adjust call to
25495         cp_parser_iteration_statement.
25497 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
25499         PR c/70436
25500         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25501         resolve a future -Wparentheses warning.
25502         * omp-low.c (scan_sharing_clauses): Likewise.
25503         * tree-parloops.c (eliminate_local_variables): Likewise.
25505 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
25507         PR rtl-optimization/70398
25508         * lra-constraints.c (process_address_1): Check zero scale and code
25509         for reloading with zero scale.
25511 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
25513         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25514         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25516 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
25518         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25519         Add support for AVX512F clones, include them by default for
25520         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
25521         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25522         up to 128.
25524         PR middle-end/70550
25525         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25526         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25527         firstprivate clauses.
25528         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25529         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25530         (lower_omp_target): Set TREE_NO_WARNING for
25531         non-addressable possibly uninitialized vars which are copied into
25532         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25534 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
25536         * config/pa/predicates.md (integer_store_memory_operand): Accept
25537         REG+D operands with a large offset when reload_in_progress is true.
25538         (floating_point_store_memory_operand): Likewise.
25540 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
25542         PR c++/70336
25543         * match.pd (nested int casts): Limit to GIMPLE.
25545 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
25547         PR ipa/66223
25548         * ipa-devirt.c (maybe_record_node): Fix comment; use
25549         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25551 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
25553         PR rtl-optimization/70542
25554         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25555         if there are any uses other than insn or debug insns.
25557 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
25558             Jakub Jelinek  <jakub@redhat.com>
25560         PR tree-optimization/70509
25561         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25562         Shift HOST_WIDE_INT_1U instead of 1.
25564 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
25566         PR tree-optimization/70509
25567         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25568         of the vector base type for index.
25570 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
25572         PR target/70510
25573         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25575 2016-04-05  Richard Biener  <rguenther@suse.de>
25577         PR tree-optimization/70526
25578         * tree-sra.c (build_ref_for_offset): Use prev_base to
25579         extract the alias pointer type.
25581 2016-04-05  Richard Biener  <rguenther@suse.de>
25583         * dse.c (struct store_info): Remove alias_set member.
25584         (struct read_info_type): Likewise.
25585         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25586         spill_deleted, clear_alias_set_lookup): Remove.
25587         (get_group_info): Remove dead base == NULL_RTX case.
25588         (dse_step0): Remove initialization of removed variables.
25589         (delete_dead_store_insn): Reomve alias set dumping.
25590         (free_read_records): Remove alias_set handling.
25591         (canon_address): Remove alias_set_out parameter.
25592         (record_store): Remove spill_alias_set, it's always zero.
25593         (check_mem_read_rtx): Likewise.
25594         (dse_step2): Rename from ...
25595         (dse_step2_nospill): ... this.  Adjust.
25596         (scan_stores): Rename from ...
25597         (scan_stores_nospill): ... this.
25598         (scan_reads): Rename from ...
25599         (scan_reads_nospill): ... this.
25600         (scan_stores_spill, scan_reads_spill): Remove.
25601         (dse_step3_scan): Remove for_spills argument which is always false.
25602         (dse_step3): Likewise.
25603         (dse_step5): Rename from ...
25604         (dse_step5_nospill): ... this.  Remove alias_set handling.
25605         (rest_of_handle_dse): Adjust.
25607 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
25609         PR target/70525
25610         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25611         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25612         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25613         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25615 2016-04-05  Richard Biener  <rguenther@suse.de>
25617         PR middle-end/70499
25618         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25619         non-register type temporaries into SSA.
25621 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
25623         PR ipa/66223
25624         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25625         calls when sanitizing.
25626         (possible_polymorphic_call_target_p): Fix formatting.
25628 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25629             Jakub Jelinek  <jakub@redhat.com>
25631         PR middle-end/70457
25632         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25633         to ensure a call statement is compatible with a built-in's
25634         prototype.
25635         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25636         Likewise.
25638 2016-04-04  Richard Biener  <rguenther@suse.de>
25640         PR rtl-optimization/70484
25641         * rtl.h (canon_output_dependence): Declare.
25642         * alias.c (canon_output_dependence): New function.
25643         * dse.c (record_store): Use canon_output_dependence rather
25644         than canon_true_dependence.
25646 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
25648         PR ipa/68881
25649         * cgraph.h (symtab_node::copy_visibility_from): New function.
25650         * symtab.c (symtab_node::copy_visibility_from): New function.
25651         * ipa-visibility.c (optimize_weakref): New function.
25652         (function_and_variable_visibility): Use it.
25654 2016-04-04  Martin Liska  <mliska@suse.cz>
25656         PR hsa/70402
25657         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25658         value that is really in range handled by SBR instruction.
25659         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25660         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25661         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25663 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
25665         PR target/70416
25666         PR target/67391
25667         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25668         set, but not for SP_REG operands.
25670 2016-04-02  Martin Sebor  <msebor@redhat.com>
25672         PR c++/67376
25673         * fold-const.c (maybe_nonzero_address): New function.
25674         (fold_comparison): Call it.  Fold equality and relational
25675         expressions involving null pointers.
25676         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25678 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
25680         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25681         the "Y" constraint (scalar FP 0.0 immediate).
25683         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25684         Add the "const_double" to the list of operand constraints.
25686 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
25688         PR rtl-optimization/70467
25689         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25690         If low word of the last operand is 0, just emit addition/subtraction
25691         for the high word.
25693 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25695         PR target/70404
25696         * config/s390/s390.c (s390_expand_insv): Check for everything
25697         constant instead of just VOIDmode stuff.
25699 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25701         PR target/70496
25702         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25704 2016-04-01  Nathan Sidwell  <nathan@acm.org>
25706         * tree.def (TRY_CATCH_EXPR): Correct documentation.
25708 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
25710         PR rtl-optimization/70461
25711         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25712         is necessary.
25714 2016-03-31  Martin Liska  <mliska@suse.cz>
25716         PR hsa/70399
25717         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25718         a tree value or an immediate integer value to a buffer
25719         that is eventually copied to a BRIG section.
25720         (emit_immediate_operand): Call the function here.
25721         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25722         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25723         of class' fields that are removed.
25724         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25725         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25726         m_brig_repr_size fields.
25728 2016-03-31  Martin Liska  <mliska@suse.cz>
25730         PR hsa/70391
25731         * hsa-gen.c (hsa_function_representation::update_dominance): New
25732         function.
25733         (convert_addr_to_flat_segment): Likewise.
25734         (gen_hsa_memory_set): New alignment argument.
25735         (gen_hsa_ctor_assignment): Likewise.
25736         (gen_hsa_insns_for_single_assignment): Provide alignment
25737         to gen_hsa_ctor_assignment.
25738         (gen_hsa_insns_for_direct_call): Add new argument.
25739         (expand_lhs_of_string_op): New function.
25740         (expand_string_operation_builtin): Likewise.
25741         (expand_memory_copy): New function.
25742         (expand_memory_set): New function.
25743         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25744         (convert_switch_statements): Change signature.
25745         (generate_hsa): Use a return value of the function.
25746         (pass_gen_hsail::execute): Do not call
25747         convert_switch_statements here.
25748         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25749         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25750         (hsa_function_representation::update_dominance): New function.
25752 2016-03-31  Martin Liska  <mliska@suse.cz>
25754         PR hsa/70391
25755         * hsa-brig.c (emit_directive_variable): Emit alignment
25756         according to hsa_symbol::m_align.
25757         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25758         (dump_hsa_symbol): Dump alignment of HSA symbols.
25759         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25760         (gen_hsa_addr_with_align): New function.
25761         (hsa_bitmemref_alignment): Use newly added function.
25762         (gen_hsa_insns_for_load): Likewise.
25763         (gen_hsa_insns_for_store): Likewise.
25764         (gen_hsa_memory_copy): New argument added.
25765         (gen_hsa_insns_for_single_assignment): Respect
25766         alignment for assignments processed via gen_hsa_memory_copy.
25767         (gen_hsa_insns_for_direct_call): Likewise.
25768         (gen_hsa_insns_for_return): Likewise.
25769         (gen_function_def_parameters): Set default alignment.
25770         * hsa.c (hsa_object_alignment): New function.
25771         (hsa_byte_alignment): Pasted function.
25772         * hsa.h (hsa_symbol::m_align): New field.
25774 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
25776         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25777         scratch field for goto case.
25779 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
25781         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25783 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
25785         PR target/70442
25786         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25787         (scalar_chain::convert_insn): Call convert_op for reg
25788         moves to handle undefined registers.
25790 2016-03-31  Nathan Sidwell  <nathan@acm.org>
25792         PR c++/70393
25793         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25794         Assert we don't want to move backwards.
25796 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
25798         PR target/70453
25799         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25801 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
25803         PR rtl-optimization/70460
25804         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25805         with operand from REG_LABEL_OPERAND, instead substitute
25806         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25807         Don't do anything for REG_NON_LOCAL_GOTO jumps.
25809 2016-03-31  Martin Liska  <mliska@suse.cz>
25811         * passes.c (execute_one_pass): Do not call
25812         todo_after for a discarded function.
25814 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
25816         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25817         (no_cost, infinite_cost): Initialize the new field.
25818         (get_computation_cost_at): Record setup cost.
25819         (determine_use_iv_cost_address): Skip cost computation for sub
25820         uses if we can estimate it without losing accuracy.
25822 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
25824         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25825         estimates here.
25826         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25827         max_loop_iterations_int.
25828         (tree_unswitch_outer_loop): Likewise.
25829         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25830         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25832 2016-03-30  Richard Biener  <rguenther@suse.de>
25834         PR middle-end/70450
25835         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25837 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
25839         PR target/70421
25840         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25841         in gen_blendm expander.
25843 2016-03-30  Nick Clifton  <nickc@redhat.com>
25845         PR target/62254
25846         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25847         case where we are already provided with an SImode SUBREG.
25849 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
25851         PR target/70439
25852         * config/i386/i386.c (ix86_expand_epilogue): Properly check
25853         conflict between DRAP register and __builtin_eh_return.
25855 2016-03-30  Michael Matz  <matz@suse.de>
25856             Richard Biener  <rguenther@suse.de>
25858         PR ipa/12392
25859         * ipa-polymorphic-call.c (struct type_change_info): Change
25860         speculative to an unsigned allowing to limit the work we do.
25861         (csftc_abort_walking_p): New inline function..
25862         (check_stmt_for_type_change): Limit the number of may-defs
25863         skipped for speculative devirtualization to
25864         max-speculative-devirt-maydefs.
25865         * params.def (max-speculative-devirt-maydefs): New param.
25866         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25868 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
25870         PR target/63890
25871         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25872         and TARGET_MACHO.
25874 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
25876         PR tree-optimization/59124
25877         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25878         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25880 2016-03-29  Jeff Law  <law@redhat.com>
25882         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25884 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
25886         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25887         to HOST_WIDE_INT.
25889 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
25891         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25892         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25893         gcrt0.o if linking dynamically.
25895 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
25897         PR ipa/70283
25898         * ipa-devirt.c (methods_equal_p): New function.
25899         (compare_virtual_tables): Use it.
25900         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25901         * cgraphclones.c (clone_function_name_1): Use
25902         symbol_table::symbol_suffix_separator.
25903         * coverage.c (build_var): Likewise.
25904         * symtab.c (symbol_table::symbol_suffix_separator): New.
25906 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
25908         PR rtl-optimization/70429
25909         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25910         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25911         mode != result_mode.
25913         PR c++/70353
25914         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25916         PR tree-optimization/70405
25917         * ssa-iterators.h (num_imm_uses): Add missing braces.
25919 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
25921         PR rtl-optimization/68695
25922         * ira-color.c (allocno_copy_cost_saving): New.
25923         (improve_allocation): Use it.
25925 2016-03-29  Richard Henderson  <rth@redhat.com>
25927         PR middle-end/70355
25928         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25930 2016-03-29  Richard Biener  <rguenther@suse.de>
25932         PR middle-end/70424
25933         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25934         use alignment returned by get_pointer_alignment_1 if it is
25935         bigger than BITS_PER_UNIT.
25936         * builtins.c (get_pointer_alignment_1): Do not return true
25937         for alignment extracted from SSA info.
25939 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
25941         * config/ft32/ft32.opt (mnodiv): New.
25942         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25943         * doc/invoke.texi (FT32 Options -mnodiv): New.
25945 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
25947         PR target/70406
25948         * config/i386/i386.md (define_split, andn): Fix modes.
25950 2016-03-26  Richard Biener  <rguenther@suse.de>
25951             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25953         PR ipa/70366
25954         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25955         instead of
25956         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25957         as 2nd argument to cl_optimization_restore().
25959 2016-03-25  Richard Henderson  <rth@redhat.com>
25961         PR target/70120
25962         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25963         * config/aarch64/aarch64-protos.h: Declare it.
25964         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25966 2016-03-25  Alan Modra  <amodra@gmail.com>
25968         PR target/70052
25969         * config/rs6000/constraints.md (j): Simplify.
25970         * config/rs6000/predicates.md (easy_fp_constant): Exclude
25971         decimal float 0.D.
25972         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25973         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25974          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25975         in all constraint alternatives.
25976         (movtd_64bit_nodm): Delete "j" constraint alternative.
25978 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
25980         * tree-ssa-propagate.c: Enhance docs for
25981         SSA_PROP_NOT_INTERESTING.
25983 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
25985         * doc/extend.texi: Fix typo in documentation to pure attribute.
25987 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
25989         PR target/70319
25990         * config/pa/pa.md (bswapdi2): Use a scratch register.
25992 2016-03-24  Richard Henderson  <rth@redhat.com>
25994         PR middle-end/69845
25995         * fold-const.c (extract_muldiv_1): Correct test for multiplication
25996         overflow.
25998 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
26000         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
26001         using ix86_expand_binary_operator instead of gen_andsi3.
26003 2016-03-24  Richard Biener  <rguenther@suse.de>
26005         PR tree-optimization/70396
26006         * tree-vect-stmts.c (vectorizable_comparison): Use
26007         get_vectype_for_scalar_type.
26009 2016-03-24  Richard Biener  <rguenther@suse.de>
26011         PR middle-end/70370
26012         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
26013         with register bases.
26015 2016-03-24  Richard Biener  <rguenther@suse.de>
26017         PR tree-optimization/70372
26018         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
26019         build_all_ones_cst to also handle vector types correctly.
26021 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
26023         PR target/70381
26024         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
26025         -mfloat128 here.
26027 2016-03-23  Marek Polacek  <polacek@redhat.com>
26029         PR c++/69884
26030         * doc/invoke.texi: Document -Wignored-attributes.
26032 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
26034         PR tree-optimization/69042
26035         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
26036         parameter from 30 to 40.
26038 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
26040         PR tree-optimization/69042
26041         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
26042         for use with constant offset stripped in base.
26044 2016-03-23  Richard Biener  <rguenther@suse.de>
26046         PR middle-end/70251
26047         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
26048         mode compatibility check.
26049         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26051 2016-03-23  Jeff Law  <law@redhat.com>
26053         PR tree-optimization/64058
26054         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
26055         CONFLICT_COUNT.
26056         (struct ssa_conflicts): Move up earlier in the file.
26057         (conflicts_, var_map_): New static variables.
26058         (initialize_conflict_count): New function to initialize the
26059         CONFLICT_COUNT field for each conflict pair.
26060         (compare_pairs): Lazily initialize the conflict count and use it
26061         as the first tie-breaker.
26062         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
26063         and wipe conflicts_ and map_ around the call to qsort.  Remove
26064         special case for 2 coalesce pairs.
26065         * bitmap.c (bitmap_count_unique_bits): New function.
26066         (bitmap_count_bits_in_word): New function, extracted from
26067         bitmap_count_bits.
26068         (bitmap_count_bits): Use bitmap_count_bits_in_word.
26069         * bitmap.h (bitmap_count_unique_bits): Declare it.
26071 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
26073         PR target/69917
26074         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
26075         transparent alias chain for decl assembler name.
26076         * config/sol2.c (solaris_assemble_visibility): Likewise.
26078 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26080         * config/arm/arm1020e.md (1020call_op): Reduce reservation
26081         duration.
26082         (v10_fdivs): Likewise.
26083         (v10_fdivd): Likewise.
26085 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26087         PR driver/70132
26088         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
26089         to not call fclose twice on file.
26091 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
26093         PR tree-optimization/70354
26094         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26095         oprnd0 is wider than oprnd1 and there is a cast from the wider
26096         type to oprnd1, mask it with the mask of the narrower type.
26098         PR target/70321
26099         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
26100         Optimize TARGET_STV splitters, if high or low word of last argument
26101         is 0 or -1.
26103 2016-03-22  Jeff Law  <law@redhat.com>
26105         PR target/70232
26106         tree-ssa-threadbackward.c
26107         (fsm_find_control_statement_thread_paths): Correctly distinguish
26108         between old style jump threads vs FSM jump threads.
26110 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
26112         PR target/70302
26113         * config/i386/i386.c (scalar_chain::convert_op): Support
26114         uninitialized register usage case.
26116 2016-03-22  Richard Biener  <rguenther@suse.de>
26118         PR middle-end/70251
26119         * genmatch.c (gen_transform): Adjust last parameter to a three-state
26120         int...
26121         (capture::gen_transform): ... to change behavior when substituting
26122         a condition into cond or not-cond expr context.
26123         (dt_simplify::gen_1): Adjust.
26124         * gimple-match-head.c: Include gimplify.h for unshare_expr.
26125         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
26126         last change and instead change to
26127         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
26128         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26130 2016-03-22  Anthony Green  <green@moxielogic.com>
26132         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
26133         issue for moxiebox targets.
26134         (CC1PLUS_SPEC): Ditto.
26136 2016-03-22  Richard Biener  <rguenther@suse.de>
26138         PR middle-end/70333
26139         * fold-const.c (extract_muldiv_1): Properly perform multiplication
26140         in the wide type.
26142 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
26144         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
26146 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
26148         PR target/70325
26149         * config/i386/i386.c (def_builtin): Handle
26150         OPTION_MASK_ISA_AVX512VL to be and-ed with other
26151         bits.
26152         (const struct builtin_description bdesc_special_args[]):
26153         Remove duplicate ISA bits.
26155 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
26157         PR target/70329
26158         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
26159         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
26160         in a way that works also for AVX512BW.
26162         PR target/70300
26163         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
26164         instead of source if operands[1] is xmm16 and above and
26165         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
26166         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
26168         PR c++/70295
26169         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
26170         on assign if (*from_p) is a comparison, set it to
26171         TREE_NO_WARNING (*from_p).
26173 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
26175         PR middle-end/70326
26176         * lra.c (restore_scratches): Ignore deleted insns.
26178 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
26179             Jakub Jelinek  <jakub@redhat.com>
26181         PR tree-optimization/70317
26182         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
26183         to HONOR_NANS.
26185 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
26187         PR target/70327
26188         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
26189         of ix86_expand_move.
26190         (movoi): Ditto.
26191         (movti): Use general_operand for operand 1 predicate.
26193 2016-03-21  Martin Liska  <mliska@suse.cz>
26195         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
26196         insns.
26197         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
26199 2016-03-21  Martin Liska  <mliska@suse.cz>
26201         PR ipa/70306
26202         * ipa-icf.c (sem_function::parse): Skip static
26203         constructors and destructors.
26205 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
26207         PR target/70296
26208         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
26209         function-like macro, peek following token(s) if it is followed
26210         by CPP_OPEN_PAREN token with optional padding in between, and
26211         if not, don't treat it like a macro.
26213 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26214             Alexander Monakov  <amonakov@ispras.ru>
26216         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
26217         for the stabs debug format.
26219 2016-03-21  Richard Biener  <rguenther@suse.de>
26221         PR tree-optimization/70310
26222         * tree-vect-generic.c (expand_vector_condition): Fold the built
26223         condition.
26225 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
26227         PR target/70293
26228         * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
26229         Block third alternative for AVX-512VL target,
26231 2016-03-21  Martin Liska  <mliska@suse.cz>
26233         PR hsa/70234
26234         * hsa-brig.c (emit_function_directives): Mark unemitted
26235         global variables for emission.
26236         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
26237         (get_symbol_for_decl): Likewise.
26238         * hsa.h (struct hsa_symbol): New flag.
26240 2016-03-21  Richard Biener  <rguenther@suse.de>
26242         PR tree-optimization/70288
26243         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
26244         we do not estimate unsimplified all-constant conditionals or
26245         switches as optimized away.
26247 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
26249         PR rtl-optimization/69102
26250         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
26251         when we have a readonly dependency context.
26253 2016-03-18  Jeff Law  <law@redhat.com>
26255         PR rtl-optimization/70263
26256         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
26257         (update_equiv_regs): When trying to move a store to after the insn
26258         that sets the source of the store, make sure the store occurs after
26259         the insn that sets the source of the store.  When successful note
26260         the REG_EQUIV note created in the dump file.
26262 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
26263             Bernd Schmidt  <bschmidt@redhat.com>
26265         * doc/extend.texi: Document more potential problems with basic asms.
26267 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
26269         PR rtl-optimization/70278
26270         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
26271         VOIDmode.
26273 2016-03-18  Jason Merrill  <jason@redhat.com>
26275         * calls.c (load_register_parameters): Fix zero size sibcall logic.
26277 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
26279         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
26280         values to 128b regs.
26282 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26284         PR tree-optimization/70252
26285         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
26286         boolean vector has a proper number of elements.
26287         (supportable_narrowing_operation): Likewise.
26289 2016-03-18  Tom de Vries  <tom@codesourcery.com>
26291         PR ipa/70269
26292         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
26294 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
26296         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
26297         instead of replace_rtx for DEBUG_INSNs.
26299 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26301         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
26302         load type reservations.
26304 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
26306         PR target/70188
26307         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
26308         define_constraint for "Q" and "T" constraints.
26310 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
26312         Tweak the pipeline model for Exynos M1
26314         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
26315         model.
26317 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
26319         PR c/70264
26320         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
26321         where one or both locations aren't within a line_map.
26323 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26325         PR driver/70192
26326         * opts.c (finish_options): Don't set flag_pie to the default if
26327         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
26328         if it is -1.
26330 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
26332         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
26333         true as ALL_REGS argument to replace_rtx.
26335 2016-03-17  Richard Biener  <rguenther@suse.de>
26337         PR debug/70271
26338         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
26339         last.
26341 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
26343         PR target/70245
26344         * rtl.h (replace_rtx): Add ALL_REGS argument.
26345         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
26346         equality and assert mode is the same, instead of just rtx pointer
26347         equality.
26348         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
26349         true as ALL_REGS argument to replace_rtx.
26351 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
26353         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
26354         for boolean vector with vector mode only.
26355         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
26357 2016-03-17  Nick Clifton  <nickc@redhat.com>
26359         PR target/70162
26360         * config/rx/rx.c (rx_print_integer): Print negative constants in
26361         decimal.
26363 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
26365         PR target/70261
26366         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
26368 2016-03-16  Richard Henderson  <rth@redhat.com>
26369             Richard Biener  <rguenth@suse.de>
26371         PR middle-end/70240
26372         PR middle-end/68215
26373         PR tree-opt/68714
26374         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
26375         first operand as is_gimple_condexpr.
26377         PR middle-end/70240
26378         PR middle-end/68215
26379         Revert r231575
26380         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
26381         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26382         Do not gimplify the result.
26383         (do_unop): Adjust call to tree_vec_extract.
26384         (do_binop): Likewise.
26385         (do_compare): Likewise.
26386         (do_plus_minus): Likewise.
26387         (do_negate): Likewise.
26388         (expand_vector_condition): Likewise.
26389         (do_cond): Likewise.
26391 2016-03-16  Richard Henderson  <rth@redhat.com>
26393         PR target/70048
26394         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26395         (aarch64_classify_address): Use it.
26396         (aarch64_legitimize_address): Force all subexpressions of PLUS
26397         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
26399 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
26400             Richard Biener  <rguenth@suse.de>
26402         PR target/70245
26403         * rtlanal.c (replace_rtx): For REG, if from is a REG,
26404         return to even if only REGNO is equal, and assert
26405         mode is the same.
26407 2016-03-11  Jeff Law  <law@redhat.com>
26409         PR rtl-optimization/70224
26410         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26412 2016-03-16  Richard Henderson  <rth@redhat.com>
26414         PR middle-end/70199
26415         * function.h (struct function): Add has_forced_label_in_static.
26416         * gimplify.c (force_labels_r): Set it.
26417         * lto-streamer-in.c (input_struct_function_base): Read it.
26418         * lto-streamer-out.c (output_struct_function_base): Write it.
26419         * tree-inline.c (has_label_address_in_static_1): Remove.
26420         (copy_forbidden): Remove fndecl parameter; test
26421         has_forced_label_in_static.
26422         (inline_forbidden_p): Update call to copy_forbidden.
26423         (tree_versionable_function_p): Likewise.
26424         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26425         (chkp_versioning): Likewise.
26426         * tree-inline.h (copy_forbidden): Update decl.
26428 2016-03-16  Marek Polacek  <polacek@redhat.com>
26430         PR c/70093
26431         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26432         function being thunked if the result type doesn't have fixed size.
26433         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26434         doesn't have fixed size.
26436 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
26438         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26439         reporting malformed loop nest.
26441 2016-03-16  Tom de Vries  <tom@codesourcery.com>
26443         PR lto/70187
26444         * ipa-devirt.c (possible_polymorphic_call_targets): Move
26445         nodes.length () == 1 test to before first nodes[0] access.
26447 2016-03-16  Tom de Vries  <tom@codesourcery.com>
26449         PR tree-optimization/68715
26450         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26451         single_pred_p test.
26453 2016-03-16  Tom de Vries  <tom@codesourcery.com>
26455         PR tree-optimization/68809
26456         * graphite-scop-detection.c (same_close_phi_node): Test if result types
26457         are the same.
26459 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
26460             Sandra Loosemore  <sandra@codesourcery.com>
26462         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26463         on leaf attribute. Mention ELF interposition problems.
26465 2016-03-16  Alan Modra  <amodra@gmail.com>
26467         PR rtl-optimization/69195
26468         PR rtl-optimization/47992
26469         * ira.c (indirect_jump_optimize): Ignore artificial defs.
26470         Add comments.
26472 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
26474         PR bootstrap/69513
26475         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26477 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26479         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26481 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
26483         PR rtl-optimization/70222
26484         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26485         optimization if mode is different from result_mode, queue up masking
26486         of the result in outer_op.  Formatting fix.
26488         PR middle-end/70239
26489         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26490         of safe_grow.
26492 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
26494         PR rtl-optimization/69032
26495         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26496         looping backwards over basic block insns.
26498 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
26500         PR target/66660
26501         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26502         to non-speculative when propagating trap bits.
26504 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
26506         PR rtl-optimization/63384
26507         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26508         DEBUG_INSN_P insns.
26510 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
26512         PR target/64411
26513         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26514         factored out from ...
26515         (sched_analyze_insn): ... here.
26516         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26517         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26518         get_implicit_reg_pending_clobbers in it.
26519         (setup_id_reg_sets): Use setup_id_implicit_regs.
26520         (deps_init_id): Ditto.
26522 2016-03-15  Tom de Vries  <tom@codesourcery.com>
26524         PR ipa/70161
26525         * cgraph.c (cgraph_node::get_body): Save, reset and restore
26526         dump_file_name.
26527         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26528         execute_function_dump.
26529         (execute_one_pass): Don't dump function if it will be dumped after ipa
26530         transform.
26532 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
26534         * genrecog.c (match_pattern_2): If pred is NULL don't call
26535         safe_predicate_mode on it.
26537 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
26539         PR middle-end/70219
26540         * lra-constraints.c (delete_move_and_clobber): Change assertion
26541         to also allow dregno == 0.
26543 2016-03-14  Richard Henderson  <rth@redhat.com>
26545         PR tree-opt/68714
26546         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26547         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26548         (reassociate_bb): Use optimize_vec_cond_expr; avoid
26549         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26550         on vectors.
26552 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
26554         PR target/70083
26555         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26556         regs.
26557         (lra_create_live_ranges_1): initialize hard register biggest_mode to
26558         VOIDmode.
26559         * lra-constraints.c (split_reg): For hard regs, try to find the
26560         biggest single-register mode used in the function.
26562 2016-03-14  Richard Biener  <rguenther@suse.de>
26564         PR tree-optimization/56365
26565         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26566         constants to compare against.
26568 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
26570         PR target/70098
26571         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26572         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26573         (define_split for the GPR case): Use int_reg_operand instead of
26574         gpc_reg_operand for the output.
26576 2016-03-14  Tom de Vries  <tom@codesourcery.com>
26578         PR tree-optimization/70045
26579         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26580         create_empty_if_region_on_edge argument.
26582 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
26584         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26585         (STACK_CHECK_PROTECT): Likewise.
26586         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26587         (STACK_CHECK_PROTECT): Likewise.
26588         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26589         (STACK_CHECK_PROTECT): Likewise.
26590         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26591         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26592         (STACK_CHECK_PROTECT): Likewise.
26594 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
26596         PR rtl-optimization/69307
26597         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26598         registers in modes that span more than one register.
26600 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
26602         PR target/69614
26603         * lra-constraints.c (delete_move_and_clobber): New.
26604         (remove_inheritance_pseudos): Use it.
26606 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
26608         PR ada/70017
26609         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26610         the libcall is LCT_THROW.
26611         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26612         for the checking routine.
26614 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26616         PR target/70131
26617         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26618         optimization if we have direct move.
26619         (roundu32<mode>2_fprs): Likewise.
26621 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
26623         PR target/70123
26624         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26625         be rematerialized.
26626         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26627         Arguments swapped.  All callers changed.  Take reg_renumber into
26628         account, and Calculate and compare register ranges for hard regs.
26630 2016-03-11  Jeff Law  <law@redhat.com>
26632         PR tree-optimization/70190
26633         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26634         Handle cases where we can not extract the taken edge, even though we
26635         found a constant value.
26637         PR tree-optimization/64058
26638         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26639         (num_coalesce_pairs): Move up earlier in file.
26640         (find_coalesce_pair): Initialize the INDEX field for each pair
26641         discovered.
26642         (compare_pairs): No longer sort on the elements in each pair.
26643         Instead break ties with the index of the coalesce pair.
26645 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26647         PR target/70002
26648         * config/aarch64/aarch64-protos.h
26649         (aarch64_save_restore_target_globals): New prototype.
26650         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26651         Call the above when popping pragma.
26652         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26653         New function.
26654         (aarch64_set_current_function): Rewrite using the above.
26656 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
26658         PR tree-optimization/70177
26659         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26660         (extract_ops_from_tree): ... this.  In the 2 argument
26661         overload remove _1 suffix.
26662         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26663         (extract_ops_from_tree): ... this.
26664         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26665         Adjust callers.
26666         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26667         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26668         extract_ops_from_tree instead of 2 operand one.
26670 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
26672         PR tree-optimization/70013
26673         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26674         for constant-pool entries.
26676 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
26678         PR rtl-optimization/70174
26679         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26680         followed by gen_lowpart on force_reg instead of just gen_lowpart.
26682         PR tree-optimization/70169
26683         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26684         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
26685         for unknown codes.
26687 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
26688             Jakub Jelinek  <jakub@redhat.com>
26690         PR target/70160
26691         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26692         of uninitialized values.
26694 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26696         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26697         define_expand.
26698         ("*trunctddd2"): New pattern definition.
26699         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26700         TD->DD truncation.
26702 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26704         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26705         definitions for BFP and DFP rounding modes.
26706         ("fixuns_truncdddi2", "fixuns_trunctddi2")
26707         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26708         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26709         ("fix_trunctf<mode>2"): Use the new constants instead of magic
26710         numbers.
26712 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26714         * config/s390/constraints.md: Adjust comment.
26715         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
26716         s390_decompose_addrstyle_without_index.
26717         * config/s390/predicates.md (shift_count_or_setmem_operand):
26718         Rename to setmem_operand.
26719         * config/s390/s390-protos.h
26720         (s390_decompose_shift_count): Rename to
26721         s390_decompose_addrstyle_without_index.
26722         * config/s390/s390.c (s390_decompose_shift_count)
26723         (s390_mem_constraint, print_shift_count_operand)
26724         (print_operand_address, print_operand): Rename
26725         s390_decompose_shift_count to
26726         s390_decompose_addrstyle_without_index and rename
26727         print_shift_count_operand to print_addrstyle_operand troughout the
26728         file.
26729         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26730         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26731         Rename shift_count_or_setmem_operand to setmem_operand.
26732         * config/s390/vx-builtins.md ("vec_insert<mode>")
26733         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26734         nonmemory_operand.
26736 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26738         PR target/70168
26739         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26740         Handle overlapping retval and newval.
26742 2016-03-10  Nick Clifton  <nickc@redhat.com>
26744         PR target/7044
26745         * config/aarch64/aarch64.c
26746         (aarch64_override_options_after_change_1): When forcing
26747         flag_omit_frame_pointer to be true, use a special value that can
26748         be detected if this function is called again, thus preventing
26749         flag_omit_leaf_frame_pointer from being forced to be false.
26751 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26753         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26754         Set x_flag_omit_leaf_frame_pointer when handling
26755         -momit-leaf-frame-pointer.
26757 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26759         PR lto/69589
26760         * cgraph.c (cgraph_node::dump): Dump split_part and
26761         indirect_call_target.
26762         * cgraph.h (cgraph_node): Add indirect_call_target flag.
26763         * ipa.c (has_addr_references_p): Cleanup.
26764         (is_indirect_call_target_p): New.
26765         (walk_polymorphic_call_targets): Do not mark virtuals that may be
26766         called indirectly as local.
26767         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26769 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26771         PR ipa/69630
26772         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26773         on cxa_pure_virtual.
26775 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26777         PR lto/69589
26778         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26780 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
26782         PR lto/69589
26783         * tree.c (need_assembler_name_p): Only record main variant type names.
26785 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
26787         PR target/70113.
26788         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26789         Always define to 0 or 1.
26790         (TARGET_FIX_ERR_A53_843419): New macro.
26791         * config/aarch64/aarch64-elf-raw.h
26792         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26793         * config/aarch64/aarch64-linux.h: Likewise.
26794         * config/aarch64/aarch64.c
26795         (aarch64_override_options_after_change_1): Do not default
26796         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26797         843419 is on.
26798         (aarch64_attributes): Handle fix-cortex-a53-843419.
26799         (aarch64_can_inline_p): Likewise.
26800         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26802 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
26803             Jakub Jelinek  <jakub@redhat.com>
26805         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26806         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26807         DECL_COMMONS if flag_unconstrained_commons is set.
26808         * tree-dfa.c (get_ref_base_and_extent): Likewise.
26809         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26810         (funconstrained-commons): Document.
26812 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
26814         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26815         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26817 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
26819         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26820         has a proper number of elements.
26822 2016-03-10  Alan Modra  <amodra@gmail.com>
26824         PR rtl-optimization/69195
26825         PR rtl-optimization/47992
26826         * ira.c (recorded_label_ref): Delete.
26827         (update_equiv_regs): Return void.
26828         (indirect_jump_optimize): New function.
26829         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26830         before regstat_compute_ri.  Don't rebuild_jump_labels here.
26831         Delete update_regstat.
26833 2016-03-10  Richard Biener  <rguenther@suse.de>
26835         PR tree-optimization/70128
26836         * tree-ssa-structalias.c (set_uids_in_ptset): Set
26837         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26839 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
26841         PR tree-optimization/70152
26842         * tree-sra.c (replace_removed_params_ssa_names): Copy over
26843         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26845         PR target/70086
26846         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26847         instead of gen_sse2_loadlpd.
26848         * config/i386/sse.md (*vec_concatv2df): Rename to...
26849         (vec_concatv2df): ... this.
26851         PR tree-optimization/70127
26852         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26854 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
26856         PR c/68473
26857         PR c++/70105
26858         * diagnostic-show-locus.c (compatible_locations_p): New function.
26859         (layout::layout): Sanitize ranges using compatible_locations_p.
26861 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
26863         PR c/68473
26864         PR c++/70105
26865         * diagnostic-show-locus.c (layout_range::layout_range): Replace
26866         location_range param with three const expanded_locations * and a
26867         bool.
26868         (layout::layout): Replace call to
26869         rich_location::lazily_expand_location with get_expanded_location.
26870         Extract the range and perform location expansion here, passing
26871         the results to the layout_range ctor.
26872         * diagnostic.c (source_range::debug): Delete.
26873         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26874         of rich_location::get_expanded_location.
26875         * gcc-rich-location.c (get_range_for_expr): Delete.
26876         (gcc_rich_location::add_expr): Reimplement to avoid the
26877         rich_location::add_range overload that took a location_range,
26878         passing a location_t instead.
26880 2016-03-09  Richard Biener  <rguenther@suse.de>
26881         Jakub Jelinek  <jakub@redhat.com>
26883         PR tree-optimization/70138
26884         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26885         Also skip vect_double_reduction_def.
26887 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
26889         PR target/70049
26890         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26891         if the operand is "m".
26893 2016-03-09  Nathan Sidwell  <nathan@acm.org>
26895         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26897 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26899         * config/i386/i386.c (processor_target_table): Fix cost table
26900         intialization order for znver1.
26902 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
26904         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26905         - becuase -> because.
26906         * ipa-reference.c (ignore_module_statics): Likewise.
26907         * cgraph.c (cgraph_node::get_body): Likewise.
26908         * ipa-inline.c (early_inliner): Likewise.
26909         * ipa-devirt.c (types_same_for_odr): Likewise.
26910         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26911         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26913 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26915         * tree-ssa-math-opts.c: Fix typo in comment.
26917 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
26919         PR target/70110
26920         * config/i386/i386.c (scalar_chain::make_vector_copies,
26921         scalar_chain::convert_reg): Call end_sequence in between
26922         get_insns and emit_conversion_insns rather than after both
26923         calls.
26925 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
26927         PR target/70064
26928         * config/i386/i386.h (machine_function): Add
26929         pc_thunk_call_expanded flag.
26930         (ix86_pc_thunk_call_expanded): New define.
26931         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26932         (*set_got): Rename insn pattern from set_got.
26933         (*set_got_labelled): Rename inst pattern from set_got_labelled.
26934         * config/i386/i386.c (ix86_compute_frame_layout): Use
26935         ix86_pc_thunk_call_expanded to prevent red-zone.
26937 2016-03-07  Martin Jambor  <mjambor@suse.cz>
26939         * hsa.h (hsa_get_ctor_statements): Declare.
26940         (hsa_get_dtor_statements): Likewise.
26941         (hsa_get_kernel_dispatch_type): Likewise.
26942         * hsa.c (hsa_get_ctor_statements): New function.
26943         (hsa_get_dtor_statements): Likewise.
26944         (hsa_get_kernel_dispatch_type): Likewise.
26945         * hsa-brig.c (hsa_cdtor_statements): Removed.
26946         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26947         hsa_get_dtor_statements.
26948         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26949         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26951 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26953         * config/arm/arm-cores.def (cortex-r8): New.
26954         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26955         * config/arm/arm-tune.md: Likewise.
26956         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26958 2016-03-07  Martin Sebor  <msebor@redhat.com>
26960         PR rtl-optimization/19705
26961         * doc/invoke.texi (Options That Control Optimization): Clarify
26962         -fno-branch-count-reg.
26964 2016-02-26  Richard Biener  <rguenther@suse.de>
26965             Jeff Law  <law@redhat.com>
26967         PR tree-optimization/69740
26968         * cfghooks.c (remove_edge): Request loop fixups if we delete
26969         an edge that might turn an irreducible loop into a natural
26970         loop.
26971         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26972         Move after definition of loops_state_clear.
26974 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
26976         PR rtl-optimization/69052
26977         * rtlanal.c (commutative_operand_precedence): Set higher precedence
26978         to CONST_WIDE_INT.
26980 2016-03-07  Tom de Vries  <tom@codesourcery.com>
26982         PR tree-optimization/70116
26983         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26984         is_tm_ending stmts and ubsan/asan internal functions.
26985         (find_duplicate): Use it.  Don't test is_tm_ending here.
26987 2016-03-07  Richard Biener  <rguenther@suse.de>
26989         PR tree-optimization/70115
26990         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26991         (propagate_constants_for_unrolling): Use replace_uses_by.
26993 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
26995         PR middle-end/69916
26996         * omp-low.c (struct oacc_loop): Add ifns.
26997         (new_oacc_loop_raw): Initialize it.
26998         (finish_oacc_loop): Clear mask & flags if no ifns.
26999         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
27000         (oacc_loop_xform_loop): Add ifns arg & adjust.
27001         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
27003 2016-03-07  Richard Henderson  <rth@redhat.com>
27005         PR rtl-opt/70061
27006         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
27007         (insert_value_copy_on_edge): Likewise.
27009 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27011         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
27013 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27015         PR target/62281
27016         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
27018 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
27020         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
27022 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
27024         Fix sseimul type attribute.
27025         * config/i386/znver1.md
27026         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
27027         znver1_sseimul_avx256_load) : Fix the type attribute.
27028         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
27029         pipe usage and latency.
27031 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
27033         PR c++/70084
27034         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
27035         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
27036         to the right type.
27038 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
27040         PR c/69973
27041         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
27043         PR rtl-optimization/69941
27044         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
27045         the reg share its mode.
27047 2016-03-04  Jeff Law  <law@redhat.com>
27049         PR tree-optimization/69196
27050         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27051         If the both SSA_NAMEs are anonymous, then consider them unassociated
27052         and include the PHI in the statement count.
27054 2016-03-05  Tom de Vries  <tom@codesourcery.com>
27056         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
27057         construct in oacc routine.  Check for oacc region in oacc routine.
27059 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
27061         PR target/70062
27062         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
27063         2016-02-22 changes, instead don't recurse if RECUR is already true.
27064         Don't change *dynamic_check if RECUR.  Adjust recursive caller
27065         to pass true to the new argument.
27066         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
27068         PR target/70059
27069         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
27070         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
27071         fixes.
27072         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
27074 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
27076         PR rtl-optimization/57676
27077         * lra-assigns.c (lra_assign): Guard test for maximum iterations
27078         with flag_checking.
27080 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
27082         * tree-vect-patterns.c (search_type_for_mask): Handle
27083         comparison of booleans.
27085 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
27087         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
27088         Fix @xref usage.
27090         PR debug/69947
27091         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
27092         all other ops that have dw_val_class_die_ref operands,
27093         and DW_OP_GNU_entry_value.
27095 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27097         PR rtl-optimization/69904
27098         * config/arm/arm.c (arm_cannot_copy_insn_p):
27099         Return true for load-exclusive instructions.
27101 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
27103         PR target/70021
27104         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
27105         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
27106         the pattern no matter if it is used just by non-pattern, pattern
27107         or mix thereof.
27108         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
27109         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
27110         oprnd1 def_stmt is in pattern, don't look through it.
27112 2016-03-03  Marek Polacek  <polacek@redhat.com>
27114         PR middle-end/70050
27115         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
27117 2016-03-03  Martin Liska  <mliska@suse.cz>
27119         PR tree-optimization/70043
27120         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
27121         previous statement if we see a debug statement.
27123 2016-03-03  Richard Biener  <rguenther@suse.de>
27125         PR tree-optimization/55936
27126         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
27127         parameter and guard unsafe equivalence use.
27128         (vrp_evaluate_conditional_warnv_with_ops): Always use
27129         safe equivalences but not via the quadratic compare_names
27130         helper.
27132 2016-03-03  Michael Collison  <michael.collison@linaro.org>
27134         PR target/70014
27135         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
27136         for operand 1 to s_register_operand. Change predicate for operand
27137         2 to arm_not_immediate_operand.
27139 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
27141         * doc/tm.texi: Regenerated.
27143 2016-03-02  Richard Henderson  <rth@redhat.com>
27145         PR rtl-opt/67145
27146         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
27147         simplification when all args are positive non-fixed registers.
27149 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27151         * target.def (lra_p): Specify that new ports should use LRA.
27153 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
27155         PR libgomp/69555
27156         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
27157         gimplify_type_sizes the type they refer to.
27158         (omp_notice_variable): Handle reference vars to VLAs.
27159         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
27160         reference to VLA decls in the second pass instead of first pass.
27162 2016-03-02  Tom de Vries  <tom@codesourcery.com>
27164         PR tree-optimization/68659
27165         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
27166         new_expr == NULL_TREE.
27167         (get_new_name): Handle ADDR_EXPR.
27169 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
27171         PR rtl-optimization/69052
27172         * loop-invariant.c (canonicalize_address): New function.
27173         (inv_can_prop_to_addr_use): Check validity of address expression
27174         which is canonicalized by above function.
27176 2016-03-02  Alan Modra  <amodra@gmail.com>
27178         PR ipa/69990
27179         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
27180         larger alignment.
27182 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
27184         PR target/70028
27185         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
27186         (*movhi_internal): Put mask moves from and to memory separately
27187         from moves from/to GPRs.
27189 2016-03-02  Richard Biener  <rguenther@suse.de>
27191         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
27192         GENERIC expressions in GIMPLE.
27194 2016-03-02  Richard Biener  <rguenther@suse.de>
27196         * config/i386/i386.c (type_natural_mode): Fix typo.
27198 2016-03-02  Nick Clifton  <nickc@redhat.com>
27200         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
27202 2016-03-02  Richard Biener  <rguenther@suse.de>
27203             Uros Bizjak  <ubizjak@gmail.com>
27205         PR target/67278
27206         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
27208 2016-03-02  Richard Biener  <rguenther@suse.de>
27210         PR middle-end/67278
27211         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
27213 2016-03-02  Marek Polacek  <polacek@redhat.com>
27215         PR c/67854
27216         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
27217         "is promoted to" warning.
27219 2016-03-01  DJ Delorie  <dj@redhat.com>
27221         * config.gcc: Deprecate mep-*.
27223 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
27225         PR middle-end/70025
27226         * lra-constraints.c (regno_val_use_in): New.
27227         (match_reload): Use it instead of regno_use_in.
27229 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
27231         PR rtl-optimization/70007
27232         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
27233         references present in REG_EQUAL notes attached to non-SET patterns.
27235 2016-03-01  Jeff Law  <law@redhat.com>
27237         PR tree-optimization/69196
27238         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27239         Appropriately clamp the number of statements to copy when the
27240         thread path does not traverse a loop backedge.
27242         PR tree-optimization/69196
27243         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27244         Do count some PHIs in the thread path against the insn count.  Decrease
27245         final statement count by one as the control statement in the last
27246         block will get removed.  Remove special cased code for handling PHIs
27247         in the last block.
27249 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
27251         PR target/70027
27252         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
27253         asm dialect alternatives to explicit GOTPCREL calls.
27255 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
27257         PR ada/70017
27258         * ira.c (do_reload): Issue warning for generic stack checking here...
27259         * reload1.c (reload): ...instead of here and streamline it.
27261 2016-03-01  Nick Clifton  <nickc@redhat.com>
27263         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
27265 2016-03-01  Richard Biener  <rguenther@suse.de>
27267         PR tree-optimization/69983
27268         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
27269         types and fall back to operand_equal_p.
27271 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27273         Revert
27274         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27276         * config/s390/constraints.md ("jm8"): New constraint.
27277         * config/s390/predicates.md ("const_int_8bitset_operand"): New
27278         predicate.
27279         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
27280         into ...
27281         ("*setmem_long<setmem_and>"): New pattern.
27282         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
27283         into ...
27284         ("*setmem_long_31z<setmem_and>"): New pattern.
27285         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
27286         New substitution rules with the required attributes.
27289 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27291         Revert
27292         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27294         * gensupport.c (process_substs_on_one_elem): Split loop to
27295         complete mark_operands_used_in_match_dup on all expressions in the
27296         vector first.
27297         (adjust_operands_numbers): Inline into process_substs_on_one_elem
27298         and remove function.
27300 2016-03-01  Richard Biener  <rguenther@suse.de>
27302         PR middle-end/70022
27303         * fold-const.c (fold_indirect_ref_1): Fix range checking for
27304         vector BIT_FIELD_REF extract.
27306 2016-03-01  Richard Biener  <rguenther@suse.de>
27308         PR tree-optimization/69994
27309         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
27311 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
27313         PR tree-optimization/69956
27314         * tree-vect-stmts.c (supportable_widening_operation): Support
27315         multi-step conversion of boolean vectors.
27316         (supportable_narrowing_operation): Likewise.
27318 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27320         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
27321         anymore.
27323 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27325         * config/s390/subst.md (DSI_VI): New mode iterator.
27326         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
27327         * config/s390/vector.md ("vec_set<mode>"): Move expander before
27328         the insn definition.
27329         ("*vec_set<mode>"): Change predicate and add alternative to
27330         support only either register or const_int operands as element
27331         selector.
27332         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
27333         operands.
27334         ("vec_extract<mode>"): New expander.
27335         ("*vec_extract<mode>"): New insn definition supporting reg and
27336         const_int element selectors.
27337         ("*vec_extract<mode>_plus"): New insn definition supporting
27338         reg+const_int element selectors.
27339         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
27340         following expander+insn definition.
27341         ("<vec_shifts_name><mode>3"): New expander.
27342         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
27344 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27346         * config/s390/s390.md ("*tabort_1"): Change predicate to
27347         nonmemory_operand.  Add a second alternative to cover
27348         register as well as const int operands.
27349         ("*tabort_1_plus"): New pattern definition.
27351 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27353         * config/s390/s390.md ("*ashrdi3_cc_31")
27354         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
27355         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
27356         Merge insn definitions into ...
27357         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27358         New pattern definition.
27359         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
27360         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
27361         ("*ashr<mode>3_and"): Merge insn definitions into ...
27362         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27363         New pattern definition.
27364         * config/s390/subst.md ("addr_style_op_cc_subst")
27365         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
27366         substitutions patterns plus attributes.
27367         Add ashiftrt to SUBST iterator.
27369 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27371         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
27372         op2 to nonmemory_operand.
27373         ("*<shift>di3_31", "*<shift>di3_31_and"):
27374         Merge into single pattern definition ...
27375         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
27376         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
27377         pattern definition ...
27378         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27379         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27380         iterator.
27382 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27384         * config/s390/predicates.md (const_int_6bitset_operand): New
27385         predicate.
27386         * config/s390/s390.md: Include subst.md.
27387         ("rotl<mode>3"): New expander.
27388         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27389         ...
27390         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27391         * config/s390/subst.md: New file.
27393 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27395         * config/s390/s390.md ("op_type", "atype", "length" attributes):
27396         Remove RRR type.  It doesn't really exist.
27397         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27398         attributes.
27399         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27400         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27401         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27402         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27403         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27404         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27405         `enabled' attribute.
27407 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27409         * gensupport.c (process_substs_on_one_elem): Split loop to
27410         complete mark_operands_used_in_match_dup on all expressions in the
27411         vector first.
27412         (adjust_operands_numbers): Inline into process_substs_on_one_elem
27413         and remove function.
27415 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
27417         PR target/69706
27418         * config/sparc/sparc.c (NWORDS_UP): Rename to...
27419         (CEIL_NWORDS): ...this.  Use CEIL macro.
27420         (compute_fp_layout): Adjust to above renaming.
27421         (function_arg_union_value): Likewise.
27422         (sparc_arg_partial_bytes): Likewise.
27423         (sparc_function_arg_advance): Likewise.
27425 2016-02-29  Jeff Law  <law@redhat.com>
27427         PR tree-optimization/70005
27428         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27429         where an object with a boolean range is compared against a value
27430         outside [0..1].
27432         PR tree-optimization/69999
27433         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27434         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27435         loop cleanups.
27437 2016-02-29  Richard Biener  <rguenther@suse.de>
27439         PR tree-optimization/69994
27440         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27441         (get_unary_op): Look through nop conversions.
27442         (ops_equal_values_p): New function, look for equality diregarding
27443         nop conversions.
27444         (eliminate_plus_minus_pair): Use ops_equal_values_p
27445         (repropagate_negates): Do not use get_unary_op here.
27447 2016-02-29  Martin Liska  <mliska@suse.cz>
27449         * system.h: Poison ENABLE_CHECKING macro.
27451 2016-02-29  Martin Liska  <mliska@suse.cz>
27453         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27454         is presented in dump flags.
27455         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27456         (hsa_regalloc): Likewise.
27458 2016-02-19  Richard Biener  <rguenther@suse.de>
27460         PR tree-optimization/69980
27461         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27462         permutation of those we need to keep.
27464 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
27466         PR target/69706
27467         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27468         (NWORDS_UP): ...this
27469         (init_cumulative_args): Minor tweaks.
27470         (sparc_promote_function_mode): Likewise.
27471         (scan_record_type): Delete.
27472         (traverse_record_type): New function template.
27473         (classify_data_t): New structure type.
27474         (classify_registers): New inline function.
27475         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27476         exhausted.  Instantiate traverse_record_type on classify_registers and
27477         deal with the case of a structure passed in slot #15 with no FP field
27478         in the first word.
27479         (assign_data_t): New structure type.
27480         (compute_int_layout): New static function.
27481         (compute_fp_layout): Likewise.
27482         (count_registers): New inline function.
27483         (assign_int_registers): New static function.
27484         (assign_fp_registers): Likewise.
27485         (assign_registers): New inline function.
27486         (function_arg_record_value_1): Delete.
27487         (function_arg_record_value_2): Likewise.
27488         (function_arg_record_value_3): Likewise.
27489         (function_arg_record_value): Adjust to above changes.  Instantiate
27490         traverse_record_type on count_registers to first count the number of
27491         registers to be used and then on assign_registers to assign them.
27492         (function_arg_union_value): Adjust to above renaming.
27493         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
27494         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
27495         case of a structure passed in slot #15
27496         (sparc_function_arg_advance): Likewise.
27497         (function_arg_padding): Minor tweak.
27499 2016-02-29  Richard Biener  <rguenther@suse.de>
27501         PR tree-optimization/69720
27502         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27503         the adjustment_def path for possibly vectorized defs.
27504         (vect_create_epilog_for_reduction): Handle vectorized initial
27505         defs properly.
27507 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
27509         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27511 2016-02-27  Jeff Law  <law@redhat.com>
27513         Revert
27514         2016-02-26  Richard Biener  <rguenther@suse.de>
27515                     Jeff Law  <law@redhat.com>
27517         PR tree-optimization/69740
27518         * cfghooks.c (remove_edge): Request loop fixups if we delete
27519         an edge that might turn an irreducible loop into a natural
27520         loop.
27522 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
27524         PR rtl-optimization/69896
27525         * tree-vect-generic.c (get_compute_type): Avoid single element
27526         vector types.
27528 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
27530         Rename the AArch64 tuning option and related functions to enable the
27531         Newton series for the reciprocal square root to reflect its
27532         approximative characteristic.
27534         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27535         function to "aarch64_emit_approx_rsqrt".
27536         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27537         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27538         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27539         (xgene1_tunings): Likewise.
27540         (use_rsqrt_p): Likewise.
27541         (aarch64_emit_swrsqrt): Use new function name.
27542         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27543         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27544         text explaining this option.
27545         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27547 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
27549         PR target/69969
27550         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27551         complain about -mallow-movmisalign without -mvsx if
27552         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27554 2016-02-26  Joel Sherrill  <joel@rtems.org>
27556         * config.gcc: Add x86_64-*-rtems*.
27557         * config/i386/rtems-64.h: New file.
27559 2016-02-26  Joel Sherrill  <joel@rtems.org>
27561         * config.gcc: Add aarch64-*-rtems*.
27562         * config/aarch64/rtems.h: New file.
27564 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
27566         PR target/69946
27567         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27568         shift amount using %h.  Add comment.
27570 2016-02-26  Richard Biener  <rguenther@suse.de>
27571             Jeff Law  <law@redhat.com>
27573         PR tree-optimization/69740
27574         * cfghooks.c (remove_edge): Request loop fixups if we delete
27575         an edge that might turn an irreducible loop into a natural
27576         loop.
27578 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27580         PR middle-end/69920
27581         * tree-sra.c (sra_modify_assign): Do not remove loads of
27582         uninitialized aggregates to SSA_NAMEs.
27584 2016-02-26  Richard Henderson  <rth@redhat.com>
27586         PR target/69709
27587         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27588         pseudo in case the target rtx matches the source of the left
27589         shift.
27591 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27593         PR hsa/69568
27594         * hsa.h (hsa_type_packed_p): Declare.
27595         * hsa.c (hsa_type_packed_p): New function.
27596         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27597         loads.
27598         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27599         * hsa-brig.c (emit_basic_insn): Likewise.
27601 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27603         pr hsa/69674
27604         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27605         pointers.
27606         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27608 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27610         * hsa.h (is_a_helper): New overload for hsa_op_immed for
27611         hsa_op_with_type operands.
27612         (hsa_unsigned_type_for_type): Declare.
27613         * hsa.c (hsa_unsigned_type_for_type): New function.
27614         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27615         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27616         the finalizer.  Do not emit extra move.
27618 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27620         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27621         atomic operations in private segment.
27623 2016-02-26  Martin Jambor  <mjambor@suse.cz>
27625         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27626         statements to wi->info.  Also disallow omp simd constructs.
27627         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27628         for not gridifying.  Dump special string for omp_for.
27630 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27632         PR target/69245
27633         * config/aarch64/aarch64.c (aarch64_set_current_function):
27634         Save/restore target globals when switching to
27635         target_option_default_node.
27637 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27639         PR target/69613
27640         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27641         Return 0 if !SHIFT_COUNT_TRUNCATED.
27643 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
27644             Eric Botcazou  <ebotcazou@adacore.com>
27646         PR rtl-optimization/69891
27647         * dse.c (scan_insn): If we can't figure out memset arguments
27648         or they are non-constant, call clear_rhs_from_active_local_stores.
27650 2016-02-26  Martin Liska  <mliska@suse.cz>
27652         * doc/extend.texi: Mention clog10, clog10f an clog10l
27653         in Builtins section.
27655 2016-02-26  Martin Liska  <mliska@suse.cz>
27657         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27658         CHECKING_P.
27659         (resolve_args_picking_1): Likewise.
27660         * dwarf2out.h (struct GTY): Likewise.
27662 2016-02-26  Martin Liska  <mliska@suse.cz>
27664         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27665         with flag_checking.
27666         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27668 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27669             Martin Liska  <mliska@suse.cz>
27671         * doc/install.texi: Mention --enable-valgrind-annotations.
27673 2016-02-26  Richard Biener  <rguenther@suse.de>
27675         PR tree-optimization/69551
27676         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27677         looking through aliases adjust DECL_PT_UID to refer to the
27678         ultimate alias target.
27680 2016-02-25  Martin Liska  <mliska@suse.cz>
27682         PR middle-end/69919
27683         * alloc-pool.c (after_memory_report): New variable.
27684         * alloc-pool.h (base_pool_allocator ::release): Do not use
27685         the infrastructure if after_memory_report.
27686         * toplev.c (toplev::main): Mark after memory report.
27688 2016-02-25  Richard Biener  <rguenther@suse.de>
27690         PR tree-optimization/48795
27691         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27693 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
27695         PR driver/68463
27696         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
27697         offloading is enabled and -fopenacc or -fopenmp is specified.
27698         (CRTOFFLOADEND): Likewise.
27699         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27700         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27701         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27702         (offload_objects_file_name): New static var.
27703         (tool_cleanup): Remove offload_objects_file_name file.
27704         (find_offloadbeginend): Replace with ...
27705         (find_crtoffloadtable): ... this.
27706         (run_gcc): Remove offload_argc and offload_argv.
27707         Get offload_objects_file_name from -foffload-objects=... option.
27708         Read names of object files with offload from this file, pass them to
27709         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
27710         don't pass offloadbegin and offloadend to the linker.  Don't pass
27711         offload non-LTO files to the linker, because now they're not claimed.
27713 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
27715         PR ipa/69630
27716         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27717         on builtin_unreachable.
27719 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
27721         PR rtl-optimization/69896
27722         * regcprop.c: Include cfgrtl.h.
27723         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27724         than remembered mode, either delete it (if noop_move_p), or
27725         treat like copy_p but not noop_p instruction.
27727 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27729         PR debug/69705
27730         * dwarf2out.c (gen_variable_die): Work around buggy LTO
27731         - allow NULL decl for Fortran DW_TAG_common_block variables.
27733 2016-02-24  Jason Merrill  <jason@redhat.com>
27735         * common.opt (flifetime-dse): Add -flifetime-dse=1.
27737 2016-02-24  Richard Biener  <rguenther@suse.de>
27738             Jakub Jelinek  <jakub@redhat.com>
27740         PR middle-end/69760
27741         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27742         conditionally executed ops to well-defined overflow behavior.
27744 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27746         PR middle-end/69915
27747         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27748         elements.
27750 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27752         PR rtl-optimization/69886
27753         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27754         argument.  Use it when checking validity of set instructions.
27755         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27756         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27757         callsite.
27758         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27759         * store-motion.c (find_moveable_store): Update
27760         can_assign_to_reg_without_clobbers_p callsite.
27762 2016-02-24  Richard Biener  <rguenther@suse.de>
27764         PR middle-end/68963
27765         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27766         bogus check.
27767         (record_nonwrapping_iv): Do not fall back to the low/high bound
27768         for non-constant IV bases if the stmt is not always executed.
27770 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27772         * config/arm/arm-cores.def (cortex-a32): New entry.
27773         * config/arm/arm-tables.opt: Regenerate.
27774         * config/arm/arm-tune.md: Regenerate.
27775         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27776         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27777         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27778         for -mcpu and -mtune.
27780 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27782         PR target/69875
27783         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27784         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27785         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27786         (atomic_loaddi_1): Delete.
27787         (atomic_loaddi): Rewrite expander using the above changes.
27789 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27791         PR c/69918
27792         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27793         2 to 3.
27795 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
27796             Richard Biener  <rguenth@suse.de>
27798         PR middle-end/69909
27799         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27800         set_mem_attributes if tem is SSA_NAME which got expanded
27801         as a MEM.
27803 2016-02-24  Richard Biener  <rguenther@suse.de>
27805         PR tree-optimization/69907
27806         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27807         end of permutations for BB vectorization.
27809 2016-02-24  Christian Bruel  <christian.bruel@st.com>
27811         * config/arm/arm-c.c (arm_option_override): Initialize
27812         target_option_current_node.
27813         * config/arm/arm.c (arm_pragma_target_parse): Replace
27814         build_target_option_node call by target_option_current_node.
27815         Set target_option_current_node.
27816         Fix comments.
27818 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
27820         PR target/69810
27821         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27822         define_insn_and_split to define_insn.
27823         (zero_extendqi<mode>2_dot2): Same.
27824         (extendqi<mode>2_dot): Same.
27825         (extendqi<mode>2_dot2): Same.
27827 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
27829         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27830         and add bypass for AES{D,E} and AESMC pairs.
27831         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27832         and AESMC pairs.
27834 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
27836         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27837         series for reciprocal square root in Exynos M1.
27839 2016-02-23  Martin Sebor  <msebor@redhat.com>
27841         PR c/69759
27842         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27843         __builtin_alloca_with_align.
27845 2016-02-23  Richard Henderson  <rth@redhat.com>
27847         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27848         (ix86_register_pragmas): Remove __seg_tls.
27849         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27850         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27851         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27852         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27853         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27854         * doc/extend.texi (__seg_tls): Remove item.
27856 2016-02-23  Richard Biener  <rguenther@suse.de>
27858         * alloc-pool.h (struct allocation_object): Make id member
27859         conditional on CHECKING_P again.
27860         (get_instance): Adjust.
27861         (base_pool_allocator): Likewise.
27863 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
27865         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27866         (parallelize_loops): In OpenACC kernels mode, set n_threads to
27867         zero.
27868         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27869         flag_openacc.
27870         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27872 2016-02-23  Richard Biener  <rguenther@suse.de>
27874         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27875         * bitmap.h (struct bitmap_usage): Likewise.
27876         (bitmap_move): Declare.
27877         * bitmap.c (register_overhead): Take size_t argument.
27878         (bitmap_move): New function.
27879         * df-problems.c (df_rd_transfer_function): Use bitmap_move
27880         to properly account overhead.
27881         * tree.c (free_node): Use tree_size.
27883 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
27885         PR c++/69902
27886         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27887         when inverting comparison.
27889         PR c/69900
27890         * common.opt (Wunreachable-code): Add Warning flag.
27892 2016-02-23  Mark Wielaard  <mjw@redhat.com>
27893             Jakub Jelinek  <jakub@redhat.com>
27895         PR c/69911
27896         * cgraphunit.c (check_global_declaration): Check main_input_filename
27897         and DECL_SOURCE_FILE are not NULL.
27899 2016-02-23  Martin Jambor  <mjambor@suse.cz>
27901         PR tree-optimization/69666
27902         * tree-sra.c (sra_modify_assign): Do not attempt to create
27903         default_def replacements for unscalarizable regions.
27905 2016-02-20  Mark Wielaard  <mjw@redhat.com>
27907         PR c/28901
27908         * cgraphunit.c (check_global_declaration): Check level of
27909         warn_unused_const_variable and main_input_filename.
27910         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27911         (-Wunused-variable): For C implies -Wunused-const-variable=1.
27912         (-Wunused-const-variable): Explain levels 1 and 2.
27914 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
27916         PR target/69888
27917         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27918         identical arguments.  Formatting and spelling fixes.
27920         PR target/69885
27921         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27922         be specified.
27924         PR target/69894
27925         PR target/69895
27926         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27927         and m68k-devices.def.
27928         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27929         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27931 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
27933         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27934         and HImode registers.
27936 2016-02-22  Richard Biener  <rguenther@suse.de>
27938         PR tree-optimization/69882
27939         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27940         preserve permutations present because of gaps.
27941         (vect_supported_load_permutation_p): Always continue checking
27942         permutations after vect_attempt_slp_rearrange_stmts.
27944 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
27946         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27947         min_profitable_estimate, rather than min_profitable_iters.
27949 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
27951         PR target/69885
27952         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27953         SImode for last match_operand.
27955 2016-02-22  Martin Liska  <mliska@suse.cz>
27957         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27958         return bitsize - 1 as the return value.
27960 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
27962         PR target/69806
27963         PR target/54089
27964         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27965         Handle negative shift counts.
27966         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27967         force_reg on the shift constant.
27968         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
27969         (lshrsi3_d): Handle negative shift counts.
27971 2016-02-22  Richard Biener  <rguenther@suse.de>
27972             Tom de Vries  <tom@codesourcery.com>
27974         * graph.c: Include dumpfile.h.
27975         (print_graph_cfg): Split into three overloads.
27976         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27978 2016-02-22  Tom de Vries  <tom@codesourcery.com>
27980         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27981         dump-fn.
27983 2016-02-22  Richard Biener  <rguenther@suse.de>
27985         PR ipa/37448
27986         * ipa-inline-transform.c (inline_call): When not updating
27987         overall summaries adjust self size by the growth estimate.
27988         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27989         hash-set, do not update overall summaries here.  Renamed from ...
27990         (inline_to_all_callers): ... this which is now wrapping the
27991         above and performing delayed overall summary update.
27992         (early_inline_small_functions): Delay updating of the overall
27993         summary.
27995 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
27997         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27998         variable.
28000 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
28002         PR driver/69805
28003         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
28004         :%* in %:gt() argument.
28005         (greater_than_spec_func): Adjust for expecting only numbers,
28006         if there are more than two numbers, compare the last two.
28008 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
28010         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
28011         -Wnarrowing with -std.
28013 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
28015         PR c++/69851
28016         * expr.c (store_field): Don't use bit-field path if exp is
28017         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
28018         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
28019         and the assignment can be performed by bitwise copy.  Formatting
28020         fix.
28022         PR middle-end/69838
28023         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
28024         call copy_reg_eh_region_note_forward on before and/or after sequences
28025         and remove note from insn if it no longer can throw.
28027         PR target/69820
28028         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
28029         if TARGET_AVX512BW.
28031 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28033         * config/s390/vector.md: Add missing commutative operand markers
28034         to the patterns which qualify for one.
28035         * config/s390/vx-builtins.md: Likewise.
28037 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28039         * config/s390/vector.md (VI, VI_QHS): Add single element vector
28040         types to mode iterators.
28041         (vec_double): ... and mode attribute.
28042         * config/s390/vx-builtins.md (non_vec_int): Likewise.
28044 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28046         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
28047         Change the predicate of op2 from nonimmediate to general and let
28048         reload fix it if necessary.
28050 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28052         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
28054 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28056         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
28057         mode.
28059 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28061         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
28062         * config/s390/s390.c (s390_expand_vec_movstr): New function.
28063         * config/s390/s390.md ("movstr<P:mode>"): Call
28064         s390_expand_vec_movstr.
28066 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28068         * config/s390/s390.md: Add missing output modifier for operand 1
28069         to print it as address properly.
28071 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28073         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
28074         * config/s390/2964.md: New file.
28075         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
28076         of insn grouping attributes depending on the CPU level.
28077         (s390_get_unit_mask): New function.
28078         (s390_sched_score): Remove the OOO from the scheduling macros.
28079         Add loop to calculate a score for the instruction mix.
28080         (s390_sched_reorder): Likewise plus improve debug output.
28081         (s390_sched_variable_issue): Rename macros as above.  Calculate
28082         the unit distances after actually scheduling an insn.  Improve
28083         debug output.
28084         (s390_sched_init): Clear last_scheduled_unit_distance array.
28085         * config/s390/s390.md: Include 2964.md.
28087 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
28089         PR target/69671
28090         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
28091         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
28092         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
28093         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
28094         *avx512f_<code>v8div16qi2_mask_1): New insns.
28096 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
28098         PR target/68404
28099         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
28100         2016-02-09 change.
28102         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
28103         earlyclobber from target.  Use wF constraint for fused memory
28104         address.
28105         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
28107 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
28108             Martin Liska  <mliska@suse.cz>
28110         PR sanitizer/69863
28111         * cfgexpand.c (asan_sanitize_stack_p): New function.
28112         (partition_stack_vars): Use the function.
28113         (expand_stack_vars): Likewise.
28114         (defer_stack_allocation): Likewise.
28115         (expand_used_vars): Likewise.
28117 2016-02-18  Richard Biener  <rguenther@suse.de>
28119         PR middle-end/69553
28120         * fold-const.c (operand_equal_p): Properly compare offsets for
28121         IMAGPART_EXPR and ARRAY_REF.
28123 2016-02-18  Nick Clifton  <nickc@redhat.com>
28125         PR target/62254
28126         PR target/69610
28127         * config/arm/arm.c (arm_option_override_internal): Disable
28128         interworking if the target does not support thumb instructions.
28129         (arm_reload_in_hi): Handle the case where a register to register
28130         move needs reloading because there is no simple pattern to handle
28131         it.
28132         (arm_reload_out_hi): Likewise.
28134 2016-02-18  Richard Biener  <rguenther@suse.de>
28136         PR middle-end/69854
28137         * match.pd: Don't use fold_binary or fold_unary for folding
28138         constants.
28140 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
28142         PR c++/69850
28143         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
28144         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
28145         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
28146         warn on gimple_no_warning_p statements.
28148 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
28150         * doc/extend.texi (C++ Attributes): Correct description of
28151         warn_unused type attribute.
28153 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28155         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
28156         correct instruction.
28158 2016-02-17  Richard Biener  <rguenther@suse.de>
28160         PR rtl-optimization/69609
28161         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
28162         (find_traces_1_round): When ending a trace update cached priority
28163         of successors.
28164         (bb_to_key): Use cached priority when available.
28165         (copy_bb): Initialize cached priority.
28166         (reorder_basic_blocks_software_trace_cache): Likewise.
28168 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28170         PR target/69161
28171         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
28172         New predicate.
28173         (aarch64_comparison_operator): Break overly long line into two.
28174         (aarch64_comparison_operation): Likewise.
28175         * config/aarch64/aarch64.md (cstorecc4): Use
28176         aarch64_comparison_operator_mode instead of
28177         aarch64_comparison_operator.
28178         (cstore<mode>4): Likewise.
28179         (aarch64_cstore<mode>): Likewise.
28180         (*cstoresi_insn_uxtw): Likewise.
28181         (cstore<mode>_neg): Likewise.
28182         (*cstoresi_neg_uxtw): Likewise.
28184 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28186         PR target/69161
28187         * config/arm/predicates.md (arm_comparison_operator_mode):
28188         New predicate.
28189         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
28190         instead of arm_comparison_operator.
28191         (*mov_negscc): Likewise.
28192         (*mov_notscc): Likewise.
28193         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
28194         (*thumb2_mov_negscc): Likewise.
28195         (*thumb2_mov_negscc_strict_it): Likewise.
28196         (*thumb2_mov_notscc): Likewise.
28197         (*thumb2_mov_notscc_strict_it): Likewise.
28199 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
28201         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
28202         Add missing return.
28204 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
28206         * config/visium/visium.c (machine_libfunc_index): New enum.
28207         (machine_libfuncs): New structure.
28208         (visium_libfuncs): New static variable.
28209         (TARGET_INIT_LIBFUNCS): Define to...
28210         (visium_init_libfuncs): ...this.  New function.
28211         (expand_block_move_4): Use the appropriate libfunc.
28212         (expand_block_move_2): Likewise.
28213         (expand_block_move_1): Likewise.
28214         (expand_block_set_4): Likewise.
28215         (expand_block_set_2): Likewise.
28216         (expand_block_set_1): Likewise.
28217         (visium_trampoline_init): Likewise.
28219 2016-02-17  Nick Clifton  <nickc@redhat.com>
28221         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
28222         TI's devices.csv file as of March 2016.
28224 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
28226         PR Target/48344
28227         * opts-global.c (handle_common_deferred_options): Introduce and
28228         initialize two global variables to remember command-line options
28229         specifying a stack-limiting register.
28230         * opts.h: Add extern declarations of the two new global variables.
28231         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
28232         variable based on the values of the two new global variables.
28234 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
28236         PR c/69835
28237         * common.opt (Wnonnull-compare): New warning.
28238         * doc/invoke.texi (-Wnonnull): Remove text about comparison
28239         of arguments against NULL.
28240         (-Wnonnull-compare): Document.
28241         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
28242         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
28243         * passes.def (pass_warn_nonnull_compare): Add.
28244         * gimple-ssa-nonnull-compare.c: New file.
28246 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28248         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
28249         AARCH64_EXTRA_TUNE_RECIP_SQRT.
28251 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28253         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
28254         reciprocal sqrt for -mlow-precision-recip-sqrt.
28256 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28257             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28259         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
28260         always use lane loads to construct non-constant vectors.
28262 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
28264         * config/aarch64/aarch64.md
28265         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
28266         constraints for operand 3.
28267         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
28269 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
28270             Richard Biener  <rguenther@suse.de>
28272         PR tree-optimization/69820
28273         * tree-vect-patterns.c (type_conversion_p): Return false if
28274         *orig_type is unsigned single precision or boolean.
28275         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
28276         Formatting fix.
28278 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
28280         PR rtl-optimization/69764
28281         PR rtl-optimization/69771
28282         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
28283         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
28285 2016-02-16  Richard Biener  <rguenther@suse.de>
28287         PR tree-optimization/69776
28288         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
28289         sets from caller.
28290         (indirect_refs_may_alias_p): Likewise.
28291         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
28292         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
28293         according to tbaa_p.
28294         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
28295         (optimize_stmt): For redundant store discovery do not allow tbaa.
28297 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
28299         PR tree-optimization/69714
28300         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
28301         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
28303 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
28305         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
28306         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
28307         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
28308         * config/arc/arc.c (arc_init): Check FPU options.
28309         (get_arc_condition_code): Handle new CC_FPU* modes.
28310         (arc_select_cc_mode): Likewise.
28311         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
28312         register pair only. Allow access for ARCv2 accumulator.
28313         (gen_compare_reg): Whenever we have FPU support use FPU compare
28314         instructions.
28315         (arc_reorg): Don't generate brcc insns when FPU compare
28316         instructions are involved.
28317         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
28318         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
28319         floating point emulation.
28320         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
28321         (REVERSE_CONDITION): Add new CC_FPU* modes.
28322         (TARGET_FP_SP_BASE): Define.
28323         (TARGET_FP_DP_BASE): Likewise.
28324         (TARGET_FP_SP_FUSED): Likewise.
28325         (TARGET_FP_DP_FUSED): Likewise.
28326         (TARGET_FP_SP_CONV): Likewise.
28327         (TARGET_FP_DP_CONV): Likewise.
28328         (TARGET_FP_SP_SQRT): Likewise.
28329         (TARGET_FP_DP_SQRT): Likewise.
28330         (TARGET_FP_DP_AX): Likewise.
28331         * config/arc/arc.md (ARCV2_ACC): New constant.
28332         (type): New fpu type attribute.
28333         (SDF): Conditional iterator.
28334         (cstore<mode>, cbranch<mode>): Change expand condition.
28335         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
28336         handles FPU/FPX cases as well.
28337         * config/arc/arc.opt (mfpu): New option.
28338         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
28339         Renamed.
28340         (adddf3, muldf3, subdf3): Removed.
28341         * config/arc/predicates.md (proper_comparison_operator): Recognize
28342         CC_FPU* modes.
28343         * config/arc/fpu.md: New file.
28344         * doc/invoke.texi (ARC Options): Document mfpu option.
28346 2016-02-16  Richard Biener  <rguenther@suse.de>
28348         PR rtl-optimization/69291
28349         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
28350         noce_operand_ok check.
28352 2016-02-16  Tom de Vries  <tom@codesourcery.com>
28354         PR lto/67709
28355         * omp-low.c (simd_clone_create): Remove call to
28356         symtab->call_cgraph_insertion_hooks.
28358 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
28360         PR tree-optimization/69802
28361         * tree-ssa-reassoc.c (update_range_test): If op is
28362         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
28363         op == 1 test of precision 1 integral op, otherwise handle
28364         that case as op itself.  Fix up formatting.
28365         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
28366         up formatting.
28368 2016-02-16  Richard Biener  <rguenther@suse.de>
28370         PR tree-optimization/69586
28371         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
28372         types for conversion sources.
28374 2016-02-16  Richard Biener  <rguenther@suse.de>
28376         PR middle-end/69801
28377         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
28378         mask OEP_ADDRESS_OF.
28380 2016-02-16  Alan Modra  <amodra@gmail.com>
28382         PR target/68973
28383         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28384         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28385         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28386         (p8_mtvsrwz): New.
28387         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28388         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28389         (p8_fmrgow_<mode>): Likewise.
28390         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
28391         changes.
28392         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28393         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28394         to use movdi_internal64.  Remove op0_di.
28395         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28397 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
28399         Add support for the FCCMP insn types
28401         * config/aarch64/aarch64.md (fccmp): Change insn type.
28402         (fccmpe): Likewise.
28403         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28404         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28405         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28406         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28407         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28408         * config/arm/types.md (fccmps): Add new insn type.
28409         (fccmpd): Likewise.
28411 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28413         * alias.c (get_alias_set): Fix a typo in comment.
28415 2016-02-15  Richard Biener  <rguenther@suse.de>
28417         PR tree-optimization/69595
28418         * match.pd: Complete range test simplification to true.
28420 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
28422         PR rtl-optimization/69648
28423         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28424         pic_offset_table_rtx.
28426         PR rtl-optimization/69752
28427         * ira.c (update_equiv_regs): When looking for more than a single SET,
28428         also take other side effects into account.
28430 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
28432         * config/s390/s390.c (s390_function_profiler): Add a new sequence
28433         for z900+ CPUs in 31-bit mode.
28435 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
28437         * common/config/s390/s390-common.c (s390_supports_split_stack):
28438         New function.
28439         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28440         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28441         * config/s390/s390.c (struct machine_function): New field
28442         split_stack_varargs_pointer.
28443         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28444         in s390_emit_prologue.
28445         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28446         vararg pointer.
28447         (morestack_ref): New global.
28448         (SPLIT_STACK_AVAILABLE): New macro.
28449         (s390_expand_split_stack_prologue): New function.
28450         (s390_live_on_entry): New function.
28451         (s390_va_start): Use split-stack vararg pointer if appropriate.
28452         (s390_asm_file_end): Emit the split-stack note sections.
28453         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28454         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28455         (UNSPECV_SPLIT_STACK_CALL): New unspec.
28456         (UNSPECV_SPLIT_STACK_DATA): New unspec.
28457         (split_stack_prologue): New expand.
28458         (split_stack_space_check): New expand.
28459         (split_stack_data): New insn.
28460         (split_stack_call): New expand.
28461         (split_stack_call_*): New insn.
28462         (split_stack_cond_call): New expand.
28463         (split_stack_cond_call_*): New insn.
28465 2016-02-15  Richard Biener  <rguenther@suse.de>
28467         PR tree-optimization/69783
28468         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28469         Add trivially correct cases.
28471 2016-02-15  Tom de Vries  <tom@codesourcery.com>
28473         PR lto/69655
28474         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28475         do_force_output.
28476         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28478 2016-02-15  Richard Biener  <rguenther@suse.de>
28480         PR tree-optimization/69776
28481         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28482         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28483         indicate whether we can use TBAA to disambiguate against stores.
28484         Use alias-set zero if not.
28485         (visit_reference_op_store): Do not use TBAA when looking up
28486         redundant stores.
28487         * tree-ssa-pre.c (compute_avail): Use TBAA here.
28488         (eliminate_dom_walker::before_dom_children): But not when looking
28489         up redundant stores.
28491 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
28493         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28495 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28497         *  config/i386/znver1.md
28498         (znver1_pop, znver1_pop_mem,
28499         znver1_load_imov_double_store,
28500         znver1_load_imov_direct_store,
28501         znver1_load_imov_direct_load,
28502         znver1_load_imov_double_load): Add new.
28503         (znver1_insn, znver1_insn_load): Add icmov type.
28504         (znver1_sseavx_fma,
28505         znver1_sseavx_fma_load,
28506         znver1_avx256_fma,
28507         znver1_avx256_fma_load): Fix pipe usage.
28509 2016-02-14  Alan Modra  <amodra@gmail.com>
28511         PR target/68973
28512         * reload.c (find_reloads_address_1): For pre/post-inc/dec
28513         with an invalid hard reg, reload just the reg not the entire
28514         pre/post-inc/dec address expression.
28516 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
28518         PR target/67260
28519         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28520         fixed R1_REG scratch reg.
28521         (sibcall_value_pcrel_fdpic): Likewise.
28523 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
28525         PR target/67636
28526         PR target/64345
28527         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28529 2016-02-12  Walter Lee  <walt@tilera.com>
28531         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28532         * config/tilegx/t-tilegx: Likewise.
28534 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
28536         PR other/69554
28537         * diagnostic-show-locus.c (struct line_span): New struct.
28538         (layout::get_first_line): Delete.
28539         (layout::get_last_line): Delete.
28540         (layout::get_num_line_spans): New member function.
28541         (layout::get_line_span): Likewise.
28542         (layout::print_heading_for_line_span_index_p): Likewise.
28543         (layout::get_expanded_location): Likewise.
28544         (layout::calculate_line_spans): Likewise.
28545         (layout::m_first_line): Delete.
28546         (layout::m_last_line): Delete.
28547         (layout::m_line_spans): New field.
28548         (layout::layout): Update comment.  Replace m_first_line and
28549         m_last_line with m_line_spans, replacing their initialization
28550         with a call to calculate_line_spans.
28551         (diagnostic_show_locus): When printing source lines and
28552         annotations, rather than looping over a single span
28553         of lines, instead loop over each line_span within
28554         the layout, with an inner loop over the lines within them.
28555         Call the context's start_span callback when changing line spans.
28556         * diagnostic.c (diagnostic_initialize): Initialize start_span.
28557         (diagnostic_build_prefix): Break out the building of the location
28558         part of the string into...
28559         (diagnostic_get_location_text): ...this new function, rewriting
28560         it from nested ternary expressions to a sequence of "if"
28561         statements.
28562         (default_diagnostic_start_span_fn): New function.
28563         * diagnostic.h (diagnostic_start_span_fn): New typedef.
28564         (diagnostic_context::start_span): New field.
28565         (default_diagnostic_start_span_fn): New prototype.
28567 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
28569         PR driver/69779
28570         * gcc.c (driver::finalize): Fix cleanup of "specs".
28572 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
28574         PR driver/69265
28575         PR driver/69453
28576         * gcc.c (driver::driver): Initialize m_option_suggestions.
28577         (driver::~driver): Clean up m_option_suggestions.
28578         (suggest_option): Convert to...
28579         (driver::suggest_option): ...this, and split out into
28580         driver::build_option_suggestions and find_closest_string.
28581         (driver::build_option_suggestions): New function, from
28582         first half of suggest_option.  Special-case
28583         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28584         the sanitizer_opts array.  For options of enum types, add the
28585         various enum values to the candidate strings.
28586         (driver::handle_unrecognized_options): Remove "const".
28587         * gcc.h (driver::handle_unrecognized_options): Likewise.
28588         (driver::build_option_suggestions): New decl.
28589         (driver::suggest_option): New decl.
28590         (driver::m_option_suggestions): New field.
28591         * opts-common.c (add_misspelling_candidates): New function.
28592         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28593         and make non-static.
28594         * opts.h (sanitizer_opts): New array decl.
28595         (add_misspelling_candidates): New function decl.
28596         * spellcheck.c (find_closest_string): New function.
28597         * spellcheck.h (find_closest_string): New function decl.
28599 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
28601         PR rtl-optimization/69764
28602         PR rtl-optimization/69771
28603         * optabs.c (expand_binop_directly): For shift_optab_p, force
28604         convert_modes with VOIDmode if xop1 has VOIDmode.
28606 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
28608         PR target/69729
28609         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28610         to correctly determine instrumentation thunks.
28612 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
28614         PR ipa/69241
28615         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28616         type by reference, force lhs on the call.
28618         PR ipa/68672
28619         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28620         Compute retval and retbnd early in all cases if split_part_return_p
28621         and return_bb is not EXIT.  Remove all clobber stmts and reset
28622         all debug stmts that refer to SSA_NAMEs defined in split part,
28623         except if it is retval, in that case replace the old retval with the
28624         lhs of the call to the split part.
28626 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
28628         revert:
28629         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
28631         PR middle-end/66726
28632         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28633         whose result is used in PHI.
28634         (maybe_optimize_range_tests): Likewise.
28635         (final_range_test_p): Likweise.
28637 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
28639         PR middle-end/66726
28640         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28641         whose result is used in PHI.
28642         (maybe_optimize_range_tests): Likewise.
28643         (final_range_test_p): Likweise.
28645 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
28647         * cgraph.c: Spelling fixes - behaviour -> behavior and
28648         neighbour -> neighbor.
28649         * target.def: Likewise.
28650         * sel-sched.c: Likewise.
28651         * config/mips/mips.c: Likewise.
28652         * config/arc/arc.md: Likewise.
28653         * config/arm/cortex-a57.md: Likewise.
28654         * config/arm/arm.c: Likewise.
28655         * config/arm/neon.md: Likewise.
28656         * config/arm/arm-c.c: Likewise.
28657         * config/vms/vms-c.c: Likewise.
28658         * config/s390/s390.c: Likewise.
28659         * config/i386/znver1.md: Likewise.
28660         * config/i386/i386.c: Likewise.
28661         * config/ia64/hpux-unix2003.h: Likewise.
28662         * config/msp430/msp430.md: Likewise.
28663         * config/rx/rx.c: Likewise.
28664         * config/rx/rx.md: Likewise.
28665         * config/aarch64/aarch64-simd.md: Likewise.
28666         * config/aarch64/aarch64.c: Likewise.
28667         * config/nvptx/nvptx.c: Likewise.
28668         * config/bfin/bfin.c: Likewise.
28669         * config/cris/cris.opt: Likewise.
28670         * config/rs6000/rs6000.c: Likewise.
28671         * target.h: Likewise.
28672         * spellcheck.c: Likewise.
28673         * ira-build.c: Likewise.
28674         * tree-inline.c: Likewise.
28675         * builtins.c: Likewise.
28676         * lra-constraints.c: Likewise.
28677         * explow.c: Likewise.
28678         * hwint.h: Likewise.
28679         * targhooks.c: Likewise.
28680         * tree-vect-data-refs.c: Likewise.
28681         * expr.c: Likewise.
28682         * doc/tm.texi: Likewise.
28683         * doc/extend.texi: Likewise.
28684         * doc/install.texi: Likewise.
28685         * doc/md.texi: Likewise.
28686         * tree-ssa-tail-merge.c: Likewise.
28687         * sched-int.h: Likewise.
28688         * match.pd: Likewise.
28689         * sched-ebb.c: Likewise.
28690         * target.def (omit_struct_return_reg): Likewise.
28691         * gimple-ssa-isolate-paths.c: Likewise.
28692         (find_implicit_erroneous_behaviour): Renamed to...
28693         (find_implicit_erroneous_behavior): ... this.
28694         (find_explicit_erroneous_behaviour): Renamed to...
28695         (find_explicit_erroneous_behavior): ... this.
28696         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28698 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
28700         PR rtl-optimization/64682
28701         PR rtl-optimization/69567
28702         PR rtl-optimization/69737
28703         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28704         in I2 as well, just lose it.
28706 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28708         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28709         New variable.
28710         (aarch64_last_printed_tune_string): Likewise.
28711         (aarch64_declare_function_name): Only output .arch assembler
28712         directive if it will be different from the previously output
28713         directive.  Same for .tune comment but only if -dA is set.
28714         (aarch64_start_file): New function.
28715         (TARGET_ASM_FILE_START): Define.
28717 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
28719         PR plugins/69758
28720         * Makefile.in (PLUGIN_HEADERS): Add params.list.
28722 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
28724         PR target/65313
28725         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28726         -Wmaybe-uninitialized warning.
28728 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
28730         PR target/69713
28731         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28733 2016-02-11  Richard Biener  <rguenther@suse.de>
28735         PR rtl-optimization/69291
28736         * ifcvt.c (noce_try_store_flag_constants): Do not allow
28737         subexpressions affected by changing the result.
28739 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
28741         PR target/69148
28742         * lra-constraints.c (curr_insn_transform): Find in/out operands
28743         for secondary memory moves.  Update dups.
28745 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
28747         PR tree-optimization/69652
28748         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28749         to nested loop, did source re-formatting, skip debug statements,
28750         add check on statement with volatile operand, remove dead scalar
28751         statements.
28753 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
28754             Patrick Palka  <ppalka@gcc.gnu.org>
28756         PR ipa/69241
28757         PR c++/69649
28758         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28759         calls if the return type is TREE_ADDRESSABLE.
28760         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28761         * ipa-split.c (split_function): Fix doubled "we" in comment.
28762         Use void return type for the split part even if
28763         !split_point->split_part_set_retval.
28765 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
28767         PR tree-optimization/68021
28768         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28769         when computing the value of biv cand by itself.
28771 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
28773         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28774         (cortexa57_tunings): Likewise.
28775         (cortexa72_tunings): Likewise.
28776         (arch_macro_fusion_pair_p): Add support for AES fusion.
28777         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28778         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28779         Allow virtual registers before reload so early scheduling works.
28780         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28781         correct latency and pipeline.
28782         (cortex_a57_crypto_complex): Likewise.
28783         (cortex_a57_crypto_xor): Likewise.
28784         (define_bypass): Add AES bypass.
28786 2016-02-10  Richard Biener  <rguenther@suse.de>
28788         PR tree-optimization/69726
28789         * passes.def: Add DCE pass before late uninit.
28790         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28791         really fixup if-conversions job.
28793 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
28795         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28796         (arm_cortex_a57_tune): Likewise.
28797         (aarch_macro_fusion_pair_p): Add support for AES fusion.
28798         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28800 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28802         * timevar.def (TV_PHASE_DBGINFO): Delete.
28803         (TV_PHASE_CHECK_DBGINFO): Likewise.
28804         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28806 2016-02-10  Richard Biener  <rguenther@suse.de>
28808         PR tree-optimization/69719
28809         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28810         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28812 2016-02-09  Andrew Pinski  <apinski@cavium.com>
28814         PR tree-opt/69282
28815         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28816         get_vcond_mask_icode returns false.
28818 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
28820         PR target/68404
28821         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28822         an ADDIS that adds a pointer to a large constant that sets the
28823         upper16 bits with a load operation.
28825 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
28827         PR target/68532
28828         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28829         order.
28830         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28831         endian.
28832         (vzipq_s16): Likewise.
28833         (vzipq_s32): Likewise.
28834         (vzipq_f32): Likewise.
28835         (vzipq_u8): Likewise.
28836         (vzipq_u16): Likewise.
28837         (vzipq_u32): Likewise.
28838         (vzipq_p8): Likewise.
28839         (vzipq_p16): Likewise.
28841 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
28843         PR target/68532
28844         * config/arm/arm.c (neon_endian_lane_map): New function.
28845         (neon_vector_pair_endian_lane_map): New function.
28846         (arm_evpc_neon_vuzp): Allow for big endian lane order.
28847         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28848         endian.
28849         (vuzpq_s16): Likewise.
28850         (vuzpq_s32): Likewise.
28851         (vuzpq_f32): Likewise.
28852         (vuzpq_u8): Likewise.
28853         (vuzpq_u16): Likewise.
28854         (vuzpq_u32): Likewise.
28855         (vuzpq_p8): Likewise.
28856         (vuzpq_p16): Likewise.
28858 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
28860         PR target/69634
28861         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28862         debug insns.
28864 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
28866         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28867         truncate const_int operand 1 to QImode.
28869 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28871         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28872         corresponding to an abnormal edge.
28874 2016-02-09  Tom de Vries  <tom@codesourcery.com>
28876         PR tree-optimization/69599
28877         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28878         function.
28879         (find_func_aliases_for_builtin_call, find_func_clobbers)
28880         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
28881         partition.
28883 2016-02-09  Richard Biener  <rguenther@suse.de>
28885         PR tree-optimization/69715
28886         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28887         LHS on calls as non-rewritable.
28889 2016-02-09  Tom de Vries  <tom@codesourcery.com>
28891         PR lto/69707
28892         * lto-wrapper.c (append_diag_options): New function.
28893         (compile_offload_image): Call append_diag_options.
28895 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
28897         PR other/69722
28898         * doc/extend.texi (Flag Output Operands): Correct sectioning.
28899         Minor copy-edit to fix verb tenses.
28901 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
28903         PR tree-optimization/69209
28904         * ipa-split.c (split_function): If split part is not
28905         returning retval, retval has gimple type but is not
28906         gimple value, force it into a SSA_NAME first.
28908 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
28910         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28911         outdated section.
28913 2016-02-08  Jason Merrill  <jason@redhat.com>
28915         PR c++/69631
28916         * convert.c (convert_to_integer_1): Check dofold on truncation
28917         distribution.
28918         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28919         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28920         Rename from *_nofold.
28921         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28922         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28924 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
28926         PR target/60410
28927         * tree.c (build_common_tree_nodes): Remove short_double argument.
28928         All callers changed.
28929         * tree.h (build_common_tree_nodes): Adjust declaration.
28930         * doc/invoke.texi (-fshort-double): Remove documentation.
28931         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28932         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28933         * lto-wrapper.c (merge_and_complain, append_compiler_options)
28934         (append_linker_options): Don't handle OPT_fshort_double.
28936         PR rtl-optimization/68730
28937         * lra-remat.c (insn_to_cand_activation): New static variable.
28938         (lra_remat): Allocate and free it.
28939         (create_cand): New arg activation. Initialize a field in
28940         insn_to_cand_activation if it is nonnull.
28941         (create_cands): Pass the activation insn to create_cand when making
28942         a candidate involving an output reload.  Reorganize code a little.
28943         (do_remat): Keep track of active status of candidates in a separate
28944         bitmap.
28946 2016-02-08  Richard Biener  <rguenther@suse.de>
28948         PR tree-optimization/69719
28949         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28950         Properly use absolute of the difference of the two offsets to
28951         compare or adjust the segment length.
28953 2016-02-08  Richard Biener  <rguenther@suse.de>
28954             Jeff Law  <law@redhat.com>
28956         PR target/68273
28957         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28958         types for anonymous SSA names.
28960 2016-02-08   Richard Biener  <rguenther@suse.de>
28962         PR rtl-optimization/69274
28963         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28965 2016-02-08  Jeff Law  <law@redhat.com>
28967         PR tree-optimization/65917
28968         * tree-ssa-dom.c (record_temporary_equivalences): Record both
28969         equivalences from if (x == y) style conditionals.
28970         (loop_depth_of_name): Remove.
28971         (record_equality): Remove loop depth check.
28972         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28973         (const_and_copies::record_const_or_copy_raw): New member function.
28974         * tree-ssa-scopedtables.c
28975         (const_and_copies::record_const_or_copy_raw): New, factored out of
28976         (const_and_copies::record_const_or_copy): Call new member function.
28978 2016-02-05  Jeff Law  <law@redhat.com>
28980         PR tree-optimization/68541
28981         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28982         (count_stmts_in_block): New function.
28983         (poor_ifcvt_candidate_code): Likewise.
28984         (is_feasible_trace): Add some heuristics to determine when path
28985         splitting is profitable.
28986         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28987         is a diamond with a single exit.
28989 2016-02-05  Martin Sebor  <msebor@redhat.com>
28991         PR c++/69662
28992         * doc/invoke.texi: Update -Wplacement-new to take an optional
28993         argument.
28995 2016-02-06  Richard Henderson  <rth@redhat.com>
28997         PR c/69643
28998         * tree.c (tree_nop_conversion_p): Do not strip casts into or
28999         out of non-standard address spaces.
29001 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
29003         PR rtl-optimization/69691
29004         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
29006 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
29008         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
29009         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
29010         (*ieee128_mfvsrd_64bit): Likewise.
29011         (*ieee128_mfvsrd_32bit): Likewise.
29013 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
29015         PR target/69369
29016         Revert r232560:
29017         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
29019         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
29020         instrumented_version.
29022 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
29024         * doc/invoke.texi (Optimize Options): In table of --param options
29025         rename second occurrence of tracer-min-branch-ratio to
29026         tracer-min-branch-probability, rename
29027         tracer-min-branch-ratio-feedback to
29028         tracer-min-branch-probability-feedback and clarify description,
29029         rename sched-spec-state-edge-prob-cutoff to
29030         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
29031         to selsched-insns-to-rename, rename lto-minpartition to
29032         lto-min-partition, delete reorder-blocks-duplicate and
29033         reorder-blocks-duplicate-feedback.
29035 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29037         * config/s390/s390.c (s390_register_info_set_ranges): Remove
29038         superfluous loops.
29040 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29042         * doc/extend.texi: S/390: Correct some typos.
29044 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29046         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
29048 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29050         PR target/69625
29051         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
29052         (s390_register_info_gprtofpr): Use new macros above.
29053         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
29054         its name.
29055         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
29056         its name.  Adjust restore and save gpr ranges.
29057         (s390_register_info_set_ranges): New function.
29058         (s390_register_info): Use new macros above.  Call
29059         s390_register_info_set_ranges.
29060         (s390_optimize_register_info): Likewise.
29061         (s390_hard_regno_rename_ok): Use new macros.
29062         (s390_hard_regno_scratch_ok): Likewise.
29063         (s390_emit_epilogue): Likewise.
29064         (s390_can_use_return_insn): Likewise.
29065         (s390_optimize_prologue): Likewise.
29066         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
29068 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
29070         PR bootstrap/69677
29071         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
29072         alignment fixes.
29073         (ix86_option_override_internal): Disable TARGET_STV even for
29074         -m{incoming,preferred}-stack-boundary=3.
29076 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29078         * config.gcc: Mark deprecated rtems targets as obsolete.
29080 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
29082         PR rtl-optimization/64682
29083         PR rtl-optimization/69567
29084         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
29085         before I2 only if the register is both used and set in I2.
29087 2016-02-04  DJ Delorie  <dj@redhat.com>
29089         * config/msp430/msp430.c (msp430_start_function): Add function type.
29091 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
29093         PR fortran/69368
29094         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
29096 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
29098         PR rtl-optimization/69577
29099         Revert:
29100         2015-10-29  Richard Henderson  <rth@redhat.com>
29102         PR target/68124
29103         PR rtl-opt/67609
29104         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
29105         sse check to the exact conditions of PR 67609.
29107 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
29109         PR target/69667
29110         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
29111         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
29112         not allowed into the traditional Altivec registers.
29113         (movtd_64bit_nodm): Likewise.
29114         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
29116 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
29118         * config/aarch64/cortex-a57-fma-steering.c
29119         (aarch64_register_fma_steering): Remove "static" from arguments
29120         to register_pass.
29122 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
29124         PR target/69619
29125         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
29126         twice when complex.
29128 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
29130         * doc/invoke.texi: Delete -mno-fma4.
29132 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
29134         PR rtl-optimization/69577
29135         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
29136         (find_subregs_of_mode): Update accordingly.  Iterate over partial
29137         definitions.
29139 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
29141         * config/arm/arm-protos.h (neon_reinterpret): Remove.
29142         * config/arm/arm.c (neon_reinterpret): Remove.
29143         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
29144         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
29145         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
29146         vreinterpretti): Remove.
29147         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
29148         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
29149         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
29150         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
29151         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
29152         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
29153         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
29154         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
29155         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
29156         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
29157         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
29158         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
29159         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
29160         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
29161         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
29162         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
29163         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
29164         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
29165         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
29166         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
29167         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
29168         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
29169         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
29170         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
29171         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
29172         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
29173         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
29174         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
29175         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
29176         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
29177         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
29178         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
29179         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
29180         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
29181         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
29182         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
29183         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
29184         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
29185         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
29186         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
29187         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
29188         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
29189         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
29190         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
29191         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
29192         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
29193         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
29194         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
29195         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
29196         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
29197         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
29198         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
29199         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
29200         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
29201         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
29202         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
29203         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
29204         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
29205         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
29206         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
29207         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
29208         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
29209         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
29210         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
29211         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
29212         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
29213         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
29214         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
29215         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
29216         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
29217         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
29218         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
29219         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
29220         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
29221         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
29222         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
29223         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
29224         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
29225         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
29226         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
29227         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
29228         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
29229         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
29230         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
29231         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
29232         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
29233         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
29234         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
29235         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
29236         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
29237         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
29238         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
29239         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
29240         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
29241         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
29242         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
29243         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
29244         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
29245         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
29246         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
29247         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
29248         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
29249         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
29251 2016-02-04  Martin Liska  <mliska@suse.cz>
29253         PR sanitizer/69276
29254         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
29255         that are gimple_store_p.
29256         (maybe_instrument_call): Likewise.
29258 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
29260         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
29261         register scaling out of memory reference and comment why.
29263 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29265         PR target/65932
29266         PR target/67714
29267         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
29268         folding the source of a SET.
29270 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29272         PR target/65932
29273         PR target/67714
29274         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
29275         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
29277 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
29279         PR target/65932
29280         PR target/67714
29281         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
29282         HImode.
29284 2016-02-04  Christian Bruel  <christian.bruel@st.com>
29286         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
29287         * config/arm/arm.c (arm_set_current_function): Likewise.
29289 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
29290             Ilya Enkovich  <enkovich.gnu@gmail.com>
29291             H.J. Lu  <hongjiu.lu@intel.com>
29293         PR target/69454
29294         * config/i386/i386.c (convert_scalars_to_vector): Remove
29295         stack alignment fixes.
29296         (ix86_option_override_internal): Disable TARGET_STV if stack
29297         might not be aligned enough.
29298         (ix86_minimum_alignment): Assert that TARGET_STV is false.
29300 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
29302         * config/i386/x86-tune.def: Disable default prefetching
29303         for -march=znver1.
29305 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
29306             Vladimir Makarov  <vmakarov@redhat.com>
29308         PR target/69461
29309         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
29310         in validating fused toc addresses.
29312 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
29314         PR c/69627
29315         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
29316         range->m_caret fields if range->m_show_caret_p is false.
29318         PR target/69644
29319         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29320         Force oldval into register if it does not satisfy reg_or_short_operand
29321         predicate.  Fix up formatting.
29323 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
29324             Alexandre Oliva  <aoliva@redhat.com>
29326         PR target/69461
29327         * lra-constraints.c (simplify_operand_subreg): Check additionally
29328         address validity after potential reloading.
29329         (process_address_1): Check insns validity.  In case of failure do
29330         nothing.
29332 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
29334         PR target/69118
29335         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
29336         Fix target.
29338 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
29340         * wide-int.cc (canonize_uhwi): New function.
29341         (wi::divmod_internal): Use it.
29343 2016-02-02  James Norris  <jnorris@codesourcery.com>
29345         * gimplify.c (omp_notice_variable): Add usage check.
29347 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
29349         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
29350         like LE, GE, LT, GT when emitting relational operator.
29352 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
29354         * ira-costs.c (find_costs_and_classes): Add extra argument.
29355         * target.def (ira_change_pseudo_allocno_class): Add parameter.
29356         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
29357         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
29358         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
29359         Add best_class parameter, and return it if not ALL_REGS.
29360         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
29361         Add parameter.
29362         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
29363         Update target hook.
29365 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
29367         * config/aarch64/aarch64.c
29368         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
29369         (aarch64_ira_change_pseudo_allocno_class): New function.
29371 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
29373         PR target/67032
29374         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
29376 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29378         * config/avr/avr.c (avr_option_override): Set
29379         PARAM_ALLOW_STORE_DATA_RACES to 1.
29381 2016-02-02  Richard Biener  <rguenther@suse.de>
29383         PR tree-optimization/69595
29384         * match.pd: Add range test simplifications to true/false.
29386 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
29388         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29389         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29390         instead.
29392 2016-02-02  Richard Biener  <rguenther@suse.de>
29394         PR tree-optimization/69606
29395         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29396         info on the result before moving a stmt.
29398 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
29400         PR middle-end/68542
29401         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29402         branch with vector comparison.
29403         * config/i386/sse.md (VI48_AVX): New mode iterator.
29404         (define_expand "cbranch<mode>4): Add support for conditional branch
29405         with vector comparison.
29406         * tree-vect-loop.c (optimize_mask_stores): New function.
29407         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29408         has_mask_store field of vect_info.
29409         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29410         vectorized loops having masked stores after vec_info destroy.
29411         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29412         correspondent macros.
29413         (optimize_mask_stores): Add prototype.
29415 2016-02-02  Alan Modra  <amodra@gmail.com>
29417         PR target/69548
29418         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29419         allow subregs.
29421 2016-02-02  Alan Modra  <amodra@gmail.com>
29423         PR target/68662
29424         * config/rs6000/rs6000.c (need_toc_init): New var, set it
29425         whenever toc_label_name used.
29426         (rs6000_file_start): Don't set up toc section here,
29427         (rs6000_output_function_epilogue): do so here instead,
29428         (rs6000_xcoff_file_start): and here.
29429         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29430         (load_toc_aix_di): Likewise.
29432 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
29434         PR rtl-optimization/69592
29435         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29436         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29437         (num_sign_bit_copies_binary_arith_p): New inline function.
29438         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29440 2016-02-01  Jeff Law  <law@redhat.com>
29442         PR tree-optimization/69580
29443         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29444         * tree-ssa-threadbackward.c
29445         (fsm_find_control_statement_thread_paths): Do not try to walk
29446         through large PHI nodes.
29448 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
29450         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29451         when count is incremented above limit, don't analyze further
29452         insns afterwards.
29454         * omp-low.c (oacc_parse_default_dims): Avoid
29455         -Wsign-compare warning, make sure value fits into int
29456         rather than just unsigned int.
29458 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
29460         PR tree-optimization/67921
29461         * fold-const.c (split_tree): New parameters.  Convert pointer
29462         type variable part to proper type before negating.
29463         (fold_binary_loc): Pass new arguments to split_tree.
29465 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
29467         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29468         (nvptx_goacc_validate_dims): Extend to handle global defaults.
29469         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29470         * doc/tm.texti: Rebuilt.
29471         * doc/invoke.texi (fopenacc-dim): Document.
29472         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29473         (append_compiler_options): Likewise.
29474         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29475         (oacc_parse_default_dims): New.
29476         (oacc_validate_dims): Add USED arg.  Select non-unity default when
29477         possible.
29478         (oacc_loop_fixed_partitions): Return mask of used partitions.
29479         (oacc_loop_auto_partitions): Emit dump info.
29480         (oacc_loop_partition): Return mask of used partitions.
29481         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
29482         loop partitioning and validation calls.
29484 2016-02-01  Richard Biener  <rguenther@suse.de>
29486         PR middle-end/69556
29487         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29489 2016-02-01  Richard Biener  <rguenther@suse.de>
29491         PR tree-optimization/69574
29492         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29493         of asserting return chrec_dont_know.
29495 2016-02-01  Martin Liska  <mliska@suse.cz>
29497         * mem-stats-traits.h: Add copyright header.
29498         * mem-stats.h: Likewise.
29500 2016-02-01  Richard Biener  <rguenther@suse.de>
29502         PR tree-optimization/69579
29503         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29504         Do not propagate through abnormal PHI results.
29506 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
29508         * postreload.c (reload_cse_simplify): Remove dead code.
29510 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
29512         PR rtl-optimization/69570
29513         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29514         if there is more than one set, not if there is a single set.
29516 2016-02-01  Richard Henderson  <rth@redhat.com>
29518         PR rtl-opt/69535
29519         * combine.c (make_compound_operation): When looking through a
29520         subreg, make sure to re-extend to the width of the outer mode.
29522 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
29524         PR tree-optimization/69546
29525         * wide-int.cc (wi::divmod_internal): For unsigned division
29526         where both operands fit into uhwi, if o1 is 1 and o0 has
29527         msb set, if divident_prec is larger than bits per hwi,
29528         clear another quotient word and return 2 instead of 1.
29529         Similarly for remainder with msb in HWI set, if dividend_prec
29530         is larger than bits per hwi.
29532 2016-01-29  Martin Jambor  <mjambor@suse.cz>
29534         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29535         Use short lowercase names.
29536         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
29537         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29538         acq_rel one.  Protect warning agains segfaults if
29539         get_memory_order_name returns NULL.
29540         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29541         with release semantics.  Do not warn if get_memory_order already did.
29542         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29543         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
29544         if get_memory_order already did.
29546 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
29548         * doc/install.texi: Document that isl-0.16 is supported.
29550 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
29552         PR target/69299
29553         * config/i386/constraints.md (Bm): Describe as special memory
29554         constraint.
29555         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29556         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29557         * genpreds.c (struct constraint_data): Add is_special_memory.
29558         (have_special_memory_constraints, special_memory_start): New
29559         static vars.
29560         (special_memory_end): Ditto.
29561         (add_constraint): Add new arg is_special_memory.  Add code to
29562         process its true value.  Update have_special_memory_constraints.
29563         (process_define_constraint): Pass the new arg.
29564         (process_define_register_constraint): Ditto.
29565         (choose_enum_order): Process special memory.
29566         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29567         function insn_extra_special_memory_constraint.
29568         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29569         * gensupport.c (process_rtx): Process
29570         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29571         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29572         * ira-lives.c (single_reg_class): Use
29573         insn_extra_special_memory_constraint.
29574         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29575         * lra-constraints.c (process_alt_operands): Ditto.
29576         (curr_insn_transform): Use insn_extra_special_memory_constraint.
29577         * recog.c (asm_operand_ok, preprocess_constraints): Process
29578         CT_SPECIAL_MEMORY.
29579         * reload.c (find_reloads): Ditto.
29580         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29581         * stmt.c (parse_input_constraint): Use
29582         insn_extra_special_memory_constraint.
29584 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29586         PR target/69530
29587         * lra-splill.c (lra_final_code_change): Revert r229087 by
29588         removing all sub-registers.
29590 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
29592         PR target/65604
29593         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29595 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
29597         PR target/69551
29598         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29599         SSE1, copy target into the temporary reg first before recursing
29600         on it.
29602 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29604         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29605         with vm.
29607 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
29609         * ginclude/stdarg.h: Test __cplusplus instead of
29610         __GXX_EXPERIMENTAL_CXX0X__.
29612 2016-01-29  Richard Biener  <rguenther@suse.de>
29614         PR tree-optimization/69547
29615         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29616         Do not mark clobbers necessary.
29617         (mark_all_reaching_defs_necessary_1): Likewise.
29619 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29621         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29622         declaration name with %qs and print it in both error messages.
29623         Also fix indentation.
29625 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29627         PR other/69006
29628         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29629         trailing blank line from error message.
29631 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
29633         PR c++/69462
29634         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29635         for C++-11.
29637 2016-01-29  Richard Biener  <rguenther@suse.de>
29639         PR middle-end/69537
29640         * match.pd: Allow all integral types when simplifying a
29641         widening or sign-changing conversion.
29643 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29645         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29646         back to setting codegen_error to fail codegen.
29648 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
29650         PR target/69459
29651         * config/i386/constraints.md (C): Only accept constant zero operand.
29652         (BC): New constraint.
29653         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29654         instead of C constraint.
29655         * doc/md.texi (Machine Constraints): Update description
29656         of C constraint.
29658 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
29660         PR target/68400
29661         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29663 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
29665         PR middle-end/69542
29666         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29667         non-debug insns.
29669 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
29671         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29672         branches if using guessed profile.
29674 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
29676         * graphite-optimize-isl.c (optimize_isl): Fix dump.
29678 2016-01-28  Richard Henderson  <rth@redhat.com>
29680         PR target/69305
29681         * config/aarch64/aarch64-modes.def (CC_Cmode): New
29682         * config/aarch64/aarch64-protos.h: Update.
29683         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29684         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29685         (aarch64_get_condition_code_1): Handle CC_Cmode.
29686         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29687         (*add<mode>3_compareC_cconly_imm): New.
29688         (*add<mode>3_compareC_cconly): New.
29689         (*add<mode>3_compareC_imm): New.
29690         (add<mode>3_compareC): New.
29691         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29692         to be first.  Use aarch64_carry_operation.
29693         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29694         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29695         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29696         (subti3): Use subdi3_compare1.
29697         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29698         (sub<mode>3_compare1): New.
29699         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29700         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29701         (*subsi3_carryin_uxtw): Likewise.
29702         (*ngc<mode>, *ngcsi_uxtw): Likewise.
29703         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29704         * config/aarch64/iterators.md (DWI): New.
29705         * config/aarch64/predicates.md (aarch64_carry_operation): New.
29706         (aarch64_borrow_operation): New.
29708 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
29710         * graphite-optimize-isl.c (optimize_isl): Print a different debug
29711         message when isl does not return a valid schedule.
29713 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29715         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29716         Remove comments from class declarations: they are already in the code
29717         close by the defs.
29719 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29721         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29722         codegen_error_p.
29723         (ternary_op_to_tree): Same.
29724         (unary_op_to_tree): Same.
29725         (nary_op_to_tree): Same.
29726         (gcc_expression_from_isl_expr_op): Same.
29727         (gcc_expression_from_isl_expression): Same.
29728         (graphite_create_new_loop): Same.
29729         (graphite_create_new_loop_guard): Same.
29730         (build_iv_mapping): Same.
29731         (graphite_create_new_guard): Same.
29732         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29733         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29735 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
29737         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29738         instead of setting codegen_error to fail codegen.
29740 2016-01-28  Jason Merrill  <jason@redhat.com>
29742         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29744 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29746         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29747         Remove CONST_INT_P check in CCMP cost calculation.
29749 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29751         * config/aarch64/aarch64.c (generic_vector_cost):
29752         Set vec_permute_cost.
29753         (cortexa57_vector_cost): Likewise.
29754         (exynosm1_vector_cost): Likewise.
29755         (xgene1_vector_cost): Likewise.
29756         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29757         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29758         Add vec_permute_cost entry.
29760 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
29762         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29763         immediate as %1.
29764         (add<mode>3_compare0): Likewise.
29765         (addsi3_compare0_uxtw): Likewise.
29766         (add<mode>3nr_compare0): Likewise.
29767         (compare_neg<mode>): Likewise.
29768         (<optab><mode>3): Likewise.
29770 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
29772         * tree-vect-stmts.c (vectorizable_comparison): Add
29773         NULL check for vectype.
29775 2016-01-28  Richard Biener  <rguenther@suse.de>
29777         PR tree-optimization/69466
29778         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29779         Account for PHIs we couldn't duplicate.
29781 2016-01-28  Martin Liska  <mliska@suse.cz>
29783         PR pch/68758
29784         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29785         instead of ENABLE_VALGRIND_CHECKING.
29787 2016-01-27  Richard Henderson  <rth@redhat.com>
29789         PR rtl-opt/69447
29790         * lra-remat.c (subreg_regs): New.
29791         (dump_candidates_and_remat_bb_data): Dump it.
29792         (operand_to_remat): Reject if operand in subreg_regs.
29793         (set_bb_regs): Collect subreg_regs.
29794         (lra_remat): Init and free subreg_regs.  Compute
29795         calculate_local_reg_remat_bb_data before create_cands.
29797 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29799         PR target/68986
29800         * config/i386/i386.c (ix86_update_stack_boundary): Don't
29801         change stack_alignment_needed for __tls_get_addr call.
29803 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
29805         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29807 2016-01-27  Jeff Law  <law@redhat.com>
29809         PR tree-optimization/68398
29810         PR tree-optimization/69196
29811         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29812         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29813         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29814         Only count PHIs in the last block in the path.  The others will
29815         const/copy propagate away.  Add heuristic to allow more irreducible
29816         subloops to be created when it is likely profitable to do so.
29818         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29819         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
29820         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
29822 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
29824         PR lto/69254
29825         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29826         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29827         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29828         * tree-streamer-in.c: Include asan.h.
29829         (streamer_get_builtin_tree): For builtins in sanitizer
29830         range call initialize_sanitizer_builtins and retry.
29832 2016-01-27  Ian Lance Taylor  <iant@google.com>
29834         * common.opt (fkeep-gc-roots-live): New undocumented option.
29835         * tree-ssa-loop-ivopts.c (add_candidate_1): If
29836         -fkeep-gc-roots-live, skip pointers.
29837         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29838         NULL.
29840 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
29842         PR target/69512
29843         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29844         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29846 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
29848         PR target/68380
29849         * configure.ac: NetBSD provides SSP in its C library.
29850         * configure: Updated.
29852 2016-01-27  Richard Biener  <rguenther@suse.de>
29854         PR tree-optimization/69166
29855         * tree-vect-loop.c (vect_is_simple_reduction): Always check
29856         reduction code for commutativity / associativity.
29858 2016-01-27  Martin Jambor  <mjambor@suse.cz>
29860         PR tree-optimization/69355
29861         * tree-sra.c (analyze_access_subtree): Correct hole detection when
29862         total_scalarization fails.
29864 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
29866         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29867         power9.
29869 2016-01-27  Christian Bruel  <christian.bruel@st.com>
29871         PR target/69245
29872         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29873         Move arm_reset_previous_fndecl and set_target_option_current_node in
29874         the conditional part.  Call save_restore_target_globals.
29875         * config/arm/arm.c (arm_set_current_function):
29876         Refactor to better support #pragma target and attribute mix.
29877         Call save_restore_target_globals.
29878         * config/arm/arm-protos.h (save_restore_target_globals): New function.
29880 2016-01-27  Martin Liska  <mliska@suse.cz>
29882         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29883         reference for an HSA kernel and its host function.
29885 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
29887         PR tree-optimization/69399
29888         * wide-int.h (wi::lrshift): For larger precisions, only
29889         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29891 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
29893         * config/arc/predicates.md (proper_comparison_operator): Reject
29894         constant-constant comparison.
29896 2016-01-26  Tom de Vries  <tom@codesourcery.com>
29898         PR tree-optimization/69110
29899         * tree-data-ref.c (initialize_data_dependence_relation): Handle
29900         DR_NUM_DIMENSIONS == 0.
29902 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
29903             Sebastian Pop  <s.pop@samsung.com>
29905         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29906         isl_ast_op_cond and isl_ast_op_select.
29907         (gcc_expression_from_isl_expr_op): Same.
29909 2016-01-26  Jason Merrill  <jason@redhat.com>
29911         PR c++/68782
29912         * tree.c (recompute_constructor_flags): Split out from
29913         build_constructor.
29914         (verify_constructor_flags): New.
29915         * tree.h: Declare them.
29917 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
29919         PR rtl-optimization/69217
29920         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29921         are no TYPE_FIELDS set for the record type.
29923 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29925         PR target/68662
29926         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29927         toc_label_name unconditionally.
29928         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29929         SYMBOL_REF string.  Use toc_label_name instead of constructing
29930         LCTOC1.
29931         (rs6000_elf_declare_function_name): Use toc_label_name instead of
29932         constructing LCTOC1.
29934 2016-01-26  Martin Sebor  <msebor@redhat.com>
29936         PR other/69477
29937         * doc/extend.texi (Common Type Attributes): Move text that talks about
29938         attribute packed from attribute aligned to the section discussing
29939         the former attribute for clarity.
29941 2016-01-26  Richard Henderson  <rth@redhat.com>
29943         PR middle-end/60908
29944         * trans-mem.c (tm_region_init): Mark entry block as visited.
29946 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
29948         PR other/69006
29949         * diagnostic-show-locus.c (layout::print_source_line): Replace
29950         call to pp_newline with call to layout::print_newline.
29951         (layout::print_annotation_line): Likewise.
29952         (layout::move_to_column): Likewise.
29953         (layout::print_any_fixits): After printing any fixits, print a
29954         trailing newline, if necessary.
29955         (layout::print_newline): New method, resetting any colorization
29956         before a newline.
29957         (diagnostic_show_locus): Move the pp_newline to before the
29958         early bailout.  Remove dummy block enclosing the layout instance.
29959         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29960         of pp_newline_and_flush with pp_flush.
29961         (diagnostic_append_note): Delete use of pp_newline.
29962         (diagnostic_append_note_at_rich_loc): Delete.
29963         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29964         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29965         when newline characters are added to the buffer.
29967 2016-01-26  Michael Matz  <matz@suse.de>
29969         * configure.ac (ac_cv_std_swap_in_utility): New test.
29970         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29971         * configure: Regenerate.
29972         * config.in: Regenerate.
29974 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
29976         * config/arc/arc.md (cstoresi4): Force operand into register.
29977         (arcset<code>): Fix predicate.
29978         (arcsetltu): Likewise.
29979         (arcsetgeu): Likewise.
29980         (arcsethi): Likewise.
29981         (arcsetls): Likewise.
29983 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
29985         PR tree-optimization/69483
29986         * gimple-fold.c (canonicalize_constructor_val): Return NULL
29987         if base has error_mark_node type.
29989 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
29991         PR target/68620
29992         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29993         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29994         New helper macros.
29995         (vget_lane_f16): Handle big-endian.
29996         (vgetq_lane_f16): Likewise.
29997         (vset_lane_f16): Likewise.
29998         (vsetq_lane_f16): Likewise.
29999         * config/arm/iterators.md (VQXMOV): Add V8HF.
30000         (VDQ): Add V4HF and V8HF.
30001         (V_reg): Handle V4HF and V8HF.
30002         (Is_float_mode): Likewise.
30003         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
30004         neon_vdup_nv8hf): New patterns.
30005         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
30006         Use VD_LANE iterator.
30007         (neon_vld1_dup<mode>): Use VQ2 iterator.
30009 2016-01-26  Nathan Sidwell  <nathan@acm.org>
30011         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
30012         (set_oacc_fn_attrib): Add IS_KERNEL arg.
30013         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
30014         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
30015         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
30016         (oacc_validate_dims): Add LEVEL arg, don't return level.
30017         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
30018         oacc_validate_dims.
30019         (execute_oacc_device_lower): Adjust, add more dump output.
30020         * tree-ssa-loop.c (gate_oacc_kernels): Use
30021         oacc_fn_attrib_kernels_p.
30022         * tree-parloops.c (create_parallel_loop): Adjust
30023         set_oacc_fn_attrib call.
30025 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
30027         PR lto/69254
30028         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
30029         (append_compiler_options): Handle -fcilkplus.
30030         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
30032 2016-01-26  Nick Clifton  <nickc@redhat.com>
30034         PR target/66655
30035         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
30036         been marked as DECL_ONE_ONLY but we do not the means to make it
30037         so, then do not allow it to bind locally.
30039 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
30041         PR lto/69254
30042         * opts.h (parse_sanitizer_options): New prototype.
30043         * opts.c (sanitizer_opts): New array.
30044         (parse_sanitizer_options): New function.
30045         (common_handle_option): Use parse_sanitizer_options.
30047 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
30049         PR target/68986
30050         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
30051         alignment adjustment to ...
30052         (ix86_update_stack_boundary): Here.  Don't over-align stack for
30053         __tls_get_addr.
30054         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
30055         if __tls_get_addr is called.
30057 2016-01-26  Christian Bruel  <christian.bruel@st.com>
30059         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
30061 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
30063         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
30065 2016-01-26  Richard Biener  <rguenther@suse.de>
30067         PR middle-end/69467
30068         * match.pd: Guard X * CST CMP 0 pattern with single_use.
30070 2016-01-26  Richard Biener  <rguenther@suse.de>
30072         PR tree-optimization/69452
30073         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
30074         (move_computations_dom_walker::before_dom_children): Rename
30075         to ...
30076         (move_computations_worker): This.
30077         (move_computations): Perform an RPO rather than a DOM walk.
30079 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
30081         PR target/69442
30082         * combine.c (combine_instructions): For REG_EQUAL note with
30083         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
30084         to the underlying register.
30085         * doc/rtl.texi (REG_EQUAL): Document the behavior of
30086         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
30088 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
30090         PR target/67896
30091         * config/aarch64/aarch64-builtins.c
30092         (aarch64_init_simd_builtin_types): Do not set structural
30093         equality to __Poly{8,16,64,128}_t types.
30095 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
30097         PR tree-optimization/69400
30098         * wide-int.cc (wi_pack): Take the precision as argument and
30099         perform canonicalization here rather than in the callers.
30100         Use the main loop to handle all full-width HWIs.  Add a
30101         zero HWI if in_len isn't a full result.
30102         (wi::divmod_internal): Update accordingly.
30103         (wi::mul_internal): Likewise.  Simplify.
30105 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
30106             Sebastian Pop  <s.pop@samsung.com>
30108         * graphite-poly.c (apply_poly_transforms): Simplify.
30109         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
30110         (print_isl_map): Same.
30111         (print_isl_union_map): Same.
30112         (print_isl_schedule): New.
30113         (debug_isl_schedule): New.
30114         * graphite-dependences.c (scop_get_reads): Do not call
30115         isl_union_map_add_map that is undocumented isl functionality.
30116         (scop_get_must_writes): Same.
30117         (scop_get_may_writes): Same.
30118         (scop_get_original_schedule): Remove.
30119         (scop_get_dependences): Do not call isl_union_map_compute_flow that
30120         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
30121         (compute_deps): Remove.
30122         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
30123         (debug_schedule_ast): New.
30124         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
30125         set_separate_option.
30126         (graphite_regenerate_ast_isl): Add dump.
30127         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
30128         from scop->transformed_schedule.
30129         (graphite_regenerate_ast_isl): Add more dump.
30130         * graphite-optimize-isl.c (optimize_isl): Set
30131         scop->transformed_schedule.  Check whether schedules are equal.
30132         (apply_poly_transforms): Move here.
30133         * graphite-poly.c (apply_poly_transforms): ... from here.
30134         (free_poly_bb): Static.
30135         (free_scop): Static.
30136         (pbb_number_of_iterations_at_time): Remove.
30137         (print_isl_ast): New.
30138         (debug_isl_ast): New.
30139         (debug_scop_pbb): New.
30140         * graphite-scop-detection.c (print_edge): Move.
30141         (print_sese): Move.
30142         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
30143         (build_scop_scattering): Remove.
30144         (create_pw_aff_from_tree): Assert instead of bailing out.
30145         (add_condition_to_pbb): Remove unused code, do not fail.
30146         (add_conditions_to_domain): Same.
30147         (add_conditions_to_constraints): Remove.
30148         (build_scop_context): New.
30149         (add_iter_domain_dimension): New.
30150         (build_iteration_domains): Initialize pbb->iterators.
30151         Call add_conditions_to_domain.
30152         (nested_in): New.
30153         (loop_at): New.
30154         (index_outermost_in_loop): New.
30155         (index_pbb_in_loop): New.
30156         (outermost_pbb_in): New.
30157         (add_in_sequence): New.
30158         (add_outer_projection): New.
30159         (outer_projection_mupa): New.
30160         (add_loop_schedule): New.
30161         (build_schedule_pbb): New.
30162         (build_schedule_loop): New.
30163         (embed_in_surrounding_loops): New.
30164         (build_schedule_loop_nest): New.
30165         (build_original_schedule): New.
30166         (build_poly_scop): Call build_original_schedule.
30167         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
30168         (free_poly_dr): Remove.
30169         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
30170         (free_poly_bb): Remove.
30171         (debug_loop_vec): Remove.
30172         (print_isl_ast): Declare.
30173         (debug_isl_ast): Declare.
30174         (scop_do_interchange): Remove.
30175         (scop_do_strip_mine): Remove.
30176         (scop_do_block): Remove.
30177         (flatten_all_loops): Remove.
30178         (optimize_isl): Remove.
30179         (pbb_number_of_iterations_at_time): Remove.
30180         (debug_scop_pbb): Declare.
30181         (print_schedule_ast): Declare.
30182         (debug_schedule_ast): Declare.
30183         (struct scop): Remove schedule.  Add original_schedule,
30184         transformed_schedule.
30185         (free_gimple_poly_bb): Remove.
30186         (print_generated_program): Remove.
30187         (debug_generated_program): Remove.
30188         (unify_scattering_dimensions): Remove.
30189         * sese.c (print_edge): ... here.
30190         (print_sese): ... here.
30191         (debug_edge): ... here.
30192         (debug_sese): ... here.
30193         * sese.h (print_edge): Declare.
30194         (print_sese): Declare.
30195         (dump_edge): Declare.
30196         (dump_sese): Declare.
30198 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
30199             Sebastian Pop  <s.pop@samsung.com>
30201         * Makefile.in: Set ISLVER in site.exp.
30203 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
30205         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
30206         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
30207         through DECL_VALUE_EXPR for expansion.
30209 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30211         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
30212         the frame info after reload completed.
30214 2016-01-25  Jeff Law  <law@redhat.com>
30216         PR tree-optimization/69196
30217         PR tree-optimization/68398
30218         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
30219         tree-ssa-threadupdate.c.
30220         (determine_bb_domination_status): Prototype
30221         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
30222         (determine_bb_domination_status): No longer static.
30223         (valid_jump_thread_path): Remove code to detect characteristics
30224         of the jump thread path not associated with correctness.
30225         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
30226         Correct test for thread path length.  Count PHIs for real operands as
30227         statements that need to be copied.  Do not count ASSERT_EXPRs.
30228         Look at all the blocks in the thread path.  Compute and selectively
30229         filter thread paths based on threading through the latch, threading
30230         a multiway branch or crossing a multiway branch.
30232 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30234         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
30235         decl with __attribute__ ((unused)) annotation.
30237 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
30239         PR target/69421
30240         * tree-vect-stmts.c (vectorizable_condition): Check vectype
30241         of operands is compatible with a statement vectype.
30243 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
30245         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
30246         improve wording for mixed storage order support.
30248 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
30250         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
30251         (vcvt_u64_f64): Likewise.
30252         (vcvta_s64_f64): Likewise.
30253         (vcvta_u64_f64): Likewise.
30254         (vcvtm_s64_f64): Likewise.
30255         (vcvtm_u64_f64): Likewise.
30256         (vcvtn_s64_f64): Likewise.
30257         (vcvtn_u64_f64): Likewise.
30258         (vcvtp_s64_f64): Likewise.
30259         (vcvtp_u64_f64): Likewise.
30261 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
30263         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
30264         (arc_init): Check validity mll64 option.
30265         (arc_save_restore): Use double load/store instruction.
30266         (arc_expand_movmem): Likewise.
30267         (arc_split_move): Don't split if we have double load/store
30268         instructions. Returns a boolean.
30269         (arc_process_double_reg_moves): Change function to return boolean
30270         instead of a sequence of instructions.
30271         (arc_dwarf_register_span): New function.
30272         * config/arc/arc-protos.h (arc_split_move): Change prototype.
30273         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
30274         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
30275         (*movdf_insn): Likewise.
30276         * config/arc/arc.opt (mll64): New option.
30277         * config/arc/predicates.md (even_register_operand): New predicate.
30278         * doc/invoke.texi (ARC Options): Add mll64 documentation.
30280 2016-01-25  Richard Biener  <rguenther@suse.de>
30282         PR lto/69393
30283         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
30284         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
30285         DECL_NAMELESS.
30286         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
30288 2016-01-25  Richard Biener  <rguenther@suse.de>
30290         PR tree-optimization/69376
30291         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
30292         flag.
30293         (VN_INFO_ANTI_RANGE_P): New inline.
30294         (VN_INFO_RANGE_TYPE): Likewise.
30295         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
30296         SSA_NAME_ANTI_RANGE_P.
30297         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
30298         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30299         Properly query VN_INFO_RANGE_TYPE.
30301 2016-01-25  Nick Clifton  <nickc@redhat.com>
30303         PR target/66655
30304         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
30306 2016-01-23  Tom de Vries  <tom@codesourcery.com>
30308         PR tree-optimization/69426
30309         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
30310         removed clobber.
30312 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
30314         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
30315         "the the" with "the" in the comments.
30316         * ipa-devirt.c (build_type_inheritance_graph,
30317         update_type_inheritance_graph): Likewise.
30318         * tree.c (build_function_type_list_1): Likewise.
30319         * cfgloopmanip.c (scale_loop_profile): Likewise.
30320         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
30321         * gimple-ssa-split-paths.c
30322         (find_block_to_duplicate_for_splitting_paths): Likewise.
30323         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
30324         * expr.c (convert_move): Likewise.
30325         * var-tracking.c (vt_stack_adjustments): Likewise.
30326         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
30327         * tree-vrp.c (test_for_singularity): Likewise.
30329         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
30330         directly instead of building a temporary tree.
30332         PR bootstrap/69434
30333         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
30334         remove <algorithm> include.
30336 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
30338         PR target/69432
30339         * config/i386/i386.c: Include dojump.h.
30340         (expand_small_movmem_or_setmem,
30341         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
30342         fixes.
30343         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
30344         if dynamic_check != -1.
30346 2016-01-21  Jeff Law  <law@redhat.com>
30348         PR middle-end/69347
30349         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
30350         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
30351         into dominated_by_p.
30352         (cprop_into_successor_phis): Avoid unnecessary tests.
30354 2016-01-22  Richard Henderson  <rth@redhat.com>
30356         PR target/69416
30357         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
30358         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
30360 2016-01-22  Michael Matz  <matz@suse.de>
30362         * system.h (string, algorithm): Include only conditionally.
30363         (new): Include always under C++.
30364         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
30365         * final.c (toplevel): Ditto.
30366         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
30367         * genconditions.c (write_header): Make gencondmd.c define
30368         INCLUDE_STRING.
30369         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
30371         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
30372         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
30374 2016-01-22  Christian Bruel  <christian.bruel@st.com>
30376         PR target/68674
30377         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30379 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30381         PR target/69403
30382         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30383         define_insn_and_split.  Ensure operands[1] and operands[0] do not
30384         get assigned the same register.
30386 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
30388         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30390 2016-01-22  Christian Bruel  <christian.bruel@st.com>
30392         * config/arm/arm-c.c (arm_pragma_target_parse):
30393         Remove warn_builtin_macro_redefined overwrite.
30395 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30397         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30398         flag_non_call_exceptions compatibility.
30400 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
30402         PR debug/66668
30403         * dwarf2out.c (add_child_die_after): New function.
30404         (dwarf_qual_info_t): New type.
30405         (dwarf_qual_info): New variable.
30406         (qualified_die_p): New function.
30407         (modified_type_die): For -fdebug-types-section, ensure
30408         canonical order of qualifiers.  Put qualified DIEs adjacent
30409         to the corresponding non-qualified type DIE and search there
30410         for existing qualified DIEs.
30412 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
30414         * doc/extend.texi (scalar_storage_order type attribute): Document
30415         restriction on type punning and aliasing, and remove future tense.
30417 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
30419         PR target/69252
30420         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30421         first stage.
30423 2016-01-21  Jeff Law  <law@redhat.com>
30425         PR middle-end/69347
30426         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30427         useless call to record_temporary_equivalences.
30428         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30429         allocate 10 slots in the bb_path vector and let it grow as needed.
30430         (fsm_find_control_statement_thread_paths): Similarly for the next_path
30431         vector.
30433 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
30435         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30436         Detangle.
30437         * configure: Regenerate.
30439 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
30441         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30442         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30444 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
30446         PR middle-end/66178
30447         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30448         drop EXPAND_INITIALIZER.
30449         * rtl.h (contains_symbolic_reference_p): Declare.
30450         * rtlanal.c (contains_symbolic_reference_p): New function.
30451         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30452         a subtraction into a NOT if symbolic constants are involved.
30454 2016-01-21  Anton Blanchard  <anton@samba.org>
30455             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30457         PR target/63354
30458         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30459         #define.
30460         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30461         function.
30463 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
30465         * config/microblaze/microblaze.c
30466         (get_branch_target): New.
30467         (insert_wic_for_ilb_runout): New.
30468         (insert_wic): New.
30469         (microblaze_machine_dependent_reorg): New.
30470         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30471         * config/microblaze/microblaze.md
30472         (UNSPEC_IPREFETCH): Define.
30473         (iprefetch): New pattern
30474         * config/microblaze/microblaze.opt
30475         (mxl-prefetch): New flag.
30477 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
30479         * config/microblaze/microblaze.h
30480         (FIXED_REGISTERS): Update in macro.
30481         (CALL_USED_REGISTERS): Update in macro.
30483 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
30485         PR rtl-optimization/68920
30486         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30487         moves.
30489 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
30491         PR rtl-optimization/68990
30492         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30493         pseudo instead of inheritance ones.
30495 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30496             Nick Clifton  <nickc@redhat.com>
30498         PR target/69129
30499         PR target/69012
30500         * config/mips/mips.c (mips_compute_frame_info): Initialise
30501         args_size and hard_frame_pointer_offset fields of the frame
30502         structure before calling mips_global_pointer.
30504 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
30506         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30507         label reference.
30508         * configure: Regenerate.
30510 2016-01-21  Richard Biener  <rguenther@suse.de>
30512         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30514 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
30516         * config/s390/s390.c (s390_asm_declare_function_size): Add code
30517         to actually emit the .size directive.
30519 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
30520              Jakub Jelinek  <jakub@redhat.com>
30522         PR target/69187
30523         PR target/65624
30524         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30525         args array size by one to avoid buffer overflow.
30527 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
30529         * config/s390/s390.md (pool_section_start): Use switch_to_section
30530         to select proper read-only data section instead of hardcoding
30531         .rodata.
30532         (pool_section_end): Use switch_to_section to match the above.
30534 2016-01-21  Richard Biener  <rguenther@suse.de>
30536         PR tree-optimization/69378
30537         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30538         (set_ssa_val_to): Use it for dominance checks taking into
30539         account not executable edges.
30541 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
30543         PR c++/69355
30544         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30545         for bitsize instead of GET_MODE_PRECISION (mode).
30547 2016-01-20  Martin Sebor  <msebor@redhat.com>
30549         PR c/52291
30550         * extend.texi (__sync Builtins): Clarify the semantics of
30551         __sync_fetch_and_OP built-ins on pointers.
30552         (__atomic Builtins): Same.
30554 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30555             Sebastian Pop  <s.pop@samsung.com>
30557         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30558         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30559         (is_valid_rename): Same.
30560         (translate_isl_ast_to_gimple::get_rename): Same.
30561         (translate_isl_ast_to_gimple::rename_all_uses): Same.
30562         (translate_isl_ast_to_gimple::rename_uses): Same.
30563         (get_new_name): Check for close_phi nodes.
30564         (copy_loop_phi_args): Use phi_node_kind.
30565         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30566         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30568 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30569             Sebastian Pop  <s.pop@samsung.com>
30571         Revert commit r229783.
30572         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30573         Remove use of parameter_rename_map.
30574         (copy_def): Remove.
30575         (copy_internal_parameters): Remove.
30576         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30577         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30578         (free_sese_info): Do not free parameter_rename_map.
30579         (set_rename): Do not use parameter_rename_map.
30580         (rename_uses): Update call to set_rename.
30581         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30582         * sese.h (parameter_rename_map_t): Remove.
30583         (struct sese_info_t): Remove field parameter_rename_map.
30585 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30586             Sebastian Pop  <s.pop@samsung.com>
30588         * graphite-isl-ast-to-gimple.c: Fix comment.
30589         * graphite-scop-detection.c (defined_in_loop_p): New.
30590         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30591         names defined in loop.
30593 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30594             Sebastian Pop  <s.pop@samsung.com>
30596         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30597         Discard unstructured if-then-else regions.
30599 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30600             Sebastian Pop  <s.pop@samsung.com>
30602         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30603         (cleanup_loop_iter_dom): Remove.
30604         (build_loop_iteration_domains): Remove.
30605         (build_scop_context): Remove.
30606         (build_scop_iteration_domain): Remove.
30607         (add_loop_constraints): New.
30608         (build_iteration_domains): New.
30609         (build_poly_scop): Call build_iteration_domains.
30611 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30612             Sebastian Pop  <s.pop@samsung.com>
30614         * graphite-scop-detection.c
30615         (scop_detection::harmful_loop_in_region): Free dom and loops.
30616         (scop_detection::loop_body_is_valid_scop): Free bbs.
30618 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30619             Sebastian Pop  <s.pop@samsung.com>
30621         * graphite-scop-detection.c (record_loop_in_sese): New.
30622         (gather_bbs::before_dom_children): Call record_loop_in_sese.
30623         (build_scops): Remove call to build_sese_loop_nests.
30624         * sese.c (sese_record_loop): Remove.
30625         (build_sese_loop_nests): Remove.
30626         (new_sese_info): Remove region->loops.
30627         (free_sese_info): Same.
30628         * sese.h (sese_contains_loop): Same.
30629         (build_sese_loop_nests): Remove.
30630         (sese_contains_loop): Remove.
30632 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30633             Sebastian Pop  <s.pop@samsung.com>
30635         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30636         loop_is_valid_in_scop.
30637         (scop_detection::harmful_stmt_in_region): Renamed
30638         harmful_loop_in_region.
30639         Call loop_is_valid_in_scop.
30641 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30642             Sebastian Pop  <s.pop@samsung.com>
30644         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30645         isl_ast_node_mark.
30647 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30648             Sebastian Pop  <s.pop@samsung.com>
30650         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30651         * graphite.h (struct poly_bb): Remove field is_reduction.
30652         (PBB_IS_REDUCTION): Remove.
30654 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
30655             Sebastian Pop  <s.pop@samsung.com>
30657         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30658         (add_pdr_constraints): Same.
30659         (scop_get_reads): Same.
30660         (scop_get_must_writes): Same.
30661         (scop_get_may_writes): Same.
30662         (scop_get_original_schedule): Same.
30663         (extend_schedule): Same.
30664         (apply_schedule_on_deps): Same.
30665         (carries_deps): Same.
30666         (compute_deps): Same.
30667         (scop_get_dependences): Same.
30668         * graphite-isl-ast-to-gimple.c
30669         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30670         * graphite-optimize-isl.c (get_schedule_for_band): Same.
30671         (get_schedule_for_band_list): Same.
30672         (get_schedule_map): Same.
30673         (apply_schedule_map_to_scop): Same.
30674         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30675         (build_loop_iteration_domains): Same.
30676         (add_condition_to_pbb): Same.
30677         (add_param_constraints): Same.
30678         (pdr_add_memory_accesses): Same.
30679         (pdr_add_data_dimensions): Same.
30681 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
30683         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30684         requirements.
30686 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
30688         * common.opt (feliminate-dwarf2-dups): Replace references to
30689         "DWARF 2" with just "DWARF".
30690         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30691         * doc/extend.texi: Likewise.
30692         * doc/cpp.texi: Likewise.
30693         * doc/invoke.texi: Likewise.
30694         (Option Summary): Add -gdwarf to list of Debugging Options.
30695         (Debugging Options): Document -gdwarf.
30696         * doc/contrib.texi: Spell "DWARF" like that.
30698 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
30700         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30701         warning.  Fix up formatting.
30703         PR middle-end/67653
30704         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30705         attempt to mark memory input operand addressable and
30706         call prepare_gimple_addressable in that case.  Don't adjust
30707         input_location for diagnostics, use error_at instead.
30709 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
30711         * config/rs6000/ppc-auxv.h: New file.
30712         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30713         (cpu_is): Likewise.
30714         (cpu_supports): Likewise.
30715         * config/rs6000/rs6000.c: include "ppc-auxv.h".
30716         (cpu_is_info): New variable.
30717         (cpu_supports_info): Likewise.
30718         (tcb_verification_symbol): Likewise.
30719         (cpu_builtin_p): Likewise.
30720         (cpu_expand_builtin): New function.
30721         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30722         (rs6000_init_builtins): Likewise.
30723         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30724         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30725         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30726         * configure: Regenerate.
30727         * config.in: Likewise.
30728         * doc/extend.texi (PowerPC Built-in Functions): Document
30729         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30731 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
30733         PR target/68609
30734         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30735         domain check.
30736         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30737         for V4SFmode.
30739 2016-01-20  Richard Henderson  <rth@redhat.com>
30741         PR bootstrap/69343
30742         PR bootstrap/69339
30743         PR tree-opt/68964
30744         Revert:
30745         * tree.c (tm_define_builtin): New.
30746         (find_tm_vector_type): New.
30747         (build_tm_vector_builtins): New.
30748         (build_common_builtin_nodes): Call it.
30750 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
30752         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30753         (arm_fp_ok): Likewise.
30754         (arm_fp): Likewise.
30755         (arm_crypto): Likewise.
30757 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30758             Richard Biener  <rguenther@suse.de>
30760         PR tree-optimization/69328
30761         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30762         vectors have same number of elements.
30763         (vectorizable_condition): Fix masked version recognition.
30765 2016-01-20  Richard Biener  <rguenther@suse.de>
30767         PR tree-optimization/69345
30768         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30769         (VN_INFO_PTR_INFO): Likewise.
30770         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30771         info when it is equal between non-dominating SSA names.
30772         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30773         Make sure to look at original SSA infos.
30775 2016-01-20  Jeff Law  <law@redhat.com>
30777         PR target/25114
30778         * config/m68k/predicates.md (pow2_m1_operand): New predicate
30779         extracted from ...
30780         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30781         (pc_or_label_operand): New predicate.
30782         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30783         tests for small integers that are 2^n - 1.
30785 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
30787         * doc/invoke.texi (Options Summary): Add '.' after @xref.
30789 2016-01-19  Jeff Law  <law@redhat.com>
30791         PR middle-end/69347
30792         * tree-ssa-threadbackwards.c
30793         (fsm_find_control_statement_thread_paths): Do not try to lookup
30794         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30796 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30798         * doc/lto.texi: Remove text that says only Gold has linker plugin
30799         support.
30801 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
30803         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30804         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30805         the DIE accordingly.
30806         (modified_type_die): Add REVERSE parameter and pass it recursively,
30807         as well as to base_type_die.  Adjust presence check accordingly.
30808         (base_type_for_mode): Adjust call to modified_type_die.
30809         (add_type_attribute): Add REVERSE parameter and pass it to
30810         modified_type_die.
30811         (generic_parameter_die): Adjust call to add_type_attribute.
30812         (add_scalar_info): Likewise.
30813         (add_subscript_info): Likewise.
30814         (gen_array_type_die): Likewise.
30815         (gen_descr_array_type_die): Likewise.
30816         (gen_entry_point_die): Likewise.
30817         (gen_enumeration_type_die): Likewise.
30818         (gen_formal_parameter_die): Likewise.
30819         (gen_subprogram_die): Likewise.
30820         (gen_variable_die ): Likewise.
30821         (gen_const_die): Likewise.
30822         (gen_field_die): Likewise.
30823         (gen_pointer_type_die): Likewise.
30824         (gen_reference_type_die): Likewise.
30825         (gen_ptr_to_mbr_type_die): Likewise.
30826         (gen_inheritance_die): Likewise.
30827         (gen_subroutine_type_die): Likewise.
30828         (gen_typedef_die): Likewise.
30829         (force_type_die): Adjust call to modified_type_die.
30831 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
30833         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30834         flow throughout the file.  Fix broken link to Objective-C 2.0
30835         documentation.
30836         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30837         errors.
30839 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30841         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30843 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30845         PR ipa/66223
30846         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30847         (maybe_record_node): Record cxa_pure_virtual as the only possible
30848         target if there are not ohter candidates.
30849         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30851 2016-01-19  Richard Biener  <rguenther@suse.de>
30853         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30854         (get_memory_order): Likewise.
30856 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
30858         * tree-vect-stmts.c (vectorizable_store): Check
30859         rhs vectype.
30861 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
30863         PR jit/68446
30864         * gcc.c (driver::decode_argv): Add call to
30865         init_opts_obstack before init_options_struct.
30866         * opts.c (init_opts_obstack): Remove idempotency.
30867         (init_options_struct): Replace call to init_opts_obstack
30868         with a gcc_assert to verify that it has already been called.
30869         * toplev.c (toplev::main): Add call to init_opts_obstack before
30870         calls to init_options_struct.
30871         (toplev::finalize): Move cleanup of opts_obstack next to
30872         cleanup of save_decoded_options, clearing the latter, and
30873         save_decoded_options_count.
30875 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30877         PR target/69135
30878         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30879         attribute to unconditional.  Remove %? from output template.
30881 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30882             Jiong Wang  <jiong.wang@arm.com>
30884         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30885         generated from different expand order.
30887 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30889         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30890         Add support for CCMP costing.
30892 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30894         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30895         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30896         (fccmpe<mode>): Likewise.
30897         (fcmp): Rename to fcmp and globalize pattern.
30898         (fcmpe): Likewise.
30899         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30900         (aarch64_gen_ccmp_next): Add FP support.
30902 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
30904         * target.def (gen_ccmp_first): Update documentation.
30905         (gen_ccmp_next): Likewise.
30906         * doc/tm.texi (gen_ccmp_first): Update documentation.
30907         (gen_ccmp_next): Likewise.
30908         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30909         expand_ccmp_expr_1.  Improve comments.
30910         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30911         (ccmp_ior<mode>): Remove pattern.
30912         (cmp<mode>): Remove expand.
30913         (cmp): Globalize pattern.
30914         (cstorecc4): Use cc_register.
30915         (mov<mode>cc): Remove ccmp_cc_register check.
30916         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30917         Simplify after removal of CC_DNE/* modes.
30918         (aarch64_ccmp_mode_to_code): Remove.
30919         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
30920         In 'k' case use integer as condition.
30921         (aarch64_nzcv_codes): Remove inverted cases.
30922         (aarch64_code_to_ccmode): Remove.
30923         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
30924         comparison with CC register to be used in folowing CCMP/branch/CSEL.
30925         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30926         pattern.  Return the comparison with CC register.  Invert conditions
30927         when bitcode is OR.
30928         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30929         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30931 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30933         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30934         instrumented_version.
30936 2016-01-19  Richard Biener  <rguenther@suse.de>
30938         PR tree-optimization/69336
30939         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30940         handled components with get_ref_base_and_extent.
30941         (equal_mem_array_ref_p): Adjust.
30943 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
30945         PR debug/65779
30946         * shrink-wrap.c: Include valtrack.h.
30947         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
30948         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30949         in between insn and where it will be moved to.  Call
30950         dead_debug_insert_temp.
30951         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
30952         first and dead_debug_local_finish at the end.
30953         For uses and defs bitmap, handle all regs in between REGNO and
30954         END_REGNO, not just the first one.
30956 2016-01-19  Richard Biener  <rguenther@suse.de>
30958         PR tree-optimization/69352
30959         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30960         (equal_mem_array_ref_p): Constrain size and max size properly.
30961         Compare the reverse flag.
30963 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
30965         * ira.c (ira): Update regstat data if we deleted insns.
30967 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
30969         PR rtl-optimization/68955
30970         PR rtl-optimization/64557
30971         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30972         here.  Fix up formatting.
30973         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30975 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30977         PR lto/69133
30978         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30979         assume that the node has body.
30980         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30981         check.
30983 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30985         * lto-streamer-out.c (lto_output): Do not stream instrumentation
30986         thunks.
30988 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30990         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30991         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30993 2016-01-19  Martin Jambor  <mjambor@suse.cz>
30994             Martin Liska  <mliska@suse.cz>
30995             Michael Matz  <matz@suse.de>
30997         * Makefile.in (OBJS): Add new source files.
30998         (GTFILES): Add hsa.c.
30999         * common.opt (disable_hsa): New variable.
31000         (-Whsa): New warning.
31001         * config.in (ENABLE_HSA): New.
31002         * configure.ac: Treat hsa differently from other accelerators.
31003         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
31004         $enable_offloading.
31005         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
31006         * doc/install.texi (Configuration): Document --with-hsa-runtime,
31007         --with-hsa-runtime-include, --with-hsa-runtime-lib and
31008         --with-hsa-kmt-lib.
31009         * doc/invoke.texi (-Whsa): Document.
31010         (hsa-gen-debug-stores): Likewise.
31011         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
31012         to invoke offload compiler for hsa acclerator.
31013         * opts.c (common_handle_option): Determine whether HSA offloading
31014         should be performed.
31015         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
31016         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
31017         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
31018         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
31019         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
31020         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
31021         GF_OMP_FOR_KIND_GRID_LOOP.
31022         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
31023         (pp_gimple_stmt_1): Likewise.
31024         * gimple-walk.c (walk_gimple_stmt): Likewise.
31025         * gimple.c (gimple_build_omp_grid_body): New function.
31026         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
31027         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
31028         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
31029         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
31030         GF_OMP_TEAMS_GRID_PHONY.
31031         (gimple_statement_omp_single_layout): Updated comments.
31032         (gimple_build_omp_grid_body): New function.
31033         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
31034         (gimple_omp_for_grid_phony): New function.
31035         (gimple_omp_for_set_grid_phony): Likewise.
31036         (gimple_omp_parallel_grid_phony): Likewise.
31037         (gimple_omp_parallel_set_grid_phony): Likewise.
31038         (gimple_omp_teams_grid_phony): Likewise.
31039         (gimple_omp_teams_set_grid_phony): Likewise.
31040         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
31041         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
31042         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
31043         (BUILT_IN_GOMP_TARGET): Updated type.
31044         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
31045         (adjust_for_condition): New function.
31046         (get_omp_for_step_from_incr): Likewise.
31047         (extract_omp_for_data): Moved parts to adjust_for_condition and
31048         get_omp_for_step_from_incr.
31049         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
31050         (fixup_child_record_type): Bail out if receiver_decl is NULL.
31051         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
31052         (scan_omp_parallel): Do not create child functions for phony
31053         constructs.
31054         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
31055         (scan_omp_1_op): Checking assert we are not remapping to
31056         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
31057         (parallel_needs_hsa_kernel_p): New function.
31058         (expand_parallel_call): Register apprpriate parallel child
31059         functions as HSA kernels.
31060         (grid_launch_attributes_trees): New type.
31061         (grid_attr_trees): New variable.
31062         (grid_create_kernel_launch_attr_types): New function.
31063         (grid_insert_store_range_dim): Likewise.
31064         (grid_get_kernel_launch_attributes): Likewise.
31065         (get_target_argument_identifier_1): Likewise.
31066         (get_target_argument_identifier): Likewise.
31067         (get_target_argument_value): Likewise.
31068         (push_target_argument_according_to_value): Likewise.
31069         (get_target_arguments): Likewise.
31070         (expand_omp_target): Call get_target_arguments instead of looking
31071         up for teams and thread limit.
31072         (grid_expand_omp_for_loop): New function.
31073         (grid_arg_decl_map): New type.
31074         (grid_remap_kernel_arg_accesses): New function.
31075         (grid_expand_target_kernel_body): New function.
31076         (expand_omp): Call it.
31077         (lower_omp_for): Do not emit phony constructs.
31078         (lower_omp_taskreg): Do not emit phony constructs but create for them
31079         a temporary variable receiver_decl.
31080         (lower_omp_taskreg): Do not emit phony constructs.
31081         (lower_omp_teams): Likewise.
31082         (lower_omp_grid_body): New function.
31083         (lower_omp_1): Call it.
31084         (grid_reg_assignment_to_local_var_p): New function.
31085         (grid_seq_only_contains_local_assignments): Likewise.
31086         (grid_find_single_omp_among_assignments_1): Likewise.
31087         (grid_find_single_omp_among_assignments): Likewise.
31088         (grid_find_ungridifiable_statement): Likewise.
31089         (grid_target_follows_gridifiable_pattern): Likewise.
31090         (grid_remap_prebody_decls): Likewise.
31091         (grid_copy_leading_local_assignments): Likewise.
31092         (grid_process_kernel_body_copy): Likewise.
31093         (grid_attempt_target_gridification): Likewise.
31094         (grid_gridify_all_targets_stmt): Likewise.
31095         (grid_gridify_all_targets): Likewise.
31096         (execute_lower_omp): Call grid_gridify_all_targets.
31097         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
31098         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
31099         (tree_omp_clause): Added union field dimension.
31100         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
31101         * tree.c (omp_clause_num_ops): Added number of arguments of
31102         OMP_CLAUSE__GRIDDIM_.
31103         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
31104         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
31105         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
31106         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
31107         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
31108         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
31109         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
31110         * tree-pass.h (make_pass_gen_hsail): Declare.
31111         (make_pass_ipa_hsa): Likewise.
31112         * ipa-hsa.c: New file.
31113         * lto-section-in.c (lto_section_name): Add hsa section name.
31114         * lto-streamer.h (lto_section_type): Add hsa section.
31115         * timevar.def (TV_IPA_HSA): New.
31116         * hsa-brig-format.h: New file.
31117         * hsa-brig.c: New file.
31118         * hsa-dump.c: Likewise.
31119         * hsa-gen.c: Likewise.
31120         * hsa.c: Likewise.
31121         * hsa.h: Likewise.
31122         * toplev.c (compile_file): Call hsa_output_brig.
31123         * hsa-regalloc.c: New file.
31125 2016-01-18  Jeff Law  <law@redhat.com>
31127         PR tree-optimization/69320
31128         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
31129         ranged object, do nothing if the RHS constant is not [0..1].
31130         (optimize_stmt): Comparing a boolean ranged object against a
31131         constant outside [0..1] results in a compile-time constant.
31133         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
31134         test.
31136 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
31138         * doc/invoke.texi (Invoking GCC): Add new section to menu.
31139         (Option Summary): Update to reflect new section and moved options.
31140         (C++ Dialect Options): Move -fstats to new section.
31141         (Debugging Options): Move all dump, statistics, and other GCC
31142         developer options to new section.  Rewrite section introduction
31143         and re-order remaining options to put the more basic ones first.
31144         (Optimization Options): Move -fira-verbose and -flto-report* to
31145         new section.
31146         (Developer Options): New section incorporating moved options.
31147         * doc/cppopts.texi (-dM): Update cross-reference.
31149 2016-01-18  Richard Henderson  <rth@redhat.com>
31151         PR target/69176
31152         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
31153         operands to pseudo only if CSE is expected.  Split long immediate
31154         operands only after reload, and for the stack pointer.
31155         (*add<GPI>3_pluslong): Remove.
31156         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
31157         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
31158         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
31159         (*add<GPI>3 peepholes): New.
31160         (*add<GPI>3 splitters): New.
31161         * config/aarch64/constraints.md (Upl): New.
31162         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
31164 2016-01-18  Richard Biener  <rguenther@suse.de>
31166         PR tree-optimization/69297
31167         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
31168         stmt at most once.
31169         (vect_bb_vectorization_profitable_p): Clear visited flag again.
31171 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
31173         PR middle-end/68542
31174         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
31175         of mixind vector and scalar types.
31176         (fold_relational_const): Add handling of vector
31177         comparison with boolean result.
31178         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
31179         comparison of vector operands with boolean result for EQ/NE only.
31180         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
31181         (verify_gimple_cond): Likewise.
31182         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
31183         valid type of VAL.
31185 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
31187         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
31188         !TARGET_OCTEON.
31190 2016-01-18  Richard Biener  <rguenther@suse.de>
31192         PR middle-end/69308
31193         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
31195 2016-01-18  Tom de Vries  <tom@codesourcery.com>
31197         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
31199 2016-01-18  Tom de Vries  <tom@codesourcery.com>
31201         * omp-low.c (set_oacc_fn_attrib): Make extern.
31202         * omp-low.h (set_oacc_fn_attrib): Declare.
31203         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
31204         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
31205         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
31206         Add and handle function parameter oacc_kernels_p.
31207         (find_reduc_addr, get_omp_data_i_param): New function.
31208         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
31209         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
31210         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
31211         Calculate dominance info.  Skip loops that are not in a kernels region
31212         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
31213         (pass_parallelize_loops::execute): Call parallelize_loops with
31214         oacc_kernels_p argument.
31215         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
31216         New member function.
31217         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
31218         * passes.def: Add argument to pass_parallelize_loops instantation.
31220 2016-01-18  Tom de Vries  <tom@codesourcery.com>
31222         * tree-parloops.c (pass_parallelize_loops::execute): Allow
31223         pass_parallelize_loops to be run outside the loop pipeline.
31225 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
31227         * tree-scalar-evolution.c (follow_copies_to_constant): New.
31228         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
31230 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
31232         PR target/63679
31233         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
31234         using get_ref_base_and_extent.
31235         (equal_mem_array_ref_p): New.
31236         (hashable_expr_equal_p): Add call to previous.
31238 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
31240         PR target/63679
31241         * tree-sra.c (disqualified_constants, constant_decl_p): New.
31242         (sra_initialize): Allocate disqualified_constants.
31243         (sra_deinitialize): Free disqualified_constants.
31244         (disqualify_candidate): Update disqualified_constants when appropriate.
31245         (create_access): Scan for constant-pool entries as we go along.
31246         (scalarizable_type_p): Add check against type_contains_placeholder_p.
31247         (maybe_add_sra_candidate): Allow constant-pool entries.
31248         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
31249         (initialize_constant_pool_replacements): New.
31250         (sra_modify_assign): Avoid mangling assignments created by previous,
31251         and don't generate writes into constant pool.
31252         (sra_modify_function_body): Call initialize_constant_pool_replacements.
31254 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
31256         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
31257         andnot instruction.
31258         (scalar_chain::convert_op): Likewise.
31259         * config/i386/i386.md (*andndi3_doubleword): New.
31261 2016-01-18  Richard Biener  <rguenther@suse.de>
31263         PR tree-optimization/69170
31264         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
31265         building a vector from scalar results of a pattern stmt.
31267 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
31269         * haifa-sched.c (autopref_multipass_init): Work around
31270         -Wmaybe-uninitialized warning.
31272 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31274         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
31275         against the constant 0.
31277 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31279         PR tree-optimization/68799
31280         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
31281         look up phi candidates in the statement-candidate map.
31282         (phi_add_costs): Likewise.
31283         (record_phi_increments): Likewise.
31284         (phi_incr_cost): Likewise.
31285         (ncd_with_phi): Likewise.
31286         (all_phi_incrs_profitable): Likewise.
31288 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
31290         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
31291         -Wmaybe-uninitialized warning.
31293 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
31295         * doc/invoke.texi (Invoking GCC): Add new section to menu.
31296         (Option Summary): Update to reflect new section and moved options.
31297         (C++ Dialect Options): Move -fvtable-verify and related options.
31298         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
31299         and profiling-related options.
31300         (Optimization Options): Move profile generation options and
31301         -fstack-protector and related options.
31302         (Instrumentation Options): New section incorporating moved options.
31303         (Code Generation Options): Move -finstrument-functions and
31304         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
31306 2016-01-16  Tom de Vries  <tom@codesourcery.com>
31308         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
31310 2016-01-16  Tom de Vries  <tom@codesourcery.com>
31312         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
31314 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
31316         * hash-table.h (hash_table::empty): Turn into an inline wrapper
31317         that checks whether the table is already empty.  Rename the
31318         original implementation to...
31319         (hash_table::empty_slot): ...this new private function.
31321 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
31323         PR diagnostic/68899
31324         * diagnostic-show-locus.c (layout::print_source_line): Move x
31325         offset of line until after call to
31326         get_line_width_without_trailing_whitespace.
31328 2016-01-15  Jeff Law  <law@redhat.com>
31330         PR tree-optimization/69270
31331         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
31332         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
31333         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
31334         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
31335         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
31336         ssa_name_has_boolean_range and constant_boolean_node.
31338 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31340         PR rtl-optimization/69030
31341         * lra-spills.c (remove_pseudos): Check nrefs and make the function
31342         returning bool.
31343         (spill_pseudos): Delete debug insn for dead pseudo.
31344         (lra_spill): Initiate spill_hard_reg and slots memory separately.
31346 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
31348         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
31349         New.
31350         (TYPES_UNOPUS): Likewise.
31351         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
31352         builtin type, from UNOP to UNOPUS.
31353         (lbtruncuv4sf): Likewise.
31354         (lbtruncuv2df): Likewise.
31355         (lrounduv2sf): Likewise.
31356         (lrounduv4sf): Likewise.
31357         (lrounduv2df): Likewise.
31358         (lroundusf): Likewise.
31359         (lroundusf): Likewise.
31360         (lceiluv2sf): Likewise.
31361         (lceiluv4sf): Likewise.
31362         (lceiluv2df): Likewise.
31363         (lceilusf): Likewise.
31364         (lceiludf): Likewise.
31365         (lflooruv2sf): Likewise.
31366         (lflooruv4sf): Likewise.
31367         (lflooruv2df): Likewise.
31368         (lfloorusf): Likewise.
31369         (lfloorudf): Likewise.
31370         (lfrintnuv2sf): Likewise.
31371         (lfrintnuv4sf): Likewise.
31372         (lfrintnuv2df): Likewise.
31373         (lfrintnusf): Likewise.
31374         (lfrintnudf): Likewise.
31375         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
31376         conversion.
31377         (vcvtq_u32_f32): Likewise.
31378         (vcvtq_u64_f64): Likewise.
31379         (vcvta_u32_f32): Likewise.
31380         (vcvtaq_u32_f32): Likewise.
31381         (vcvtaq_u64_f64): Likewise.
31382         (vcvtm_u32_f32): Likewise.
31383         (vcvtmq_u32_f32): Likewise.
31384         (vcvtmq_u64_f64): Likewise.
31385         (vcvtn_u32_f32): Likwise.
31386         (vcvtnq_u32_f32): Likewise.
31387         (vcvtnq_u64_f64): Likewise.
31388         (vcvtp_u32_f32): Likewise.
31389         (vcvtpq_u32_f32): Likewise.
31390         (vcvtpq_u64_f64): Likewise.
31391         (vcvtmd_u64_f64): Likewise.
31392         (vcvtms_u32_f32): Likewise.
31393         (vcvtad_u64_f64): Likewise.
31394         (vcvtas_u32_f32): Likewise.
31395         (vcvtnd_u64_f64): Likewise.
31396         (vcvtns_u32_f32): Likewise.
31397         (vcvtpd_u64_f64): Likewise.
31398         (vcvtps_u32_f32): Likewise.
31400 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31402         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31403         CSEL of zero_extended registers.
31405 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31407         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31408         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31410 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31412         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31413         false when argument string is not found in the attributes table
31414         at all.
31416 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
31418         PR target/68609
31419         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31420         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31421         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31422         precision estimate.
31424 2016-01-15  Richard Biener  <rguenther@suse.de>
31426         PR tree-optimization/66856
31427         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31428         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31429         (vect_create_new_slp_node): Increment stmt reference count.
31430         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31431         an SLP tree before swapping operands.
31432         (vect_build_slp_tree): Likewise.
31433         (destroy_bb_vec_info): Free stmt info after SLP instances.
31434         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31435         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31436         (STMT_VINFO_NUM_SLP_USES): New macro.
31438 2016-01-15  Richard Biener  <rguenther@suse.de>
31440         PR debug/69137
31441         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31442         (add_linkage_name): ... here.
31443         (gen_typedef_die): Use add_linkage_name_raw instead of
31444         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31445         if necessary.
31447 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
31449         * gimplify.c (oacc_default_clause): Decode reference and pointer
31450         types for both kernels and parallel regions.
31452 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
31454         PR middle-end/69246
31455         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31457 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
31459         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31460         (convert_scalars_to_vector): Likewise.
31462 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
31464         * doc/extend.texi (Type Traits): Fix grammar.
31466 2016-01-15  Martin Jambor  <mjambor@suse.cz>
31468         * tree-inline.c (remap_decl): Use existing dclarations if
31469         remapping a type and prevent_decl_creation_for_types.
31470         (replace_locals_stmt): Do an initial remapping of non-VLA typed
31471         decls first.  Do real remapping with
31472         prevent_decl_creation_for_types set.
31473         * tree-inline.h (copy_body_data): New field
31474         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31475         padding.
31477 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31479         * config/s390/s390.opt (mmvcle): More verbose help text.
31481 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31483         * config/s390/s390.opt: Add period to -mzvector option text.
31485 2016-01-15  Richard Biener  <rguenther@suse.de>
31487         PR tree-optimization/68961
31488         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31489         of invariants in stores again.
31491 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31493         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31495 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
31497         * config/i386/i386.c (ix86_expand_branch): Don't split
31498         DI mode xor instruction to SI mode.
31500 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
31502         PR ipa/68148
31503         * ipa-icf.c (sem_function::merge): Virtual functions may become
31504         reachable even if they address is not taken and there are no
31505         idrect calls.
31507 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
31509         * lto-streamer-out.c (subtract_estimated_size): New function.
31510         (get_symbol_initial_value): Use it.
31512 2016-01-15  Christian Bruel  <christian.bruel@st.com>
31514         PR target/65837
31515         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31516         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31517         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31518         use add_builtin_function_ext_scope instead of add_builtin_function.
31519         (neon_set_p, neon_crypto_set_p): Remove.
31520         (arm_init_builtins): Always call arm_init_neon_builtins and
31521         arm_init_crypto_builtins.
31522         (arm_expand_builtin): Check that builtins are allowed for the arch.
31523         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31524         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31525         arm_init_neon_builtins call.
31527 2016-01-15  Richard Biener  <rguenther@suse.de>
31529         PR tree-optimization/69117
31530         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31531         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31532         of the leader conservatively.
31533         (free_scc_vn): Restore original SSA name infos.
31535 2016-01-14  Jeff Law  <law@redhat.com>
31537         PR tree-optimization/69270
31538         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31539         single bit of precision, verify it's also unsigned.
31540         (record_edge_info): Use constant_boolean_node rather than fold_convert
31541         to convert boolean_true/boolean_false to the right type.
31543 2016-01-14  Richard Henderson  <rth@redhat.com>
31545         PR rtl-opt/69014
31546         * loop-doloop.c (record_reg_sets): New.
31547         (doloop_optimize): Reject the transform if the sequence
31548         clobbers registers live at the end of the loop block.
31549         (doloop_optimize_loops): Enable df_live if needed.
31551 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
31553         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31554         * config/rs6000/rs6000.c: Likewise.
31555         * config/rs6000/rs6000.h: Likewise.
31556         * config/rs6000/rs6000.md: Likewise.
31557         * doc/extend.texi: Likewsie.
31559 2016-01-14  Jeff Law  <law@redhat.com>
31561         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31562         typo.
31564 2016-01-14  Richard Henderson  <rth@redhat.com>
31566         PR c/69272
31567         PR tree-opt/68964
31568         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31569         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31570         instead of builtin_decl_declared_p to test for declaration.
31572 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
31574         * doc/loop.texi (Loop Analysis and Representation): Document
31575         loop_depth function.
31577 2016-01-14  Tom de Vries  <tom@codesourcery.com>
31579         PR tree-optimization/68773
31580         * omp-low.c (expand_omp_target): Don't set force_output.
31581         * varpool.c (varpool_node::get_create): Same.
31582         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31583         offload_funcs with force_output.
31585 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
31587         PR debug/69244
31588         * lra-eliminations.c (move_plus_up): Don't change anything if either
31589         the outer or inner subreg mode is not MODE_INT.
31590         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31591         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31593 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
31595         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31596         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31597         reduc_uplus_@var{m}): Remove.
31598         * expr.c (expand_expr_real_2): Remove expansion path for
31599         reduc_[us](min|max|plus) optabs.
31600         * optabs-tree.c (scalar_reduc_to_vector): Remove.
31601         * optabs-tree.h (scalar_reduc_to_vector): Remove.
31602         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31603         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31604         * tree-vect-loop.c (vectorizable_reduction): Remove test for
31605         reduc_[us](min|max|plus) optabs.
31607 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
31609         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31610         (reduc_plus_scal_v2sf): New.
31611         (reduc_smax_v2sf): Rename to...
31612         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31613         (reduc_smin_v2sf): Rename to...
31614         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31616 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
31618         * alias.c (compare_base_symbol_refs): New function.
31619         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31620         it.
31622 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
31624         PR middle-end/68146
31625         PR tree-optimization/69155
31626         * tree-complex.c: Include cfganal.h.
31627         (phis_to_revisit): New variable.
31628         (extract_component): Add phiarg_p argument.  Assert that returned
31629         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31630         (update_phi_components): Partly rewrite to use loop over real/imag
31631         components instead of code duplication.  If extract_component returns
31632         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31633         create_tmp_reg into the PHI node instead, and mention the phi triplet
31634         in phis_to_revisit.
31635         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
31636         in phis_to_revisit at the end.
31638 2016-01-14  Richard Biener  <rguenther@suse.de>
31640         PR tree-optimization/68060
31641         * tree-vect-loop.c (vect_is_simple_reduction): Check the
31642         outer loop reduction is only used in the inner loop before
31643         detecting a double reduction.
31645 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
31647         PR target/68269
31648         * combine.c (expand_field_assignment): Punt if compute_mode is
31649         unsupported scalar mode.
31651 2016-01-14  Richard Biener  <rguenther@suse.de>
31653         PR tree-optimization/66856
31654         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31655         SLP node only if it built successfully.
31656         (vect_analyze_slp_instance): Adjust.
31658 2016-01-14  Jeff Law  <law@redhat.com>
31660         PR tree-optimization/69270
31661         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31662         (record_edge_info): Use it.  Convert boolean_{true,false}_node
31663         to the type of op0.
31665 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
31667         PR ipa/66487
31668         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31669         use block_ultimate_origin
31670         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31672 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
31674         * doc/invoke.texi (Submodel Options): Rename section to
31675         "Machine-Dependent Options" to better reflect its content.
31676         Rewrite introductory text to remove archaic CPU names.
31677         Update references.
31679 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
31681         * doc/invoke.texi (Code Gen Options): Move section up in file,
31682         before target-specific options.  Update menu and option summary
31683         to reflect the new section ordering.
31685 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
31687         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31688         (C++ Dialect Options): Add cross-reference to -std option.
31689         * doc/standards.texi (C++ Language): Document C++14 support.
31691 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31693         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31694         for pack/unpack functions for __ibm128.
31695         (PACK_IF): Likewise.
31696         (UNPACK_IF): Likewise.
31698         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31699         support for __ibm128 pack/unpack functions.
31700         (rs6000_invalid_builtin): Likewise.
31701         (rs6000_init_builtins): Likewise.
31702         (rs6000_opt_masks): Likewise.
31704         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31705         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31706         functions
31707         (RS6000_BTM_COMMON): Likewise.
31709         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31710         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31711         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31712         128-bit floating point.  Add support for the double values to be
31713         in Altivec registers for TF/IF packing and unpacking, but restrict
31714         TD packing sub-fields to be FPR registers.  Don't allow overlapped
31715         register support for packing.  Allow pack inputs to be memory
31716         locations.  Don't build generator functions for unpack<mode>_dm
31717         and unpack<mode>_nodm.
31718         (unpack<mode>_dm): Likewise.
31719         (unpack<mode>_nodm): Likewise.
31720         (pack<mode>): Likewise.
31722         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31723         built-in functions to pack/unpack explicit __ibm128 values.
31724         (__builtin_unpack_ibm128): Likewise.
31726         * doc/extend.texi (PowerPC Built-in Functions): Document
31727         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31729 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
31731         PR c/66208
31732         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31733         Add new arg loc and pass it down as context.
31734         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31735         to the location to use for the warning.
31736         (check_function_arguments): New arg loc.  All callers changed.  Pass
31737         it to check_function_nonnull.
31738         * c-common.h (check_function_arguments): Adjust declaration.
31740 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
31742         PR tree-optimization/69156
31743         * gimple.c (validate_type): Removed.
31744         (gimple_builtin_call_types_compatible_p): Use
31745         useless_type_conversion_p instead of validate_type.
31746         * value-prof.c (gimple_stringop_fixed_value): Fold
31747         icall_size to correct type.
31749 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
31751         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31752         effects.
31754 2016-01-13  Richard Henderson  <rth@redhat.com>
31756         PR tree-opt/68964
31757         * target.def (builtin_tm_load, builtin_tm_store): Remove.
31758         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31759         (ix86_builtin_tm_store): Remove.
31760         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31761         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31762         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31763         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31764         * doc/tm.texi: Rebuild.
31766         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31767         (BUILT_IN_TM_MEMCPY_RTWN): New.
31768         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31769         fallback from vector to integer helpers.
31770         (build_tm_load): Handle vector types directly, instead of
31771         via target hook.
31772         (build_tm_store): Likewise.
31773         (expand_assign_tm): Prepare for register types not handled by
31774         the above.  Copy them to memory and use memcpy.
31775         * tree.c (tm_define_builtin): New.
31776         (find_tm_vector_type): New.
31777         (build_tm_vector_builtins): New.
31778         (build_common_builtin_nodes): Call it.
31780 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
31782         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31783         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
31785 2016-01-13  Tom de Vries  <tom@codesourcery.com>
31787         PR tree-optimization/69169
31788         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31789         handled_struct_type param.
31790         (create_variable_info_for, intra_create_variable_infos): Call
31791         create_variable_info_for_1 with extra arg.
31793 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
31795         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31796         and "armv8.1-a+crc" entries.
31798 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
31800         PR target/69228
31801         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31802         Change first operand predicate from register_or_constm1_operand
31803         to register_operand.
31804         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31805         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31806         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31807         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31808         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31809         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31810         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31811         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31812         comparison with constm1_rtx from vec_prefetch_gen part.
31814 2016-01-13  Richard Biener  <rguenther@suse.de>
31816         PR tree-optimization/69013
31817         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31818         Exchange assert for a test.
31820 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31822         PR target/69247
31823         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31825 2016-01-13  Richard Biener  <rguenther@suse.de>
31827         PR tree-optimization/69242
31828         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31829         assert with a check.
31831 2016-01-13  Richard Biener  <rguenther@suse.de>
31833         PR tree-optimization/69186
31834         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31835         Properly guard vect_update_misalignment_for_peel call.
31837 2016-01-12  Jeff Law  <law@redhat.com>
31839         PR tree-optimization/pr67755
31840         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31841         "need_profile_correction".
31842         (thread_block_1): Initialize new field to false by default.  If we
31843         have multiple thread paths through a common joiner to different
31844         final targets, then set new field to true.
31845         (compute_path_counts): Only do count adjustment when it's really
31846         needed.
31848 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31850         * doc/invoke.texi (Spec Files): Move section down in file, past
31851         all command-line option descriptions.
31853 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31855         PR middle-end/54809
31856         * doc/gty.texi: Remove documentation of mark_hook.
31857         * gengtype.c (struct write_types_data): Remove code to support
31858         mark_hook attribute.
31859         (walk_type): Likewise.
31860         (write_func_for_structure): Likewise.
31862 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31864         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31865         Directory Options, and -specs= to Overall Options.
31866         (Overall Options): Adjust similarly.  Reorder to group related
31867         options together.  Make -specs= cross-reference the spec file details.
31868         (Directory Options): Adjust similarly.
31870 2016-01-12  Jeff Law  <law@redhat.com>
31872         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31874 2016-01-12  Olivier Hainque  <hainque@adacore.com>
31876         * gcc.c (spec_undefvar_allowed): New global.
31877         (process_command): Set to true when running for --version or --help,
31878         alone or together.
31879         (getenv_spec_function): When the variable is not defined, use the
31880         variable name as the variable value if we're allowed not to issue
31881         a fatal error.
31883 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
31885         PR tree-optimization/68911
31886         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31887         information computed for expression "init + nit * step".
31889 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31891         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
31892         about name of GCC executable.  Remove deleted node from menu.
31893         (Directory Options) <-B>: Remove cross-reference to deleted node.
31894         (Target Options): Delete section.
31896 2016-01-12  Christian Bruel  <christian.bruel@st.com>
31898         PR target/69180
31899         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31900         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31902 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
31904         PR target/69198
31905         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31906         aligned_mem is properly set for AVX512-VL floating point masked
31907         stores.
31909         PR target/69175
31910         * ifcvt.c (cond_exec_process_if_block): When removing the last
31911         insn from then_bb, remove also any possible barriers that follow it.
31913 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
31915         PR target/68456
31916         PR target/69226
31917         * config/i386/iamcu.h (SIZE_TYPE): New macro.
31918         (PTRDIFF_TYPE): Likewise.
31919         (WCHAR_TYPE): Likewise.
31920         (WCHAR_TYPE_SIZE): Likewise.
31921         (STDINT_LONG32): Likewise.
31923 2016-01-12  Richard Biener  <rguenther@suse.de>
31925         PR tree-optimization/69053
31926         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31927         convert initial value for cond reductions.
31929 2016-01-12  Richard Biener  <rguenther@suse.de>
31931         PR tree-optimization/69007
31932         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31933         widen_sum after dot_prod and sad.
31935 2016-01-12  Richard Biener  <rguenther@suse.de>
31937         PR tree-optimization/69168
31938         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31939         pattern stmt SLP type.
31940         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31941         end up unused so cope with that case.
31943 2016-01-12  Richard Biener  <rguenther@suse.de>
31945         PR tree-optimization/69157
31946         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31947         stmts def type only during analyze phase.
31948         (vectorizable_call): Likewise.
31949         (vectorizable_simd_clone_call): Likewise.
31950         (vectorizable_conversion): Likewise.
31951         (vectorizable_assignment): Likewise.
31952         (vectorizable_shift): Likewise.
31953         (vectorizable_operation): Likewise.
31954         (vectorizable_store): Likewise.
31955         (vectorizable_load): Likewise.
31957 2016-01-12  Richard Biener  <rguenther@suse.de>
31959         PR tree-optimization/69174
31960         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31961         space.
31962         (vectorizable_load): Properly compute the number of loads needed
31963         for permuted strided SLP loads and do not spuriously assign
31964         to SLP_TREE_VEC_STMTS.
31966 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
31968         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31969         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31970         (MD_EXEC_PREFIX): Remove.
31971         (MD_STARTFILE_PREFIX) Removee.
31972         (FILE_NAME_ABSOLUTE_P): Remove.
31973         (CPP_SPEC): Do not read macros from sys/version.h.
31974         (LINK_COMMAND_SPEC): Remove.
31975         (LOCAL_INCLUDE_DIR): Remove.
31976         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31977         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31978         (POST_LINK_SPEC): Define to invoke stubify after linker
31979         (LIBSTDCXX): Remove define
31980         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31981         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31982         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31983         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31984         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31985         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31986         (i386_djgpp_asm_named_section): Add propotype of new procedure
31988         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31989         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31990         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31991         in config/i386/djgpp.h).
31992         (STANDARD_STARTFILE_PREFIX_2): Define identical to
31993         STANDARD_STARTFILE_PREFIX_1.
31994         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31995         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31996         installation errors.
31997         (MAX_OFILE_ALIGNMENT): Define to 128.
31998         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
32000         * config/i386/djgpp.c: New file. Add implementation of
32001         i386_djgpp_asm_named_section.
32003         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
32005         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
32006         Add rule for building djgpp.o.
32008 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32010         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
32011         (rtx_is_swappable_p): Reductions are swappable.
32012         (insn_is_swappable_p): V2DF reductions are swappable.
32014 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
32016         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
32017         reloads for other unsupported memory operands.
32019 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
32020             Jim Wilson  <jim.wilson@linaro.org>
32022         PR target/69194
32023         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
32024         copy_to_mode_reg instead of force_reg.
32026 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
32028         PR target/69225
32029         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
32030         TARGET_80387 is true.
32032 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
32034         PR target/69071
32035         * lra-eliminations.c (move_plus_up): Only move plus up
32036         if subreg of the constant can be simplified into constant
32037         and use the simplified subreg of the constant instead of
32038         the original constant.
32040         * fold-const.c (fold_convertible_p): Don't return true
32041         for conversion of VECTOR_TYPE to same sized integral type.
32042         (fold_convert_loc): Fix up formatting.  Fold conversion of
32043         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
32044         instead of NOP_EXPR.
32046         PR tree-optimization/69214
32047         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
32048         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
32049         Formatting fix.
32051         PR tree-optimization/69207
32052         * tree-vect-slp.c (vect_get_constant_vectors): For
32053         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
32054         fold_convertible_p to vector_type's element type, and always
32055         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
32057 2016-01-11  Richard Biener  <rguenther@suse.de>
32059         PR tree-optimization/69173
32060         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
32061         fixup the cycle if all stmts are in a pattern.
32063 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
32065         PR middle-end/68999
32066         * alias.c (base_alias_check): Move check for addresses with
32067         alignment ANDs before the call for compare_base_decls.
32068         (memrefs_conflict_p): Return -1 for different decls
32069         that went through alignment adjustments.
32071 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32073         PR rtl-optimization/68796
32074         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
32075         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
32076         and QImode comparisons against zero with CC_NZmode.
32077         * config/aarch64/iterators.md (short_mask): New mode_attr.
32079 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
32081         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
32082         (<avx512>_store<mode>_mask): Likewise.
32084 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
32085             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32087         PR rtl-optimization/68841
32088         * ifcvt.c (struct noce_if_info): Add orig_x field.
32089         (bbs_ok_for_cmove_arith): Add to_rename parameter.
32090         Don't record conflicts on to_rename if it's present.
32091         Allow memory destinations in sets.
32092         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
32093         blocks, passing orig_x to the checks.
32094         (noce_process_if_block): Set if_info->orig_x appropriately.
32096 2016-01-11  Tom de Vries  <tom@codesourcery.com>
32098         PR tree-optimization/69069
32099         * tree-parloops.c (create_parallel_loop): Add missing phi args.
32101 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
32103         PR rtl-optimization/68920
32104         * config/i386/i386.c (ix86_option_override_internal): Restrict number
32105         of conditional moves for  RTL if-conversion to 1 for
32106         TARGET_ONE_IF_CONV_INSN.
32107         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
32108         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
32109         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
32110         parameter to restirct number of conditional moves for
32111         RTL if-conversion.
32112         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
32113         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
32114         conditionl moves.
32116 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
32118         PR bootstrap/69123
32119         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
32120         onepart vars.  Fix typo in comment.  Fix reversed condition in
32121         unshare test.
32122         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
32124         PR bootstrap/69123
32125         * var-tracking.c (dump_onepart_variable_differences): New.
32126         (dataflow_set_different): If a detailed dump is requested,
32127         delay early returns and dump differences between onepart
32128         variables present before and after, and added variables.
32130 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
32132         PR target/69010
32133         * expr.c (expand_expr_real_1): For boolean vector constants
32134         with a scalar mode use const_scalar_mask_from_tree.
32135         (const_scalar_mask_from_tree): New.
32136         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
32137         assigned to a mask type to handle constants.
32139 2016-01-11  Martin Jambor  <mjambor@suse.cz>
32141         PR ipa/69044
32142         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
32143         useless parameters if we cannot change function signature.
32145 2016-01-11  Martin Jambor  <mjambor@suse.cz>
32147         PR ipa/66616
32148         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
32149         flag.
32151 2016-01-11  Tom de Vries  <tom@codesourcery.com>
32153         PR tree-optimization/69109
32154         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
32155         latch with phi.
32157 2016-01-11  Tom de Vries  <tom@codesourcery.com>
32159         PR tree-optimization/69108
32160         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
32161         res is not used in a phi.
32163 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
32165         PR 67425
32166         * common.opt (frandom-seed): Fix parameter name.
32167         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
32169 2016-01-11  Tom de Vries  <tom@codesourcery.com>
32171         PR tree-optimization/69058
32172         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
32173         not supported.
32175 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
32177         * config/arc/arc.opt (mdiv-rem): Add period to the end.
32178         (mcode-density): Likewise.
32180 2016-01-10  Tom de Vries  <tom@codesourcery.com>
32182         PR tree-optimization/69062
32183         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
32184         (parallelize_loops): Don't paralelize loop that has phi with address
32185         arg.
32187 2016-01-10  Tom de Vries  <tom@codesourcery.com>
32189         PR tree-optimization/69039
32190         * tree-parloops.c (try_create_reduction_list): Only allow single exit
32191         phi for reduction.
32193 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
32195         PR middle-end/68743
32196         * match.pd: Require target has function_c99_misc before doing
32197         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
32199 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
32201         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
32202         use GMPINC.
32203         * configure: Regenerate.
32205 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
32207         PR middle-end/50865
32208         PR tree-optimization/69097
32209         * fold-const.h (expr_not_equal_to): New prototype.
32210         * fold-const.c: Include stringpool.h and tree-ssanames.h.
32211         (expr_not_equal_to): New function.
32212         * match.pd (X % -Y is the same as X % Y): Don't optimize
32213         unless X is known not to be equal to minimum or Y is known
32214         not to be equal to -1.
32215         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
32216         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
32217         (simplify_stmt_using_ranges): Adjust caller.
32218         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
32219         substitute_and_fold.
32221 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
32223         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
32224         w/o DECL_NAME.
32226 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
32228         PR tree-optimization/69167
32229         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
32230         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
32231         ops[0] comparison.
32232         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
32234 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
32235             Richard Biener  <rguenther@suse.de>
32237         PR tree-optimization/68707
32238         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
32239         instances that can be handled via vect_load_lanes.
32241 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
32243         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
32244         if we can't determine address equivalence.
32245         * alias.c (compare_base_decl): Update for changed return value of
32246         symtab_node::equal_address_to.
32248 2016-01-08  Jason Merrill  <jason@redhat.com>
32250         PR c++/68983
32251         PR c++/67557
32252         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
32253         * expr.c (store_field): Not here.
32254         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
32255         call with TREE_ADDRESSABLE type.
32256         * tree-cfg.c (verify_gimple_call): Adjust.
32258 2016-01-08  Olivier Hainque  <hainque@adacore.com>
32260         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
32261         libc_internal.
32263 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
32265         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
32266         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
32267         (reduc_smin_v2sf): Rename to...
32268         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
32269         (reduc_splus_v2sf): Rename to...
32270         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
32272 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
32274         PR tree-optimization/69162
32275         * gimplify.c (gimplify_va_arg_expr): Encode original type of
32276         valist argument in another argument.
32277         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
32278         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
32279         to determine the va_list type, build a MEM_REF instead of
32280         build_fold_indirect_ref.
32282         PR tree-optimization/69172
32283         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
32284         gimple_build.
32286 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32288         PR tree-optimization/67781
32289         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
32290         and cmpnop in two steps: first the ones not accessed in original
32291         gimple expression in a endian independent way and then the ones not
32292         accessed in the final result in an endian-specific way.
32294 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
32296         PR tree-optimization/69083
32297         * tree-vect-slp.c (vect_get_constant_vectors): For
32298         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
32299         element type.  If op is fold_convertible_p to vector_type's element
32300         type, use NOP_EXPR instead of VCE.
32302 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
32304         PR rtl-optimization/67778
32305         PR rtl-optimization/68634
32306         PR rtl-optimization/68909
32307         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
32308         block from the stack until done with it.  Remove a superfluous
32309         bitmap set.  Remove a superfluous bitmap test.
32311 2016-01-07  Martin Sebor  <msebor@redhat.com>
32313         PR c/68966
32314         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
32315         constraint on the type of arguments.
32317 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
32319         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
32320         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
32321         unaligned_access on the gcc_options set.
32322         * config/arm/arm.c (arm_option_override_internal): Use
32323         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
32325 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
32327         PR target/69140
32328         * config/i386/i386.c (ix86_frame_pointer_required): Enable
32329         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
32331 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
32333         Revert
32334         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
32336         PR target/69140
32337         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32338         depending on frame_pointer_needed before remaining integer and SSE
32339         registers are saved.
32341 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
32343         PR 1078
32344         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
32346 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
32348         PR target/69171
32349         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
32350         Use the "xBm" constraint.
32351         (float<sseintvecmodelower><mode>2<mask_name><round_name):
32352         Likewise.
32353         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
32354         (sse_cvtsi2ssq<round_name>): Likewise.
32355         (sse_cvtss2si<round_name>): Likewise.
32356         (sse_cvtss2siq<round_name>): Likewise.
32357         (sse2_cvtsi2sdq<round_name>): Likewise.
32358         (sse2_cvtsd2si<round_name>): Likewise.
32359         (sse2_cvtsd2siq<round_name>): Likewise.
32360         * config/i386/subst.md (round_nimm_scalar_predicate): New
32361         predicate.
32363 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
32365         PR middle-end/67639
32366         * varasm.c (make_decl_rtl): Mark invalid register vars as
32367         DECL_EXTERNAL.
32369         PR rtl-optimization/66206
32370         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
32371         All callers changed.
32373 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
32375         PR tree-optimization/69141
32376         * tree-ssa-pre.c: Include langhooks.h.
32377         (eliminate_dom_walker::before_dom_children): Use
32378         lang_hooks.decl_printable_name instead of
32379         cgraph_node::get ()->name ().
32381         PR middle-end/68960
32382         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32383         it and DECL_ALIGN too.
32385 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
32387         * config/mips/mips-ftypes.def: Sort to lexicographical order.
32389 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
32391         PR target/69140
32392         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32393         depending on frame_pointer_needed before remaining integer and SSE
32394         registers are saved.
32396 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32398         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32399         mode iterator with VSX_M2.
32400         (*p9_vecstore_<mode>): Likewise.
32401         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32402         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32403         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32404         (define_split for VSX_LE128 stores): Likewise.
32405         (define_peephole2 for TImode LE swaps): Likewise.
32406         (define_split for VSX_LE128 post-reload stores): Likewise.
32408 2016-01-06  Marek Polacek  <polacek@redhat.com>
32410         PR sanitizer/69099
32411         * convert.c (convert_to_integer_1): Adjust call to
32412         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
32413         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
32414         EXPR instead of ARG.
32415         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32417 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32419         PR 1078
32420         * doc/extend.texi (RL78 Variable Attributes): New section.
32422 2016-01-05  Marek Polacek  <polacek@redhat.com>
32424         PR c/69104
32425         * builtins.c (get_memmodel): Use expansion point location rather than
32426         the input location.  Call warning_at rather than warning.
32427         (expand_builtin_atomic_compare_exchange): Likewise.
32428         (expand_builtin_atomic_load): Likewise.
32429         (expand_builtin_atomic_store): Likewise.
32430         (expand_builtin_atomic_clear): Likewise.
32432 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
32434         PR target/68991
32435         * config/i386/i386.c (ix86_expand_vector_logical_operator):
32436         Replace nonimmediate_operand with vector_operand.
32437         * config/i386/predicates.md (vector_operand): New predicate.
32438         (general_vector_operand): Replace nonimmediate_operand with
32439         vector_operand.
32440         * config/i386/sse.md: Replace nonimmediate_operand with
32441         vector_operand and m constraint with Bm constraint on SSE
32442         patterns with 16-byte memory operand.
32443         * config/i386/subst.md (round_nimm_predicate): Replace
32444         nonimmediate_operand with vector_operand.
32445         (round_saeonly_nimm_predicate): Likewise.
32446         (round_saeonly_nimm_scalar_predicate): New.
32448 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
32450         PR target/68991
32451         * config/i386/constraints.md (Bm): New constraint.
32452         * config/i386/predicates.md (vector_memory_operand): New
32453         predicate.
32454         * config/i386/sse.md: Replace xm with xBm in plusminus and
32455         any_logic patterns.
32457 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32459         PR 1078
32460         * doc/extend.texi (V850 Function Attributes): New section.
32461         (V850 Variable Attributes): New section.
32463 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
32465         PR 1078
32466         * doc/extend.texi (MicroBlaze Function Attributes): Document
32467         interrupt_handler and fast_interrupt attributes.
32469 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
32471         PR other/60465
32472         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32473         for local symbolic operands.
32474         * config/ia64/predicates.md (local_symbolic_operand64): New
32475         predicate.
32477 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32479         PR rtl-optimization/68651
32480         * combine.c (combine_simplify_rtx): Canonicalize x + x into
32481         x << 1.
32483 2016-01-05  Nathan Sidwell  <nathan@acm.org>
32485         * alias.c (compare_base_decls): Use symtab_node::get.
32487 2016-01-05  Nick Clifton  <nickc@redhat.com>
32489         PR target/68770
32490         * ira-costs.c (copy_cost): Initialise the t_icode field of the
32491         secondary_reload_info structure.
32493         PR target/66655
32494         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32495         decls if weak support is available.
32497 2016-01-04  Martin Sebor  <msebor@redhat.com>
32499         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32501 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
32503         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32504         OPTION_MASK_P9_DFORM.
32506         * config/rs6000/constraints.md (wo constraint): New constraint for
32507         ISA 3.0 (power9).
32509         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32510         for wo constraint.
32511         (rs6000_init_hard_regno_mode_ok): Likewise.
32513         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32514         wo constraint.
32516         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32517         expanders not to have constraints.  Add support for ISA 3.0 xxperm
32518         instruction.  Add support for fusing xxlor with xxperm.
32519         (altivec_vperm_<mode>_internal): Likewise.
32520         (altivec_vperm_v8hiv16qi): Likewise.
32521         (altivec_vperm_<mode>v16q): Likewise.
32522         (altivec_vperm_<mode>_uns): Likewise.
32523         (vperm_v8hiv4si): Likewise.
32524         (vperm_v16qiv8hi): Likewise.
32526         * doc/md.texi (RS/6000 constraints): Document wo constraint.
32528 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
32530         Update copyright years.
32532         * gcc.c (process_command): Update copyright notice dates.
32533         * gcov-dump.c (print_version): Ditto.
32534         * gcov.c (print_version): Ditto.
32535         * gcov-tool.c (print_version): Ditto.
32536         * gengtype.c (create_file): Ditto.
32537         * doc/cpp.texi: Bump @copying's copyright year.
32538         * doc/cppinternals.texi: Ditto.
32539         * doc/gcc.texi: Ditto.
32540         * doc/gccint.texi: Ditto.
32541         * doc/gcov.texi: Ditto.
32542         * doc/install.texi: Ditto.
32543         * doc/invoke.texi: Ditto.
32545 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32547         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32548         modes larger than TImode as TImode if NEON is not enabled.
32550 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32552         PR target/69100
32553         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32554         mode for %f0-%f31 only if TARGET_FPU.
32556 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32558         PR target/69072
32559         * config/sparc/sparc.c (scan_record_type): Take into account subfields
32560         to compute the PACKED_P predicate.
32561         (function_arg_record_value): Minor tweaks.
32563 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32565         * doc/install.texi (--with-multilib-list): Describe the meaning of the
32566         option for arm*-*-* targets.
32568 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
32570         * doc/extend.texi (Common Function Attributes): Move docs for
32571         MSP430-specific attributes to....
32572         (MSP430 Function Attributes): ...here.  Delete the redundant
32573         entries and copy-edit the remaining text.
32574         (MSP430 Variable Attributes): Use uniform format for index
32575         entries and add a cross-reference to the corresponding function
32576         attribute docs.
32578 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
32580         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32581         -finite-math typo.
32582         (x86 Options): Likewise.
32584 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
32586         PR 1078
32588         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32589         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32590         to corresponding attribute.
32592 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
32594         * doc/extend.texi (Common Function Attributes) <noplt>: Move
32595         to correct alphabetization of table.  Copy-edit and correct
32596         markup.
32597         <stack_protect>: Likewise.
32598         <target_clones>: Likewise.
32599         <simd>: Likewise.
32600         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32601         Correct punctuation.
32602         (Code Gen Options) <-fno-plt>: Copy-edit.
32604 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32606         PR target/68917
32607         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32608         SI values.  Explicitly convert SI to DI and vice-versa.
32610 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
32612         PR tree-optimization/69070
32613         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32614         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32616         PR sanitizer/69055
32617         * ubsan.c (ubsan_instrument_float_cast): Call
32618         initialize_sanitizer_builtins.
32620         PR target/69015
32621         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32623 Copyright (C) 2016 Free Software Foundation, Inc.
32625 Copying and distribution of this file, with or without modification,
32626 are permitted in any medium without royalty provided the copyright
32627 notice and this notice are preserved.