PR middle-end/65958
[official-gcc.git] / gcc / ChangeLog
blobc05a96b5e73d35a8ebc92d85c8fc9789edaee4a7
1 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
2             Tristan Gingold  <gingold@adacore.com>
4         PR middle-end/65958
5         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
6         Declare.
7         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
8         UNSPEC_PROBE_STACK_RANGE.
9         (blockage): New instruction.
10         (probe_stack_range_<PTR:mode>): Likewise.
11         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
12         function.
13         (aarch64_output_probe_stack_range): Likewise.
14         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
15         static builtin stack checking is enabled.
16         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
17         Define to 1.
19 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21         PR target/68214
22         * config/arm/arm.md (*call_mem): Delete pattern.
23         (*call_value_mem): Likewise.
24         * config/arm/arm.c (output_call_mem): Delete.
25         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
27 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
29         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
30         aarch64_sync_memory_operand.
32 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
34         PR target/68655
35         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
36         (expand_vec_perm_1): Use it and recurse if everything else
37         failed.  Use nd.perm instead of perm2.
38         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
39         instead of gen_lowpart for the target.
40         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
41         and recurse if everything else failed.
43 2015-12-04  Richard Biener  <rguenther@suse.de>
45         PR middle-end/68636
46         * builtins.c (get_pointer_alignment_1): Take care of byte to
47         bit alignment computation overflow.
49 2015-12-04  Richard Biener  <rguenther@suse.de>
51         PR middle-end/67438
52         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
53         a constant with single_use.
55 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
56             Jiong Wang  <jiong.wang@arm.com>
58         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
59         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
61 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
63         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p)
64         Short circuit for !flag_strict_aliasing
65         (get_alias_set): Remove flag_strict_aliasing check.
66         (new_alias_set): Likewise.
68 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
70         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
71         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
72         (exynosm1_regmove_cost): Likewise.
73         (exynosm1_vector_cost): Likewise.
74         (exynosm1_tunings): Likewise.
75         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
76         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
78 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
79             Richard Biener  <richard.guenther@gmail.com>
81         * cfgexpand.c (pass_expand::execute): Replace call to
82         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
83         * tree-ssa.c (delete_tree_ssa): Likewise.
84         * function.c (set_cfun): Call redirect_edge_var_map_empty.
85         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
86         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
87         (redirect_edge_var_map_empty): New.
88         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
89         (redirect_edge_var_map_empty): New.
91 2015-12-03  Jeff Law  <law@redhat.com>
93         PR tree-optimization/68599
94         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
95         in call to loop_optimizer_init.
96         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
97         optimization to drop the assumptions/infinite notations if
98         the loop has a single exit.
100 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
102         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
103         the pattern cannot FAIL.
104         (vec_store_lanes@var{m}@var{n}): Likewise.
105         (maskload@var{m}@var{n}): Likewise.
106         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
107         in the name of the pattern.
108         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
109         floating-point mode and that all operands have that mode.
110         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
111         pattern cannot FAIL.
112         (sqrt@var{m}2): Document that mode m must be a scalar or vector
113         floating-point mode, that all operands have that mode, and that
114         the patterns cannot FAIL.  Remove previous documentation referring
115         to @code{double} and @code{float}.
116         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
117         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
118         (copysign@var{m}3): Likewise.
119         (exp@var{m}2): Likewise.  Explicitly state the base.
120         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
121         (btrunc@var{m}2, rint@var{m}2): Likewise.
122         (round@var{m}2): Likewise.  Fix incorrect description of rounding
123         effect.
124         (ceil@var{m}2): As for round@var{m}2.
125         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
126         the instruction must not raise an inexact condition.
127         (scalb@var{m}3): Document previously-undocumented pattern
128         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
129         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
130         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
131         (significand@var{m}2): Likewise.
132         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
133         mode m and operand 0 is defined more freely.  Document that @var{m}
134         can be a scalar or vector integer mode and that the pattern is not
135         allowed to FAIL.
136         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
137         (clrsb@var{m}2): Likewise, except that the description of the
138         mode was missing in this case.
140 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
142         * internal-fn.def (RSQRT): New function.
143         * optabs.def (rsqrt_optab): New optab.
144         * doc/md.texi (rsqrtM2): Document.
145         * target.def (builtin_reciprocal): Replace gcall argument with
146         a function decl.  Restrict hook to machine functions.
147         * doc/tm.texi: Regenerate.
148         * targhooks.h (default_builtin_reciprocal): Update prototype.
149         * targhooks.c (default_builtin_reciprocal): Likewise.
150         * tree-ssa-math-opts.c: Include internal-fn.h.
151         (internal_fn_reciprocal): New function.
152         (pass_cse_reciprocals::execute): Call it, and build a call to an
153         internal function on success.  Only call targetm.builtin_reciprocal
154         for machine functions.
155         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
156         second argument.
157         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
158         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
159         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
160         machine functions.
161         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
162         (aarch64_builtin_reciprocal): Replace gcall argument with a
163         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
164         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
165         (aarch64_optab_supported_p): New function.
166         (TARGET_OPTAB_SUPPORTED_P): Define.
167         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
168         (rsqrt<mode>2): ...this.
169         * config/i386/i386.c (use_rsqrt_p): New function.
170         (ix86_builtin_reciprocal): Replace gcall argument with a
171         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
172         check.  Only handle machine functions.
173         (ix86_optab_supported_p): Handle rsqrt_optab.
174         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
175         (rs6000_builtin_reciprocal): Replace gcall argument with a
176         function decl.  Remove optimize_insn_for_size_p check.
177         Only handle machine functions.
178         (rs6000_optab_supported_p): New function.
180 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
182         PR target/68471
183         PR target/68472
184         * config/i386/i386.c (ix86_mitigate_rop): Don't call
185         compute_bb_for_insn again.  Call df_insn_rescan_all.
186         * config/i386/i386.md (set_got_rex64): Override modrm_class.
188         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
190 2015-12-03  Nathan Sidwell  <nathan@acm.org>
192         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
193         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
194         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
195         (nvptx_option_override): Set data ares for worker vars.
196         (nvptx_addr_space_from_sym): Delete.
197         (nvptx_encode_section_info): New.
198         (section_for_sym, section_for_decl): New.
199         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
200         flags,
201         (nvptx_section_from_addr_space): Delete.
202         (nvptx_section_for_decl): Delete.
203         (nvptx_output_aligned, nvptx_declare_object_name,
204         nvptx_assemble_undefined_decl): Use section_for_decl, remove
205         unnecessary checks.
206         (nvptx_print_operand): Add 'D', adjust 'A'.
207         (nvptx_expand_worker_addr): Adjust unspec generation.
208         (TARGET_ENCODE_SECTION_INFO): Override.
209         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
210         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
211         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
212         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
213         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
214         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
215         (UNSPEC_TO_GENERIC): New.
216         (nvptx_register_or_symbolic_operand): Delete.
217         (cvt_code, cvt_name, cvt_str): Delete.
218         (convaddr_<cvt_name><mode> [P]): Delete.
219         (convaddr_<mode> [P]): New.
221 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
223         PR rtl-optimization/68624
224         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
225         blocks if they exist and simplify the logic choosing the order to emit
226         them in.
228 2015-12-03  Richard Biener  <rguenther@suse.de>
230         PR tree-optimization/66051
231         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
232         on load group size.  Do not pass in vectorization_factor.
233         (vect_transform_slp_perm_load): Do not require any permute support.
234         (vect_build_slp_tree): Do not pass in vectorization factor.
235         (vect_analyze_slp_instance): Do not compute vectorization
236         factor estimate.  Use vector size instead of vectorization factor
237         estimate to split store groups for BB vectorization.
239 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
241         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
242         DECL as return value is allowed to have NULL bounds.
244 2015-12-03  Tom de Vries  <tom@codesourcery.com>
246         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
247         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
248         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
250 2015-12-03  Richard Biener  <rguenther@suse.de>
252         PR tree-optimization/67800
253         PR tree-optimization/68333
254         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
255         restriction to reduction contexts but allow SLP reductions as well.
256         (vect_recog_sad_pattern): Likewise.
257         (vect_recog_widen_sum_pattern): Likewise.
259 2015-12-03  Richard Biener  <rguenther@suse.de>
261         PR tree-optimization/68639
262         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
263         belonging to different loops.
264         (vect_analyze_data_ref_accesses): Likewise.
266 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
268         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
269         Remove "prefix_extra".
270         (define_insn "vec_extract_hi_<mode>_mask"): New.
271         (define_insn "vec_extract_hi_<mode>"): Remove masking.
273 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
275         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
276         (propagate_pure_const): Use it; fix comments and optimize loops.
278 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
280         * ipa-pure-const.c (ignore_edge): Rename to ...
281         (ignore_edge_for_nothrow) ... this one; also ignore eges to
282         interposable functions or ones that can not throw.
283         (propagate_nothrow): Fix handling of availability.
285 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
287         PR ipa/68184
288         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
290 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
291             Sebastian Pop  <s.pop@samsung.com>
293         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
294         (gcc_expression_from_isl_expr_op): Same.
296 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
297             Sebastian Pop  <s.pop@samsung.com>
299         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
300         that insertion point is still in the region.
302 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
303             Sebastian Pop  <s.pop@samsung.com>
305         PR tree-optimization/68550
306         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
307         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
308         statements.
310 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
312         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
313         * configure: Regenerate.
314         * config.in: Regenerate.
315         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
316         function.
317         (rs6000_output_function_prologue): Use it instead of checking
318         cfun->machine->r2_setup_needed.  Use internal labels instead of
319         GNU as local label extension.  Handle ELFv2 large code model.
320         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
321         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
323 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
325         PR target/68647
326         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
327         New functions.
328         (expand_unop): Use them.
330 2015-12-02  Marek Polacek  <polacek@redhat.com>
332         PR c++/68653
333         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
335 2015-12-02  Nathan Sidwell  <nathan@acm.org>
337         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
338         SHUFFLE defines.
339         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
341 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
342             Sebastian Pop  <s.pop@samsung.com>
344         * graphite-dependences.c (scop_get_reads): Add extra dumps.
345         (scop_get_must_writes): Same.
346         (scop_get_may_writes): Same.
347         (compute_deps): Same.
348         * graphite-sese-to-poly.c (bounds_are_valid): New.
349         (pdr_add_data_dimensions): Call bounds_are_valid.
351 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
352             Sebastian Pop  <s.pop@samsung.com>
354         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
355         * graphite-poly.c (apply_poly_transforms): Same.
356         * graphite.c (gate_graphite_transforms): Same.
357         * toplev.c (process_options): Same.
359 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
361         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
362         (mips_output_probe_stack_range): Rotate the loop and simplify.
364 2015-12-02  David Sherwood  <david.sherwood@arm.com>
366         * config/aarch64/aarch64.md: New pattern.
367         * config/aarch64/aarch64-simd.md: Likewise.
368         * config/aarch64/iterators.md: New unspecs, iterators.
370 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
372         * dwarf2out.c (dwar2out_var_location): In addition to notes,
373         process indirect calls whose target is compile-time known.
374         Enhance pattern matching to get the SYMBOL_REF they embed.
375         (gen_subprogram_die): Handle such calls.
376         * final.c (final_scan_insn): For call instructions, invoke the
377         var_location debug hook only after the call has been emitted.
379 2015-12-02  Tom de Vries  <tom@codesourcery.com>
381         * gimplify.c (enum gimplify_omp_var_data): Add enum value
382         GOVD_MAP_FORCE.
383         (oacc_default_clause): Fix default for scalars in oacc kernels.
384         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
386 2015-12-02  Tom de Vries  <tom@codesourcery.com>
388         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
389         parameter base_pointers_restrict.
390         (omp_target_base_pointers_restrict_p): New function.
391         (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
392         arg.
394 2015-12-02  Nathan Sidwell  <nathan@acm.org>
396         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
397         (nvptx_underlying_object_mode): Delete.
398         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
399         (output_reg): New.
400         (nvptx_declare_function_name): Use output_reg.  Remove punning
401         buffer.
402         (nvptx_output_mov_insn): New.
403         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
404         Use output_reg. Merge 't' and 'u' handling.
405         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
406         (struct machine_function): Remvoe punning_buffer_size.
407         (REGISTER_NAMES): Remove %punbuffer.
408         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
409         UNSPEC_CPLX_HIGHPART): Delete.
410         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
411         nvptx_output_mov_insn.
412         (*mov<mode>_insn [SDFM): Reorder constraints to match integer
413         moc.  Use nvptx_output_mov_insn.
414         (highpartscsf2,  set_highpartscsf2, lowpartscsf2,
415         set_lowpartscsf2): Delete.
416         (mov<mode> [SDCM]): Delete.
418 2015-12-02  Richard Biener  <rguenther@suse.de>
420         * tree.h (tree_invariant_p): Declare.
421         * tree.c (tree_invariant_p): Export.
422         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
423         create SAVE_EXPRs but reject patterns if we would need to.
425 2015-12-02  Tom de Vries  <tom@codesourcery.com>
427         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
428         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
430 >>>>>>> .r231221
431 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
433         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
434         (cstore<mode>4): Use it.
436 2015-12-02  Richard Biener  <rguenther@suse.de>
438         PR tree-optimization/68625
439         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
440         cleanup_control_flow_bb.
441         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
442         on all BBs, then cleanup_tree_cfg_bb and finally iterate
443         over the worklist doing both.
445 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
447         PR tree-optimization/68432
448         * coretypes.h (optimization_type): New enum.
449         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
450         * doc/tm.texi: Regenerate.
451         * target.def (optab_supported_p): New hook.
452         * targhooks.h (default_optab_supported_p): Declare.
453         * targhooks.c (default_optab_supported_p): New function.
454         * predict.h (function_optimization_type): Declare.
455         (bb_optimization_type): Likewise.
456         * predict.c (function_optimization_type): New function.
457         (bb_optimization_type): Likewise.
458         * optabs-query.h (convert_optab_handler): Define an overload
459         that takes an optimization type.
460         (direct_optab_handler): Likewise.
461         * optabs-query.c (convert_optab_handler): Likewise.
462         (direct_optab_handler): Likewise.
463         * internal-fn.h (direct_internal_fn_supported_p): Take an
464         optimization_type argument.
465         * internal-fn.c (direct_optab_supported_p): Likewise.
466         (multi_vector_optab_supported_p): Likewise.
467         (direct_internal_fn_supported_p): Likewise.
468         * builtins.c (replacement_internal_fn): Update call to
469         direct_internal_fn_supported_p.
470         * gimple-match-head.c (build_call_internal): Likewise.
471         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
472         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
473         * tree.c (maybe_build_call_expr_loc): Likewise.
474         * config/i386/i386.c (ix86_optab_supported_p): New function.
475         (TARGET_OPTAB_SUPPORTED_P): Define.
476         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
477         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
478         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
479         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
480         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
481         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
483 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
485         * Makefile.in (GENSUPPORT_H): New macro.
486         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
487         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
488         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
489         (build/genconstants.o, build/genextract.o, build/genflags.o)
490         (build/gentarget-def.o): Use it.
491         (build/genemit.o): Likewise.  Depend on internal-fn.def.
492         * genopinit.c: Move block comment to optabs.def.
493         (optab_tag, optab_def): Move to gensupport.h
494         (pattern): Likewise, renaming to optab_pattern.
495         (match_pattern): Move to gensupport.c
496         (gen_insn): Use find_optab.
497         (patterns, pattern_cmp): Replace pattern with optab_pattern.
498         (main): Likewise.  Use num_optabs.
499         * optabs.def: Add comment that was previously in genopinit.c.
500         * gensupport.h (optab_tag): Moved from genopinit.c
501         (optab_def): Likewise, expanding commentary.
502         (optab_pattern): Likewise, after renaming from pattern.
503         (optabs, num_optabs, find_optab): Declare.
504         * gensupport.c (optabs): Moved from genopinit.c.
505         (num_optabs): New variable.
506         (match_pattern): Moved from genopinit.c.
507         (find_optab): New function, extracted from genopinit.c:gen_insn.
508         * genemit.c (nofail_optabs): New variable.
509         (emit_c_code): New function.
510         (gen_expand): Check whether the instruction is an optab that isn't
511         allowed to fail.  Call emit_c_code.
512         (gen_split): Call emit_c_code here too.
513         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
515 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
517         * config/s390/predicates.md (const_mask_operand): New predicate.
518         * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
519         * config/s390/vector.md: Change predicate from immediate_operand
520         to either const_int_operand or const_mask_operand.  Add special
521         insn conditions on patterns which have to exclude certain values.
522         * config/s390/vx-builtins.md: Likewise.
524 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
526         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
527         mode from DI to SI.
529 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
531         * config/s390/s390-builtin-types.def: New builtin types added.
532         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
533         * config/s390/s390.c (s390_expand_builtin): Always truncate
534         constants to the mode in the pattern.
535         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
536         respective builtin __builtin_s390_vec_splat_*.
538 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
540         * config/s390/s390-builtin-types.def: Sort builtin types.
542 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
544         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
545         condition for the RT flag.
547 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
549         * config/s390/constraints.md ("jKK"): New constraint.
550         * config/s390/s390.c (tm-constrs.h): Include for
551         satisfies_constraint_*.
552         (s390_legitimate_constant_p): Allow jKK constants.  Use
553         satisfies_constraint_* also for the others.
554         (legitimate_reload_vector_constant_p): Likewise.
555         (print_operand): Allow h output modifier on vectors.
556         * config/s390/vector.md ("mov<mode>"): Add vrepi.
558 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
560         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
561         latter I->K.
563 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
565         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
566         strvg.
567         ("bswaphi2"): New pattern.
568         New splitter for HI reg-reg bswap.
570 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
572         PR driver/68029
573         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color 
574         if it is the first parameter.
576 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
578         PR tree-optimization/68577
579         * tree-vect-stmts.c (simple_integer_narrowing): New function.
580         (vectorizable_call): Restrict internal function handling
581         to NONE and NARROW cases, using simple_integer_narrowing
582         to test for the latter.  Add cost of narrowing operation
583         and insert it where necessary.
585 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
587         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
588         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
589         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
591 2015-12-01  Nathan Sidwell  <nathan@acm.org>
593         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
594         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
595         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
596         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
597         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
598         (init_output_initializer): Call write_var_marker.
599         (nvptx_output_aligned_decl): New.
600         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
602 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
604         * c-common.c (parse_optimize_options): Do not silently ignore
605         -fstrict-aliasing changes.
607 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
609         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
610         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
611         stream TYPE_ALIAS_SET.
612         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
613         stream TYPE_ALIAS_SET.
615 2015-12-01  Nathan Sidwell  <nathan@acm.org>
617         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
618         consider mode.
620 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
622         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
623         indirection for large and small code models.
624         (adjust_vperm): Likewise.
626 2015-12-01  Julian Brown  <julian@codesourcery.com>
627             Cesar Philippidis  <cesar@codesourcery.com>
628             James Norris  <James_Norris@mentor.com>
630         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
631         support.
632         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
633         (is_gimple_omp_oacc): Add support for above.
634         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
635         (omp_notice_variable): Diagnose undefined implicit uses of
636         use_device variables in offloaded regions.
637         (gimplify_scan_omp_clauses): Add host_data, use_device
638         support. Diagnose undefined mapping of use_device variables in
639         OpenACC clauses.
640         (gimplify_omp_workshare): Add host_data support.
641         (gimplify_expr): Likewise.
642         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
643         * omp-low.c (lookup_decl_in_outer_ctx)
644         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
645         host_data regions.
646         (scan_sharing_clauses): Support use_device.
647         (check_omp_nesting_restrictions): Support host_data.
648         (expand_omp_target): Support host_data.
649         (lower_omp_target): Skip over outer host_data regions when looking
650         up decls. Support use_device.
651         (make_gimple_omp_edges): Support host_data.
652         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
653         clause.
655 2015-12-01  Marek Polacek  <polacek@redhat.com>
657         PR middle-end/68582
658         * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
659         for VAR_DECLs.
661 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
663         PR tree-optimization/68474
664         * tree-call-cdce.c (use_internal_fn): Protect call to
665         gen_shrink_wrap_conditions.
667 2015-12-01  Christian Bruel  <christian.bruel@st.com>
669         PR target/68617
670         * config/arm/arm.opt (unaligned_access): Save.
671         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
672         * config/arm/arm.c (arm_option_override): Move unaligned_access setting
673         (arm_option_override_internal): ... here.
674         * config/arm/arm.h (TARGET_32BIT_P): New macro.
676 2015-12-01  Richard Biener  <rguenther@suse.de>
678         PR tree-optimization/68379
679         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
680         always base loads on the first used DR of a group.
681         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
682         Compute alignment of the first scalar element unconditionally.
684 2015-12-01  Richard Biener  <rguenther@suse.de>
686         PR middle-end/68590
687         * genmatch.c (struct capture_info): Add match_use_count.
688         (capture_info::walk_match): Increment match_use_count.
689         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
690         replacements in a save_expr if they occur more often than
691         in the original expression.
693 2015-12-01  Richard Biener  <rguenther@suse.de>
695         PR ipa/68470
696         * ipa-split.c (split_function): Handle main part not returning.
698 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
700         PR middle-end/68595
701         * tree-vect-stmts.c (vect_init_vector): Cast boolean
702         scalars to a proper value before building a vector.
704 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
706         * genattrtab.c (check_attr_test): Take an attr_desc instead of
707         an is_const flag.  Put the file_location argument first.
708         Update recursive calls.  Improve error messages.
709         (check_attr_value): Take a file location and use it instead
710         of attr->loc.  Improve error messages.  Update calls to
711         check_attr_test.
712         (check_defs): Update call to check_attr_value.
713         (make_canonical): Likewise.
714         (gen_attr): Likewise.
715         (main): Likewise.
716         (gen_insn_reserv): Update call to check_attr_test.
718 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
720         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
722 2015-12-01  Richard Biener  <rguenther@suse.de>
724         PR middle-end/68590
725         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
727 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
729         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
730         odr_type_p): Move to ...
731         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
732         odr_type_p): here; miscro-optimize.
734 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
736         PR tree-optimization/68529
737         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
738         Compute no-overflow information for control iv.
739         (number_of_iterations_lt, number_of_iterations_le): Add new param.
740         (number_of_iterations_cond): Pass new argument to above functions.
742 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
744         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
745         inlining -fno-strict-aliasing into -fstrict-aliasing body.
747 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
748             Sebastian Pop  <s.pop@samsung.com>
750         PR tree-optimization/68565
751         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
752         codegen_error.  Fail when rhs of division operations is integer_zerop.
753         (ternary_op_to_tree): Early return on codegen_error.
754         (unary_op_to_tree): Same.
755         (nary_op_to_tree): Same.
756         (gcc_expression_from_isl_expr_op): Same.
757         (gcc_expression_from_isl_expression): Same.
758         (graphite_create_new_loop): On codegen_error continue generating
759         wrong code.
760         (graphite_create_new_loop_guard): Same.
761         (build_iv_mapping): Same.
762         (graphite_create_new_guard): Same.
764 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
765             Sebastian Pop  <s.pop@samsung.com>
767         * graphite-isl-ast-to-gimple.c: Fix dump messages.
768         * graphite-scop-detection.c: Same.
769         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
771 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
773         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
774         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
775         (convert_local_omp_clauses): Likewise.
777 2015-11-30  Tom de Vries  <tom@codesourcery.com>
779         PR tree-optimization/46032
780         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
781         factored out of ...
782         (find_func_aliases_for_call): ... here.
783         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
784         BUILT_IN_GOMP_PARALLEL.
785         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
786         function.
788 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
790         PR tree-optimization/68501
791         * target.def (builtin_reciprocal): Replace the 3 arguments with
792         a gcall * one, adjust description.
793         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
794         with a gcall * one.
795         * targhooks.c (default_builtin_reciprocal): Likewise.
796         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
797         targetm.builtin_reciprocal even on internal functions, adjust
798         the arguments and allow replacing an internal function with normal
799         built-in.
800         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
801         with a gcall * one.  Handle internal fns too.
802         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
803         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
804         * doc/tm.texi (builtin_reciprocal): Document.
806 2015-11-30  Richard Biener  <rguenther@suse.de>
808         PR tree-optimization/68592
809         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
810         on the pattern def sequence.
812 2015-11-30  Nathan Sidwell  <nathan@acm.org>
814         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
815         (write_one_arg): Reorder parms, add 'sep' param.
816         (nvptx_write_function_decl): Rename to ...
817         (write_fn_proto): ... here.  Do name replacement. Emit linaer
818         comment marker. Deal with both decls and defns. Simplify argument
819         formatting.
820         (write_function_decl_and_comment): Delete.
821         (write_func_decl_from_insn): Rename to ...
822         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
823         (nvptx_record_fndecl): Call write_fn_proto.
824         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
825         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
826         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
828 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
830         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
831         (define_insn "*k<logic><mode>"): Use new iterator.
833 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
835         PR target/28115
836         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
837         (sparc_adjust_cost): Add missing space.
839 2015-11-30  Richard Biener  <rguenther@suse.de>
841         PR c/68162
842         * dwarf2out.c (gen_type_die_with_usage): Keep variant types
843         of arrays.
845 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
847         * tree-if-conv.c (struct ifc_dr): Add new tree
848         base_predicate field.
849         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
850         base ref, DR pairs and store base_predicate for write type DRs.
851         (ifcvt_memrefs_wont_trap): Guard checks with
852         -ftree-loop-if-convert-stores flag.
854 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
856         * cgraph.c (cgraph_node::make_local): No name is unique during
857         incremental linking.
858         * cgraph.h (can_be_discarded_p): Update comment; also common and
859         WEAK in named sections can be discarded; when doing incremental
860         link do not rely on resolution being the final one.
861         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
862         When symbol can be discarded, do not rely on resolution info.
863         * symtab.c (symtab_node::nonzero_address): Take into account that
864         symbol can be discarded.
865         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
866         definition correctly.
867         (function_and_variable_visibility): Do not set unique_name when
868         incrementally linking.
870 2015-11-29  Nathan Sidwell  <nathan@acm.org>
872         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
873         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
874         (ctrap<mode>): Use const0_operand.
876 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
878         * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
879         dump
881 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
883         PR target/28115
884         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
885         recog_memoized test for insn and check recog_memoized for dep_insn.
887 2015-11-28  Nathan Sidwell  <nathan@acm.org>
889         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
890         (FRAME_POINTER_CFA_OFFSET): Define.
891         (struct nvptx_args): Use 'tree' type.
892         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
894 2015-11-28  Tom de Vries  <tom@codesourcery.com>
896         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
898 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
900         * doc/invoke.texi (Option Summary): Use negative form of
901         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
902         sort alphabetically and re-justify.
904 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
906         PR rtl-optimization/68536
907         * lra.c (lra_emit_add): Add code for null base.
908         * lra-constraints.c (curr_insn_transform): Skip operators for
909         subreg reloads.
911 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
913         Revert
914         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
916         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
917         multiple_sets.
918         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
919         are not modified by the final modified insns in the basic blocks.
921 2015-11-27  Nathan Sidwell  <nathan@acm.org>
923         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
924         Don't declare.
925         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
926         (nvptx_maybe_convert_symbolic_operand): Simplify.
927         (nvptx_addr_space_from_address): Delete.
928         (nvptx_print_operand): Adjust 'A' case.
930 2015-11-27  Richard Biener  <rguenther@suse.de>
932         PR tree-optimization/68559
933         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
934         peeling for gap checks ...
935         * tree-vect-stmts.c (vectorizable_load): ... here and relax
936         for SLP.
937         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
938         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
940 2015-11-27  Nathan Sidwell  <nathan@acm.org>
942         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
943         declare.
944         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
945         (nvptx_record_fndecl): Don't return value, remove force
946         argument. Require fndecl.
947         (nvptx_record_libfunc): New.
948         (nvptx_record_needed_decl): Deteermine how to record decl here.
949         (nvptx_maybe_record_fnsym): New.
950         (nvptx_expand_call): Don't record libfuncs here,
951         (nvptx_maybe_convert_symbolic_operand): Use
952         nvptx_maye_record_fnsym.
953         (nvptx_assemble_integer): Reimplement with single switch.
954         (nvptx_output_call_insn): Register libfuncs here.
955         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
956         * config/nvptx/nvptx.md (expand_movdi): Don't call
957         nvptx_record_needed_decl.
959 2015-11-27  Richard Biener  <rguenther@suse.de>
961         PR tree-optimization/68553
962         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
963         generation for 1:1 permutations.
964         (vect_transform_slp_perm_load): Detect 1:1 permutations.
966 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
968         * gimple.h (nonbarrier_call_p): Declare.
969         * gimple.c (nonbarrier_call_p): New function.
970         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
971         Also increment call phase for ASMs with vdef and potential barrier
972         calls.
974 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
976         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
977         multiple_sets.
978         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
979         are not modified by the final modified insns in the basic blocks.
981 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
983         PR rtl-optimization/68506
984         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
985         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
986         blocks.
988 2015-11-27  Martin Liska  <mliska@suse.cz>
990         PR c++/68312
991         * vec.h (release_vec_vec): New function.
993 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
995         PR tree-optimization/68552
996         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
997         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
998         or whether v0 == v1.
1000 2015-11-27  Martin Liska  <mliska@suse.cz>
1002         * tree-ssa-uninit.c: Fix whitespaces in the source file.
1003         The change is just automatical.
1005 2015-11-27  Martin Liska  <mliska@suse.cz>
1007         * tree-chkp.c (chkp_make_static_bounds): Release buffer
1008         used for string.
1010 2015-11-27  Martin Liska  <mliska@suse.cz>
1012         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1013         Do not release memory for comp_alias_ddrs.
1014         * tree-vect-loop.c (destroy_loop_vec_info): Release
1015         the memory for all loop_vec_info.
1017 2015-11-27  Martin Liska  <mliska@suse.cz>
1019         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1020         of a local-scope vec.
1021         (struct final_warning_record): Use auto_vec instead
1022         of vec.
1024 2015-11-27  Richard Biener  <rguenther@suse.de>
1026         PR tree-optimization/68553
1027         * tree-vect-slp.c (vect_get_mask_element): Remove.
1028         (vect_transform_slp_perm_load): Implement in a simpler way.
1030 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
1032         PR rtl-optimization/67753
1033         PR rtl-optimization/64164
1034         * function.c (assign_parm_setup_block): Right-shift
1035         upward-padded big-endian args when bypassing the stack slot.
1037 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
1039         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1040         `-mcompact-branches='.
1041         (MIPS Options): Likewise.
1043 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1045         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1047 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
1049         * doc/install.texi (Prerequisites): Increase ISL requirement to
1050         0.14 or 0.15.
1052 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1054         * config/aarch64/arm_neon.h
1055         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1056         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1057         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1058         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1059         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1060         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1061         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1062         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1063         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1064         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1065         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1066         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1068 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1070         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1071         (vqrdmlahq_s16, vqrdmlahq_s32): New.
1072         (vqrdmlsh_s16, vqrdmlsh_s32): New.
1073         (vqrdmlshq_s16, vqrdmlshq_s32): New.
1075 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1077         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1078         ARM_FEATURE_QRDMX.
1080 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
1082         PR debug/53927
1083         * tree-nested.c (finalize_nesting_tree_1): Append a field to
1084         hold the frame base address.
1085         * dwarf2out.c (gen_subprogram_die): Generate for
1086         DW_AT_static_link a location description that computes the value
1087         of this field.
1089 2015-11-26  Tom de Vries  <tom@codesourcery.com>
1091         revert:
1092         2015-11-25  Tom de Vries  <tom@codesourcery.com>
1094         * cfgloop.c (find_single_latch): New function, factored out of ...
1095         (flow_loops_find): ... here.
1096         (verify_loop_structure): Improve verification of loop->latch.
1097         * cfgloop.h (find_single_latch): Declare.
1098         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1100 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1102         * config/aarch64/aarch64-simd-builtins.def:
1103         Add missing changes from r230962.
1105 2015-11-26  Nathan Sidwell  <nathan@acm.org>
1107         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1108         arg with name.  Don't deal with split regs.  Tweak formatting.
1109         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1110         (nvptx_output_call_insn): Don't deal with split regs here.
1112 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1114         * config/aarch64/aarch64-simd-builtins.def
1115         (sqrdmlah, sqrdmlsh): New.
1116         (sqrdmlah_lane, sqrdmlsh_lane): New.
1117         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1119 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1121         * config/aarch64/aarch64-simd.md
1122         (aarch64_sqmovun<mode>): Fix some white-space.
1123         (aarch64_<sur>qmovun<mode>): Likewise.
1124         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1125         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1126         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1127         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1128         (UNSPEC_SQRDMLSH): New.
1129         (SQRDMLH_AS): New.
1130         (rdma_as): New.
1132 2015-11-26  Richard Biener  <rguenther@suse.de>
1134         PR tree-optimization/66721
1135         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1136         iteration cost earlier.  Re-do analysis without SLP when
1137         vectorization using SLP fails and without has a chance to succeed.
1139 2015-11-26  Richard Biener  <rguenther@suse.de>
1141         * genmatch.c (dt_simplify::gen_1): For generic wrap all
1142         multi-result-use captures in a SAVE_EXPR.
1144 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1146         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1147         (TARGET_SIMD_RDMA): New.
1149 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1151         * combine.c (subst): Do not return clobber of zero in widening mult
1152         case.  Just return x unchanged if it is a no-op substitution.
1154 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
1156         PR target/68416
1157         * config/i386/i386.h (enum reg_class): Add
1158         bounds registers to ALL_REGS.
1160 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1162         PR tree-optimization/68128
1163         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1164         * gimplify.c: Include gimple-walk.h.
1165         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1166         (omp_notice_variable): Set flags to n->value if n already
1167         exists in target region, but we need to jump to do_outer.
1168         (omp_shared_to_firstprivate_optimizable_decl_p,
1169         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1170         functions.
1171         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1172         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1173         not modified in the body.  Call omp_mark_stores for outer
1174         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1175         in the body or on OMP_CLAUSE_LASTPRIVATE.
1176         (gimplify_adjust_omp_clauses): Add body argument, call
1177         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1178         Set OMP_CLAUSE_SHARED_READONLY
1179         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1180         not modified in the body.  Call omp_mark_stores for outer
1181         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1182         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1183         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1184         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1185         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1186         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1187         * tree-nested.c (convert_nonlocal_omp_clauses,
1188         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1189         non-local vars or local vars referenced from nested routines.
1190         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1191         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
1192         TREE_READONLY, don't call use_pointer_for_field with non-NULL
1193         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1195 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
1197         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1198         about signed left shift stronger and clarify the cases when they're
1199         broken.
1201 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1202             Bernd Schmidt  <bschmidt@redhat.com>
1204         PR rtl-optimization/67226
1205         * calls.c (store_one_arg): Take into account
1206         crtl->args.pretend_args_size when checking for overlap between
1207         arg->value and argblock + arg->locate.offset during sibcall
1208         optimization.
1210 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
1212         * config/aarch64/aarch64.md (cbranch<mode>4): Use
1213         aarch64_fp_compare_operand.
1214         (store_pairsf): Use aarch64_reg_or_fp_zero.
1215         (store_pairdf): Likewise.
1216         (cstore<mode>4): Use aarch64_fp_compare_operand.
1217         (cmov<mode>6): Likewise.
1218         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1220 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
1221             Sebastian Pop  <s.pop@samsung.com>
1223         PR tree-optimization/68453
1224         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1225         not redirect edges already pointing to their destination.
1226         (translate_isl_ast_node_for): Split edges after loops to create
1227         basic blocks for close phi nodes.  Save merge points at the end of
1228         a loop guard.
1229         (translate_isl_ast_node_if): Save merge points at the end of the
1230         if region.
1231         (add_close_phis_to_outer_loops): New.
1232         (add_close_phis_to_merge_points): New.
1233         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1234         (copy_bb_and_scalar_dependences): Do not split basic blocks on
1235         loop close phi locations.
1237 2015-11-25  Jan Hubicka  <jh@suse.cz>
1239         * ipa-visibility.c (cgraph_externally_visible_p,
1240         varpool_node::externally_visible_p): When doing incremental linking,
1241         hidden symbols may be still used later.
1242         (update_visibility_by_resolution_info): Do not drop weak during
1243         incremental link.
1244         (function_and_variable_visibility): Fix formating.
1245         * flag-types.h (lto_linker_output): Declare.
1246         * common.opt 9flag_incremental_link): New flag.
1248 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1250         * config/rs6000/constraints.md (wb constraint): New constraint for
1251         ISA 3.0 d-form scalar addressing.
1253         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1254         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1255         Altivec registers.  Add wb constraint for Altivec registers with
1256         D-form addressing.  If we have ISA 3.0 d-form support, undo
1257         secondary reload support for using FPR registers if we want to do
1258         D-form addressing.
1259         (rs6000_debug_reg_global): Likewise.
1260         (rs6000_setup_reg_addr_masks): Likewise.
1261         (rs6000_init_hard_regno_mode_ok): Likewise.
1262         (rs6000_secondary_reload): Likewise.
1263         (rs6000_preferred_reload_class): Likewise.
1264         (rs6000_secondary_reload_class): Likewise.
1266         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1267         constraint.
1269         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1270         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1271         (f32_lm2): Likewise.
1272         (f32_li2): Likewise.
1273         (f32_sr2): Likewise.
1274         (f32_sm2): Likewise.
1275         (f32_si2): Likewise.
1276         (f64_p9): Likewise.
1277         (extendsfdf2_fpr): Likewise.
1278         (mov<mode>_hardfloat): Likewise.
1279         (mov<mode>_hardfloat32): Likewise.
1280         (mov<mode>_hardfloat64): Likewise.
1282         * doc/md.texi (RS/6000 constraints): Document wb constraint.
1283         Fixup we constraint documentation.
1285 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1287         * omp-low.c (pass_expand_omp_ssa::clone): New function.
1288         * passes.def: Add pass_oacc_kernels pass group.
1289         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1291 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1293         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1294         Declare.
1295         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1296         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1297         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1298         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1300 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1302         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1303         TV_IPA_LTO_OUTPUT): New.
1304         * lto-compress.c: Include timevar.h
1305         (lto_end_compression, lto_end_uncompression): Add timers.
1306         * langhooks.c: Include timevar.h
1307         (lhd_append_data): Add timer.
1309 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1311         * varasm.c (default_elf_asm_output_limited_string,
1312         default_elf_asm_output_ascii): Replace fprintf by putc.
1314 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1316         PR rtl-optimization/67954
1317         * lra-constraints.c (curr_insn_transform): Add check on scratch
1318         pseudo when change class to NO_REGS.  Add an assert.
1320 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1322         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1323         constraint is 'n'.
1324         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1325         number.
1326         (nvptx_write_function_decl): Number args from 0.
1327         (nvptx_declare_function_name): Likewise.
1328         (nvptx_function_incoming_arg): Likewise.
1329         (nvptx_output_call_insn): Correct formatting.
1331 2015-11-25  David Sherwood  <david.sherwood@arm.com>
1333         * optabs.def: Add new optabs fmax_optab/fmin_optab.
1334         * internal-fn.def: Add new fmax/fmin internal functions.
1335         * doc/md.texi: Add fmin and fmax patterns.
1337 2015-11-25  Jason Merrill  <jason@redhat.com>
1339         PR c++/68385
1340         * tree.c (integer_zerop, integer_onep, integer_each_onep)
1341         (integer_all_onesp, integer_minus_onep, integer_pow2p)
1342         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1343         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1345 2015-11-25  Richard Biener  <rguenther@suse.de>
1347         PR middle-end/68528
1348         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1349         on stripped operands.
1351 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1353         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1354         (nvptx_declare_function_name): Move assignments next to register
1355         declarations, and process params here.
1357 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
1359         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1360         both the symbol and the "dot" symbol for function descriptors. Fix
1361         inversion for rename of symbols with dollar sign.
1363 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1365         * cfgloop.c (find_single_latch): New function, factored out of ...
1366         (flow_loops_find): ... here.
1367         (verify_loop_structure): Improve verification of loop->latch.
1368         * cfgloop.h (find_single_latch): Declare.
1369         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1371 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1373         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1374         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1375         (STARTFILE_SPEC): Use %(startfile_vtv).
1376         (ENDFILE_SPEC): Use %(endfile_vtv).
1377         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1378         ENDFILE_VTV_SPEC.
1380         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1382 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
1384         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1385         noce_can_store_speculate): Delete.
1386         (noce_process_if_block): Don't try to handle single MEM stores.
1387         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1388         * alias.c (memory_must_be_modified_in_insn_p): Delete.
1390 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1392         PR rtl-optimization/68435
1393         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1394         for conflicts between a, b and the set destinations.
1396 2015-11-25  Richard Biener  <rguenther@suse.de>
1398         PR tree-optimization/68517
1399         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1400         Properly handle zero-sized types.
1402 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1404         * ipa-inline-analysis.c: Include gimplify.h
1405         (set_cond_stmt_execution_predicate,
1406         set_switch_stmt_execution_predicate): Be sure to not leak locations
1407         to function body.
1409 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
1411         PR target/67089
1412         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1413         match_uaddsub_overflow): New functions.
1414         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1416 2015-11-25  Richard Biener  <rguenther@suse.de>
1418         PR tree-optimization/68492
1419         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1420         op from scalars after operand swapping.
1422 2015-11-25  Richard Biener  <rguenther@suse.de>
1424         PR tree-optimization/68502
1425         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1426         check that the step is a multiple of the type size.
1428 2015-11-24  Michael Collison  <michael.collison@linaro.org>
1430         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1431         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1432         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1434 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
1436         * frame-header-opt.c (gate): Check for optimize > 0.
1437         (has_inlined_assembly): New function.
1438         (needs_frame_header_p): Remove is_leaf_function check,
1439         add argument type check.
1440         (callees_functions_use_frame_header): Add is_leaf_function
1441         and has_inlined_assembly calls..
1442         (set_callers_may_not_allocate_frame): New function.
1443         (frame_header_opt): Add is_leaf_function call, add
1444         set_callers_may_not_allocate_frame call.
1445         * config/mips/mips.c (mips_compute_frame_info): Add check
1446         to see if callee saved regs can be put in frame header.
1447         (mips_expand_prologue): Add check to see if step1 is zero,
1448         fix cfa restores when using frame header to store regs.
1449         (mips_can_use_return_insn): Check to see if registers are
1450         stored in frame header.
1451         * config/mips/mips.h (machine_function): Add
1452         callers_may_not_allocate_frame and
1453         use_frame_header_for_callee_saved_regs fields.
1455 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1457         PR rtl-optimization/68520
1458         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1459         its bit was already set in BB_WITH.
1461 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1463         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1464         double check that type is main variant.
1465         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1466         variant.
1467         (verify_type_variant): Verify that variants have no
1468         TYPE_ALIAS_SET_KNOWN_P set
1469         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1470         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1471         only for main variants; stream TYPE_ALIAS_SET as a bit.
1472         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1473         accordingly.
1475 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1477         * tree.c (make_vector_type): Properly compute canonical type of the
1478         main variant.
1479         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1480         a main variant.
1482 2015-11-24  Nathan Sidwell  <nathan@acm.org>
1484         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1485         VOIDmode, don't alter incoming mode.
1486         (nvptx_split_reg_p): Delete.
1487         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1488         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1489         maybe_split_mode calls.
1490         (nvptx_print_operand): Use maybe_split_mode.
1492 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1494         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1495         only for types where LTO sets them.
1496         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1497         (make_vector_type): Likewise.
1498         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1499         * tree.h (canonical_type_used_p): New inline.
1500         * alias.c (get_alias_set): Handle structural equality for all
1501         types that pass canonical_type_used_p.
1502         (record_component_aliases): Look through all types with
1503         record_component_aliases for possible pointers; sanity check that
1504         the alias sets match.
1506 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1508         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1510 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
1512         * tree.c (free_node): New function.
1513         (type_hash_canon): Use it.
1514         * tree.h (free_node): Declare.
1516 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
1517             Michael Meissner  <meissner@linux.vnet.ibm.com>
1519         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1520         (Fv2): New mode attribute to be used when ISA 2.07 instructions
1521         are used on SF values, and ISA 2.06 instructions on DF values.
1522         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1523         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1524         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1525         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1526         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1527         (fre<Fs>): Use <Fv2> instead of <Fv>.
1528         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1529         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1530         (xsrdpi<mode>): Add support for the lround function.
1531         (lround<mode>di2): Likewise.
1532         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1533         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1534         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1535         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1537 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1538             Sebastian Pop  <s.pop@samsung.com>
1540         PR tree-optimization/67984
1541         * graphite-isl-ast-to-gimple.c (is_constant): New.
1542         (get_rename): Call is_constant.
1543         (get_new_name): Same.
1545 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
1546             Sebastian Pop  <s.pop@samsung.com>
1548         * graphite-dependences.c: Only include graphite.h.
1549         * graphite-isl-ast-to-gimple.c: Same.
1550         * graphite-optimize-isl.c: Same.
1551         * graphite-poly.c: Same.
1552         * graphite-scop-detection.c: Same.
1553         * graphite-sese-to-poly.c: Same.
1554         * graphite.c: Same.
1555         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1556         * graphite-poly.h: Same.
1557         * graphite-scop-detection.h: Same.
1558         * graphite.h: New.
1560 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
1562         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1563         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
1564         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1565         function already takes care of checking what it can emit.
1567 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1569         * doc/invoke.texi (-fpic): Add the AArch64 limit.
1570         (-fPIC): Add AArch64.
1572 2015-11-24  Tom de Vries  <tom@codesourcery.com>
1574         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1575         (pass_lim::execute): Allow to run outside pass_tree_loop.
1577 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
1579         * config/aarch64/aarch64.md (add<mode>3):
1580         Block early expansion into 2 add instructions.
1581         (add<mode>3_pluslong): New pattern to combine complex
1582         immediates into 2 additions.
1584 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1586         PR target/66217
1587         PR target/67677
1588         PR target/68332
1589         * config/rs6000/predicates.md (and_operand): Check that the operand
1590         is a const_int before calling rs6000_is_valid_and_mask.
1592 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1594         * config/aarch64/aarch64.md (*condjump): Rename to...
1595         (condjump): ... This.
1596         (*compare_condjump<mode>): New define_insn_and_split.
1597         (*compare_cstore<mode>_insn): Likewise.
1598         (*cstore<mode>_insn): Rename to...
1599         (cstore<mode>_insn): ... This.
1600         * config/aarch64/iterators.md (CMP): Handle ne code.
1601         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1603 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
1605         PR target/68497
1606         * config/i386/i386.c (output_387_binary_op): Fix assertion for
1607         -fno-checking case.
1609 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1611         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1612         (val_ssa_equiv_hash_traits::remove): Likewise.
1613         (pass_uncprop::execute): Adjust.
1615 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1617         * hash-map-traits.h (simple_hashmap_traits ::remove): call
1618         destructors on values that are being removed.
1619         * mem-stats.h (hash_map): Pass type of values to
1620         simple_hashmap_traits.
1621         * tree-sra.c (sra_deinitialize): Remove work around for hash
1622         maps not destructing values.
1623         * genmatch.c (sinfo_hashmap_traits): Adjust.
1624         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1626 2015-11-24  Richard Biener  <rguenther@suse.de>
1627             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1629         PR middle-end/68375
1630         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1631         bogus assertion.
1633 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
1635         PR target/68483
1636         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1637         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1638         returns false.
1639         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1640         whenever first is nelt or above.  Don't mask expected with
1641         2 * nelt - 1.
1643 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1645         PR c/68337
1646         * gimple-fold.c: Include ipa-chkp.h.
1647         (gimple_fold_builtin_memory_op): Don't fold call if we
1648         are going to instrument it and it may copy pointers.
1650 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
1651             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1653         PR rtl-optimization/68194
1654         PR rtl-optimization/68328
1655         PR rtl-optimization/68185
1656         * ree.c (combine_reaching_defs): Reject copy_needed case if
1657         copies_list is not empty.
1659 2015-11-24  Richard Biener  <rguenther@suse.de>
1661         PR middle-end/68221
1662         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1663         use mem_ref_offset.
1665 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
1667         PR rtl-optimization/68381
1668         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1669         is poisoned.
1671 2015-11-23  Nick Clifton  <nickc@redhat.com>
1672             Jeff Law  <law@redhat.com>
1674         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1675         the source/dest of the target extension require a different number of
1676         hard registers.
1677         (combine_set_extension): Remove #if 0 code.
1679 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1680             Sebastian Pop  <s.pop@samsung.com>
1682         PR tree-optimization/68314
1683         * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1684         * graphite-poly.c (new_scop): Remove original_schedule.
1685         (free_scop): Same.
1686         * graphite-poly.h (struct scop): Same.
1687         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1688         (build_pbb_scattering_polyhedrons): Add back.
1689         (build_scop_minimal_scattering): Remove.
1690         (build_scop_scattering): Add back.
1691         (build_scop_original_schedule): Remove.
1692         (build_poly_scop): Revert to only call build_scop_scattering.
1694 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1695             Sebastian Pop  <s.pop@samsung.com>
1697         PR tree-optimization/68493
1698         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1699         missing early return when codegen_error is set.
1701 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1702             Sebastian Pop  <s.pop@samsung.com>
1704         PR tree-optimization/68279
1705         * graphite-poly.c (new_scop): Remove poly_scop_p.
1706         * graphite-poly.h (struct scop): Same.
1707         (build_poly_scop): Declare.
1708         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1709         (cleanup_loop_iter_dom): New.
1710         (build_loop_iteration_domains): Early return when scev analysis fails.
1711         (create_pw_aff_from_tree): Same.
1712         (add_condition_to_pbb): Same.
1713         (add_conditions_to_domain): Same.
1714         (add_conditions_to_constraints): Same.
1715         (build_scop_iteration_domain): Same.
1716         (build_poly_scop): Same.  Do not initialize poly_scop_p.
1717         * graphite-sese-to-poly.h: Remove.
1718         * graphite.c: Do not include graphite-sese-to-poly.h.
1719         (graphite_transform_loops): Stop before code generation when
1720         build_poly_scop fails.
1721         * sese.c (scalar_evolution_in_region): Add fixme note about scev
1722         analysis.
1724 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
1725             Sebastian Pop  <s.pop@samsung.com>
1727         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1728         Remove call to update_ssa.
1729         * sese.c (sese_insert_phis_for_liveouts): Same.
1731 2015-11-23  Marek Polacek  <polacek@redhat.com>
1733         PR tree-optimization/68455
1734         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1735         extract_range_from_multiplicative_op_1 on symbolic ranges.
1737 2015-11-23  Richard Henderson  <rth@redhat.com>
1739         * optabs.def (uaddv4_optab, usubv4_optab): New.
1740         * internal-fn.c (expand_addsub_overflow): Use them.
1741         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1743         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1744         to reversed operands.
1745         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1746         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1747         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1748         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1749         (*add<SWI>3_cconly_overflow_2): New.
1750         (*add<SWI>3_cc_overflow_2): New.
1751         (*addsi3_zext_cc_overflow_2): New.
1753 2015-11-23  Richard Biener  <rguenther@suse.de>
1755         PR tree-optimization/68465
1756         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1757         Also record equalities from multiple predecessor blocks if
1758         only one non-backedge exists.
1760 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1762         PR target/68363
1763         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1764         that are not INSN_P.
1766 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
1768         * config/aarch64/aarch64-builtins.c
1769         (aarch64_gimple_fold_builtin): Fold FMULX.
1771 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
1773         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1774         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
1775         after GCC header files and before graphite header files.
1776         * graphite-dependences.c: Same.
1777         * graphite-isl-ast-to-gimple.c: Same.
1778         * graphite-optimize-isl.c: Same.
1779         * graphite-poly.c: Same.
1780         * graphite-scop-detection.c: Same.
1781         * graphite-sese-to-poly.c: Same.
1782         * graphite.c: Same.
1784 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
1785             Jiong Wang  <jiong.wang@arm.com>
1787         PR tree-optimization/68317
1788         PR tree-optimization/68326
1789         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1790         final min and max are not infinity.
1792 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
1793             Richard Biener  <rguenther@suse.de>
1795         PR tree-optimization/68327
1796         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1797         compute vectype for non-relevant mask producers.
1798         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1799         relevance earlier.
1801 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1803         PR tree-optimization/68460
1804         * tree-parloops.c (gather_scalar_reductions): Also call
1805         free_stmt_vec_info_vec if simple_loop_info == NULL.
1807 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
1809         * opts.c (finish_options): Allow -fsanitize-recover=address for
1810         userspace sanitization.
1811         * asan.c (asan_expand_check_ifn): Redefine recover_p.
1812         * doc/invoke.texi (fsanitize-recover): Update documentation.
1814 2015-11-23  Tom de Vries  <tom@codesourcery.com>
1816         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1818 2015-11-23  Richard Biener  <rguenther@suse.de>
1820         PR tree-optimization/68445
1821         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1822         two different strides.
1824 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1826         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1827         * config/s390/s390.c (s390_check_symref_alignment): Use new
1828         symref flags, early abort on wrong alignment
1829         (s390_secondary_reload): Use new symref flags.
1830         (s390_encode_section_info): Likewise.
1831         * config/s390/predicates.md: Likewise.
1833 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1835         PR target/68390
1836         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1837         for indirect function call.
1839 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
1841         * config/aarch64/aarch64-simd.md
1842         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
1843         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
1844         (*aarch64_mulx_elt_to_64v2df): Likewise.
1845         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
1846         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
1847         (vmulx_lane_f64): Likewise.
1848         (vmulxq_lane_f32): Refactored & moved.
1849         (vmulxq_lane_f64): Likewise.
1850         (vmulx_laneq_f32): New.
1851         (vmulx_laneq_f64): Likewise.
1852         (vmulxq_laneq_f32): Likewise.
1853         (vmulxq_laneq_f64): Likewise.
1854         (vmulxs_lane_f32): Likewise.
1855         (vmulxs_laneq_f32): Likewise.
1856         (vmulxd_lane_f64): Likewise.
1857         (vmulxd_laneq_f64): Likewise.
1859 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
1861         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
1862         In LTO we do not compute TYPE_CANONICAL of pointers.
1863         (gimple_canonical_types_compatible_p): Improve coments; sanity check
1864         that pointers do not have canonical type that would make us believe
1865         they are different.
1866         * alias.c (get_alias_set): Do structural type equality on pointers;
1867         enable pointer path for LTO; also glob pointer to vector with pointer
1868         to vector element; glob pointers and references for LTO; do more strict
1869         sanity checking about build_pointer_type returning the canonical type
1870         which is also the main variant.
1871         (record_component_aliases): When component type is pointer and we
1872         do LTO; record void_type_node alias set.
1874 2015-11-21  Nathan Sidwell  <nathan@acm.org>
1876         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
1878         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
1879         leading blank line.
1880         (write_func_decl_from_insn): Likewise.
1881         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
1882         (nvptx_file_end): Likewise.
1883         (nvptx_function_end): Undent output.
1884         (nvptx_expand_call): Fix formatting.
1885         (nvptx_output_call_insn): Indent output.
1886         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1887         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
1889 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
1891         PR debug/66432
1892         * tree-inline.c (copy_debug_stmt): If
1893         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
1894         in decl_debug_args, don't call remap_gimple_op_r on it.
1896 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
1898         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
1899         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
1900         Check that all record types are complete.
1901         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
1902         compare alias sets for types w/o alias sets.
1904 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1906         * config/sparc/sparc.md (umulxhi_vis): Move around.
1907         (*umulxhi_sp64): Likewise.
1908         (umulxhi_v8plus): Likewise.
1909         (xmulx_vis): Likewise.
1910         (*xmulx_sp64): Likewise.
1911         (xmulx_v8plus): Likewise.
1912         (xmulxhi_vis): Likewise.
1913         (*xmulxhi_sp64): Likewise.
1914         (xmulxhi_v8plus): Likewise.
1916 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
1918         PR 62314
1919         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
1920         (class layout): Update comment
1921         (layout::print_any_fixits): New method.
1922         (layout::move_to_column): New method.
1923         (diagnostic_show_locus): Add call to layout.print_any_fixits.
1925 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
1927         PR middle-end/68221
1928         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
1929         has non-zero bias, subtract it in integer type instead of
1930         pointer plus of negated bias.
1932         PR middle-end/68339
1933         * omp-low.c (expand_simd_clones): Call node->get_body () before
1934         allocating stuff in GC.
1936 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
1938         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
1940 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
1942         * config/aarch64/aarch64.md (predicated): Copy attribute from
1943         "arm.md".
1944         * config/arm/arm.md (predicated): Added description.
1946 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1948         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
1949         for unaligned_access.
1950         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
1951         from matching condition.
1952         (unaligned_loadhis): Likewise.
1953         (unaligned_loadhiu): Likewise.
1954         (unaligned_storesi): Likewise.
1955         (unaligned_storehi): Likewise.
1957 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1959         PR target/68149
1960         * config/arm/arm.md (unaligned_loaddi): Delete.
1961         (unaligned_storedi): Likewise.
1962         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
1963         unaligned DImode memory ops.  Instead perform two back-to-back
1964         unaligned SImode ops.
1966 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
1967             James Norris  <jnorris@codesourcery.com>
1969         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
1970         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
1972 2015-11-20  Alan Hayward <alan.hayward@arm.com>
1974         PR tree-optimization/68413
1975         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
1976         evolution base
1977         (vectorizable_reduction): Use cached base
1979 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1981         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
1982         dump-file string.
1983         (try_create_reduction_list): Same.  Fix typo in dump-file string.
1985 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1987         * doc/md.texi (Standard Names): Move entry for addptr3 around,
1988         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
1989         glitch in entries for cbranch4 and jump.
1991 2015-11-20  Tom de Vries  <tom@codesourcery.com>
1993         PR tree-optimization/68373
1994         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
1995         of ...
1996         (scev_const_prop): ... here.
1997         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
1998         * tree-parloops.c (try_create_reduction_list): Call
1999         final_value_replacement_loop.
2001 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
2003         PR tree-optimization/52272
2004         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2005         (struct iv_common_cand_hasher): New struct.
2006         (iv_common_cand_hasher::hash): New function.
2007         (iv_common_cand_hasher::equal): New function.
2008         (struct ivopts_data): New fields, iv_common_cand_tab and
2009         iv_common_cands.
2010         (tree_ssa_iv_optimize_init): Initialize above fields.
2011         (record_common_cand, common_cand_cmp): New functions.
2012         (add_iv_candidate_derived_from_uses): New function.
2013         (add_iv_candidate_for_use): Record iv_common_cands derived from
2014         iv use in hash table, instead of adding candidates directly.
2015         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2016         (record_important_candidates): Add important candidates to iv uses'
2017         related_cands.  Always keep related_cands for future use.
2018         (try_add_cand_for): Use iv uses' related_cands.
2019         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2020         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2022 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2024         * config/s390/s390.md ("bswaphi2"): New pattern.
2026 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2028         * config/s390/s390.md (GPR1_REGNUM): New constant.
2029         ("*trunc<BFP:mode><DFP_ALL:mode>2")
2030         ("*trunc<DFP_ALL:mode><BFP:mode>2")
2031         ("trunc<BFP:mode><DFP_ALL:mode>2")
2032         ("trunc<DFP_ALL:mode><BFP:mode>2")
2033         ("*extend<BFP:mode><DFP_ALL:mode>2")
2034         ("*extend<DFP_ALL:mode><BFP:mode>2")
2035         ("extend<BFP:mode><DFP_ALL:mode>2")
2036         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2038 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2039             Sebastian Pop  <s.pop@samsung.com>
2041         PR tree-optimization/68428
2042         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2043         over basic blocks outside the scop.
2045 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2046             Sebastian Pop  <s.pop@samsung.com>
2048         PR tree-optimization/68341
2049         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2050         gcc_unreachable and safely fail codegen.
2051         (copy_loop_close_phi_args): Do not insert merge phis in a basic
2052         block with loop phi nodes.
2053         (edge_for_new_close_phis): New.
2054         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2056 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2058         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2059         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2060         (nvptx_declare_objec_name): Likewise.
2062 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2064         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2065         (get_false_edge_from_guard_bb): Move...
2066         * sese.c (get_false_edge_from_guard_bb)
2067         (get_true_edge_from_guard_bb): ... here.
2069 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
2071         Revert
2072         2015-11-18  Alan Modra  <amodra@gmail.com>
2074         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2075         type-limits warning.
2078 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2080         * tree.h (desired_pro_or_demotion_p): New function.
2081         * tree-vrp.c (simplify_cond_using_ranges): Call it.
2083 2015-11-19  Michael Matz  <matz@suse.de>
2085         * fwprop.c (update_uses): Use flag_checking instead of
2086         gcc_checking_assert.
2088 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
2090         * doc/gty.texi (Support for inheritance): Fix missing
2091         parentheses in example.
2093 2015-11-19  Marek Polacek  <polacek@redhat.com>
2095         PR tree-optimization/68431
2096         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2098 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2100         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2101         atomic_exchange<mode>): Input values can be immediates.
2103 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2105         PR lto/61313
2106         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2107         by the user.
2108         * configure: Regenerate.
2110 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2112         PR target/68408
2113         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2114         (DTORS_SECTION_ASM_OP): Likewise.
2116 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2118         PR rtl-optimization/68376
2119         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2120         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2122 2015-11-19  Richard Biener  <rguenther@suse.de>
2124         PR middle-end/68117
2125         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2126         redirect_edge_var_map_destroy.
2128 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2130         PR target/67770
2131         * config/i386/i386.md (simple_return): Disable if
2132         ix86_static_chain_on_stack is true.
2134 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2136         PR bootstrap/68393
2137         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2138         destinations.
2140 2015-11-18  Jeff Law  <law@redhat.com>
2142         PR tree-optimization/68198
2143         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2144         between threading a multi-way branch and a thread path that contains
2145         a multi-way branch.  Disallow the case where a path contains a
2146         multi-way branch and does not thread a multi-way branch.
2147         (thread_through_all_blocks): Update comment.
2149 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
2151         PR c/65083
2152         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2153         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2154         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2155         functions before defining as macros.
2157 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2159         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2160         (nvptx_record_offload_symbol): Remove code compensating for lack
2161         of default dimension handling.
2162         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2164 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2166         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2167         type to bool for early exit.
2168         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2169         in case of error.
2170         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2171         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2172         predecessor dominates the other.
2173         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2174         element is not found it returns -1.
2175         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2176         out early when codegen fails.
2177         (graphite_regenerate_ast_isl): Remove codegen region when pending
2178         phis could not be generated.
2180 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2182         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2183         semicolon.
2184         (class translate_isl_ast_to_gimple): Indentation.
2185         (translate_pending_phi_nodes): Comment.
2186         (add_parameters_to_ivs_params): Moved from sese.c inside class
2187         translate_isl_ast_to_gimple.
2188         (get_max_schedule_dimensions): Same.
2189         (generate_isl_context): Same.
2190         (extend_schedule): Same.
2191         (generate_isl_schedule): Same.
2192         (set_options): Same.
2193         (scop_to_isl_ast): Same.
2194         (is_valid_rename): Same.
2195         (get_rename): Same.
2196         (get_rename_from_scev): Same.
2197         (get_def_bb_for_const): Same.
2198         (get_new_name): Same.
2199         (collect_all_ssa_names): Same.
2200         (copy_loop_phi_args): Same.
2201         (copy_loop_phi_nodes): Same.
2202         (copy_loop_close_phi_args): Same.
2203         (copy_loop_close_phi_nodes): Same.
2204         (copy_cond_phi_args): Same.
2205         (copy_cond_phi_nodes): Same.
2206         (graphite_copy_stmts_from_block): Same.
2207         (copy_bb_and_scalar_dependences): Same.
2208         (add_phi_arg_for_new_expr): Same.
2209         (rename_uses): Same.
2210         (set_rename): Same.
2211         (set_rename_for_each_def): Same.
2212         (gsi_insert_earliest): Same.
2213         (rename_all_uses): Same.
2214         (codegen_error_p): Same.
2215         (print_isl_ast_node): Same.
2216         (translate_isl_ast_for_loop): Call function codegen_error_p.
2217         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2218         (translate_isl_ast_node_user): Make nb_loops const and release
2219         iv_map before exit.
2220         (get_true_edge_from_guard_bb): Move all free-functions early.
2221         (get_false_edge_from_guard_bb): Same.
2222         (bb_contains_loop_close_phi_nodes): Same.
2223         (bb_contains_loop_phi_nodes): Same.
2224         (is_loop_closed_ssa_use):  Same.
2225         (number_of_phi_nodes): Same.
2226         (phi_uses_name): Same.
2227         (later_of_the_two): Same.
2228         (substitute_ssa_name):
2229         (get_edges): Same.
2230         (get_loc): Same.
2231         (get_loop_init_value): Same.
2232         (find_init_value): Same.
2233         (find_init_value_close_phi): Same.
2234         (ast_build_before_for): Same.
2235         (graphite_regenerate_ast_isl): Formatting changes.
2236         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2237         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2238         (set_rename): Same.
2239         (gsi_insert_earliest): Same.
2240         (collect_all_ssa_names): Same.
2241         (rename_all_uses): Same.
2242         (rename_uses): Same.
2243         (get_def_bb_for_const): Same.
2244         (copy_loop_phi_nodes): Same.
2245         (copy_loop_close_phi_args): Same.
2246         (copy_loop_close_phi_nodes): Same.
2247         (copy_cond_phi_args): Same.
2248         (copy_cond_phi_nodes): Same.
2249         (set_rename_for_each_def): Same.
2250         (graphite_copy_stmts_from_block): Same.
2251         (copy_bb_and_scalar_dependences): Same.
2252         (if_region_set_false_region): Same.
2253         (scev_analyzable_p): Same.
2254         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2256 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
2258         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2259         commit from r125920 for FreeBSD.
2261 2015-11-18  Jason Merrill  <jason@redhat.com>
2263         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2264         to be vecs of vecs.
2265         (add_finalizer): Split out from ggc_internal_alloc.
2266         (ggc_handle_finalizers): Run finalizers for the current depth.
2267         (init_ggc, ggc_pch_read): Reserve space for finalizers.
2269 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
2271         PR target/68410
2272         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2273         from || expression.
2275 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2277         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2278         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2279         and atmega328pb.
2280         * doc/avr-mmcu.texi: Regenerate.
2282 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2284         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2285         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2286         (struct bb_sese): New struct.
2287         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2288         (BB_GET_SESE, BB_SET_SESE): Define.
2289         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2290         (nvptx_find_sese): New.
2291         (nvptx_neuter_pars): Find SESE regions when optimizing.
2293 2015-11-18  Alan Modra  <amodra@gmail.com>
2295         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2296         type-limits warning.
2298 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2300         PR bootstrap/68406
2301         * hash-set.h (hash_set::traverse): Expand Key typedef.
2303 2015-11-18  Martin Liska  <mliska@suse.cz>
2305         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2306         options struct.
2308 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2310         * config/nvptx/nvptx.c (global_lock_var): New.
2311         (nvptx_global_lock_addr): New.
2312         (nvptx_lockless_update): Recomment and adjust for clarity.
2313         (nvptx_lockfull_update): New.
2314         (nvptx_reduction_update): New.
2315         (nvptx_goacc_reduction_fini): Call it.
2317 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
2319         * regrename.h (struct du_head): Add target_data_1 and target_data_2
2320         fields.
2321         * regrename.c (create_new_chain): Clear entire struct after allocating.
2323         * config/i386/i386.opt (mmitigate-rop): New option.
2324         * doc/invoke.texi (mmitigate-rop): Document.
2325         * config/i386/i386.c: Include "regrename.h".
2326         (ix86_rop_should_change_byte_p, reg_encoded_number,
2327         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2328         static functions.
2329         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2330         * config/i386/i386.md (attr "modrm_class"): New.
2331         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2332         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2333         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2335 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2337         PR target/68405
2338         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2340 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
2342         PR tree-optimization/68157
2343         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2344         pow_stmt or mul_stmt from stmt's uid.
2345         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2347 2015-11-18  Martin Liska  <mliska@suse.cz>
2349         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2351 2015-11-18  Martin Liska  <mliska@suse.cz>
2353         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2354         Fix GNU coding style.
2355         (find_def_preds): Use auto_vec.
2356         (destroy_predicate_vecs): Change signature of the function.
2357         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2358         new signature.
2359         (simplify_preds_4): Use destroy_predicate_vecs instread of
2360         just releasing preds vector.
2361         (normalize_preds): Likewise.
2362         (is_use_properly_guarded): Use new signature of
2363         destroy_predicate_vecs.
2364         (find_uninit_use): Likewise.
2366 2015-11-18  Richard Biener  <rguenther@suse.de>
2368         PR tree-optimization/67790
2369         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2370         IL rewrite for MINUS_EXPR reductions, rename back to ...
2371         (vect_is_simple_reduction): ... this, removing the wrapper.
2372         (vect_force_simple_reduction): Adjust.
2373         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2374         reductions and make use if reduc_index in all places.  For
2375         the final reduction of MINUS_EXPR use PLUS_EXPR.
2377 2015-11-18  Alan Modra  <amodra@gmail.com>
2379         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2380         to ld.
2381         * configure: Regenerate.
2383 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2385         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2387 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2389         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2390         uses of ssa_name with constant.
2392 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2394         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2395         something changed.
2397 2015-11-17  Tom de Vries  <tom@codesourcery.com>
2399         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2400         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2401         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2403 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
2405         * regrename.c (regrename_find_superclass): New function, code moved
2406         from ...
2407         (rename_chains): ... here.  Call it.
2408         * regrename.h (regrename_find_superclass): Declare.
2410         * regrename.c (record_out_operands): Terminate earlyclobbered
2411         operands here.
2413         PR target/66785
2414         * regrename.c (record_operand_use): Keep track of failed operands
2415         and stop appending if we see any.
2416         * regrename.h (struct operand_rr_info): Add a failed field and shrink
2417         n_chains to short.
2419 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2421         PR 48568
2422         * doc/extend.texi (Common Function Attributes) [visibility]:
2423         Add cross-references to matching variable and type attributes.
2424         (Common Variable Attributes) [visibility]: Add missing entry.
2426 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2428         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2429         entries that map directly to optabs.
2431 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2433         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2434         entries that map directly to optabs.
2436 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2438         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2439         * internal-fn.c (direct_internal_fn_array): Update accordingly.
2440         * tree-vectorizer.h (vectorizable_function): Delete.
2441         * tree-vect-stmts.c: Include internal-fn.h.
2442         (vectorizable_internal_function): New function.
2443         (vectorizable_function): Inline into...
2444         (vectorizable_call): ...here.  Explicitly reject calls that read
2445         from or write to memory.  Try using an internal function before
2446         falling back on the old vectorizable_function behavior.
2448 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2450         * target.def (builtin_vectorized_function): Take a combined_fn (in
2451         the form of an unsigned int) rather than a function decl.
2452         (builtin_md_vectorized_function): New.
2453         * targhooks.h (default_builtin_vectorized_function): Replace the
2454         fndecl argument with an unsigned int.
2455         (default_builtin_md_vectorized_function): Declare.
2456         * targhooks.c (default_builtin_vectorized_function): Replace the
2457         fndecl argument with an unsigned int.
2458         (default_builtin_md_vectorized_function): New function.
2459         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2460         New hook.
2461         * doc/tm.texi: Regenerate.
2462         * tree-vect-stmts.c (vectorizable_function): Update call to
2463         builtin_vectorized_function, also passing internal functions.
2464         Call builtin_md_vectorized_function for target-specific builtins.
2465         * config/aarch64/aarch64-protos.h
2466         (aarch64_builtin_vectorized_function): Replace fndecl argument
2467         with an unsigned int.
2468         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2469         (aarch64_builtin_vectorized_function): Update after above changes.
2470         Use CASE_CFN_*.
2471         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2472         fndecl argument with an unsigned int.
2473         * config/arm/arm-builtins.c: Include case-cfn-macros.h
2474         (arm_builtin_vectorized_function): Update after above changes.
2475         Use CASE_CFN_*.
2476         * config/i386/i386.c: Include case-cfn-macros.h
2477         (ix86_veclib_handler): Take a combined_fn rather than a
2478         built_in_function.
2479         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
2480         mathfn_built_in rather than calling builtin_decl_implicit directly.
2481         (ix86_builtin_vectorized_function) Update after above changes.
2482         Use CASE_CFN_*.
2483         * config/rs6000/rs6000.c: Include case-cfn-macros.h
2484         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2485         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
2486         than calling builtin_decl_implicit directly.
2487         (rs6000_builtin_vectorized_function): Update after above changes.
2488         Use CASE_CFN_*.  Move BUILT_IN_MD to...
2489         (rs6000_builtin_md_vectorized_function): ...this new function.
2490         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2492 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2494         * tree-vect-patterns.c: Include internal-fn.h.
2495         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2497 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2499         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2500         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2502 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2504         * builtins.c (expand_errno_check, expand_builtin_mathfn)
2505         (expand_builtin_mathfn_2): Delete.
2506         (expand_builtin): Remove handling of functions with
2507         internal function equivalents.
2508         * internal-fn.def (SET_EDOM): New internal function.
2509         * internal-fn.h (set_edom_supported_p): Declare.
2510         * internal-fn.c (expand_SET_EDOM): New function.
2511         (set_edom_supported_p): Likewise.
2512         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2513         Rewrite comment at head of file.
2514         (is_call_dce_candidate): Rename to...
2515         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
2516         or gimple_call_builtin_p here.
2517         (edom_only_function): New function.
2518         (shrink_wrap_one_built_in_call_with_conds): New function, split out
2519         from...
2520         (shrink_wrap_one_built_in_call): ...here.
2521         (can_use_internal_fn, use_internal_fn): New functions.
2522         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2523         for calls that have an lhs.
2524         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2525         (pass_call_cdce::execute): Skip blocks that are optimized for size.
2526         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
2527         calls with an lhs.
2528         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2529         at -O and above.
2531 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2533         * builtins.h (called_as_built_in): Declare.
2534         * builtins.c (called_as_built_in): Make external.
2535         * internal-fn.h (expand_internal_call): Define a variant that
2536         specifies the internal function explicitly.
2537         * internal-fn.c (expand_load_lanes_optab_fn)
2538         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2539         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2540         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2541         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2542         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2543         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2544         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2545         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2546         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2547         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2548         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2549         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2550         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2551         argument.
2552         (internal_fn_expanders): Update prototype.
2553         (expand_internal_call): Define a variant that specifies the
2554         internal function explicitly. Use it to implement the previous
2555         interface.
2556         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2557         functions as calls to internal functions.
2559 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2561         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2562         (generated_files): Likewise.
2563         (s-cfn-operators, cfn-operators.pd): New rules.
2564         (s-match): Depend on cfn-operators.pd.
2565         * gencfn-macros.c: Expand comment to describe -o behavior.
2566         (print_define_operator_list): New function.
2567         (main): Accept -o.  Call print_define_operator_list.
2568         * genmatch.c (main): Add the current directory to the include path.
2569         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
2570         instead.
2572 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2574         * doc/match-and-simplify.texi: Document the "null" identifier.
2575         * genmatch.c (id_base::NULL_ID): New kind.
2576         (null_id): New variable.
2577         (get_operator): Add a parameter that says whether null identifiers
2578         are allowed.
2579         (contains_id): New function.
2580         (lower_for): Skip substitutions that would have a null_id in
2581         either the match or the result.
2582         (parser::parse_for): Allow the null identifier to be used.
2583         (parser::parse_operator_list): Likewise.
2584         (main): Initialize null_id.
2586 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2588         * match.pd: Use HYPOT and COS rather than hypot and cos.
2589         Use CASE_CFN_* macros.  Guard log/exp folds with
2590         SCALAR_FLOAT_TYPE_P.
2591         * genmatch.c (internal_fn): New enum.
2592         (fn_id::fn): Change to an unsigned int.
2593         (fn_id::fn_id): Accept internal_fn too.
2594         (add_builtin): Rename to...
2595         (add_function): ...this and turn into a template.
2596         (get_operator): Only try one variation if the original name fails.
2597         Only add _EXPR if the original name was all lower case.
2598         Try converting internal and built-in function names to their
2599         CFN equivalents.
2600         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2601         (dt_simplify::gen_1): Likewise.
2602         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2603         and get_call_combined_fn for generic.
2604         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2605         (decision_tree::gen): Likewise.
2606         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2607         Use add_function rather than add_builtin.  Register internal
2608         functions too.
2609         * generic-match-head.c: Include case-cfn-macros.h.
2610         * gimple-fold.c (replace_stmt_with_simplification): Use
2611         gimple_call_combined_fn to test whether we can keep an
2612         existing call.
2613         * gimple-match.h (code_helper): Replace built_in_function
2614         with combined_fn.
2615         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2616         and case-fn-macros.h.
2617         (gimple_resimplify1): Use fold_const_call.
2618         (gimple_resimplify2, gimple_resimplify3): Likewise.
2619         (build_call_internal, build_call): New functions.
2620         (maybe_push_res_to_seq): Use them.
2621         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
2622         rather than a built-in function.
2623         * tree.h (build_call_expr_internal_loc): Declare.
2624         (maybe_build_call_expr_loc): Likewise.
2625         * tree.c (build_call_expr_internal_loc_array): New function.
2626         (maybe_build_call_expr_loc): Likewise.
2628 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2630         * builtins.h (mathfn_built_in): Add a variant that takes
2631         a combined_fn.
2632         * builtins.c: Include case-cfn-macros.h.
2633         (CASE_MATHFN): Use CASE_CFN_*.
2634         (CASE_MATHFN_REENT): Use CFN_ codes.
2635         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2636         argument with a combined_fn.
2637         (mathfn_built_in): Add a variant that takes a combined_fn.
2638         (expand_builtin_int_roundingfn_2): Update callers accordingly.
2639         (fold_builtin_sincos, fold_builtin_classify): Likewise.
2641 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2643         * tree-vect-patterns.c: Include case-cfn-macros.h.
2644         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2646 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2648         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2649         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2650         (pass_cse_sincos::execute): Likewise.
2652 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2654         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2655         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2656         (decrement_power, acceptable_pow_call): Likewise.
2657         (attempt_builtin_copysign): Likewise.
2659 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2661         * tree-vrp.c: Include case-cfn-macros.h.
2662         (extract_range_basic): Switch on combined_fn rather than handling
2663         built-in functions and internal functions separately.
2665 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2667         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2668         than a built_in_function.
2669         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2670         a function decl.
2671         (integer_valued_real_call_p): Likewise.
2672         * fold-const.c: Include case-cfn-macros.h
2673         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2674         (negate_expr_p): Update accordingly.
2675         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2676         a function decl.
2677         (integer_valued_real_call_p): Likewise.
2678         (tree_invalid_nonnegative_warnv_p): Update accordingly.
2679         (integer_valued_real_p): Likewise.
2680         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2681         to tree_call_nonnegative_warnv_p.
2682         (gimple_call_integer_valued_real_p): Likewise
2683         integer_valued_real_call_p.
2684         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2685         (backprop::process_builtin_call_use): Extend to combined_fn.
2686         (strip_sign_op_1): Likewise.
2687         (backprop::process_use): Don't check for built-in calls here.
2688         (backprop::execute): Likewise.
2689         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2691 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2693         * fold-const-call.h (fold_const_call): Replace built_in_function
2694         arguments with combined_fn arguments.
2695         * fold-const-call.c: Include case-cfn-macros.h.
2696         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2697         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2698         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2699         built_in_function arguments with combined_fn arguments.
2700         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2701         (fold_builtin_3): Update calls to fold_const_call.
2703 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2705         * Makefile.in (HASH_TABLE_H): Add GGC_H.
2706         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2707         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2708         (build/gencfn-macros$(build_exeext): New rules.
2709         (genprogerr): Add cfn-macros.
2710         * hash-set.h (hash_set): Use the traits value_type as the key.
2711         * gencfn-macros.c: New file.
2713 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2715         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2716         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2717         * builtins.c (associated_internal_fn): Handle them.
2719 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2721         * builtins.h (associated_internal_fn): Declare.
2722         (replacement_internal_fn): Likewise.
2723         * builtins.c: Include internal-fn.h
2724         (associated_internal_fn, replacement_internal_fn): New functions.
2725         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2726         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2727         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2728         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2729         (LDEXP): New functions.
2730         * internal-fn.c: Include recog.h.
2731         (unary_direct, binary_direct): New macros.
2732         (expand_direct_optab_fn): New function.
2733         (expand_unary_optab_fn): New macro.
2734         (expand_binary_optab_fn): Likewise.
2735         (direct_unary_optab_supported_p): Likewise.
2736         (direct_binary_optab_supported_p): Likewise.
2738 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2740         * coretypes.h (tree_pair): New type.
2741         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
2742         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2743         * internal-fn.h (direct_internal_fn_info): New structure.
2744         (direct_internal_fn_array): Declare.
2745         (direct_internal_fn_p, direct_internal_fn): New functions.
2746         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2747         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2748         (mask_store_direct, store_lanes_direct): New macros.
2749         (direct_internal_fn_array) New array.
2750         (get_multi_vector_move): Return the optab handler without asserting
2751         that it is available.
2752         (expand_LOAD_LANES): Rename to...
2753         (expand_load_lanes_optab_fn): ...this and add an optab argument.
2754         (expand_STORE_LANES): Rename to...
2755         (expand_store_lanes_optab_fn): ...this and add an optab argument.
2756         (expand_MASK_LOAD): Rename to...
2757         (expand_mask_load_optab_fn): ...this and add an optab argument.
2758         (expand_MASK_STORE): Rename to...
2759         (expand_mask_store_optab_fn): ...this and add an optab argument.
2760         (direct_internal_fn_types, direct_optab_supported_p)
2761         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2762         (direct_internal_fn_supported_p): New functions.
2763         (direct_mask_load_optab_supported_p): New macro.
2764         (direct_load_lanes_optab_supported_p): Likewise.
2765         (direct_mask_store_optab_supported_p): Likewise.
2766         (direct_store_lanes_optab_supported_p): Likewise.
2768 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
2770         * tree-core.h (internal_fn): Move immediately after the definition
2771         of built_in_function.
2772         (combined_fn): New enum.
2773         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2774         (internal_fn_p, as_internal_fn): New functions.
2775         (get_call_combined_fn, combined_fn_name): Declare.
2776         * tree.c (get_call_combined_fn): New function.
2777         (combined_fn_name): Likewise.
2778         * gimple.h (gimple_call_combined_fn): Declare.
2779         * gimple.c (gimple_call_combined_fn): New function.
2781 2015-11-17  Martin Sebor  <msebor@redhat.com>
2783         PR c++/68308
2784         * cp/init.c (build_new_1): Check for expression constness
2785         the right way.
2787 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
2789         PR target/53587
2790         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2791         option list.
2792         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
2793         discussion of the Microsoft structure layout details here from
2794         its former home in extend.texi.
2795         * doc/extend.texi (x86 Variable Attributes): Replace detailed
2796         discussion with pointer to its new location.  Add cross-reference
2797         to corresponding type attributes.
2798         (x86 Type Attributes): Add cross-references to command-line options
2799         and variable attributes.
2801 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
2803         PR middle-end/68134
2804         * targhooks.c (default_get_mask_mode): Filter out
2805         scalar modes returned by mode_for_vector.
2807 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2809         PR target/68143
2810         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2811         offset from dstbase and use it appropriately in
2812         adjust_automodify_address.
2813         (arm_block_set_aligned_vect): Likewise.
2815 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2817         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2818         (MULTILIB_DIRNAMES): Adjust accordingly.
2820 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
2822         * config/aarch64/aarch64-cores.def (cortex-a35): New.
2823         * config/aarch64/aarch64.c (cortexa35_tunings): New.
2824         * config/aarch64/aarch64-tune.md: Regenerate.
2825         * doc/invoke.texi (-mcpu): Add Cortex-A35
2827 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
2829         PR target/68263
2830         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2831         to 32 for IAMCU.
2832         * config/i386/sse.md (*mov<mode>_internal): Always enable
2833         AVX and SSE unaligned moves for IAMCU.
2835 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2837         * tree-if-conv.c: Include varasm.h
2838         (ref_DR_map): Define.
2839         (baseref_DR_map): Like wise
2840         (struct ifc_dr): Add new tree predicate field.
2841         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2842         (memrefs_read_or_written_unconditionally): Remove.
2843         (write_memrefs_written_at_least_once): Remove.
2844         (ifcvt_memrefs_wont_trap): Use hash maps to query
2845         unconditional read/written information.
2846         (if_convertible_loop_p_1):  Initialize hash maps and predicates
2847         before hashing data references and delete hashmaps at the end.
2849 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
2851         PR 56036
2852         * doc/invoke.texi (Optimize Options): Move @end table to the right
2853         place.
2855 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
2857         PR 65129
2858         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
2859         return value.
2861 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
2863         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
2864         128-bit types, just types that fit in a single vector.
2865         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
2867 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
2869         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
2870         in the user documentation.
2871         (define_peephole2, define_split): Similarly.
2873 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
2875         * lto-streamer-out.c (write_global_references): Adjust integer type.
2876         (lto_output_decl_state_refs): Likewise.
2878 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
2880         * config/arm/arm-cores.def (cortex-a35): New.
2881         * config/arm/arm.c (arm_cortex_a35_tune): New.
2882         * config/arm/arm-tables.opt: Regenerate.
2883         * config/arm/arm-tune.md: Regenerate.
2884         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
2885         * config/arm/t-aprofile: Likewise.
2886         * doc/invoke.texi (-mcpu): Likewise.
2888 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
2890         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
2891         and qdf24xx and xgene1 to match -march=armv8-a.
2893 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
2895         PR rtl-optimization/68330
2896         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
2897         of LSHIFTRT by a non-zero constant integer.
2899 2015-11-16  Richard Biener  <rguenther@suse.de>
2901         PR tree-optimization/68306
2902         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
2903         bogus copying from verify_data_ref_alignment and use continue
2904         instead of return.
2906 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
2907             Kaz Kojima  <kkojima@gcc.gnu.org>
2909         PR target/68277
2910         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
2911         operands[2].
2912         (*addsi3): Add another insn_and_split variant for reload.
2914 2015-11-16  Richard Biener  <rguenther@suse.de>
2916         PR middle-end/68117
2917         * cfgexpand.c (pass_expand::execute): Destroy the edge
2918         redirection var map before setting RTL CFG hooks.
2920 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
2922         * config/i386/sse.md (reduc_splus_v8df): Rename to...
2923         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
2925         (reduc_splus_v4df): Rename to...
2926         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
2928         (reduc_splus_v2df): Rename to...
2929         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
2931         (reduc_splus_v16sf): Rename to...
2932         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
2934         (reduc_splus_v8sf): Rename to...
2935         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
2937         (reduc_splus_v4sf): Rename to...
2938         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
2940         (reduc_<code>_<mode>, all 3 variants): Rename each to...
2941         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
2943         (reduc_umin_v8hf): Rename to...
2944         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
2946 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
2948         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
2949         without additional conditions.
2950         * doc/extend.texi (@item simd): New.
2952 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2954         * passes.c (first_pass_instance): Remove variable.
2955         (execute_todo): Remove setting of first_pass_instance.
2956         * tree-pass.h (first_pass_instance): Remove declaration.
2958 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2960         * passes.def: Add arg to pass_ccp pass instantiation.
2961         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
2962         instead of first_pass_instance.
2963         (do_ssa_ccp): Add and handle param nonzero_p.
2964         (pass_ccp::pass_ccp): Initialize nonzero_p.
2965         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
2966         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
2967         (pass_ccp::nonzero_p): New private member.
2969 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2971         * passes.def: Add arg to pass_object_sizes pass instantiation.
2972         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
2973         insert_min_max_p.
2974         (pass_object_sizes::set_pass_param): New member function.  Set
2975         insert_min_max_p.
2976         (pass_object_sizes::insert_min_max_p): New private member.
2977         (pass_object_sizes::execute): Use insert_min_max_p instead of
2978         first_pass_instance.
2980 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2982         * passes.def: Add arg to pass_dominator pass instantiation.
2983         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
2984         of comment.
2985         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
2986         may_peel_loop_headers_p.
2987         (pass_dominator::set_pass_param): New member function.  Set
2988         may_peel_loop_headers_p.
2989         (pass_dominator::may_peel_loop_headers_p): New private member.
2990         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
2991         first_pass_instance.
2993 2015-11-16  Tom de Vries  <tom@codesourcery.com>
2995         * passes.def: Add arg to pass_reassoc pass instantiation.
2996         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
2997         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
2998         of first_pass_instance.
2999         (execute_reassoc): Add and handle insert_powi_p parameter.
3000         (pass_reassoc::insert_powi_p): New private member.
3001         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3002         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
3003         (pass_reassoc::execute): Call execute_reassoc with extra arg.
3005 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3007         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3008         * gen-pass-instances.awk (handle_line): Same.
3009         * pass_manager.h (class pass_manager): Define and undefine
3010         NEXT_PASS_WITH_ARG.
3011         * passes.c (opt_pass::set_pass_param): New function.
3012         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3013         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3014         * tree-pass.h (gimple_opt::set_pass_param): Declare.
3015         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3016         warn_array_bounds_p parameter.
3017         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3018         (pass_vrp::set_pass_param): New function.
3019         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3020         (pass_vrp::warn_array_bounds_p): New private member.
3022 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3024         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3025         (output_probe_stack_range): Rotate the loop and simplify.
3027 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3029         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3030         (output_probe_stack_range): Rotate the loop and simplify.
3032 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3034         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3035         an lea instruction when possible.
3036         (output_adjust_stack_and_probe): Rotate the loop and simplify.
3037         (ix86_emit_probe_stack_range): Adjust.
3038         (output_probe_stack_range): Rotate the loop and simplify.
3040 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3042         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3043         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3044         with appropriate pragma GCC target.
3046 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3048         PR target/65837
3049         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3050         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3052 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3054         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3055         (cortexa57_tunings): Use it.
3057 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3059         PR target/65837
3060         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3061         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3062         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3063         undefine __ARM_FP.
3064         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3065         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3066         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3067         * doc/extend.texi (-mfpu=): Describe attribute.
3069 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3071         PR target/65837
3072         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3073         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3074         arm_init_neon_builtins.
3075         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3076         (arm_init_neon_builtins_internal)
3077         (arm_init_crypto_builtins_internal):
3078         Test and set neon_set_p, neon_crypto_set_p.
3079         (neon_set_p, neon_crypto_set_p): New static booleans.
3081 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3083         PR target/65837
3084         * config/arm/arm.c (arm_fpu_desc): Remove.
3085         (all_fpus): Make global.
3086         (arm_option_override): Use FPU TARGET accessors.
3087         (arm_declare_function_name): Likewise.
3088         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3089         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3090         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3091         (TARGET_NEON): Likewise.
3092         (all_fpus): Declare extern.
3093         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3094         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3096 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3098         PR middle-end/68366
3099         * sdbout.c: Include emit-rtl.h and function.h.
3101 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
3103         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3104         Remove support for FreeBSD 5 and earlier.
3106 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3108         * configure: Regenerate.
3109         * configure.ac: Always define ENABLE_OFFLOADING.
3110         * cgraph.c (cgraph_node::create): Adjust.
3111         * gcc.c (process_command): Likewise.
3112         * omp-low.c (create_omp_child_function): Likewise.
3113         (expand_omp_target): Likewise.
3114         * varpool.c (varpool_node::get_create): Likewise.
3116 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3118         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3119         * df-scan.c (df_get_exit_block_use_set): Adjust.
3120         * except.c (expand_eh_return): Likewise.
3122 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3124         * config/i386/i386.h (TARGET_PECOFF): Remove define.
3125         * defaults.h (TARGET_PECOFF): New default definition.
3126         * varasm.c (handle_vtv_comdat_section): Adjust.
3128 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3130         * defaults.h: New definition of SDB_DEBUGGING_INFO.
3131         * doc/tm.texi: Regenerate.
3132         * doc/tm.texi.in: Adjust.
3133         * final.c (rest_of_clean_state): Remove check if
3134         SDB_DEBUGGING_INFO is defined.
3135         * function.c (number_blocks): Likewise.
3136         * output.h: Likewise.
3137         * sdbout.c: Likewise.
3138         * toplev.c (process_options): Likewise.
3140 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3142         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3143         (enum sdb_masks): Likewise.
3144         * sdbout.c (plain_type_1): Likewise.
3145         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3147 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
3149         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3150         internal calls - 0 if ordered simd and 1 for ordered threads simd.
3151         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3152         argument is 1, replace it with GOMP_ordered_* call instead of removing
3153         it.
3155 2015-11-13  Rich Felker <dalias@libc.org>
3157         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3158         address loading hack for FDPIC targets.
3160 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
3161             Jeff Law  <law@redhat.com>
3163         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3164         * common.opt (-fsplit-paths): New flag controlling path splitting.
3165         * doc/invoke.texi (fsplit-paths): Document.
3166         * opts.c (default_options_table): Add -fsplit-paths to -O2.
3167         * passes.def: Add split_paths pass.
3168         * timevar.def (TV_SPLIT_PATHS): New timevar.
3169         * tracer.c: Include "tracer.h"
3170         (ignore_bb_p): No longer static.
3171         (transform_duplicate): New function, broken out of tail_duplicate.
3172         (tail_duplicate): Use transform_duplicate.
3173         * tracer.h (ignore_bb_p): Declare
3174         (transform_duplicate): Likewise.
3175         * tree-pass.h (make_pass_split_paths): Declare.
3176         * gimple-ssa-split-paths.c: New file.
3178 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
3179             Marek Polacek  <polacek@redhat.com>
3180             Jason Merrill  <jason@redhat.com>
3182         * convert.c (maybe_fold_build1_loc): New.
3183         (maybe_fold_build2_loc): New.
3184         (convert_to_pointer_1): Split out from convert_to_pointer.
3185         (convert_to_pointer_nofold): New.
3186         (convert_to_real_1): Split out from convert_to_real.
3187         (convert_to_real_nofold): New.
3188         (convert_to_integer_1): Split out from convert_to_integer.
3189         (convert_to_integer_nofold): New.
3190         (convert_to_complex_1): Split out from convert_to_complex.
3191         (convert_to_complex_nofold): New.
3192         * convert.h: Declare new functions.
3193         * tree-complex.c (create_one_component_var): Break up line to
3194         avoid sequence point issues.
3196 2015-11-13  Jason Merrill  <jason@redhat.com>
3198         * fold-const.c (fold_convert_const): Fold changing cv-quals on
3199         VECTOR_CST.
3201         * hash-map.h (hash_map::empty): New.
3203 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3205         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3206         (oacc_loop_fixed_partitions): Correct return type to bool.
3207         (oacc_loop_auto_partitions): New.
3208         (oacc_loop_partition): Take mask argument, call
3209         oacc_loop_auto_partitions.
3210         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3212 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
3214         * config/rs6000/constraints.md (we constraint): New constraint for
3215         64-bit power9 vector support.
3216         (wL constraint): New constraint for the element in a vector that
3217         can be addressed by the MFVSRLD instruction.
3219         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3220         declaration.
3221         (convert_int_to_float128): Likewise.
3222         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3223         hardware support for IEEE 128-bit floating point.
3224         (rs6000_expand_float128_convert): Likewise.
3225         (convert_float128_to_int): Likewise.
3226         (convert_int_to_float128): Likewise.
3228         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3229         ISA 3.0 hardware IEEE 128-bit floating point.
3230         (UNSPEC_IEEE128_MOVE): Likewise.
3231         (UNSPEC_IEEE128_CONVERT): Likewise.
3232         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3233         (Ff): Add support for DImode.
3234         (Fv): Likewise.
3235         (any_fix code iterator): New and updated iterators for IEEE
3236         128-bit floating point hardware support.
3237         (any_float code iterator): Likewise.
3238         (s code attribute): Likewise.
3239         (su code attribute): Likewise.
3240         (az code attribute): Likewise.
3241         (uns code attribute): Likewise.
3242         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3243         floating point hardware support.
3244         (abs<mode>2, FLOAT128 iterator): Likewise.
3245         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3246         floating point hardware.
3247         (sub<mode>3, IEEE128 iterator): Likewise.
3248         (mul<mode>3, IEEE128 iterator): Likewise.
3249         (div<mode>3, IEEE128 iterator): Likewise.
3250         (copysign<mode>3, IEEE128 iterator): Likewise.
3251         (sqrt<mode>2, IEEE128 iterator): Likewise.
3252         (neg<mode>2, IEEE128 iterator): Likewise.
3253         (abs<mode>2, IEEE128 iterator): Likewise.
3254         (nabs<mode>2, IEEE128 iterator): Likewise.
3255         (fma<mode>4_hw, IEEE128 iterator): Likewise.
3256         (fms<mode>4_hw, IEEE128 iterator): Likewise.
3257         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3258         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3259         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3260         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3261         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3262         (fix_fixuns code attribute): Likewise.
3263         (float_floatuns code attribute): Likewise.
3264         (fix<uns>_<mode>si2_hw): Likewise.
3265         (fix<uns>_<mode>di2_hw): Likewise.
3266         (float<uns>_<mode>si2_hw): Likewise.
3267         (float<uns>_<mode>di2_hw): Likewise.
3268         (xscvqp<su>wz_<mode>): Likewise.
3269         (xscvqp<su>dz_<mode>): Likewise.
3270         (xscv<su>dqp_<mode): Likewise.
3271         (ieee128_mfvsrd): Likewise.
3272         (ieee128_mfvsrwz): Likewise.
3273         (ieee128_mtvsrw): Likewise.
3274         (ieee128_mtvsrd): Likewise.
3275         (trunc<mode>df2_odd): Likewise.
3276         (cmp<mode>_h): Likewise.
3277         (128-bit GPR splitters): Don't split a 128-bit move that is a
3278         direct move between GPR and vector registers using ISA 3.0 direct
3279         move instructions.
3280         (maddld4): Add support for the ISA 3.0 integer multiply-add
3281         instruction.
3283         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3284         debugging.
3285         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3286         constraint.  Disable the VSX<->GPR direct move helpers if we have
3287         the MFVSRLD and MTVSRDD instructions.
3288         (rs6000_secondary_reload_simple_move): Add support for doing
3289         vector direct moves directly without additional scratch registers
3290         if we have ISA 3.0 instructions.
3291         (rs6000_secondary_reload_direct_move): Update comments.
3292         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3293         instructions.
3295         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3296         direct move instructions.
3297         (vsx_movti_64bit): Likewise.
3298         (vsx_extract_<mode>): Likewise.
3300         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3301         macros for ISA 3.0 direct move instructions.
3302         (TARGET_DIRECT_MOVE_128): Likewise.
3303         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3304         instruction.
3306         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3307         constraints.  Update wa documentation to say not to use %x<n> on
3308         instructions that only take Altivec registers.
3310 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3312         * Makefile.in (OBJS): Add gcc-rich-location.o.
3313         * diagnostic.c (diagnostic_append_note): Pass line_table to
3314         rich_location ctor.
3315         (emit_diagnostic): Likewise.
3316         (inform): Likewise.
3317         (inform_n): Likewise.
3318         (warning): Likewise.
3319         (warning_at): Likewise.
3320         (warning_n): Likewise.
3321         (pedwarn): Likewise.
3322         (permerror): Likewise.
3323         (error): Likewise.
3324         (error_n): Likewise.
3325         (error_at): Likewise.
3326         (sorry): Likewise.
3327         (fatal_error): Likewise.
3328         (internal_error): Likewise.
3329         (internal_error_no_backtrace): Likewise.
3330         (source_range::debug): Likewise.
3331         * gcc-rich-location.c: New file.
3332         * gcc-rich-location.h: New file.
3333         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3334         (warning_at): Likewise.
3335         * gimple.h (gimple_set_block): Use set_block function.
3336         * input.c (dump_line_table_statistics): Dump stats on how many
3337         ranges were optimized vs how many needed ad-hoc table.
3338         (write_digit_row): Add "map" param; use its range_bits
3339         to calculate the per-character offset.
3340         (dump_location_info): Print the range and column bits for each
3341         ordinary map.  Use the range bits to calculate the per-character
3342         offset.  Pass the map as a new param to the various calls to
3343         write_digit_row.  Eliminate uses of
3344         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3345         * print-tree.c (print_node): Print any source range information.
3346         * rtl-error.c (diagnostic_for_asm): Likewise.
3347         * toplev.c (general_init): Initialize line_table's
3348         default_range_bits.
3349         * tree-cfg.c (move_block_to_fn): Likewise.
3350         (move_block_to_fn): Likewise.
3351         * tree-inline.c (copy_phis_for_bb): Likewise.
3352         * tree.c (tree_set_block): Likewise.
3353         (get_pure_location): New function.
3354         (set_source_range): New functions.
3355         (set_block): New function.
3356         (set_source_range): New functions.
3357         * tree.h (CAN_HAVE_RANGE_P): New.
3358         (EXPR_LOCATION_RANGE): New.
3359         (EXPR_HAS_RANGE): New.
3360         (get_expr_source_range): New inline function.
3361         (DECL_LOCATION_RANGE): New.
3362         (set_source_range): New decls.
3363         (get_decl_source_range): New inline function.
3365 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
3367         PR tree-optimization/67682
3368         * tree-vect-slp.c (vect_split_slp_store_group): New.
3369         (vect_analyze_slp_instance): During basic block SLP, recurse on
3370         subgroups if vect_build_slp_tree fails after 1st vector.
3372 2015-11-13  Christian Bruel  <christian.bruel@st.com>
3374         PR target/65837
3375         * config/arm/arm.c (arm_option_override): Move NEON check...
3376         (arm_option_check_internal): here
3377         (arm_file_start): Move .fpu print...
3378         (arm_declare_function_name): here
3379         (arm_option_print): Dump current fpu name.
3380         * config/arm/arm.opt (arm_fpu_index): Mark Save.
3382 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
3383             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3385         * combine.c (subst): Don't substitute or simplify when
3386         handling register-wise widening multiply.
3387         (force_to_mode): Likewise.
3389 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
3391         PR tree-optimization/68264
3392         * tree-call-cdce.c (gen_one_condition): Update commentary.
3393         (gen_conditions_for_pow_int_base): Invert the sense of the tests
3394         passed to gen_one_condition.
3395         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
3396         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3397         using EDGE_FALSE_VALUE for edges to the call block and
3398         EDGE_TRUE_VALUE for the others.
3400 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3402         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3403         complex types.
3405 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3407         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3409 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3411         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3412         len_of_prefix.
3414 2015-11-13  Tom de Vries  <tom@codesourcery.com>
3416         * gen-pass-instances.awk (handle_line): Add args_str variable.
3418 2015-11-13  Martin Liska  <mliska@suse.cz>
3420         * graphite-poly.c (free_scop): Release scop->drs vector.
3421         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3422         Release dom vector.
3423         (try_generate_gimple_bb): Use vNULL as a default initialization
3424         for vectors.
3426 2015-11-13  Martin Liska  <mliska@suse.cz>
3428         PR ipa/68311
3429         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3430         Replace array initialization (using a variable post-increment)
3431         that possible triggers multiple unsequenced modifications
3432         with a pair of pushes to a vector.
3434 2015-11-13  Richard Biener  <rguenther@suse.de>
3436         PR tree-optimization/68306
3437         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3438         loop related checks ...
3439         (vect_verify_datarefs_alignment): ... here.
3440         (vect_slp_analyze_and_verify_node_alignment): Compute and
3441         verify alignment of the single DR that it matters.
3442         * tree-vect-stmts.c (vectorizable_store): Add an assert.
3443         (vectorizable_load): Add a comment.
3444         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3445         for determining load cost.
3447 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3449         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3450         mix of boolean and integer vectors in a single statement.
3451         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3452         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3453         determine constant type.
3454         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3455         for loop invariants.
3457 2015-11-13  Alan Hayward <alan.hayward@arm.com>
3459         PR tree-optimization/66558
3460         * tree-vect-loop.c (is_integer_induction):Add.
3461         (vectorizable_reduction): Add integer induction checks.
3463 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3465         Revert [ARM] Remove neon-testgen.ml and generated tests.
3467         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3469         [ARM] Remove neon-testgen.ml and generated tests.
3471         * config/arm/neon-testgen.ml: Remove.
3473 2015-11-13  Richard Biener  <rguenther@suse.de>
3475         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3476         Signal fatal failure if early checks fail.
3477         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3478         do not bother testing further vector sizes.
3480 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
3482         * config/i386/predicates.md (misaligned_operand): Return true if
3483         operand is aligned to less than its natural alignmnet.
3485 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3487         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3488         (vec_cmpu@var{m}@var{n}): New item.
3489         (vcond@var{m}@var{n}): Specify comparison is signed.
3490         (vcondu@var{m}@var{n}): New item.
3491         (vcond_mask_@var{m}@var{n}): New item.
3492         (maskload@var{m}@var{n}): New item.
3493         (maskstore@var{m}@var{n}): New item.
3495 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
3497         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3498         types of stored value and storage are compatible.
3500 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
3502         * gcc.c (POST_LINK_SPEC): Define if not already defined.
3503         (LINK_COMMAND_SPEC): Use post_link.
3504         (post_link_spec): New, initialize to POST_LINK_SPEC.
3505         (post_link): Initialize new static spec.
3506         * doc/tm.texi.in (POST_LINK_SPEC): Document.
3507         * doc/tm.texi: Regenerated.
3509 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3511         PR driver/67613
3512         * Makefile.in (GCC_OBJS): Add spellcheck.o.
3513         (OBJS): Add spellcheck-tree.o.
3514         * gcc.c: Include "spellcheck.h".
3515         (suggest_option): New function.
3516         (driver::handle_unrecognized_options): Call suggest_option to
3517         provide a hint about misspelled options.
3518         * spellcheck.c: Update file comment.
3519         (levenshtein_distance): Convert 4-param implementation from static
3520         to extern scope.  Remove note about unit tests from leading
3521         comment for const char * implementation.  Move tree
3522         implementation to...
3523         * spellcheck-tree.c: New file.
3524         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
3526 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3528         * Makefile.in (OBJS): Add spellcheck.o.
3529         * spellcheck.c: New file.
3530         * spellcheck.h: New file.
3532 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
3534         * config/ft32/ft32.md (*sne): New insn pattern.
3536 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
3538         * cprop.c (is_too_expensive): Remove.
3539         (gcse.h): Include.
3540         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3541         is_too_expensive.
3542         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3543         * gcse.c (is_too_expensive): Rename to ...
3544         (gcse_or_cprop_is_too_expensive): ... this.
3545         Expand warning to add required size of max-gcse-memory.
3546         (one_pre_gcse_pass): Use it.
3547         (one_code_hoisting_pass): Use it.
3548         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3550 2015-11-12  James Norris  <jnorris@codesourcery.com>
3551             Joseph Myers  <joseph@codesourcery.com>
3553         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3554         GF_OMP_TARGET_KIND_OACC_DECLARE.
3555         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3556         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3557         * gimplify.c (oacc_declare_returns): New.
3558         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3559         (device_resident_p): New function.
3560         (oacc_default_clause): Handle device_resident clause.
3561         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3562         (gimplify_expr): Handle OACC_DECLARE.
3563         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3564         * omp-low.c (expand_omp_target): Handle
3565         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3566         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3567         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3568         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3569         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3570         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3571         GOMP_MAP_DEVICE_RESIDENT.
3573 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
3575         [ARM] Remove neon-testgen.ml and generated tests.
3577         * config/arm/neon-testgen.ml: Remove.
3579 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
3581         * config/aarch64/aarch64-cores.def (qdf24xx): New.
3582         * config/aarch64/aarch64-tune.md: Regenerated.
3583         * config/arm/arm-cores.def (qdf24xx): New.
3584         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3585         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3586         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3587         (ARM Options/-mtune): Likewise.
3589 2015-11-12  Martin Liska  <mliska@suse.cz>
3591         * config/i386/i386.c (ix86_valid_target_attribute_p):
3592         Finalize options at the of the function.
3593         * gcc.c (driver_get_configure_time_options): Call newly
3594         introduced init_opts_obstack.
3595         * lto-wrapper.c (main): Likewise.
3596         * opts.c (init_opts_obstack): New function.
3597         (init_options_struct): Call newly introduced init_opts_obstack.
3598         * opts.h (init_options_struct): Declare.
3600 2015-11-12  Martin Liska  <mliska@suse.cz>
3602         PR ipa/68035
3603         * ipa-icf.c (void sem_item::set_hash): New function.
3604         (sem_function::get_hash): Use renamed m_hash member variable.
3605         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3606         (sem_item::update_hash_by_local_refs): Likewise.
3607         (sem_variable::get_hash): Use renamed m_hash member variable.
3608         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3609         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3610         (sem_item_optimizer::build_graph): As the hash value of an item
3611         is lazy initialized, force the calculation.
3612         * ipa-icf.h (set_hash): Declare new function and rename hash member
3613         variable to m_hash.
3615 2015-11-12  Richard Biener  <rguenther@suse.de>
3617         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3618         Rename to vect_slp_analyze_instance_dependence.
3619         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3620         Remove WAR special-case.
3621         (vect_slp_analyze_node_dependences): Instead add more specific
3622         code here, not relying on other instances being vectorized.
3623         (vect_slp_analyze_instance_dependence): Adjust accordingly.
3624         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3625         vertical space in dump files.
3626         (vect_print_slp_tree): Likewise.
3627         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3628         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3629         not vectorized stmts until after dependence analysis removed
3630         instances.  Merge alignment and dependence checks.
3631         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3632         flag on all stmts.
3634 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
3636         * config/aarch64/aarch64-protos.h (tune_params): Add new members
3637         "max_case_values" and "cache_line_size".
3638         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3639         function.
3640         (aarch64_override_options_internal): Tune heuristics based on new
3641         members in "tune_params".
3642         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3644 2015-11-12  Richard Biener  <rguenther@suse.de>
3646         PR tree-optimization/68306
3647         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3648         relevant and vectorizable checks here.
3649         (vect_verify_datarefs_alignment): Add relevant check here.
3651 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
3653         * gimplify.c (oacc_default_clause): New.
3654         (omp_notice_variable): Call it.
3656 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3658         PR tree-optimization/68305
3659         * tree-vect-slp.c (vect_get_constant_vectors): Support
3660         COND_EXPR with SSA_NAME as a condition.
3662 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3664         * config/visium/visium-protos.h (notice_update_cc): Delete.
3665         (print_operand): Likewise.
3666         (print_operand_address): Likewise.
3668 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3670         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3671         FUNCTION_VALUE_REGNO_P): Remove.
3672         * config/alpha/alpha-protos.h (function_value): Remove.
3673         * config/alpha/alpha.c (function_value): Rename to...
3674         (alpha_function_value_1): ... this.  Make static.
3675         (alpha_function_value, alpha_libcall_value,
3676         alpha_function_value_regno_p): New functions.
3677         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3678         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3680 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3682         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3683         * config/alpha/alpha.c (alpha_memory_latency): Make static.
3684         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3685         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3687 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3689         PR target/67265
3690         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3691         assertion on the CFA register.
3693 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3695         * expr.c (do_store_flag): Expand vector comparison as
3696         VEC_COND_EXPR if vector comparison is not supported by target.
3698 2015-11-12  Renlin Li  <renlin.li@arm.com>
3700         * config/arm/arm.md (addsi3_compare_op2): Make the order of
3701         assembly pattern consistent with constraint order.
3703 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3705         * gen-pass-instances.awk (handle_line): Simplify match regexp.
3707 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3709         * gen-pass-instances.awk (handle_line): Simplify init of
3710         postfix_starts_at.
3712 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3714         * gen-pass-instances.awk (handle_line): Rename var where to
3715         call_starts_at.
3717 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
3719         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3720         do not expand to rtl.
3722 2015-11-12  Richard Biener  <rguenther@suse.de>
3724         PR tree-optimization/58497
3725         * tree-vect-generic.c: Include gimplify.h.
3726         (tree_vec_extract): Lookup constant/constructor DEFs.
3727         (do_cond): Unshare cond.
3729 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
3731         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3732         combined insn if the alignment of vector mode memory operand
3733         is less than ssememalign.
3735 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3737         * gen-pass-instances.awk (handle_line): Print parentheses and
3738         pass_name explicitly.
3740 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3742         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3743         and postfix vars.
3745 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3747         * gen-pass-instances.awk (handle_line): Add comments.
3749 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3751         * gen-pass-instances.awk (handle_line): Rename len_of_end to
3752         len_of_close.
3754 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3756         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3758 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3760         * gen-pass-instances.awk (handle_line): Restructure using early-out.
3762 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3764         * gen-pass-instances.awk (handle_line): Unify semicolon use.
3766 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3768         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3770 2015-11-12  Tom de Vries  <tom@codesourcery.com>
3772         * gen-pass-instances.awk: Add emacs indent setting.
3774 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3776         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3777         to match.pd.
3778         Move Convert A/(B/C) to (A/B)*C to match.pd.
3779         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3780         Move Optimize (X & (-A)) / A where A is a power of 2, to
3781         X >> log2(A) to match.pd.
3783         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3784         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3785         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3786         New simplifier.
3787         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3789 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
3791         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3792         variable.
3793         (neon_vst2_lane<mode>): Likewise.
3794         (neon_vld3_lane<mode>): Likewise.
3795         (neon_vst3_lane<mode>): Likewise.
3796         (neon_vld4_lane<mode>): Likewise.
3797         (neon_vst4_lane<mode>): Likewise.
3799 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
3800             Sebastian Pop  <s.pop@samsung.com>
3802         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3803         New member codegen_error
3804         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3805         early return.
3806         (translate_isl_ast_node_user): Early return in case of error.
3807         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3808         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3809         (add_parameters_to_ivs_params): Remove macro.
3810         (graphite_regenerate_ast_isl): Add if_region pointer to region.
3811         * graphite-poly.c (new_poly_dr): Remove macro.
3812         (print_pdr): Same.
3813         (new_gimple_poly_bb): Same.
3814         (free_gimple_poly_bb): Same.
3815         (print_scop_params): Same.
3816         * graphite-poly.h (struct poly_dr): Same.
3817         (struct poly_bb): Add new_bb.
3818         (gbb_from_bb): Remove dead code.
3819         (pbb_from_bb): Same.
3820         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3821         (parameter_index_in_region): Same.
3822         (find_scop_parameters): Same.
3823         (build_cross_bb_scalars_def): New.
3824         (build_cross_bb_scalars_use): New.
3825         (graphite_find_cross_bb_scalar_vars): New
3826         (try_generate_gimple_bb): Reads and Writes.
3827         (build_alias_set): Move.
3828         (gather_bbs::before_dom_children): Gather bbs visited.
3829         (build_scops): call build_alias_set.
3830         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3831         (remove_simple_copy_phi): Delete.
3832         (remove_invariant_phi): Delete.
3833         (simple_copy_phi_p): Delete.
3834         (reduction_phi_p): Delete.
3835         (isl_id_for_dr): Remove unused param.
3836         (parameter_index_in_region_1): Remove macro usage.
3837         (set_scop_parameter_dim): Same.
3838         (add_param_constraints): Same.
3839         (add_conditions_to_constraints): Same
3840         (build_scop_iteration_domain): Same.
3841         (pdr_add_alias_set): Comment.
3842         (add_scalar_version_numbers): New.
3843         (build_poly_dr): ISL id.
3844         (build_scop_drs): Move.
3845         (build_poly_sr_1): Same.
3846         (insert_stmts): Remove.
3847         (build_poly_sr): New.
3848         (new_pbb_from_pbb): Delete.
3849         (insert_out_of_ssa_copy_on_edge): Delete.
3850         (create_zero_dim_array): Delete.
3851         (scalar_close_phi_node_p): Delete.
3852         (propagate_expr_outside_region): Delete.
3853         (rewrite_close_phi_out_of_ssa): Delete.
3854         (rewrite_phi_out_of_ssa): Delete.
3855         (rewrite_degenerate_phi): Delete.
3856         (rewrite_reductions_out_of_ssa): Delete.
3857         (rewrite_cross_bb_scalar_dependence): Delete.
3858         (handle_scalar_deps_crossing_scop_limits):
3859         (rewrite_cross_bb_scalar_deps): Delete.
3860         (build_poly_scop): Remove calls to out-of-ssa functions.
3861         * graphite.c (graphite_transform_loops): Early return in case of
3862         codegen error.
3863         * sese.c (debug_rename_map_1): Delete.
3864         (debug_rename_map): Delete.
3865         (sese_record_loop): Remove macro.
3866         (build_sese_loop_nests): Same.
3867         (new_sese_info): Same.
3868         (free_sese_info): Same.
3869         (sese_insert_phis_for_liveouts):
3870         (is_loop_closed_ssa_use): New.
3871         (number_of_phi_nodes): New.
3872         (bb_contains_loop_close_phi_nodes): New.
3873         (bb_contains_loop_phi_nodes): New.
3874         (phi_uses_name): New.
3875         (is_valid_rename):
3876         (get_rename): Add old_bb and loop_phi for more precise matching of
3877         exprs.
3878         (set_rename): Pass region.
3879         (later_of_the_two): New.
3880         (gsi_insert_earliest): New.
3881         (collect_all_ssa_names): New.
3882         (substitute_ssa_name): New.
3883         (rename_all_uses): New.
3884         (get_rename_from_scev): New.
3885         (rename_uses): Pass old_bb for more precise matching of exprs.
3886         (get_def_bb_for_const): New.
3887         (get_new_name): New.
3888         (get_loc): New.
3889         (get_edges): New.
3890         (copy_loop_phi_args): New.
3891         (copy_loop_phi_nodes): New.
3892         (get_loop_init_value): New.
3893         (find_init_value): New.
3894         (find_init_value_close_phi): New.
3895         (copy_loop_close_phi_args): New.
3896         (copy_loop_close_phi_nodes): New.
3897         (add_phi_arg_for_new_expr): New.
3898         (copy_cond_phi_args): New.
3899         (copy_cond_phi_nodes): New.
3900         (copy_phi_nodes): New.
3901         (should_copy_to_new_region): New.
3902         (set_rename_for_each_def): New.
3903         (graphite_copy_stmts_from_block): Early return in case of error.
3904         (copy_bb_and_scalar_dependences): Same.
3905         * sese.h (vec_find): New.
3906         (SESE_PARAMS): Delete.
3907         (SESE_LOOPS): Delete.
3908         (SESE_LOOP_NEST): Delete.
3909         (sese_contains_loop): Remove macro usage.
3910         (sese_nb_params): Same.
3911         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
3913 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3915         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
3916         isl_union_map_add_map on every pbb->schedule.
3918 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3920         * tree-parloops.c (create_parallel_loop): Return void.
3922 2015-11-11  Tom de Vries  <tom@codesourcery.com>
3924         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
3925         block only when needed.
3927 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
3929         * config/alpha/alpha-protos.h (print_operand): Remove.
3930         (print_operand_address): Remove.
3931         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
3932         (PRINT_OPERAND_ADDRESS): Remove.
3933         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
3934         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
3935         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
3936         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
3937         (print_operand_address): Rename to...
3938         (alpha_print_operand_address): ...this and make static.
3939         (print_operand): Rename to...
3940         (alpha_print_operand): ...this and make static.
3941         (alpha_print_operand_punct_valid_p): New static function.
3943 2015-11-11  Richard Biener  <rguenther@suse.de>
3945         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
3946         Declare.
3947         (vect_analyze_data_refs_alignment): Make loop vect specific.
3948         (vect_verify_datarefs_alignment): Likewise.
3949         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
3950         Add missing continue.
3951         (vect_compute_data_ref_alignment): Export.
3952         (vect_compute_data_refs_alignment): Merge into...
3953         (vect_analyze_data_refs_alignment): ... this.
3954         (verify_data_ref_alignment): Split out from ...
3955         (vect_verify_datarefs_alignment): ... here.
3956         (vect_slp_analyze_and_verify_node_alignment): New function.
3957         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
3958         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
3959         misplaced checks on alignment.
3960         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
3961         alignment analysis after SLP discovery and do it per instance.
3962         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
3963         bother to re-try using different vector sizes.
3965 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3966             Cesar Philippidis  <cesar@codesourcery.com>
3968         * gimplify.c (enum omp_region_type): Add ORT_ACC,
3969         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
3970         (gimple_add_tmp_var): Add ORT_ACC checks.
3971         (gimplify_var_or_parm_decl): Likewise.
3972         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
3973         (omp_add_variable): Look in outer contexts for openacc and allow
3974         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
3975         (omp_notice_variable, omp_is_private, omp_check_private): Add
3976         ORT_ACC checks.
3977         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
3978         Permit private openacc reductions.
3979         (gimplify_oacc_cache): Specify ORT_ACC.
3980         (gimplify_omp_workshare): Adjust OpenACC region types.
3981         (gimplify_omp_target_update): Likewise.
3982         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
3983         (lower-rec_input_clauses): Don't handle openacc firstprivate
3984         references here.
3985         (lower_omp_target): Emit initializers for openacc firstprivate vars.
3987 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3989         PR target/67265
3990         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
3991         frame pointer for stack checking if non-call exceptions aren't used.
3992         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
3994 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
3996         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
3997         [LA]SHIFTRT.
3999 2015-11-11  Martin Liska  <mliska@suse.cz>
4000             Richard Biener  <rguenther@suse.de>
4002         PR rtl-optimization/68287
4003         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4004         number of elements.
4006 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
4008         * config/mips/mips.c (mips_breakable_sequence_p): New function.
4009         (mips_break_sequence): New function.
4010         (mips_reorg_process_insns): Use them. Use compact branches in selected
4011         situations.
4013 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
4015         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4017 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
4018             Jim Wilson  <wilson@gcc.gnu.org>
4020         PR target/67305
4021         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4022         be true and eliminable registers mentioned.
4024 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
4026         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4027         options.
4028         * config/arc/arc-opts.h: Add ARCv2 CPUs.
4029         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4030         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4031         situation, and store instructions with large offsets.
4032         (arc_secondary_reload_conv): New function.
4033         (arc_init): Add ARCv2 options.
4034         (arc_conditional_register_usage): Select the proper register usage
4035         for ARCv2 processors.
4036         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4037         architecture.
4038         (arc_compute_function_type): Likewise.
4039         (arc_print_operand): Handle new ARCv2 punctuation characters.
4040         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4041         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4042         function.
4043         (arc_reorg, arc_hazard): Use it.
4044         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4045         (ASM_SPEC): Add ARCv2 options.
4046         (TARGET_NORM): ARC HS has norm instructions by default.
4047         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4048         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4049         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4050         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4051         Likewise.
4052         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4053         (TARGET_LP_WR_INTERLOCK): Likewise.
4054         * config/arc/arc.md
4055         (commutative_binary_mult_comparison_result_used, movsicc_insn)
4056         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4057         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4058         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4059         Use it for ARCv2.
4060         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4061         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4062         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4063         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4064         (extzvsi): New pattern.
4065         * config/arc/arc.opt: New ARCv2 options.
4066         * config/arc/arcEM.md: New file.
4067         * config/arc/arcHS.md: Likewise.
4068         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4069         values.
4070         (Cm2): A signed 9-bit integer constant constraint.
4071         (C62): An unsigned 6-bit integer constant constraint.
4072         (C16): A signed 16-bit integer constant constraint.
4073         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4074         (short_const_int_operand): New predicate.
4075         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4076         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4077         -mcode-density and -mdiv-rem.
4079 2015-11-11  Julia Koval  <julia.koval@intel.com>
4081         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4083 2015-11-11  Julia Koval  <julia.koval@intel.com>
4085         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4087 2015-11-11  Martin Liska  <mliska@suse.cz>
4089         * gimple-ssa-strength-reduction.c (create_phi_basis):
4090         Use auto_vec.
4091         * passes.c (release_dump_file_name): New function.
4092         (pass_init_dump_file): Used from this function.
4093         (pass_fini_dump_file): Likewise.
4094         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4095         * var-tracking.c (vt_initialize): Use pool_allocator.
4097 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
4098             Jiong Wang      <jiong.wang@arm.com>
4100         PR tree-optimization/68234
4101         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4102         node which estimiated to be VR_VARYING initially.
4104 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
4106         * regname.c (scan_rtx_reg): Check the matching number of consecutive
4107         registers when tying chains.
4108         (build_def_use): Move terminated_this_insn earlier in the function.
4110 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
4112         * configure.ac: Use = with test and not ==.
4113         * configure: Regenerated.
4115 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
4117         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4118         machine asserts.  Update defines for 64 bit.
4120 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4122         PR target/63870
4123         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4124         lane number.
4125         (neon_vst1_lane<mode>): Likewise.
4126         (neon_vld2_lane<mode>): Likewise.
4127         (neon_vst2_lane<mode>): Likewise.
4128         (neon_vld3_lane<mode>): Likewise.
4129         (neon_vst3_lane<mode>): Likewise.
4130         (neon_vld4_lane<mode>): Likewise.
4131         (neon_vst4_lane<mode>): Likewise.
4133 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4135         PR target/63870
4136         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4137         qualifier_struct_load_store_lane_index.
4138         (arm_storestruct_lane_qualifiers) Likewise.
4139         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4140         big-endian.
4141         (neon_vst1_lane<mode>) Likewise.
4142         (neon_vld2_lane<mode>) Likewise.
4143         (neon_vst2_lane<mode>) Likewise.
4144         (neon_vld3_lane<mode>) Likewise.
4145         (neon_vst3_lane<mode>) Likewise.
4146         (neon_vld4_lane<mode>) Likewise.
4147         (neon_vst4_lane<mode>) Likewise.
4149 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4151         PR target/63870
4152         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4153         qualifier_struct_load_store_lane_index.
4154         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4155         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4156         argument qualifiers.
4157         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4158         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4160 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
4162         * config/nvptx/nvptx.opt (moptimize): New flag.
4163         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4164         default.
4165         (nvptx_optimize_inner): New.
4166         (nvptx_process_pars): Call it when optimizing.
4167         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4169 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4171         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4172         Remove redundant code.
4174 2015-11-10  Jeff Law  <law@redhat.com>
4176         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4177         call to output_address.
4178         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4179         Add unnamed machine_mode argument.
4181 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4183         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4184         default to 64-bit.
4186 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4188         * config/i386/i386.md (*movabs<mode>_1): Add explicit
4189         size directives for -masm=intel.
4190         (*movabs<mode>_2): Ditto.
4192 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4194         * config/i386/i386.c (ix86_print_operand): Remove dead code that
4195         tried to avoid (%rip) for call operands.
4197 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4199         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4200         argument.  Do not use RIP relative addressing when no_rip is set.
4201         (ix86_print_operand): Update call to ix86_print_operand_address_as.
4202         (ix86_print_operand_address): Ditto.
4203         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4204         absolute movabs operand 0.  Add square braces for -masm=intel.
4205         (*movabs<mode>_2): Ditto for operand 1.
4207 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4209         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4210         combine_vcvtf2i pattern.
4212 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4214         * config/arm/arm.c (neon_valid_immediate): Remove integer
4215         CONST_DOUBLE handling.  It should never occur.
4217 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
4219         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4220         (ATOMIC_LDOP): Likewise.
4221         (atomic_ldop): Likewise.
4222         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4223         (ATOMIC_LDOP): Likewise.
4224         (atomic_ldop): Likewise.
4226 2015-11-10  Martin Liska  <mliska@suse.cz>
4228         * alloc-pool.h (allocate_raw): New function.
4229         (operator new (size_t, object_allocator<T> &a)): Use the
4230         function instead of object_allocator::allocate).
4232 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4234         * config/i386/sse.md (HALFMASKMODE): New attribute.
4235         (DOUBLEMASKMODE): New attribute.
4236         (vec_pack_trunc_qi): New.
4237         (vec_pack_trunc_<mode>): New.
4238         (vec_unpacks_lo_hi): New.
4239         (vec_unpacks_lo_si): New.
4240         (vec_unpacks_lo_di): New.
4241         (vec_unpacks_hi_hi): New.
4242         (vec_unpacks_hi_<mode>): New.
4244 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4246         * optabs.c (expand_binop_directly): Allow scalar mode for
4247         vec_pack_trunc_optab.
4248         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4249         boolean vector producers from pattern sequence when computing VF.
4250         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4251         vect_recog_mask_conversion_pattern.
4252         (search_type_for_mask): Choose the smallest
4253         type if different size types are mixed.
4254         (build_mask_conversion): New.
4255         (vect_recog_mask_conversion_pattern): New.
4256         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4257         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4258         load with pattern.
4259         (vectorizable_conversion): Support boolean vectors.
4260         (free_stmt_vec_info): Allow patterns for statements with no lhs.
4261         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4263 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4265         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4266         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4267         Cast mask to FP mode if required.
4268         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4269         (vcond_mask_<mode><avx512fmaskmodelower>): New.
4270         (vcond_mask_<mode><sseintvecmodelower>): New.
4271         (vcond_mask_<mode><sseintvecmodelower>): New.
4272         (vcond_mask_v2div2di): New.
4273         (vcond_mask_<mode><sseintvecmodelower>): New.
4274         (vcond_mask_<mode><sseintvecmodelower>): New.
4276 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4278         * optabs-query.h (get_vcond_mask_icode): New.
4279         * optabs-tree.c (expand_vec_cond_expr_p): Use
4280         get_vcond_mask_icode for VEC_COND_EXPR with mask.
4281         * optabs.c (expand_vec_cond_mask_expr): New.
4282         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4283         * optabs.def (vcond_mask_optab): New.
4284         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4285         generate redundant comparison for COND_EXPR.
4286         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4287         as a condition.
4288         (vectorizable_condition): Likewise.
4289         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4290         cond_exp with no embedded comparison.
4291         (vect_build_slp_tree_1): Likewise.
4293 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4295         * config/i386/sse.md (maskload<mode>): Rename to ...
4296         (maskload<mode><sseintvecmodelower>): ... this.
4297         (maskstore<mode>): Rename to ...
4298         (maskstore<mode><sseintvecmodelower>): ... this.
4299         (maskload<mode><avx512fmaskmodelower>): New.
4300         (maskstore<mode><avx512fmaskmodelower>): New.
4302 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4304         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4305         (expand_MASK_STORE): Adjust to maskstore optab changes.
4306         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4307          Adjust to maskload, maskstore optab changes.
4308         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4309         * optabs.def (maskload_optab): Transform into convert optab.
4310         (maskstore_optab): Likewise.
4311         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4312         can_vec_mask_load_store_p signature change.
4313         (predicate_mem_writes): Use boolean mask.
4314         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4315         can_vec_mask_load_store_p signature change.  Allow invariant masks.
4316         (vectorizable_operation): Ignore type precision for boolean vectors.
4318 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4320         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4321         (const_vector_mask_from_tree): New.
4322         (const_vector_from_tree): Use const_vector_mask_from_tree
4323         for boolean vectors.
4324         * optabs-query.h (get_vec_cmp_icode): New.
4325         * optabs-tree.c (expand_vec_cmp_expr_p): New.
4326         * optabs-tree.h (expand_vec_cmp_expr_p): New.
4327         * optabs.c (vector_compare_rtx): Add OPNO arg.
4328         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4329         (expand_vec_cmp_expr): New.
4330         * optabs.def (vec_cmp_optab): New.
4331         (vec_cmpu_optab): New.
4332         * optabs.h (expand_vec_cmp_expr): New.
4333         * tree-vect-generic.c (expand_vector_comparison): Add vector
4334         comparison optabs check.
4335         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
4336         operations for VF.  Add mask type computation.
4337         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4338         (vectorizable_comparison): New.
4339         (vect_analyze_stmt): Add vectorizable_comparison.
4340         (vect_transform_stmt): Likewise.
4341         (vect_init_vector): Support boolean vector invariants.
4342         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4343         (vectorizable_condition): Directly provide vectype for invariants
4344         used in comparison.
4345         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4346         (enum vect_var_kind): Add vect_mask_var.
4347         (enum stmt_vec_info_type): Add comparison_vec_info_type.
4348         (vectorizable_comparison): New.
4349         (vect_get_vec_def_for_operand): Add VECTYPE arg.
4350         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4351         (vect_create_destination_var): Likewise.
4352         * tree-vect-patterns.c (check_bool_pattern): Check fails
4353         if we can vectorize comparison directly.
4354         (search_type_for_mask): New.
4355         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4356         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4357         comparison statements.
4358         (vect_get_constant_vectors): Support boolean vector constants.
4359         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4360         (ix86_expand_int_vec_cmp): New.
4361         (ix86_expand_fp_vec_cmp): New.
4362         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4363         op_true and op_false.
4364         (ix86_int_cmp_code_to_pcmp_immediate): New.
4365         (ix86_fp_cmp_code_to_pcmp_immediate): New.
4366         (ix86_cmp_code_to_pcmp_immediate): New.
4367         (ix86_expand_mask_vec_cmp): New.
4368         (ix86_expand_fp_vec_cmp): New.
4369         (ix86_expand_int_sse_cmp): New.
4370         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4371         (ix86_expand_int_vec_cmp): New.
4372         (ix86_get_mask_mode): New.
4373         (TARGET_VECTORIZE_GET_MASK_MODE): New.
4374         * config/i386/sse.md (avx512fmaskmodelower): New.
4375         (vec_cmp<mode><avx512fmaskmodelower>): New.
4376         (vec_cmp<mode><sseintvecmodelower>): New.
4377         (vec_cmpv2div2di): New.
4378         (vec_cmpu<mode><avx512fmaskmodelower>): New.
4379         (vec_cmpu<mode><sseintvecmodelower>): New.
4380         (vec_cmpuv2div2di): New.
4382 2015-11-10  Richard Biener  <rguenther@suse.de>
4384         PR tree-optimization/68240
4385         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4386         properly.
4387         (visit_phi): For PHIs with just a single executable edge
4388         take its value directly.
4389         (expressions_equal_p): Handle VN_TOP properly.
4391 2015-11-10  Richard Biener  <rguenther@suse.de>
4393         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4394         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4395         conservatively.
4397 2015-11-10  Richard Biener  <rguenther@suse.de>
4399         PR tree-optimization/56118
4400         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4401         cost favor vectorized version.
4403 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4405         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4406         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4407         (neg_not_op): New code attribute.
4409 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4411         * ifcvt.c (noce_try_inverse_constants): New function.
4412         (noce_process_if_block): Call it.
4413         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4414         * optabs.def (negcc_optab, notcc_optab): Declare.
4415         * optabs.c (emit_conditional_neg_or_complement): New function.
4416         * doc/tm.texi (Standard Names): Document negcc, notcc names.
4418 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4420         PR rtl-optimization/68236
4421         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4422         if insn_queue doesn't exist.
4423         (haifa_sched_finish): Reset insn_queue to NULL.
4425 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
4427         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4428         (build_def_use): Initialize terminated_this_insn.
4429         (find_best_rename_reg): Pick and check register from the tied chain.
4430         (regrename_do_replace): Mark head as renamed.
4431         (struct du_head *terminated_this_insn). New static variable.
4432         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
4433         * regrename.h (struct du_head): Add tied_chain, renamed members.
4435 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4437         PR bootstrap/68256
4438         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4439         Return false.
4441 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4443         PR target/57845
4444         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4445         not promote the mode for aggregate types.
4447 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4449         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4450         * omp-low.c (build_oacc_routine_dims): New.
4452 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4454         * config/rs6000/constraints.md (wF constraint): New constraints
4455         for power9/toc fusion.
4456         (wG constraint): Likewise.
4458         * config/rs6000/predicates.md (u6bit_cint_operand): New
4459         predicate, recognize 0..63.
4460         (upper16_cint_operand): New predicate for power9 and toc fusion.
4461         (fpr_reg_operand): Likewise.
4462         (toc_fusion_or_p9_reg_operand): Likewise.
4463         (toc_fusion_mem_raw): Likewise.
4464         (toc_fusion_mem_wrapped): Likewise.
4465         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4466         address range.
4467         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4468         instead.
4469         (fusion_addis_mem_combo_load): Add support for power9 fusion of
4470         floating point loads, floating point stores, and gpr stores.
4471         (fusion_addis_mem_combo_store): Likewise.
4472         (fusion_offsettable_mem_operand): Likewise.
4474         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4475         (emit_fusion_load_store): Likewise.
4476         (fusion_p9_p): Likewise.
4477         (expand_fusion_p9_load): Likewise.
4478         (expand_fusion_p9_store): Likewise.
4479         (emit_fusion_p9_load): Likewise.
4480         (emit_fusion_p9_store): Likewise.
4481         (fusion_wrap_memory_address): Likewise.
4483         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4484         elements for power9 fusion.
4485         (rs6000_debug_print_mode): Rework debug information to print more
4486         information about fusion.
4487         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4488         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4489         offsettable memory address.
4490         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4491         (emit_fusion_gpr_load): Move most of the code from
4492         emit_fusion_gpr_load into emit_fusion-addis that handles both
4493         power8 and power9 fusion.
4494         (emit_fusion_addis): Likewise.
4495         (emit_fusion_load_store): Likewise.
4496         (fusion_wrap_memory_address): Add support for TOC fusion.
4497         (fusion_split_address): Likewise.
4498         (fusion_p9_p): Add support for power9 fusion.
4499         (expand_fusion_p9_load): Likewise.
4500         (expand_fusion_p9_store): Likewise.
4501         (emit_fusion_p9_load): Likewise.
4502         (emit_fusion_p9_store): Likewise.
4504         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4505         new instructions in ISA 3.0.
4506         (TARGET_CTZ): Likewise.
4507         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4508         (TARGET_TOC_FUSION_FP): Likewise.
4510         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4511         fusion unspecs.
4512         (UNSPEC_FUSION_ADDIS): Likewise.
4513         (QHSI mode iterator): New iterator for power9 fusion.
4514         (GPR_FUSION): Likewise.
4515         (FPR_FUSION): Likewise.
4516         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4517         (umod<mode>3): Likewise.
4518         (divmod peephole): Likewise.
4519         (udivmod peephole): Likewise.
4520         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4521         instructions.
4522         (ctz<mode>2_h): Likewise.
4523         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4524         (ashdi3_extswsli_dot): Likewise.
4525         (ashdi3_extswsli_dot2): Likewise.
4526         (power9 fusion splitter): New power9/toc fusion support.
4527         (toc_fusionload_<mode>): Likewise.
4528         (toc_fusionload_di): Likewise.
4529         (fusion_gpr_load_<mode>): Update predicate function.
4530         (power9 fusion peephole2s): New power9/toc fusion support.
4531         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4532         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4533         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4534         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4535         (fusion_p9_<mode>_constant): Likewise.
4537 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
4539         * optabs.c (prepare_libcall_arg): New function.
4540         (expand_fixed_convert): Add call to prepare_libcall_arg.
4542 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
4544         * sched-int.h (dump_rgn_dependencies_dot): Declare
4545         * sched-rgn.c (dump_rgn_dependencies_dot): New function
4546         * print-rtl.h (print_insn): Add prototype
4548         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4549         * common.opt (-fsched-verbose): Set default value to 1.
4550         * invoke.texi (-fsched-verbose): Update the option's description.
4552 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4554         * config/visium/visium.h (PRINT_OPERAND): Delete.
4555         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4556         (PRINT_OPERAND_ADDRESS): Likewise.
4557         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4558         to...
4559         (visium_print_operand_punct_valid_p): ...this.  New function.
4560         (TARGET_PRINT_OPERAND): Define to...
4561         (print_operand): Rename to...
4562         (visium_print_operand): ...this.
4563         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4564         (visium_output_address): Rename to...
4565         (visium_print_operand_address): ...this.
4566         (print_operand_address): Delete.
4568 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4570         PR middle-end/68259
4571         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4572         Check that the type of the first operand is an aggregate type.
4574 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4576         * omp-low.c: Fix some OpenACC comment typos.
4577         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4578         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4579         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4581 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
4583         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4585 2015-11-09  Jeff Law  <law@redhat.com>
4587         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4588         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
4589         Fix comment typo.
4591 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4592             Peter Bergner  <bergner@vnet.ibm.com>
4594         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4595         ISA 3.0 (power9).
4596         (-mpower9-vector): Likewise.
4597         (-mpower9-dform): Likewise.
4598         (-mpower9-minmax): Likewise.
4599         (-mtoc-fusion): Likewise.
4600         (-mmodulo): Likewise.
4601         (-mfloat128-hardware): Likewise.
4603         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4604         mask for ISA 3.0 (power9).
4605         (POWERPC_MASKS): Add new ISA 3.0 switches.
4606         (power9 cpu): Add power9 cpu.
4608         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4609         (ASM_CPU_SPEC): Likewise.
4610         (EXTRA_SPECS): Likewise.
4612         * config/rs6000/rs6000-opts.h (enum processor_type): Add
4613         PROCESSOR_POWER9.
4615         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4616         (rs6000_debug_reg_global): Add support for power9 fusion.
4617         (rs6000_setup_reg_addr_masks): Cache mode size.
4618         (rs6000_option_override_internal): Until real power9 tuning is
4619         added, use -mtune=power8 for -mcpu=power9.
4620         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4621         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4622         of Altivec registers.
4623         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4624         (rs6000_loop_align): Add support for power9 cpu.
4625         (rs6000_file_start): Likewise.
4626         (rs6000_adjust_cost): Likewise.
4627         (rs6000_issue_rate): Likewise.
4628         (insn_must_be_first_in_group): Likewise.
4629         (insn_must_be_last_in_group): Likewise.
4630         (force_new_group): Likewise.
4631         (rs6000_register_move_cost): Likewise.
4632         (rs6000_opt_masks): Likewise.
4634         * config/rs6000/rs6000.md (cpu attribute): Add power9.
4635         * config/rs6000/rs6000-tables.opt: Regenerate.
4637         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4638         _ARCH_PWR9 if power9 support is available.
4640         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4641         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4643         * configure.ac: Determine if the assembler supports the ISA 3.0
4644         instructions.
4645         * config.in (HAVE_AS_POWER9): Likewise.
4646         * configure: Regenerate.
4648         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4649         switches.
4651 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4653         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4654         Remove integer CONST_DOUBLE handling.  It should never occur.
4656 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4658         PR target/68129
4659         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4660         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4661         Delete VOIDmode case.  Assert that mode is not VOIDmode.
4662         * config/aarch64/predicates.md (const0_operand): Remove const_double
4663         match.
4665 2015-11-09  Martin Liska  <mliska@suse.cz>
4667         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4668         body_info release function.
4669         * ipa-prop.c (ipa_release_body_info): New function.
4670         (ipa_analyze_node): Call the function.
4671         (ipa_node_params::~ipa_node_params): Release known_csts.
4672         * ipa-prop.h (ipa_release_body_info): Declare.
4674 2015-11-09  Martin Liska  <mliska@suse.cz>
4676         * gcc.c (record_temp_file): Release name string.
4677         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4678         * lra-lives.c (free_live_range_list): Utilize
4679         lra_live_range_pool for allocation and deallocation.
4680         (create_live_range): Likewise.
4681         (copy_live_range): Likewise.
4682         (lra_merge_live_ranges): Likewise.
4683         (remove_some_program_points_and_update_live_ranges): Likewise.
4684         (lra_create_live_ranges_1): Release point_freq_vec that can
4685         be not freed from previous iteration of the function.
4686         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4687         * tree-sra.c (sra_deinitialize): Release all vectors in
4688         base_access_vec.
4689         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4690         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4691         Release edge_info for a removed edge.
4692         (thread_through_all_blocks): Free region vector.
4693         * tree-ssa.h (free_dom_edge_info): Declare function extern.
4695 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
4697         * optabs.c (expand_vec_cond_expr): Always get sign from type.
4698         * tree.c (wide_int_to_tree): Support negative values for boolean.
4699         (build_nonstandard_boolean_type): Use signed type for booleans.
4701 2015-11-09  Richard Biener  <rguenther@suse.de>
4703         PR tree-optimization/68248
4704         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4706 2015-11-09  Richard Biener  <rguenther@suse.de>
4708         PR tree-optimization/56118
4709         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4710         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4711         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4712         function.
4713         (vect_slp_analyze_data_ref_dependences): Instead of computing
4714         all dependences of the region DRs just analyze the code motions
4715         SLP vectorization will perform.  Remove SLP instances that
4716         cannot have their store/load motions applied.
4717         (vect_analyze_data_refs): Allow DRs without a vectype
4718         in BB vectorization.
4720 2015-11-09  Julian Brown  <julian@codesourcery.com>
4722         * final.c (output_asm_insn): Pass VOIDmode to output_address.
4723         (output_address): Add MODE argument. Pass to print_operand_address
4724         hook.
4725         * targhooks.c (default_print_operand_address): Add MODE argument.
4726         * targhooks.h (default_print_operand_address): Update prototype.
4727         * output.h (output_address): Update prototype.
4728         * target.def (print_operand_address): Add MODE argument.
4729         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4730         output_address.
4731         (print_operand): Pass access mode to output_address.
4732         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4733         argument.
4734         (mcore_print_operand): Update calls to mcore_print_operand_address.
4735         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4736         output_address.
4737         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4738         output_address.
4739         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4740         global.
4741         (tilegx_print_operand): Don't set above global. Update calls to
4742         output_address.
4743         (tilegx_print_operand_address): Add MODE argument. Use instead of
4744         output_memory_reference_mode global.
4745         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4746         (frv_print_operand): Pass mode to frv_print_operand_address calls.
4747         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4748         output_address.
4749         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4750         (cris_print_operand): Pass mode to output_address calls.
4751         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4752         * config/aarch64/aarch64.h (aarch64_print_operand)
4753         (aarch64_print_operand_address): Remove prototypes.
4754         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4755         global.
4756         (aarch64_print_operand): Make static. Update calls to output_address.
4757         (aarch64_print_operand_address): Add MODE argument. Use instead of
4758         aarch64_memory_reference_mode global.
4759         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4760         hooks.
4761         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4762         Delete macro definitions.
4763         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4764         * config/xtensa/xtensa.c (print_operand): Pass mode in
4765         output_address calls.
4766         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4767         argument.
4768         (h83000_print_operand): Update calls to h8300_print_operand_address
4769         and output_address.
4770         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4771         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4772         global.
4773         (tilepro_print_operand): Pass mode to output_address.
4774         (tilepro_print_operand_address): Add MODE argument. Use instead of
4775         output_memory_reference_mode.
4776         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4777         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4778         to output_address calls.
4779         (nvptx_print_operand_address): Add MODE argument.
4780         * config/alpha/alpha.c (print_operand): Pass mode argument in
4781         output_address calls.
4782         * config/m68k/m68k.c (print_operand): Pass mode argument in
4783         output_address call.
4784         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4785         (avr_print_operand): Update calls to avr_print_operand_address.
4786         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4787         argument. Update calls to output_address.
4788         (sparc_print_operand): Pass mode to output_address.
4789         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4790         argument.
4791         (iq2000_print_operand): Pass mode in output_address calls.
4792         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4793         MODE argument.
4794         (xstormy16_print_operand): Pass mode to
4795         xstormy16_print_operand_address calls.
4796         * config/mips/mips.c (mips_print_operand): Update calls to
4797         output_address.
4798         (mips_print_operand_address): Add MODE argument.
4799         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4800         to output_address.
4801         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4802         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4803         output_address.
4804         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4805         (rx_print_operand): Update calls to output_address,
4806         rx_print_operand_address.
4807         * config/nds32/nds32.c (nds32_print_operand): Update calls to
4808         output_address.
4809         (nds32_print_operand_address): Add MODE argument.
4810         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4811         output_address calls.
4812         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4813         output_address call.
4814         (c6x_print_address_operand): Update calls to output_address.
4815         (c6x_print_operand_address): Pass mode to above.
4816         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4817         (v850_print_operand): Pass mode to v850_print_operand_address,
4818         output_address.
4819         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4820         (mmix_print_operand): Pass mode in output_address calls.
4821         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4822         (sh_print_operand): Pass mem mode to output_address,
4823         sh_print_operand_address.
4824         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4825         (cr16_print_operand): Pass mode to output_address,
4826         cr16_print_operand_address.
4827         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4828         output_address.
4829         * config/microblaze/microblaze.c (print_operand): Pass mode to
4830         output_address.
4831         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4832         output_address.
4833         (nios2_print_operand_address): Add MODE argument. Update call to
4834         nios2_print_operand_address.
4835         * config/s390/s390.c (print_operand): Pass mode to output_address.
4836         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4837         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4838         output_address.
4839         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4840         Use instead of output_memory_reference_mode.
4841         (output_memory_reference_mode): Delete global.
4842         (arm_print_operand): Pass mem mode to output_address.
4843         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
4844         (m32r_print_operand): Pass mode to output_address.
4845         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
4846         argument.
4847         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
4848         * config/i386/i386.c (ix86_print_operand): Pass mode to
4849         output_address calls.
4850         (ix86_print_operand_address): Add MODE argument.
4852 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4854         PR middle-end/68251
4855         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
4856         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
4857         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
4858         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
4860 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4862         PR rtl-optimization/67749
4863         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
4864         case before emitting the two blocks.  Instead modify the register
4865         in the corresponding final insn of the basic block.
4867 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4869         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
4870         assembler syntax.
4871         Support Solaris ld.
4872         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
4874         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
4875         HAVE_INITFINI_ARRAY_SUPPORT.
4876         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
4878         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
4879         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
4880         Don't check HAVE_AS_SPARC_NOBITS.
4881         Heed SECTION_NOTYPE.
4883         * configure: Regenerate.
4884         * config.in: Regenerate.
4886 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4888         PR middle-end/68253
4889         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
4891 2015-11-09  Richard Henderson  <rth@redhat.com>
4893         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
4894         __SEG_GS, __SEG_TLS.
4895         (ix86_register_pragmas): Register address spaces __seg_fs,
4896         __seg_gs, __seg_tls.
4897         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
4898         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
4899         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
4900         * config/i386/i386.c (ix86_decompose_address): Likewise.
4901         (ix86_legitimate_address_p): Likewise.
4902         (memory_address_length): Likewise.  Check mem address space too.
4903         (ix86_print_operand): Use ix86_print_operand_address_as.
4904         (ix86_print_operand_address_as): Rename from
4905         ix86_print_operand_address, add new addr_space_t parameter.
4906         Validate that either the parameter or the ix86_address segment
4907         is default address space.  Handle ADDR_SPACE_SEG_TLS.
4908         (ix86_print_operand_address): New.
4909         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
4910         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
4911         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
4912         (ix86_addr_space_zero_address_valid): New.
4913         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4914         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
4915         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
4916         * config/i386/predicates.md (address_no_seg_operand): Likewise.
4917         (vsib_address_operand): Likewise.
4918         (address_mpx_no_base_operand): Likewise.
4919         (address_mpx_no_index_operand): Likewise.
4920         * doc/extend.texi (x86 Named Address Spaces): New section.
4922         * config/i386/i386.c (ix86_check_no_addr_space): New.
4923         (decide_alg): Add have_as parameter.
4924         (alg_usable_p): Likewise; disable rep algorithms if set.
4925         (ix86_expand_set_or_movmem): Notice if either MEM has a
4926         non-default address space.
4927         (ix86_expand_strlen): Likewise.
4928         * config/i386/i386.md (strmov, strset): Likewise.
4929         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
4930         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
4931         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
4932         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
4933         *cmpstrnqi_1, *strlenqi_1): Likewise.
4935         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
4936         (*movabs<mode>_2): Likewise.
4938         * dwarf2out.c (modified_type_die): Pass the address space number
4939         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
4940         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
4941         * targhooks.c (default_addr_space_debug): New.
4942         * targhooks.h (default_addr_space_debug): Declare.
4943         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
4944         * doc/tm.texi: Rebuild.
4946         * gimple.c (check_loadstore): Return false when 0 is a valid address.
4947         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
4948         null when 0 is valid in the source address space.
4949         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
4950         * targhooks.c (default_addr_space_zero_address_valid): New.
4951         * targhooks.h (default_addr_space_zero_address_valid): Declare.
4952         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
4953         * doc/tm.texi: Rebuild.
4955         * cselib.c (add_mem_for_addr): Compare address spaces when
4956         matching memories.
4957         (cselib_lookup_mem): Likewise.
4958         * fold-const.c (operand_equal_p): Check address spaces of
4959         pointer types before checking integer constants.
4961         PR tree-opt/66768
4962         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
4963         the correct type for the base.
4965 2015-11-09  Jeff Law  <law@redhat.com>
4967         * tree-into-ssa.c (names_to_release): No longer static.
4968         * tree-into-ssa.h (names_to_release): Declare.
4969         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
4970         (release_free_names_and_compact_live_names): New function extracted
4971         from pass_release_ssa_names::execute.
4972         (pass_release_ssa_names::execute): Use it.
4974 2015-11-09  Alan Modra  <amodra@gmail.com>
4976         * gensupport.c (add_mnemonic_string): Make len param a size_t.
4977         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
4978         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
4979         return value.
4981 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
4983         PR rtl-optimization/68182
4984         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
4985         branch with only one successor just like unconditional branches.
4987 2015-11-08  Jeff Law  <law@redhat.com>
4989         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
4990         non-FSM path has no edges marked with EDGE_DFS_BACK.
4991         (ssa_redirect_edges): No longer call mark_loop_for_removal.
4992         (thread_single_edge, def_split_header_continue_p): Remove.
4993         (bb_ends_with_multiway_branch): Likewise.
4994         (thread_through_loop_header): Remove cases of threading from
4995         latch through the header.  Simplify knowing we won't thread
4996         the latch.
4997         (thread_through_all_blocks): Simplify knowing that only the FSM
4998         threader needs to handle backedges.
5000 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5002         * doc/extend.texi (type attributes): Document scalar_storage_order.
5003         (Structure-Packing Pragmas): Rename into...
5004         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
5005         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5006         (Warnings): Document -Wno-scalar-storage-order.
5007         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5008         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5009         extract_bit_field and store_bit_field.
5010         (initialize_argument_information): Adjust call to store_expr.
5011         (load_register_parameters): Adjust call to extract_bit_field.
5012         * expmed.c (check_reverse_storage_order_support): New function.
5013         (check_reverse_float_storage_order_support): Likewise.
5014         (flip_storage_order): Likewise.
5015         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
5016         of the value if it is true.  Pass REVERSE to recursive call after
5017         adjusting the target offset.
5018         Do not use extraction or movstrict instruction if REVERSE is true.
5019         Pass REVERSE to store_fixed_bit_field.
5020         (store_bit_field): Add REVERSE parameter and pass to it to above.
5021         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5022         store_split_bit_field and store_fixed_bit_field_1.
5023         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
5024         order of the value if it is true and adjust the target offset.
5025         (store_split_bit_field): Add REVERSE parameter and pass it to
5026         store_fixed_bit_field.  Adjust the target offset if it is true.
5027         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
5028         of the value if it is true.  Pass REVERSE to recursive call after
5029         adjusting the target offset.
5030         Do not use extraction or subreg instruction if REVERSE is true.
5031         Pass REVERSE to extract_fixed_bit_field.
5032         (extract_bit_field): Add REVERSE parameter and pass to it to above.
5033         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5034         extract_split_bit_field and extract_fixed_bit_field_1.
5035         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
5036         order of the value if it is true and adjust the target offset.
5037         (extract_split_bit_field): Add REVERSE parameter and pass it to
5038         extract_fixed_bit_field.  Adjust the target offset if it is true.
5039         * expmed.h (flip_storage_order): Declare.
5040         (store_bit_field): Adjust prototype.
5041         (extract_bit_field): Likewise.
5042         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5043         (emit_group_store): Adjust call to store_bit_field.
5044         (copy_blkmode_from_reg): Likewise.
5045         (copy_blkmode_to_reg): Likewise.
5046         (write_complex_part): Likewise.
5047         (read_complex_part): Likewise.
5048         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
5049         that it isn't true if the target is a register.
5050         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5051         and flip the storage order of the value.
5052         <BIT_IOR_EXPR>: Flip the storage order of the value.
5053         (get_bit_range): Adjust call to get_inner_reference.
5054         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5055         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
5056         with reverse storage order.
5057         (store_expr_with_bounds): Add REVERSE parameter and pass it to
5058         recursive calls and call to store_bit_field.  Force the value into a
5059         register if it is true and then flip the storage order of the value.
5060         (store_expr): Add REVERSE parameter and pass it to above.
5061         (categorize_ctor_elements_1): Adjust call to
5062         initializer_constant_valid_p.
5063         (store_constructor_field): Add REVERSE parameter and pass it to
5064         recursive calls and call to store_field.
5065         (store_constructor): Add REVERSE parameter and pass it to calls to
5066         store_constructor_field and store_expr.  Set it to true for an
5067         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5068         (store_field): Add REVERSE parameter and pass it to recursive calls
5069         and calls to store_expr and store_bit_field.  Temporarily flip the
5070         storage order of the value with record type and integral mode and
5071         adjust the shift if it is true.
5072         (get_inner_reference): Add PREVERSEP parameter and set it to true
5073         upon encoutering a reference with reverse storage order.
5074         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5075         (expand_constructor): Adjust call to store_constructor.
5076         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5077         of the union type to store_expr in the MEM case and assert that it
5078         isn't set in the REG case.  Adjust call to store_field.
5079         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5080         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5081         get_inner_reference and extract_bit_field. Temporarily flip the
5082         storage order of the value with record type and integral mode and
5083         adjust the shift if it is true.  Flip the storage order of the value
5084         at the end if it is true.
5085         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5086         get_inner_reference.  Do not fetch an inner reference if it is true.
5087         * expr.h (store_expr_with_bounds): Ajust prototype.
5088         (store_expr): Likewise.
5089         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5090         REF_REVERSE_STORAGE_ORDER on the reference according to it.
5091         (optimize_bit_field_compare): Deal with reverse storage order.
5092         Adjust calls to get_inner_reference and make_bit_field_ref.
5093         (decode_field_reference): Add PREVERSEP parameter and adjust call to
5094         get_inner_reference.
5095         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
5096         to decode_field_reference and make_bit_field_ref.
5097         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5098         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5099         (fold_comparison): Adjust call to get_inner_reference.
5100         (split_address_to_core_and_offset): Adjust call to
5101         get_inner_reference.
5102         * gimple-expr.c (useless_type_conversion_p): Return false for array
5103         types with different TYPE_REVERSE_STORAGE_ORDER flag.
5104         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5105         REF_REVERSE_STORAGE_ORDER flag.
5106         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5107         * output.h (assemble_real): Adjust prototype.
5108         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5109         * stor-layout.c (finish_record_layout): Propagate the
5110         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5111         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5112         (TYPE_SATURATING): Adjust.
5113         (REF_REVERSE_STORAGE_ORDER): Document.
5114         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5115         set it to true upon encoutering a reference with reverse storage order.
5116         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5117         * tree-inline.c (remap_gimple_op_r): Propagate the
5118         REF_REVERSE_STORAGE_ORDER flag.
5119         (copy_tree_body_r): Likewise.
5120         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5121         store_expr.
5122         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5123         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5124         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5125         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5126         REF_REVERSE_STORAGE_ORDER flag.
5127         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5128         (gimple_canonical_types_compatible_p): Likewise.
5129         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5130         (TYPE_SATURATING): Adjust.
5131         (REF_REVERSE_STORAGE_ORDER): New flag.
5132         (reverse_storage_order_for_component_p): New inline predicate.
5133         (storage_order_barrier_p): Likewise.
5134         (get_inner_reference): Adjust prototype.
5135         * varasm.c: Include expmed.h.
5136         (assemble_variable_contents): Adjust call to output_constant.
5137         (assemble_real): Add REVERSE parameter.  Flip the storage
5138         order of the value if REVERSE is true.
5139         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5140         (assemble_constant_contents): Adjust call to output_constant.
5141         (output_constant_pool_2): Adjust call to assemble_real.
5142         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5143         TYPE_REVERSE_STORAGE_ORDER.
5144         (initializer_constant_valid_p): Add REVERSE parameter.
5145         (output_constant): Add REVERSE parameter.
5146         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5147         <REAL_TYPE>: Adjust call to assemble_real.
5148         <COMPLEX_TYPE>: Pass it to recursive calls.
5149         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
5150         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
5151         (struct oc_local_state): Add REVERSE field.
5152         (output_constructor_array_range): Adjust calls to output_constant.
5153         (output_constructor_regular_field): Likewise.
5154         (output_constructor_bitfield): Adjust call to output_constructor.
5155         Flip the storage order of the value if REVERSE is true.
5156         (output_constructor): Add REVERSE parameter.  Set it to true for an
5157         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
5158         output_constructor_bitfield.
5159         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5160         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5161         * builtins.c (get_object_alignment_2): Likewise.
5162         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5163         and get_ref_base_and_extent.
5164         * dbxout.c (dbxout_expand_expr): Likewise.
5165         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5166         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5167         (loc_list_from_tree): Likewise.
5168         (fortran_common): Likewise.
5169         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5170         get_ref_base_and_extent.
5171         (get_base_constructor): Likewise.
5172         (fold_const_aggregate_ref_1): Likewise.
5173         * gimple-laddress.c (pass_laddress::execute): Adjust call to
5174         get_inner_reference.
5175         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5176         get_inner_reference and bail out on reverse storage order.
5177         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5178         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5179         build_ref_for_offset.
5180         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5181         get_ref_base_and_extent.
5182         (ipa_polymorphic_call_context): Likewise.
5183         (extr_type_from_vtbl_ptr_store): Likewise.
5184         (check_stmt_for_type_change): Likewise.
5185         (get_dynamic_type): Likewise.
5186         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5187         get_ref_base_and_extent.
5188         (compute_complex_assign_jump_func): Likewise.
5189         (get_ancestor_addr_info): Likewise.
5190         (compute_known_type_jump_func): Likewise.
5191         (determine_known_aggregate_parts): Likewise.
5192         (ipa_get_adjustment_candidate): Likewise.
5193         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5194         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5195         (build_ref_for_offset): Adjust prototype.
5196         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5197         get_inner_reference.
5198         * tree-affine.c (tree_to_aff_combination): Adjust call to
5199         get_inner_reference.
5200         (get_inner_reference_aff): Likewise.
5201         * tree-data-ref.c (split_constant_offset_1): Likewise.
5202         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
5203         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5204         get_inner_reference.
5205         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5206         (dump_access): Print new fields.
5207         (create_access): Adjust call to get_ref_base_and_extent and set the
5208         REVERSE flag according to the result.
5209         (completely_scalarize_record): Set the REVERSE flag.
5210         (scalarize_elem): Add REVERSE parameter.
5211         (build_access_from_expr_1): Preserve storage order barriers.
5212         (build_accesses_from_assign): Likewise.
5213         (build_ref_for_offset): Add REVERSE parameter and set the
5214         REF_REVERSE_STORAGE_ORDER flag accordingly.
5215         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5216         the REF_REVERSE_STORAGE_ORDER flag if there are components.
5217         (analyze_access_subtree): Likewise.
5218         (create_artificial_child_access): Set the REVERSE flag.
5219         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5220         (turn_representatives_into_adjustments): Propagate REVERSE flag.
5221         (ipa_sra_check_caller): Adjust call to get_inner_reference.
5222         * tree-ssa-alias.c (ao_ref_base): Adjust call to
5223         get_ref_base_and_extent.
5224         (aliasing_component_refs_p): Likewise.
5225         (stmt_kills_ref_p_1): Likewise.
5226         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5227         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5228         Return true if reverse storage order.
5229         <BIT_FIELD_REF>: Likewise.
5230         <COMPONENT_REF>: Likewise.
5231         <ARRAY_REF>: Likewise.
5232         <ARRAY_RANGE_REF>: Likewise.
5233         (split_address_cost): Likewise.  Bail out if reverse storage order.
5234         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5235         get_inner_reference.  Bail out if reverse storage order.
5236         (bswap_replace): Adjust call to get_inner_reference.
5237         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5238         the REF_REVERSE_STORAGE_ORDER flag.
5239         <BIT_FIELD_REF>: Likewise.
5240         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5241         barriers.
5242         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5243         to the REF_REVERSE_STORAGE_ORDER flag.
5244         <BIT_FIELD_REF>: Likewise.
5245         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5246         (contains_storage_order_barrier_p): New predicate.
5247         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5248         Punt on storage order barriers if necessary.
5249         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5250         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5251         call to get_ref_base_and_extent.
5252         (do_structure_copy): Likewise.
5253         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5254         get_inner_reference.
5255         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
5256         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5257         * ubsan.c (instrument_bool_enum_load): Likewise.
5258         (instrument_object_size): Likewise.
5259         * var-tracking.c (track_expr_p): Adjust call to
5260         get_ref_base_and_extent.
5261         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5262         get_inner_reference.
5263         * config/s390/s390.c (s390_expand_atomic): Adjust call to
5264         store_bit_field.
5265         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5266         extract_bit_field.
5267         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5269 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
5271         * config/sparc/sparc.opt (mfix-at697f): Add final period.
5273 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5275         PR rtl-optimization/67864
5276         * common/config/i386/i386-common.c (ix86_option_optimization_table)
5277         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5278         at -Os and up.
5280 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5282         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5283         internal functions.
5285 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5287         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5288         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5290 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5292         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5293         * internal-fn.c: Don't undef it here.
5294         * tree-core.h: Likewise.
5296 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5298         * builtins.c (fold_builtin_nan): Delete.
5299         (fold_builtin_memcmp): Remove case where both arguments are constant.
5300         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5301         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5302         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5303         * fold-const-call.c: Include fold-const.h.
5304         (host_size_t_cst_p): New function.
5305         (build_cmp_result, fold_const_builtin_nan): Likewise.
5306         (fold_const_call_1): New function, split out from...
5307         (fold_const_call): ...here (for all three interfaces).  Handle
5308         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5310 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5312         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5313         (fold_builtin_1): Don't call them.
5314         * fold-const-call.c: Include tm.h.
5315         (fold_const_call_ss): New variant for integer-to-integer folds.
5316         (fold_const_call): Call it.
5318 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5320         * builtins.c (fold_builtin_classify): Move constant cases to...
5321         * fold-const-call.c (fold_const_call_ss): ...here.
5323 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5325         * builtins.h (c_getstr): Move to...
5326         * fold-const.h (c_getstr): ...here.
5327         * builtins.c (c_getstr): Move to...
5328         * fold-const.c (c_getstr): ...here.
5330 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5332         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5333         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5335 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5337         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5338         the dominance info; free it if we can't.
5339         (pass_call_cdce::execute): Don't free the dominance info here.
5341 2015-11-06  Jeff Law <law@redhat.com>
5343         * tree-ssa-threadedge.c (dummy_simplify): Remove.
5344         (thread_around_empty_blocks): Remove backedge_seen_p argument.
5345         If we thread to a backedge, then return false.  Update recursive
5346         call to eliminate backedge_seen_p argument.
5347         (thread_through_normal_block): Remove backedge_seen_p argument.
5348         Remove backedge_seen_p argument from calls to
5349         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
5350         If we thread to a backedge, then return 0.
5351         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
5352         pass it to thread_through_normal_block or thread_through_empty_blocks.
5353         For joiner handling, if we see a backedge, do not try normal
5354         threading.
5356 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5358         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5359         * graphite-poly.c (new_scop): Initialize original_schedule.
5360         (free_scop): Free original_schedule.
5361         * graphite-poly.h (struct scop): Add field original_schedule.
5362         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5363         (build_poly_scop): Call build_scop_original_schedule.
5365 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5367         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5368         (build_pbb_minimal_scattering_polyhedrons): New.
5369         (build_scop_scattering): Remove.
5370         (build_scop_minimal_scattering): New.
5371         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5372         (build_poly_scop): Call build_scop_minimal_scattering.
5374 2015-11-06  Jeff Law <law@redhat.com>
5376         * cfg-flags.def (IGNORE): New edge flag.
5377         * tree-vrp.c (identify_jump_threads): Mark and clear edges
5378         scheduled for removal with EDGE_IGNORE around call into
5379         jump threader.  Do no thread across edges with EDGE_IGNORE,
5380         but do allow threading across those with EDGE_DFS_BACK.
5382 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
5384         * doc/md.texi (multi-alternative constraints): Don't document
5385         alternatives inherently tied to reload for the user documentation.
5387 2015-11-06  Michael Collison  <michael.collison@linaro.org>
5388             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5390         Revert:
5391         2015-08-01  Michael Collison  <michael.collison@linaro.org
5392                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5394         * config/arm/arm.md (*arm_smin_cmp): New pattern.
5395         (*arm_umin_cmp): Likewise.
5397 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
5399         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5400         * omp-low.c (check_omp_nesting_restrictions): Update for the
5401         various new OpenMP 4.5 nesting restrictions, clarified
5402         nesting glossary, closely nested region relationship clarified
5403         to mean explicit or implicit parallel regions (target/teams),
5404         use %</%> or %qs where appropriate.
5406 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5407             Sebastian Pop  <s.pop@samsung.com>
5409         * graphite-scop-detection.c (loop_is_valid_scop): Call
5410         optimize_loop_nest_for_speed_p.
5412 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5413             Sebastian Pop  <s.pop@samsung.com>
5415         * graphite-optimize-isl.c (optimize_isl): Call
5416         isl_options_set_schedule_maximize_band_depth.
5418 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
5419             Sebastian Pop  <s.pop@samsung.com>
5421         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5422         and exit edges should not be a part of irreducible loop.
5423         (scop_detection::can_represent_loop_1): Loops should not be
5424         irreducible.
5425         (scop_detection::harmful_stmt_in_region): All the basic block
5426         should belong to reducible loops.
5428 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
5430         * config/aarch64/aarch64-simd-builtins.def: Update builtins
5431         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5432         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5433         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5434         (aarch64_tbx4v8qi): Rename to...
5435         aarch64_tbx4<mode>): ... this.
5436         (aarch64_qtbl3<mode>): New pattern.
5437         (aarch64_qtbx3<mode>): New pattern.
5438         (aarch64_qtbl4<mode>): New pattern.
5439         (aarch64_qtbx4<mode>): New pattern.
5440         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5441         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5442         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5443         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5444         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5445         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5446         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5447         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5448         functions.
5450 2015-11-06  Mike Stump  <mikestump@comcast.net>
5452         PR debug/66728
5453         * dwarf2out.c (get_full_len): Return a value based upon the actual
5454         precision needed for the value.
5455         (add_const_value_attribute): Use a maximal wide-int for
5456         CONST_WIDE_INTs, not VOIDmode.
5457         (output_die): Don't ever output NULL with printf.
5459         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5460         BLKmode nor VOIDmode values.
5462 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5464         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5465         and "range2".
5466         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5467         * diagnostic-core.h (warning_at_rich_loc): New declaration.
5468         (error_at_rich_loc): New declaration.
5469         (permerror_at_rich_loc): New declaration.
5470         (inform_at_rich_loc): New declaration.
5471         * diagnostic-show-locus.c (adjust_line): Delete.
5472         (struct point_state): New struct.
5473         (class colorizer): New class.
5474         (class layout_point): New class.
5475         (class layout_range): New class.
5476         (struct line_bounds): New.
5477         (class layout): New class.
5478         (colorizer::colorizer): New ctor.
5479         (colorizer::~colorizer): New dtor.
5480         (layout::layout): New ctor.
5481         (layout::print_source_line): New method.
5482         (layout::print_annotation_line): New method.
5483         (layout::get_state_at_point): New method.
5484         (layout::get_x_bound_for_row): New method.
5485         (diagnostic_show_locus): Reimplement in terms of class layout.
5486         (diagnostic_print_caret_line): Delete.
5487         * diagnostic.c (diagnostic_initialize): Replace
5488         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5489         (diagnostic_set_info_translated): Convert param from location_t
5490         to rich_location *.  Eliminate calls to set_location on the
5491         message in favor of storing the rich_location ptr there.
5492         (diagnostic_set_info): Convert param from location_t to
5493         rich_location *.
5494         (diagnostic_build_prefix): Break out array into...
5495         (diagnostic_kind_color): New variable.
5496         (diagnostic_get_color_for_kind): New function.
5497         (diagnostic_report_diagnostic): Colorize the option_text
5498         using the color for the severity.
5499         (diagnostic_append_note): Update for change in signature of
5500         diagnostic_set_info.
5501         (diagnostic_append_note_at_rich_loc): New function.
5502         (emit_diagnostic): Update for change in signature of
5503         diagnostic_set_info.
5504         (inform): Likewise.
5505         (inform_at_rich_loc): New function.
5506         (inform_n): Update for change in signature of diagnostic_set_info.
5507         (warning): Likewise.
5508         (warning_at): Likewise.
5509         (warning_at_rich_loc): New function.
5510         (warning_n): Update for change in signature of diagnostic_set_info.
5511         (pedwarn): Likewise.
5512         (permerror): Likewise.
5513         (permerror_at_rich_loc): New function.
5514         (error): Update for change in signature of diagnostic_set_info.
5515         (error_n): Likewise.
5516         (error_at): Likewise.
5517         (error_at_rich_loc): New function.
5518         (sorry): Update for change in signature of diagnostic_set_info.
5519         (fatal_error): Likewise.
5520         (internal_error): Likewise.
5521         (internal_error_no_backtrace): Likewise.
5522         (source_range::debug): New function.
5523         * diagnostic.h (struct diagnostic_info): Eliminate field
5524         "override_column".  Add field "richloc".
5525         (struct diagnostic_context): Add field "colorize_source_p".
5526         (diagnostic_override_column): Delete.
5527         (diagnostic_set_info): Convert param from location_t to
5528         rich_location *.
5529         (diagnostic_set_info_translated): Likewise.
5530         (diagnostic_append_note_at_rich_loc): New function.
5531         (diagnostic_num_locations): New function.
5532         (diagnostic_expand_location): Get the location from the
5533         rich_location.
5534         (diagnostic_print_caret_line): Delete.
5535         (diagnostic_get_color_for_kind): New declaration.
5536         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5537         (error_cb): Update for change in signature of "error" callback.
5538         (fatal_at): Likewise.
5539         (warning_at): Likewise.
5540         * input.c (linemap_client_expand_location_to_spelling_point): New.
5541         * pretty-print.c (text_info::set_range): New method.
5542         (text_info::get_location): New method.
5543         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5544         (struct text_info): Eliminate "locations" array in favor of
5545         "m_richloc", a rich_location *.
5546         (textinfo::set_location): Add a "caret_p" param, and reimplement
5547         in terms of a call to set_range.
5548         (textinfo::get_location): Eliminate inline implementation in favor of
5549         an out-of-line reimplementation.
5550         (textinfo::set_range): New method.
5551         * rtl-error.c (diagnostic_for_asm): Update for change in signature
5552         of diagnostic_set_info.
5553         * tree-diagnostic.c (default_tree_printer): Update for new
5554         "caret_p" param for textinfo::set_location.
5555         * tree-pretty-print.c (percent_K_format): Likewise.
5557 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5559         Properly apply.
5560         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5561         * config/aarch64/aarch64.c
5562         (aarch64_can_use_per_function_literal_pools_p): New.
5563         (aarch64_use_blocks_for_constant_p): Adjust declaration
5564         and use aarch64_can_use_function_literal_pools_p.
5565         (aarch64_select_rtx_section): Update.
5567 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5569         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5570         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5571         (arm_output_multireg_pop): Likewise.
5572         (output_move_double):  Likewise.
5573         (output_move_quad):  Likewise.
5574         (output_return_instruction): Likewise.
5575         (arm_print_operand): Remove support for %( and %. print modifiers.
5576         (arm_output_shift): Make unified asm.
5577         (arm_declare_function_name): Likewise.
5578         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5579         (ASM_APP_OFF): Adjust.
5580         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5581         (ASM_OUTPUT_REG_POP): Likewise.
5582         * config/arm/arm.md: Adjust uses of %., %(, %)
5583         * config/arm/sync.md: Likewise.
5584         * config/arm/thumb2.md: Likewise.
5585         * config/arm/ldmstm.md: Regenerate.
5586         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5587         * doc/invoke.texi (masm-unified-syntax): Update documentation.
5589 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
5591         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5593 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5595         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5596         add OEP_MATCH_SIDE_EFFECTS.
5597         * fold-const.c (operand_equal_p): Update documentation; handle
5598         OEP_MATCH_SIDE_EFFECTS.
5599         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5600         OEP_MATCH_SIDE_EFFECTS.
5602 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
5603             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5605         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5606         * config/aarch64/aarch64-protos.h: Declare.
5607         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5608         frsqrts.
5609         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5610         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5611         code when applicable.
5612         * config/aarch64/aarch64.md: Added enum entries.
5613         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5615 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
5617         PR ipa/68057
5618         PR ipa/68220
5619         * ipa-polymorphic-call.c
5620         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5621         issue when offset is out of range.
5622         (contains_type_p): Fix out of range check, clear dynamic flag.
5624 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
5626         * config.gcc (e6500): Fix cpu_is_64bit typo.
5628 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
5630         * tree-sra.c (completely_scalarize): Properly handle negative array
5631         indices using offset_int.
5633 2015-11-06  Richard Biener  <rguenther@suse.de>
5635         * alloc-pool.h (object_allocator::allocate): Default-initialize
5636         object.
5638 2015-11-06  Richard Biener  <rguenther@suse.de>
5640         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5641         * lra.c (init_reg_info): Truncate copy_vec instead of
5642         re-allocating a new one and leaking the old.
5643         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5644         bb_infos vec.
5645         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5646         * postreload-gcse.c (free_mem): Free modify_mem_list and
5647         canon_modify_mem_list.
5649 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
5651         PR tree-optimization/68145
5652         * tree-vect-stmts.c (vectorizable_operation): Fix
5653         determination for booleans.
5655 2015-11-06  Tom de Vries  <tom@codesourcery.com>
5657         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5658         cond_jump, instead of split after last nondebug insn before cond_jump.
5659         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5660         returning.
5662 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5664         PR target/68088
5665         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5666         subregs from accumulator and make sure it's a register.
5668 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
5670         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5671         low part to scalar.
5672         (reduc_uplus_<mode>): Remove.
5673         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5674         loongson_extract_lo_<mode>.
5675         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5676         reduc_smax_<mode>, reduc_smax_<mode>, use vec
5677         loongson_extract_lo_<mode>.
5678         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5680 2015-11-06  Richard Biener  <rguenther@suse.de>
5682         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5683         members.
5684         (vect_stmt_in_region_p): Declare.
5685         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5686         (destroy_bb_vec_info): Likewise.
5687         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5688         (vect_get_and_check_slp_defs): Likewise.
5689         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5690         (vect_slp_bb): Likewise.
5691         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5692         in terms of vect_stmt_in_region_p.
5693         (vect_pattern_recog): Iterate over the BB region.
5694         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5695         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5696         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5697         * config/i386/i386.c: Include gimple-iterator.h.
5698         * config/aarch64/aarch64.c: Likewise.
5700 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
5702         PR rtl-optimization/67753
5703         PR rtl-optimization/64164
5704         * function.c (assign_parm_setup_block): Avoid allocating a
5705         stack slot if we don't have an ABI-reserved one.  Emit the
5706         copy to target_reg in the conversion seq if the copy from
5707         entry_parm is in it too.  Don't use the conversion seq to copy
5708         a PARALLEL to a REG or a CONCAT.
5710 2015-11-06  Richard Biener  <rguenther@suse.de>
5712         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5713         equal_keys.
5715 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
5716             Thomas Schwinge  <thomas@codesourcery.com>
5717             James Norris  <jnorris@codesourcery.com>
5720         * gimplify.c (gimplify_scan_omp_clauses): Add support for
5721         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
5722         (gimplify_adjust_omp_clauses): Likewise.
5723         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5724         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5725         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5726         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5727         (omp_clause_code_name): Likewise.
5728         (walk_tree_1): Handle OMP_CLAUSE_TILE.
5729         * tree.h (OMP_TILE_LIST): New macro.
5731 2015-11-05  Martin Sebor  <msebor@redhat.com>
5733         PR c++/67942
5734         * doc/invoke.texi (-Wplacement-new): Document new option.
5736 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
5738         PR tree-optimization/65963
5739         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5740         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5742 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
5744         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5745         (noce_convert_multiple_sets): Likewise.
5746         (noce_process_if_block): Call them.
5748 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5750         * gimple-fold.c: Include omp-low.h.
5751         (fold_internal_goacc_dim): New.
5752         (gimple_fold_call): Call it.
5754 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
5755             Ilya Verbin  <ilya.verbin@intel.com>
5757         * builtin-types.def
5758         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5759         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5760         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5761         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5762         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5763         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5764         (struct cgraph_simd_clone_arg): Adjust comment.
5765         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5766         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
5767         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5768         to GOMP_target_data_ext.
5769         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5770         to GOMP_target_update_ext.
5771         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5772         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5773         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5774         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5775         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5776         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5777         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5778         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5779         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5780         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5781         * tree-core.h (enum omp_clause_schedule_kind): Add
5782         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5783         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5784         OMP_CLAUSE_SCHEDULE_LAST value.
5785         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5786         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5787         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5788         OMP_FOR_CHECK.  Remove comment.
5789         * tree-pretty-print.c (dump_omp_clause): Handle
5790         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5791         Simplify.  Print schedule clause modifiers.
5792         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5793         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5794         cases.
5795         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5796         (omp_default_clause): Tweak for
5797         private/firstprivate/is_device_ptr variables on target
5798         construct and use_device_ptr on target data.
5799         (omp_check_private): Likewise.
5800         (omp_notice_variable): For references check whether what it refers
5801         to has mappable type, rather than the reference itself.
5802         (omp_is_private): Diagnose linear iteration variables on non-simd
5803         constructs.
5804         (omp_no_lastprivate): Return true only for Fortran.
5805         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5806         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5807         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5808         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5809         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
5810         lastprivate and linear when combined with distribute.  Gimplify
5811         variable low-bound for array reduction.  Look through
5812         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5813         reductions.
5814         (gimplify_adjust_omp_clauses_1): For implicit references to
5815         variables with reference type and when not ref to scalar or
5816         ref to pointer, map what they refer to using tofrom and
5817         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5818         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5819         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5820         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
5821         Diagnose the same var on both firstprivate and lastprivate on
5822         distribute construct.
5823         (gimplify_omp_for): Fix up handling of predetermined
5824         lastprivate or linear iter vars when combined with distribute.
5825         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5826         functions.
5827         (gimplify_omp_workshare): Call optimize_target_teams.
5828         * omp-low.c (struct omp_region): Add sched_modifiers field.
5829         (struct omp_for_data): Likewise.
5830         (omp_any_child_fn_dumped): New variable.
5831         (extract_omp_for_data): Fill in sched_modifiers, and mask out
5832         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5833         from sched_kind.
5834         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5835         bits of OMP_CLAUSE_SCHED_KIND.
5836         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5837         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
5838         for array section reductions.
5839         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5840         for distribute parallel for, if there are lastprivate clauses on the
5841         for.
5842         (lower_rec_input_clauses): Handle non-zero low-bound on array
5843         section reductions.
5844         (lower_reduction_clauses): Likewise.
5845         (lower_send_clauses): Look through POINTER_PLUS_EXPR
5846         for array section reductions.
5847         (expand_parallel_call): Use nonmonotonic entrypoints for
5848         nonmonotonic: dynamic/guided.
5849         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
5850         child_fn if current_function_decl has assembler name set, but child_fn
5851         does not.  Dump the header and IL of the child function when not in SSA
5852         form.
5853         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
5854         arguments to BUILT_IN_GOMP_TARGET.
5855         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5856         Initialize the extra _looptemp_ clause to fd->loop.n2.
5857         (expand_omp_for): Use nonmonotonic entrypoints for
5858         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
5859         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
5860         again if we have dumped any child functions.
5861         (lower_omp_for_lastprivate): Determine the right count variable
5862         for distribute simd, or distribute parallel for{, simd}.
5863         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
5864         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
5865         support.
5866         (simd_clone_clauses_extract): Handle variable step
5867         for references and arguments passed by reference.
5868         (simd_clone_mangle): Mangle ref/uval/val variable steps.
5869         (simd_clone_adjust_argument_types): Handle
5870         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
5871         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5872         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
5873         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5874         (simd_clone_linear_addend): New function.
5875         (simd_clone_adjust): Handle variable step like similarly
5876         to constant step, use simd_clone_linear_addend to determine
5877         the actual step at runtime.
5879 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
5881         * target.def (goacc.dim_limit): New hook.
5882         * targhooks.h (default_goacc_dim_limit): Declare.
5883         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
5884         * doc/tm.texi: Rebuilt.
5885         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
5886         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
5887         (default_goacc_dim_limit): New.
5888         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5889         (nvptx_goacc_dim_limit) New.
5890         (TARGET_GOACC_DIM_LIMIT): Override.
5891         * tree-vrp.c: Include omp-low.h, target.h.
5892         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
5893         IFN_GOACC_DIM_POS.
5895 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5897         * tree-vect-generic.c (do_compare): Use -1 for true
5898         result instead of 1.
5900 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5902         * config/aarch64/aarch64.c
5903         (aarch64_can_use_per_function_literal_pools_p): New.
5904         (aarch64_use_blocks_for_constant_p): Adjust declaration
5905         and use aarch64_can_use_function_literal_pools_p.
5906         (aarch64_select_rtx_section): Update.
5908 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5910         * targhooks.c (default_get_mask_mode): Use BLKmode in
5911         case target doesn't support required vector mode.
5912         * stor-layout.c (layout_type); Check for BLKmode.
5914 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5915             Sebastian Pop  <s.pop@samsung.com>
5917         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5918         Remove use of parameter_rename_map.
5919         (copy_def): Remove.
5920         (copy_internal_parameters): Remove.
5921         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5922         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5923         (free_sese_info): Do not free parameter_rename_map.
5924         (set_rename): Do not use parameter_rename_map.
5925         (rename_uses): Update call to set_rename.
5926         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5927         * sese.h (parameter_rename_map_t): Remove.
5928         (struct sese_info_t): Remove field parameter_rename_map.
5930 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
5931             Sebastian Pop  <s.pop@samsung.com>
5933         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
5934         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
5935         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
5936         anonymous namespace.
5937         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
5938         (isl_id_for_pbb): Use a buffer of size 10.
5939         (isl_id_for_ssa_name): Same.
5940         * sese.c (set_rename): Add more dumps.
5942 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5944         * omp-low.c (struct omp_context): Remove reduction_map field.
5945         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5946         (new_omp_context, delete_omp_context, scan_omp_target): Remove
5947         reduction_map handling.
5948         (lower_omp_target): Remove obsolete openacc reduction handling.
5950 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5952         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
5954 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5955             Cesar Philippidis  <cesar@codesourcery.com>
5957         * config/nvptx/nvptx.c: Include gimple headers.
5958         (worker_red_size, worker_red_align, worker_red_name,
5959         worker_red_sym): New.
5960         (nvptx_option_override): Initialize worker reduction buffer.
5961         (nvptx_file_end): Write out worker reduction buffer var.
5962         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
5963         nvptx_expand_cmp_swap): New builtin expanders.
5964         (enum nvptx_builtins): New.
5965         (nvptx_builtin_decls): New.
5966         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
5967         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
5968         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
5969         nvptx_lockless_update): New helpers.
5970         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
5971         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
5972         (nvptx_goacc_reduction): New.
5973         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
5974         TARGET_BUILTIN_DECL): Override.
5975         (TARGET_GOACC_REDUCTION): Override.
5977 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
5978             Cesar Philippidis  <cesar@codesourcery.com>
5980         * internal-fn.def (GOACC_REDUCTION): New.
5981         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
5982         * internal-fn.c (expand_GOACC_REDUCTION): New.
5983         * target.def (goacc.reduction): New OpenACC hook.
5984         * targhooks.h (default_goacc_reduction): Declare.
5985         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
5986         * doc/tm.texi: Rebuilt.
5987         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
5988         scan_sharing_clauses): Remove oacc reduction handling here.
5989         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
5990         (oacc_lower_reduction_var_helper): Delete.
5991         (lower_oacc_reductions): New.
5992         (lower_reduction_clauses): Don't handle OpenACC reductions here.
5993         (lower_oacc_head_tail): Call lower_oacc_reductions.
5994         (oacc_gimple_assign, oacc_init_reduction_array,
5995         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
5996         oacc_process_reduction_data): Delete.
5997         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
5998         dummy OpenACC gang reduction for reductions at outer level.
5999         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6000         (default_goacc_reduction): New.
6001         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6003 2015-11-04  Martin Liska  <mliska@suse.cz>
6005         * cgraphunit.c (cgraph_node::expand_thunk): Call
6006         allocate_struct_function before init_function_start.
6007         (cgraph_node::expand): Use push_cfun and pop_cfun.
6008         * config/i386/i386.c (ix86_code_end): Call
6009         allocate_struct_function before init_function_start.
6010         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6011         * function.c (init_function_start): Move preamble to all
6012         callers.
6013         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6014         (execute_one_pass): Handle newly added TODO_discard_function.
6015         (execute_pass_list_1): Terminate if cfun equals to NULL.
6016         (execute_pass_list): Do not push and pop cfun, expect that
6017         cfun is set.
6018         * tree-pass.h (TODO_discard_function): Define.
6020 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
6022         * cfganal.c (inverted_post_order_compute): Remove conditional
6023         compilation, use flag_checking.
6024         * config.in: Regenerate.
6025         * configure: Regenerate.
6026         * configure.ac: Remove ENABLE_CHECKING.
6027         * genconditions.c: Do not #undef ENABLE_CHECKING.
6028         * sese.h (bb_in_region): Comment out broken check.
6029         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6030         conditional compilation, use flag_checking.
6032 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6034         PR tree-optimization/67742
6035         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6036         field.
6037         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6038         (create_variable_info_for_1): Add and handle handle_param parameter.
6039         Add restrict handling.
6040         (create_variable_info_for): Call create_variable_info_for_1 with extra
6041         arg.
6042         (make_param_constraints): Drop restrict_name parameter.  Ignore
6043         vi->only_restrict_pointers.
6044         (intra_create_variable_infos): Call create_variable_info_for_1 with
6045         extra arg.  Remove restrict handling.  Call make_param_constraints with
6046         one fewer arg.
6048 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6050         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6051         variable.
6053 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6055         * config/arm/coff.h: Remove.
6057 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6059         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6060         check for aggregate types and beef up comment for mode check.
6062 2015-11-03  Richard Biener  <rguenther@suse.de>
6064         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6065         data references here.
6066         * tree-vect-loop.c: Include cgraph.h.
6067         (vect_analyze_loop_2): Collect data references here.
6068         * tree-vect-slp.c (find_bb_location): Inline ...
6069         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
6070         Factor in vect_slp_transform_bb.
6071         (vect_slp_transform_bb): Removed.
6072         (vect_slp_analyze_bb_1): Collect data references here.
6073         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6074         vect_slp_bb.
6075         * tree-vectorizer.h (vect_slp_bb): Declare.
6076         (vect_slp_analyze_bb): Remove.
6077         (vect_slp_transform_bb): Remove.
6078         (find_bb_location): Remove.
6079         (vect_analyze_data_refs): Remove stmt count reference parameter.
6081 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
6083         * multiple_target.c (create_dispatcher_calls): Add target check
6084         on ifunc.
6085         (create_target_clone): Change assembler name for versioned declarations.
6087 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
6088             Chung-Lin Tang  <cltang@codesourcery.com>
6090         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6091         * omp-low.c (check_omp_nesting_restrictions): Allow
6092         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6093         contexts.
6095 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
6097         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6098         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6099         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6100         builtin.
6101         (vmulxq_f32): Likewise.
6102         (vmulx_f64): New.
6103         (vmulxq_f64): Rewrite to call fmulx builtin.
6104         (vmulxs_f32): Likewise.
6105         (vmulxd_f64): Likewise.
6106         (vmulx_lane_f32): Remove.
6107         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6109 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
6111         * config/aarch64/aarch64.md (*movhf_aarch64): Use
6112         aarch64_reg_or_fp_zero for second operand.
6114 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
6116         * gimple-expr.c: Include hash-set.h and rtl.h.
6117         (mark_addressable_queue): New var.
6118         (mark_addressable): Factor actual marking into...
6119         (mark_addressable_1): ... this.  Queue it up during expand.
6120         (mark_addressable_2): New.
6121         (flush_mark_addressable_queue): New.
6122         * gimple-expr.h (flush_mark_addressable_queue): Declare.
6123         * cfgexpand.c: Include gimple-expr.h.
6124         (pass_expand::execute): Flush mark_addressable queue.
6126 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
6128         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6129         bb_no_side_effects_p tests...
6130         (tree_ssa_ifcombine_bb): ... here.
6132         PR tree-optimization/68083
6133         * tree-ssa-ifcombine.c: Include tree-ssa.h.
6134         (bb_no_side_effects_p): Test for undefined uses too.
6135         * tree-ssa.c (gimple_uses_undefined_value_p): New.
6136         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6138 2015-11-02  Jeff Law <law@redhat.com>
6140         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6141         cases where the loop latch edge is in the middle of an FSM path.
6143 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6145         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6146         (make_param_constraints): ... this.  Add and handle restrict_name
6147         parameter.  Handle is_full_var case.
6148         (intra_create_variable_infos): Use make_param_constraints.
6150 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6152         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6153         make_copy_constraint call with make_constraint_from call.
6155 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
6157         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6158         PIE executables.
6160 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6162         * builtins.h (fold_fma): Move to fold-const-call.h.
6163         * builtins.c: Include fold-const-call.h.
6164         (mathfn_built_in_2): New function, split out from...
6165         (mathfn_built_in_1): ...here.
6166         (do_real_to_int_conversion, fold_const_builtin_pow)
6167         (fold_const_builtin_logb, fold_const_builtin_significand)
6168         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6169         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6170         (fold_builtin_sincos): Use fold_const_call to handle constants.
6171         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6172         checks for ERROR_MARK.  Use fold_const_call to handle constant
6173         folds for math functions.
6174         (fold_fma): Move to fold-const-call.c.
6175         * fold-const.c: Include fold-const-call.h.
6176         * Makefile.in (OBJS): Add fold-const-call.o.
6177         (PLUGIN_HEADERS): Add fold-const-call.h.
6178         * realmpfr.h (real_from_mpfr): Allow the format to be specified
6179         directly.
6180         * realmpfr.c (real_from_mpfr): Likewise.
6181         * fold-const-call.h, fold-const-call.c: New files.
6183 2015-11-02  Julian Brown  <julian@codesourcery.com>
6185         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6186         brackets and semicolon.
6188 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
6190         Revert:
6191         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6193         PR tree-optimization/65963
6194         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6195         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6197 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6199         PR middle-end/68166
6200         * fold-const.c: Include "md5.h".
6202 2015-11-01  Jeff Law <law@redhat.com>
6204         * vmsdbgout.c: Revert unused header file reduction patch.
6206         * config/mcore/mcore.c: Include regs.h.
6208 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6210         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6212 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6214         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6215         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6216         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6218 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6220         * ggc-common.c: Restore needed header for checking=release.
6222 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6224         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6226 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6228         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6229         existing varinfo for arguments.
6231 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6233         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6234         create_function_info_for.  Dump constraints generated during
6235         create_function_info_for. Move intra_create_variable_infos call and
6236         function-return-values-escape bit to ...
6237         (create_function_info_for): ... here, and merge
6238         intra_create_variable_infos call with argument loop.  Add and handle
6239         nonlocal_p parameter.
6241 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6243         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6244         updating is alap, and seperated from preceding code.  Make sure
6245         insert_vi_for_tree is seperated from surrounding code.
6247 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6249         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6251 2015-10-30  Jeff Law <law@redhat.com>
6252             Nathan Sidwell  <nathan@acm.org>
6254         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6255         args.
6256         (MOVE_MAX): Set to 8.
6258 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
6260         * cgraph.c: Include context.h for offloading.
6261         * varpool.c: Include context.h and omp-low.h.
6263 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
6265         * rtl.h (contains_symbol_ref_p): Declare.
6266         (SYMBOL_REF_P): Define.
6267         * rtlanal.c (contains_symbol_ref_p: New function.
6268         * lra-constraints.c (contains_symbol_ref_p): Remove.
6269         * var-tracking.c (contains_symbol_ref): Remove.
6270         (track_expr_p): Use contains_symbol_ref_p instead of
6271         contains_symbol_ref.
6273 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6275         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6276         * fold-const.c (get_array_ctor_element_at_index): New.
6277         (fold): Remove binary-search through CONSTRUCTOR, call previous.
6279         * fold-const.h (get_array_ctor_element_at_index): New.
6281 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
6283         * Makefile.in (OBJS): Add multiple_target.o.
6284         * attrib.c (make_attribute): Moved from config/i386/i386.c
6285         * config/i386/i386.c (make_attribute): Deleted.
6286         * multiple_target.c (create_dispatcher_calls): New.
6287         (get_attr_len): Ditto.
6288         (get_attr_str): Ditto.
6289         (separate_attrs): Ditto.
6290         (is_valid_asm_symbol): Ditto.
6291         (create_new_asm_name): Ditto.
6292         (create_target_clone): Ditto.
6293         (expand_target_clones): Ditto.
6294         (ipa_target_clone): Ditto.
6295         (ipa_dispatcher_calls): Ditto.
6296         * passes.def (pass_target_clone): Two new ipa passes.
6297         * tree-pass.h (make_pass_target_clone): Ditto.
6298         * doc/extend.texi (target_clones): New attribute description.
6300 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6302         PR rtl-optimization/68106
6303         * lra-remat.c (input_regno_present_p): Process hard regs
6304         explicitly present in machine description insns.
6305         (call_used_input_regno_present_p): Ditto.
6306         (calculate_gen_cands): Ditto.
6307         (do_remat): Ditto.
6309 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
6311         * config/arm/neon-testgen.ml: Fix comment typo.
6313 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6315         * rtlanal.c (reg_set_p): Expand function comment.
6317 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
6319         * alias.c: Remove unused headers.
6320         * asan.c: Likewise.
6321         * attribs.c: Likewise.
6322         * auto-inc-dec.c: Likewise.
6323         * auto-profile.c: Likewise.
6324         * bb-reorder.c: Likewise.
6325         * bitmap.c: Likewise.
6326         * bt-load.c: Likewise.
6327         * builtins.c: Likewise.
6328         * caller-save.c: Likewise.
6329         * calls.c: Likewise.
6330         * ccmp.c: Likewise.
6331         * cfg.c: Likewise.
6332         * cfganal.c: Likewise.
6333         * cfgbuild.c: Likewise.
6334         * cfgcleanup.c: Likewise.
6335         * cfgexpand.c: Likewise.
6336         * cfghooks.c: Likewise.
6337         * cfgloop.c: Likewise.
6338         * cfgloopanal.c: Likewise.
6339         * cfgloopmanip.c: Likewise.
6340         * cfgrtl.c: Likewise.
6341         * cgraph.c: Likewise.
6342         * cgraphbuild.c: Likewise.
6343         * cgraphclones.c: Likewise.
6344         * cgraphunit.c: Likewise.
6345         * cilk-common.c: Likewise.
6346         * combine-stack-adj.c: Likewise.
6347         * combine.c: Likewise.
6348         * compare-elim.c: Likewise.
6349         * convert.c: Likewise.
6350         * coverage.c: Likewise.
6351         * cppbuiltin.c: Likewise.
6352         * cprop.c: Likewise.
6353         * cse.c: Likewise.
6354         * cselib.c: Likewise.
6355         * data-streamer-in.c: Likewise.
6356         * data-streamer-out.c: Likewise.
6357         * data-streamer.c: Likewise.
6358         * dbxout.c: Likewise.
6359         * dce.c: Likewise.
6360         * ddg.c: Likewise.
6361         * debug.c: Likewise.
6362         * df-core.c: Likewise.
6363         * df-problems.c: Likewise.
6364         * df-scan.c: Likewise.
6365         * dfp.c: Likewise.
6366         * dojump.c: Likewise.
6367         * dominance.c: Likewise.
6368         * domwalk.c: Likewise.
6369         * double-int.c: Likewise.
6370         * dse.c: Likewise.
6371         * dumpfile.c: Likewise.
6372         * dwarf2asm.c: Likewise.
6373         * dwarf2cfi.c: Likewise.
6374         * dwarf2out.c: Likewise.
6375         * emit-rtl.c: Likewise.
6376         * except.c: Likewise.
6377         * explow.c: Likewise.
6378         * expmed.c: Likewise.
6379         * expr.c: Likewise.
6380         * final.c: Likewise.
6381         * fixed-value.c: Likewise.
6382         * fold-const.c: Likewise.
6383         * function.c: Likewise.
6384         * fwprop.c: Likewise.
6385         * gcse.c: Likewise.
6386         * generic-match-head.c: Likewise.
6387         * ggc-common.c: Likewise.
6388         * gimple-builder.c: Likewise.
6389         * gimple-expr.c: Likewise.
6390         * gimple-fold.c: Likewise.
6391         * gimple-iterator.c: Likewise.
6392         * gimple-low.c: Likewise.
6393         * gimple-match-head.c: Likewise.
6394         * gimple-pretty-print.c: Likewise.
6395         * gimple-ssa-isolate-paths.c: Likewise.
6396         * gimple-ssa-strength-reduction.c: Likewise.
6397         * gimple-streamer-in.c: Likewise.
6398         * gimple-streamer-out.c: Likewise.
6399         * gimple-walk.c: Likewise.
6400         * gimple.c: Likewise.
6401         * gimplify-me.c: Likewise.
6402         * gimplify.c: Likewise.
6403         * godump.c: Likewise.
6404         * graph.c: Likewise.
6405         * graphds.c: Likewise.
6406         * haifa-sched.c: Likewise.
6407         * hw-doloop.c: Likewise.
6408         * ifcvt.c: Likewise.
6409         * init-regs.c: Likewise.
6410         * internal-fn.c: Likewise.
6411         * ipa-chkp.c: Likewise.
6412         * ipa-comdats.c: Likewise.
6413         * ipa-cp.c: Likewise.
6414         * ipa-devirt.c: Likewise.
6415         * ipa-icf-gimple.c: Likewise.
6416         * ipa-icf.c: Likewise.
6417         * ipa-inline-analysis.c: Likewise.
6418         * ipa-inline-transform.c: Likewise.
6419         * ipa-inline.c: Likewise.
6420         * ipa-polymorphic-call.c: Likewise.
6421         * ipa-profile.c: Likewise.
6422         * ipa-prop.c: Likewise.
6423         * ipa-pure-const.c: Likewise.
6424         * ipa-ref.c: Likewise.
6425         * ipa-reference.c: Likewise.
6426         * ipa-split.c: Likewise.
6427         * ipa-utils.c: Likewise.
6428         * ipa-visibility.c: Likewise.
6429         * ipa.c: Likewise.
6430         * ira-build.c: Likewise.
6431         * ira-color.c: Likewise.
6432         * ira-conflicts.c: Likewise.
6433         * ira-costs.c: Likewise.
6434         * ira-emit.c: Likewise.
6435         * ira-lives.c: Likewise.
6436         * ira.c: Likewise.
6437         * jump.c: Likewise.
6438         * langhooks.c: Likewise.
6439         * lcm.c: Likewise.
6440         * lists.c: Likewise.
6441         * loop-doloop.c: Likewise.
6442         * loop-init.c: Likewise.
6443         * loop-invariant.c: Likewise.
6444         * loop-iv.c: Likewise.
6445         * loop-unroll.c: Likewise.
6446         * lower-subreg.c: Likewise.
6447         * lra-assigns.c: Likewise.
6448         * lra-coalesce.c: Likewise.
6449         * lra-constraints.c: Likewise.
6450         * lra-eliminations.c: Likewise.
6451         * lra-lives.c: Likewise.
6452         * lra-remat.c: Likewise.
6453         * lra-spills.c: Likewise.
6454         * lra.c: Likewise.
6455         * lto-cgraph.c: Likewise.
6456         * lto-compress.c: Likewise.
6457         * lto-opts.c: Likewise.
6458         * lto-section-in.c: Likewise.
6459         * lto-section-out.c: Likewise.
6460         * lto-streamer-in.c: Likewise.
6461         * lto-streamer-out.c: Likewise.
6462         * lto-streamer.c: Likewise.
6463         * mcf.c: Likewise.
6464         * mode-switching.c: Likewise.
6465         * modulo-sched.c: Likewise.
6466         * optabs.c: Likewise.
6467         * opts-global.c: Likewise.
6468         * passes.c: Likewise.
6469         * plugin.c: Likewise.
6470         * postreload-gcse.c: Likewise.
6471         * postreload.c: Likewise.
6472         * predict.c: Likewise.
6473         * print-tree.c: Likewise.
6474         * profile.c: Likewise.
6475         * real.c: Likewise.
6476         * realmpfr.c: Likewise.
6477         * recog.c: Likewise.
6478         * ree.c: Likewise.
6479         * reg-stack.c: Likewise.
6480         * regcprop.c: Likewise.
6481         * reginfo.c: Likewise.
6482         * regrename.c: Likewise.
6483         * regstat.c: Likewise.
6484         * reload.c: Likewise.
6485         * reload1.c: Likewise.
6486         * reorg.c: Likewise.
6487         * resource.c: Likewise.
6488         * rtl-chkp.c: Likewise.
6489         * rtl-error.c: Likewise.
6490         * rtlanal.c: Likewise.
6491         * rtlhooks.c: Likewise.
6492         * sanopt.c: Likewise.
6493         * sched-deps.c: Likewise.
6494         * sched-ebb.c: Likewise.
6495         * sched-rgn.c: Likewise.
6496         * sdbout.c: Likewise.
6497         * sel-sched-dump.c: Likewise.
6498         * sel-sched-ir.c: Likewise.
6499         * sel-sched.c: Likewise.
6500         * sese.c: Likewise.
6501         * shrink-wrap.c: Likewise.
6502         * simplify-rtx.c: Likewise.
6503         * stack-ptr-mod.c: Likewise.
6504         * statistics.c: Likewise.
6505         * stmt.c: Likewise.
6506         * stor-layout.c: Likewise.
6507         * store-motion.c: Likewise.
6508         * stringpool.c: Likewise.
6509         * symtab.c: Likewise.
6510         * target-globals.c: Likewise.
6511         * targhooks.c: Likewise.
6512         * toplev.c: Likewise.
6513         * tracer.c: Likewise.
6514         * trans-mem.c: Likewise.
6515         * tree-affine.c: Likewise.
6516         * tree-call-cdce.c: Likewise.
6517         * tree-cfg.c: Likewise.
6518         * tree-cfgcleanup.c: Likewise.
6519         * tree-chkp-opt.c: Likewise.
6520         * tree-chkp.c: Likewise.
6521         * tree-chrec.c: Likewise.
6522         * tree-complex.c: Likewise.
6523         * tree-data-ref.c: Likewise.
6524         * tree-dfa.c: Likewise.
6525         * tree-diagnostic.c: Likewise.
6526         * tree-dump.c: Likewise.
6527         * tree-eh.c: Likewise.
6528         * tree-emutls.c: Likewise.
6529         * tree-if-conv.c: Likewise.
6530         * tree-inline.c: Likewise.
6531         * tree-into-ssa.c: Likewise.
6532         * tree-iterator.c: Likewise.
6533         * tree-loop-distribution.c: Likewise.
6534         * tree-nested.c: Likewise.
6535         * tree-nrv.c: Likewise.
6536         * tree-object-size.c: Likewise.
6537         * tree-outof-ssa.c: Likewise.
6538         * tree-parloops.c: Likewise.
6539         * tree-phinodes.c: Likewise.
6540         * tree-predcom.c: Likewise.
6541         * tree-pretty-print.c: Likewise.
6542         * tree-profile.c: Likewise.
6543         * tree-scalar-evolution.c: Likewise.
6544         * tree-sra.c: Likewise.
6545         * tree-ssa-address.c: Likewise.
6546         * tree-ssa-alias.c: Likewise.
6547         * tree-ssa-ccp.c: Likewise.
6548         * tree-ssa-coalesce.c: Likewise.
6549         * tree-ssa-copy.c: Likewise.
6550         * tree-ssa-dce.c: Likewise.
6551         * tree-ssa-dse.c: Likewise.
6552         * tree-ssa-forwprop.c: Likewise.
6553         * tree-ssa-ifcombine.c: Likewise.
6554         * tree-ssa-live.c: Likewise.
6555         * tree-ssa-loop-ch.c: Likewise.
6556         * tree-ssa-loop-im.c: Likewise.
6557         * tree-ssa-loop-ivcanon.c: Likewise.
6558         * tree-ssa-loop-ivopts.c: Likewise.
6559         * tree-ssa-loop-manip.c: Likewise.
6560         * tree-ssa-loop-niter.c: Likewise.
6561         * tree-ssa-loop-prefetch.c: Likewise.
6562         * tree-ssa-loop-unswitch.c: Likewise.
6563         * tree-ssa-loop.c: Likewise.
6564         * tree-ssa-math-opts.c: Likewise.
6565         * tree-ssa-operands.c: Likewise.
6566         * tree-ssa-phiopt.c: Likewise.
6567         * tree-ssa-phiprop.c: Likewise.
6568         * tree-ssa-pre.c: Likewise.
6569         * tree-ssa-propagate.c: Likewise.
6570         * tree-ssa-reassoc.c: Likewise.
6571         * tree-ssa-scopedtables.c: Likewise.
6572         * tree-ssa-sink.c: Likewise.
6573         * tree-ssa-strlen.c: Likewise.
6574         * tree-ssa-structalias.c: Likewise.
6575         * tree-ssa-tail-merge.c: Likewise.
6576         * tree-ssa-ter.c: Likewise.
6577         * tree-ssa-threadupdate.c: Likewise.
6578         * tree-ssa-uncprop.c: Likewise.
6579         * tree-ssa-uninit.c: Likewise.
6580         * tree-ssa.c: Likewise.
6581         * tree-ssanames.c: Likewise.
6582         * tree-stdarg.c: Likewise.
6583         * tree-streamer-in.c: Likewise.
6584         * tree-streamer-out.c: Likewise.
6585         * tree-streamer.c: Likewise.
6586         * tree-switch-conversion.c: Likewise.
6587         * tree-tailcall.c: Likewise.
6588         * tree-vect-data-refs.c: Likewise.
6589         * tree-vect-generic.c: Likewise.
6590         * tree-vect-loop-manip.c: Likewise.
6591         * tree-vect-loop.c: Likewise.
6592         * tree-vect-patterns.c: Likewise.
6593         * tree-vect-slp.c: Likewise.
6594         * tree-vect-stmts.c: Likewise.
6595         * tree-vectorizer.c: Likewise.
6596         * tree-vrp.c: Likewise.
6597         * tree.c: Likewise.
6598         * tsan.c: Likewise.
6599         * ubsan.c: Likewise.
6600         * value-prof.c: Likewise.
6601         * var-tracking.c: Likewise.
6602         * varasm.c: Likewise.
6603         * varpool.c: Likewise.
6604         * vmsdbgout.c: Likewise.
6605         * vtable-verify.c: Likewise.
6606         * web.c: Likewise.
6607         * wide-int-print.cc: Likewise.
6608         * wide-int.cc: Likewise.
6609         * xcoffout.c: Likewise.
6611 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
6613         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6614         between pass numbering and execution order.
6616 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6618         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6619         check for dependencies.
6621 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6623         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6624         CDI_DOMINATORS.
6626 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6628         * real.h (format_helper): New.
6629         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6630         (real_from_target, real_nan, real_2expN, real_value_truncate)
6631         (significand_size, real_from_string2, exact_real_inverse)
6632         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6633         (real_round, real_isinteger, real_from_integer): Replace
6634         machine_mode arguments with format_helper arguments.
6635         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6636         (real_from_integer, real_nan, real_2expN, real_convert)
6637         (real_value_truncate, exact_real_truncate, real_to_target)
6638         (real_from_target, significand_size, real_powi, real_trunc)
6639         (real_floor, real_ceil, real_round, real_isinteger): Replace
6640         machine_mode arguments with format_helper arguments.
6641         (real_to_target_fmt, real_from_target_fmt): Delete.
6642         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6643         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6644         argument with real_format.
6645         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6647 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6649         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6650         (fixed_to_decimal, fixed_convert_from_real)
6651         (real_convert_from_fixed): Fix mode arguments to real_2expN.
6653 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
6655         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6656         SCALAR_FLOAT_MODE_P.
6658 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6660         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6661         (completely_scalarize): Comment zero-length arrays.
6662         (get_access_replacement): Correct comment re. precondition.
6664 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6666         * config/i386/i386.c (get_builtin_code_for_version): Set priority
6667         for PROCESSOR_ZNVER1.
6668         (enum processor_model): Add M_AMDFAM17H_znver1.
6669         (struct arch_names_table): Likewise.
6670         * doc/extend.texi: ADD znver1.
6672 2015-10-30  Richard Biener  <rguenther@suse.de>
6674         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6675         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
6676         zeros to be folded to VECTOR_CSTs.
6677         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6678         * fold-const.c (fold): Use build_vector_from_ctor.
6680 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
6682         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6683         "mov %0.h[0], %1.h[0] to "neon_move".
6684         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6685         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6686         "mov_imm".
6687         (*cmovsi_insn_uxtw): Likewise.
6689 2015-10-30  Tom de Vries  <tom@codesourcery.com>
6691         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6692         unsigned, and initialize, and use initial value instead of hardcoded
6693         constant.  Add generic constraints dumping section.  Don't dump global
6694         initializers constraints dumping section if empty.  Don't update
6695         variable from if unused.
6697 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6699         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6700         flag_checking and/or CHECKING_P to eliminate conditional compilation
6701         on ENABLE_CHECKING.
6702         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6703         * config/bfin/bfin.c (hwloop_optimize): Likewise.
6704         * config/i386/i386.c (ix86_print_operand_address): Likewise.
6705         (output_387_binary_op): Likewise.
6706         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6707         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6708         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6709         Likewise.
6710         * config/rs6000/rs6000.h: Likewise.
6711         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6713 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6715         * config/sh/sh.opt (mfdpic): Add missing period.
6717 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
6719         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6720         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6721         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6722         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6723         mcore_base_register_rtx_p, mcore_legitimate_index_p,
6724         mcore_legitimate_address_p): New functions.
6725         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6727 2015-10-29  Jeff Law  <law@redhat.com>
6729         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6730         method.
6731         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6732         * tree-ssa-threadedge.c
6733         (record_temporary_equivalences_from_stmts_at_dest): Remove
6734         backedge_seen argument and associated code which invalidated
6735         equivalences based on the value of that argument.
6736         (thread_through_normal_block): Corresponding changes.
6738 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6740         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6741         function earlier in the file.
6742         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6743         df_regs_ever_live_p.
6745 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
6747         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6748         by ignoring it.
6750 2015-10-29  Richard Henderson  <rth@redhat.com>
6752         PR target/68124
6753         PR rtl-opt/67609
6754         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6755         sse check to the exact conditions of PR 67609.
6757 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6759         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6760         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6761         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6762         of the traditional names that TFmode uses for handling IEEE
6763         extended double. If -mfloat128, add KFmode functions for all of
6764         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6765         make TFmode use the same emulation functions as KFmode.
6766         (init_float128_ibm): Likewise.
6767         (init_float128_ieee): Likewise.
6768         (rs6000_generate_compare): For IEEE 128-bit floating point
6769         comparisons, call the unordered comparison function instead of the
6770         ordered comparison function.
6771         (rs6000_expand_float128_convert): Deal with operands that are
6772         memory operands. Restructure the code to use a switch statement on
6773         the mode. Add support for TFmode defaulting to either IBM extended
6774         double or IEEE 128-bit floating point. If the underlying types are
6775         the same, use a move instead of a conversion function.
6776         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6777         use for IEEE 128-bit floating point constants with -mfloat128.
6778         (rs6000_c_mode_for_suffix): Likewise.
6779         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6780         128-bit floating point with IBM extended double floating point.
6781         (rs6000_invalid_binary_op): Likewise.
6782         (rs6000_gen_le_vsx_permute): On little endian systems generate a
6783         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6784         types that can go in vector registers.
6785         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6786         point types that can go in vector registers on little endian
6787         PowerPC systems.
6788         (mark_swaps_for_removal): Likewise.
6789         (rs6000_analyze_swaps): Likewise.
6790         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6792         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6793         rework IEEE 128-bit floating point insns to deal with TFmode being
6794         either IBM extended double or IEEE 128-bit floating point.
6795         (IFKF): Likewise.
6796         (IBM128): Update iterator to add condition that the mode is IBM
6797         extended double.
6798         (IEEE128): New iterator for IEEE 128-bit floating point.
6799         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6800         (FLOAT128): Likewise.
6801         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6802         iterator.
6803         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6804         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6805         instead of hard coding TFmode or KFmode.
6806         (negtf2_internal): Likewise.
6807         (neg<mode>2_internal): Likewise.
6808         (abs<mode>2): Likewise.
6809         (abstf2_internal): Likewise.
6810         (abs<mode>2_internal): Likewise.
6811         (ieee_128bit_neg<mode>2): Likewise.
6812         (ieee_128bit_neg<mode>2_internal): Likewise.
6813         (ieee_128bit_abs<mode>2): Likewise.
6814         (ieee_128bit_abs<mode>2_internal): Likewise.
6815         (ieee_128bit_nabs<mode>2): Likewise.
6816         (ieee_128bit_nabs<mode>2_internal): Likewise.
6817         (extendiftf2): Add explicit conversions between 128-bit floating
6818         point types. Drop the old conversions that had become unwieldy.
6819         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6820         (extendifkf2): Likewise.
6821         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6822         (extendtfkf2): Likewise.
6823         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6824         (trunciftf2): Likewise.
6825         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6826         (truncifkf2): Likewise.
6827         (float<SDI:mode><IFKF:mode>2): Likewise.
6828         (trunckftf2): Likewise.
6829         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6830         (trunctfif2): Likewise.
6831         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6832         (extenddftf2): Rework 128-bit floating point conversions to
6833         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6834         KFmode expanders into one function.
6835         (extenddf<mode>2): Likewise.
6836         (extenddftf2_fprs): Likewise.
6837         (extenddf<mode>2_fprs): Likewise.
6838         (extenddftf2_vsx): Likewise.
6839         (extenddf<mode>2_vsx): Likewise.
6840         (extendsftf2): Likewise.
6841         (extendsf<mode>2): Likewise.
6842         (trunctfdf2): Likewise.
6843         (trunc<mode>df2): Likewise.
6844         (trunctfdf2_internal1): Likewise.
6845         (trunc<mode>df2_internal1): Likewise.
6846         (trunctfdf2_internal2): Likewise.
6847         (trunc<mode>df2_internal2): Likewise.
6848         (trunctfsf2): Likewise.
6849         (trunc<mode>sf2): Likewise.
6850         (trunctfsf2_fprs): Likewise.
6851         (trunc<mode>sf2_fprs): Likewise.
6852         (floatsit2f): Likewise.
6853         (floatsi<mode>2): Likewise.
6854         (fix_trunc_helper): Likewise.
6855         (fix_trunc_helper<mode>): Likewise.
6856         (fix_trunctfsi2): Likewise.
6857         (fix_trunc<mode>si2): Likewise.
6858         (fix_trunctfsi2_fprs): Likewise.
6859         (fix_trunc<mode>si2_fprs): Likewise.
6860         (fix_trunctfsi2_internal): Likewise.
6861         (fix_trunc<mode>si2_internal): Likewise.
6862         (fix_trunctfdi2): Likewise.
6863         (fix_trunc<mode>di2): Likewise.
6864         (fixuns_trunctf<mode>2): Likewise.
6865         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6866         (floatditf2): Likewise.
6867         (floatdi<mode>2): Likewise.
6868         (floatuns<mode>tf2): Likewise.
6869         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
6870         (cmptf_internal1): Use a mode iterator to add support for both
6871         types (IFmode, TFmode) that support IBM extended double.
6872         (cmp<mode>_internal1): Likewise.
6873         (cmptf_internal2): Likewise.
6874         (cmp<mode>_internal2): Likewise.
6876         * doc/extend.texi (Floating Types): Document __ibm128 and
6877         __float128 on PowerPC.
6879         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6880         -mfloat128 and -mno-float128.
6882 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
6884         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
6885         floating point modes that can go in vector registers.
6886         (MODES_TIEABLE_P): Move tests for vector modes before tests for
6887         scalar floating point, so that IEEE 128-bit floating point that
6888         can go in vector registers bind with vectors and not FP.
6889         (struct rs6000_args): Add libcall field.
6891         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
6892         and -mfloat128-software switches.  Replace them with a binary
6893         -mfloat128 switch.
6894         (-mfloat128): Likewise.
6896         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
6897         128-bit floating point types in GPRs, even if the appropriate
6898         option enabling the type was not used.
6899         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
6900         debugging.
6901         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
6902         pre-decrement on IEEE 128-bit floating point values.
6903         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
6904         is IEEE 128-bit floating point.
6905         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
6906         128-bit floating point types that can go in vector registers.
6907         (rs6000_option_override_internal): Change -mfloat128-none and
6908         -mfloat128-software to -mfloat128, and move code to be near other
6909         VSX option handling.
6910         (rs6000_option_override_internal): Disable -mfloat128 if we don't
6911         have the Altivec ABI.
6912         (rs6000_init_builtins): Don't make TFmode use either IFmode or
6913         KFmode floating point nodes. Instead, have three separate nodes.
6914         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
6915         eventually moving the long double default to IEEE 128-bit floating
6916         point.
6917         (rs6000_opt_masks): Add -mfloat128.
6918         (struct rs6000_opt_var): Fix typo in comment.
6919         (init_cumulative_args): Initialize libcall field in
6920         CUMULATIVE_ARGS.
6921         (rs6000_function_arg): Treat library functions as if they had
6922         prototypes to prevent IEEE 128-bit support functions from passing
6923         arguments in both GPRs and vector registers.
6924         (rs6000_arg_partial_bytes): Likewise.
6926         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
6927         an option that can be turned on via -mcpu=<xxx>.
6929         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
6930         longer used.
6932         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6933         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
6934         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
6935         double is IBM extended double.
6937         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
6938         SUBREGs.
6940 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
6942         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
6943         * genconditions.c: Define CHECKING_P in the generated code.
6944         * genextract.c: Use flag_checking in insn_extract.
6945         * gengtype.c (main): Remove conditional compilation.
6946         * gengtype.h: Likewise.
6948 2015-10-29  Jeff Law  <law@redhat.com>
6950         PR tree-optimization/67892
6951         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
6952         in comment.
6953         (thread_through_normal_block): If we have seen a backedge, then
6954         do nothing.  No longer call find_jump_threads_backwards here.
6955         (thread_across_edge): Use find_jump_threads_backwards to find
6956         jump threads if the old style threader was not successful.
6957         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
6958         gsi_last_nondebug_bb.  Return NULL if the block does not end
6959         with a control statement.
6960         (find_jump_threads_backwards): Setup code moved here from
6961         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
6962         single edge argument instead of name & block.
6963         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
6964         prototype.
6966 2015-10-29  Tom de Vries  <tom@codesourcery.com>
6968         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
6969         types.
6971 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6973         * omp-low.c (lower_omp_target): Remove unreachable code & merge
6974         ifs.
6976 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
6978         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
6980 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6982         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6983         guard_bb0 and use guard_bb throughout.
6985 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
6987         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
6988         unnecessary label.
6990 2015-10-29  Richard Biener  <rguenther@suse.de>
6992         PR middle-end/68142
6993         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
6994         overflow.
6996 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
6998         * alias.c: Reorder #include statements and remove duplicates.
6999         * asan.c: Likewise.
7000         * attribs.c: Likewise.
7001         * auto-inc-dec.c: Likewise.
7002         * auto-profile.c: Likewise.
7003         * bb-reorder.c: Likewise.
7004         * bt-load.c: Likewise.
7005         * builtins.c: Likewise.
7006         * caller-save.c: Likewise.
7007         * calls.c: Likewise.
7008         * ccmp.c: Likewise.
7009         * cfg.c: Likewise.
7010         * cfganal.c: Likewise.
7011         * cfgbuild.c: Likewise.
7012         * cfgcleanup.c: Likewise.
7013         * cfgexpand.c: Likewise.
7014         * cfghooks.c: Likewise.
7015         * cfgloop.c: Likewise.
7016         * cfgloopanal.c: Likewise.
7017         * cfgloopmanip.c: Likewise.
7018         * cfgrtl.c: Likewise.
7019         * cgraph.c: Likewise.
7020         * cgraphbuild.c: Likewise.
7021         * cgraphclones.c: Likewise.
7022         * cgraphunit.c: Likewise.
7023         * cilk-common.c: Likewise.
7024         * combine-stack-adj.c: Likewise.
7025         * combine.c: Likewise.
7026         * compare-elim.c: Likewise.
7027         * convert.c: Likewise.
7028         * coverage.c: Likewise.
7029         * cppbuiltin.c: Likewise.
7030         * cprop.c: Likewise.
7031         * cse.c: Likewise.
7032         * cselib.c: Likewise.
7033         * data-streamer-in.c: Likewise.
7034         * data-streamer-out.c: Likewise.
7035         * data-streamer.c: Likewise.
7036         * dbxout.c: Likewise.
7037         * dce.c: Likewise.
7038         * ddg.c: Likewise.
7039         * debug.c: Likewise.
7040         * df-core.c: Likewise.
7041         * df-problems.c: Likewise.
7042         * df-scan.c: Likewise.
7043         * dfp.c: Likewise.
7044         * dojump.c: Likewise.
7045         * dominance.c: Likewise.
7046         * double-int.c: Likewise.
7047         * dse.c: Likewise.
7048         * dumpfile.c: Likewise.
7049         * dwarf2asm.c: Likewise.
7050         * dwarf2cfi.c: Likewise.
7051         * dwarf2out.c: Likewise.
7052         * emit-rtl.c: Likewise.
7053         * except.c: Likewise.
7054         * explow.c: Likewise.
7055         * expmed.c: Likewise.
7056         * expr.c: Likewise.
7057         * final.c: Likewise.
7058         * fixed-value.c: Likewise.
7059         * fold-const.c: Likewise.
7060         * function.c: Likewise.
7061         * fwprop.c: Likewise.
7062         * gcse.c: Likewise.
7063         * generic-match-head.c: Likewise.
7064         * ggc-common.c: Likewise.
7065         * gimple-builder.c: Likewise.
7066         * gimple-expr.c: Likewise.
7067         * gimple-fold.c: Likewise.
7068         * gimple-iterator.c: Likewise.
7069         * gimple-low.c: Likewise.
7070         * gimple-match-head.c: Likewise.
7071         * gimple-pretty-print.c: Likewise.
7072         * gimple-ssa-isolate-paths.c: Likewise.
7073         * gimple-ssa-strength-reduction.c: Likewise.
7074         * gimple-streamer-in.c: Likewise.
7075         * gimple-streamer-out.c: Likewise.
7076         * gimple-walk.c: Likewise.
7077         * gimple.c: Likewise.
7078         * gimplify-me.c: Likewise.
7079         * gimplify.c: Likewise.
7080         * godump.c: Likewise.
7081         * graph.c: Likewise.
7082         * graphite-poly.c: Likewise.
7083         * haifa-sched.c: Likewise.
7084         * hw-doloop.c: Likewise.
7085         * ifcvt.c: Likewise.
7086         * incpath.c: Likewise.
7087         * init-regs.c: Likewise.
7088         * internal-fn.c: Likewise.
7089         * ipa-chkp.c: Likewise.
7090         * ipa-comdats.c: Likewise.
7091         * ipa-cp.c: Likewise.
7092         * ipa-devirt.c: Likewise.
7093         * ipa-icf-gimple.c: Likewise.
7094         * ipa-icf.c: Likewise.
7095         * ipa-inline-analysis.c: Likewise.
7096         * ipa-inline-transform.c: Likewise.
7097         * ipa-inline.c: Likewise.
7098         * ipa-polymorphic-call.c: Likewise.
7099         * ipa-profile.c: Likewise.
7100         * ipa-prop.c: Likewise.
7101         * ipa-pure-const.c: Likewise.
7102         * ipa-ref.c: Likewise.
7103         * ipa-reference.c: Likewise.
7104         * ipa-split.c: Likewise.
7105         * ipa-utils.c: Likewise.
7106         * ipa-visibility.c: Likewise.
7107         * ipa.c: Likewise.
7108         * ira-build.c: Likewise.
7109         * ira-color.c: Likewise.
7110         * ira-conflicts.c: Likewise.
7111         * ira-costs.c: Likewise.
7112         * ira-emit.c: Likewise.
7113         * ira-lives.c: Likewise.
7114         * ira.c: Likewise.
7115         * jump.c: Likewise.
7116         * langhooks.c: Likewise.
7117         * lcm.c: Likewise.
7118         * lists.c: Likewise.
7119         * loop-doloop.c: Likewise.
7120         * loop-init.c: Likewise.
7121         * loop-invariant.c: Likewise.
7122         * loop-iv.c: Likewise.
7123         * loop-unroll.c: Likewise.
7124         * lower-subreg.c: Likewise.
7125         * lra-assigns.c: Likewise.
7126         * lra-coalesce.c: Likewise.
7127         * lra-constraints.c: Likewise.
7128         * lra-eliminations.c: Likewise.
7129         * lra-lives.c: Likewise.
7130         * lra-remat.c: Likewise.
7131         * lra-spills.c: Likewise.
7132         * lra.c: Likewise.
7133         * lto-cgraph.c: Likewise.
7134         * lto-compress.c: Likewise.
7135         * lto-opts.c: Likewise.
7136         * lto-section-in.c: Likewise.
7137         * lto-section-out.c: Likewise.
7138         * lto-streamer-in.c: Likewise.
7139         * lto-streamer-out.c: Likewise.
7140         * lto-streamer.c: Likewise.
7141         * mode-switching.c: Likewise.
7142         * modulo-sched.c: Likewise.
7143         * omp-low.c: Likewise.
7144         * optabs.c: Likewise.
7145         * opts-global.c: Likewise.
7146         * passes.c: Likewise.
7147         * plugin.c: Likewise.
7148         * postreload-gcse.c: Likewise.
7149         * postreload.c: Likewise.
7150         * predict.c: Likewise.
7151         * print-tree.c: Likewise.
7152         * profile.c: Likewise.
7153         * real.c: Likewise.
7154         * realmpfr.c: Likewise.
7155         * recog.c: Likewise.
7156         * ree.c: Likewise.
7157         * reg-stack.c: Likewise.
7158         * regcprop.c: Likewise.
7159         * reginfo.c: Likewise.
7160         * regrename.c: Likewise.
7161         * regstat.c: Likewise.
7162         * reload.c: Likewise.
7163         * reload1.c: Likewise.
7164         * reorg.c: Likewise.
7165         * resource.c: Likewise.
7166         * rtl-chkp.c: Likewise.
7167         * rtl-error.c: Likewise.
7168         * rtlanal.c: Likewise.
7169         * rtlhooks.c: Likewise.
7170         * sanopt.c: Likewise.
7171         * sched-deps.c: Likewise.
7172         * sched-ebb.c: Likewise.
7173         * sched-rgn.c: Likewise.
7174         * sese.c: Likewise.
7175         * shrink-wrap.c: Likewise.
7176         * simplify-rtx.c: Likewise.
7177         * stack-ptr-mod.c: Likewise.
7178         * statistics.c: Likewise.
7179         * stmt.c: Likewise.
7180         * stor-layout.c: Likewise.
7181         * store-motion.c: Likewise.
7182         * stringpool.c: Likewise.
7183         * symtab.c: Likewise.
7184         * target-globals.c: Likewise.
7185         * targhooks.c: Likewise.
7186         * toplev.c: Likewise.
7187         * tracer.c: Likewise.
7188         * trans-mem.c: Likewise.
7189         * tree-affine.c: Likewise.
7190         * tree-call-cdce.c: Likewise.
7191         * tree-cfg.c: Likewise.
7192         * tree-cfgcleanup.c: Likewise.
7193         * tree-chkp-opt.c: Likewise.
7194         * tree-chkp.c: Likewise.
7195         * tree-chrec.c: Likewise.
7196         * tree-complex.c: Likewise.
7197         * tree-data-ref.c: Likewise.
7198         * tree-dfa.c: Likewise.
7199         * tree-diagnostic.c: Likewise.
7200         * tree-dump.c: Likewise.
7201         * tree-eh.c: Likewise.
7202         * tree-emutls.c: Likewise.
7203         * tree-if-conv.c: Likewise.
7204         * tree-inline.c: Likewise.
7205         * tree-into-ssa.c: Likewise.
7206         * tree-iterator.c: Likewise.
7207         * tree-loop-distribution.c: Likewise.
7208         * tree-nested.c: Likewise.
7209         * tree-nrv.c: Likewise.
7210         * tree-object-size.c: Likewise.
7211         * tree-outof-ssa.c: Likewise.
7212         * tree-parloops.c: Likewise.
7213         * tree-phinodes.c: Likewise.
7214         * tree-predcom.c: Likewise.
7215         * tree-pretty-print.c: Likewise.
7216         * tree-profile.c: Likewise.
7217         * tree-scalar-evolution.c: Likewise.
7218         * tree-sra.c: Likewise.
7219         * tree-ssa-address.c: Likewise.
7220         * tree-ssa-alias.c: Likewise.
7221         * tree-ssa-ccp.c: Likewise.
7222         * tree-ssa-coalesce.c: Likewise.
7223         * tree-ssa-copy.c: Likewise.
7224         * tree-ssa-dce.c: Likewise.
7225         * tree-ssa-dom.c: Likewise.
7226         * tree-ssa-dse.c: Likewise.
7227         * tree-ssa-forwprop.c: Likewise.
7228         * tree-ssa-ifcombine.c: Likewise.
7229         * tree-ssa-live.c: Likewise.
7230         * tree-ssa-loop-ch.c: Likewise.
7231         * tree-ssa-loop-im.c: Likewise.
7232         * tree-ssa-loop-ivcanon.c: Likewise.
7233         * tree-ssa-loop-ivopts.c: Likewise.
7234         * tree-ssa-loop-manip.c: Likewise.
7235         * tree-ssa-loop-niter.c: Likewise.
7236         * tree-ssa-loop-prefetch.c: Likewise.
7237         * tree-ssa-loop-unswitch.c: Likewise.
7238         * tree-ssa-loop.c: Likewise.
7239         * tree-ssa-math-opts.c: Likewise.
7240         * tree-ssa-operands.c: Likewise.
7241         * tree-ssa-phiopt.c: Likewise.
7242         * tree-ssa-phiprop.c: Likewise.
7243         * tree-ssa-pre.c: Likewise.
7244         * tree-ssa-propagate.c: Likewise.
7245         * tree-ssa-reassoc.c: Likewise.
7246         * tree-ssa-sccvn.c: Likewise.
7247         * tree-ssa-scopedtables.c: Likewise.
7248         * tree-ssa-sink.c: Likewise.
7249         * tree-ssa-strlen.c: Likewise.
7250         * tree-ssa-structalias.c: Likewise.
7251         * tree-ssa-tail-merge.c: Likewise.
7252         * tree-ssa-ter.c: Likewise.
7253         * tree-ssa-threadedge.c: Likewise.
7254         * tree-ssa-threadupdate.c: Likewise.
7255         * tree-ssa-uncprop.c: Likewise.
7256         * tree-ssa-uninit.c: Likewise.
7257         * tree-ssa.c: Likewise.
7258         * tree-ssanames.c: Likewise.
7259         * tree-stdarg.c: Likewise.
7260         * tree-streamer-in.c: Likewise.
7261         * tree-streamer-out.c: Likewise.
7262         * tree-streamer.c: Likewise.
7263         * tree-switch-conversion.c: Likewise.
7264         * tree-tailcall.c: Likewise.
7265         * tree-vect-data-refs.c: Likewise.
7266         * tree-vect-generic.c: Likewise.
7267         * tree-vect-loop-manip.c: Likewise.
7268         * tree-vect-loop.c: Likewise.
7269         * tree-vect-patterns.c: Likewise.
7270         * tree-vect-slp.c: Likewise.
7271         * tree-vect-stmts.c: Likewise.
7272         * tree-vectorizer.c: Likewise.
7273         * tree-vrp.c: Likewise.
7274         * tree.c: Likewise.
7275         * tsan.c: Likewise.
7276         * ubsan.c: Likewise.
7277         * value-prof.c: Likewise.
7278         * var-tracking.c: Likewise.
7279         * varasm.c: Likewise.
7280         * varpool.c: Likewise.
7281         * vtable-verify.c: Likewise.
7282         * web.c: Likewise.
7283         * wide-int-print.cc: Likewise.
7284         * wide-int.cc: Likewise.
7285         * xcoffout.c: Likewise.
7287 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
7289         * Makefile.in (NO_PIE_CFLAGS): New.
7290         (NO_PIE_FLAG): Likewise.
7291         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7292         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7293         (BUILD_NO_PIE_CFLAGS): Likewise.
7294         (BUILD_NO_PIE_FLAG): Likewise.
7295         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7296         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7297         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7298         $(BUILD_NO_PIE_CFLAGS).
7299         (BUILD_CXXFLAGS): Likewise.
7300         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7301         $(BUILD_NO_PIE_FLAG).
7302         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
7303         (BUILD_NO_PIE_FLAG): Likewise.
7304         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7305         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7306         * configure: Regenerated.
7308 2015-10-29  Richard Biener  <rguenther@suse.de>
7310         PR middle-end/56956
7311         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7312         unsigned conditonal negation to ABS_EXPR.
7314 2015-10-29  Richard Biener  <rguenther@suse.de>
7316         * gimple-match-head.c (gimple_simplify): Remove premature checking
7317         of builtin_decl_implicit of function calls we simplify.
7319 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
7321         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7322         (get_computation_cost_at): Ditto.
7323         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7324         and inv_expr_id.
7326 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7328         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7329         superfluous code.
7331 2015-10-28  Jason Merrill  <jason@redhat.com>
7333         * Makefile.in (TAGS): Include libcpp and libiberty.
7335 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7337         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7338         (extract_omp_for_data): Remove OpenACC special handling of
7339         chunking.
7341         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7342         (struct parallel): Update comment.
7343         (nvptx_reorg): Likewise.
7344         (nvptx_neuter): Cleanup whitespace.
7346 2015-10-28  Richard Henderson  <rth@redhat.com>
7348         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7350 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7352         PR target/67839
7353         * config/avr/predicates.md (low_io_address_operand): Don't
7354         consider MODE when computing upper bound.
7355         (io_address_operand): Likewise.
7357 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
7359         * fold-const.c (operand_equal_p): Do not verify that types are
7360         compatible for MEM_REFs.
7362 2015-10-28  Richard Biener  <rguenther@suse.de>
7364         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7365         in simplifying VEC_COND_EXPR conditions.
7367 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7369         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7370         into vi_next of a full_var.
7372 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7374         * tree-ssa-structalias.c (new_var_info, make_heapvar)
7375         (make_constraint_from_restrict, make_constraint_from_global_restrict)
7376         (create_function_info_for, create_variable_info_for_1)
7377         (create_variable_info_for): Add and handle add_id parameter.
7378         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7379         (init_base_vars): Add extra argument to calls to new_var_info.
7380         (get_vi_for_tree): Add extra argument to call to
7381         create_variable_info_for.
7382         (process_constraint, do_deref, process_all_all_constraints): Add extra
7383         argument to calls to new_scalar_tmp_constraint_exp.
7384         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7385         argument to calls to make_heapvar.
7386         (make_restrict_var_constraints): Add extra argument to call to
7387         make_constraint_from_global_restrict.
7388         (intra_create_variable_infos): Add extra argument to call to
7389         create_variable_info_for_1.
7390         (ipa_pta_execute): Add extra argument to call to
7391         create_function_info_for.
7393 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7395         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7396         (sibcall_value): Likewise.
7398 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7400         * config/nvptx/nvptx.h (struct machine_function): Add
7401         axis_predicate.
7402         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7403         nvptx_expand_oacc_join): Declare.
7404         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7405         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7406         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7407         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7408         UNSPECV_JOINING, UNSPECV_JOIN): New.
7409         (BITS, BITD): New mode iterators.
7410         (br_true_uni, br_false_uni): New.
7411         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7412         (oacc_dim_size, oacc_dim_pos): New.
7413         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7414         (oacc_fork, oacc_join): New.
7415         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7416         (worker_load<mode>, worker_store<mode>): New.
7417         (nvptx_barsync): New.
7418         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7419         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7420         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7421         worker_bcast_sym): New.
7422         (nvptx_option_override): Initialize worker broadcast buffer.
7423         (nvptx_emit_forking, nvptx_emit_joining): New.
7424         (nvptx_init_axis_predicate): New.
7425         (nvptx_declare_function_name): Init axis predicates.
7426         (nvptx_expand_call): Add fork/join markers around routine call.
7427         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7428         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7429         (nvptx_gen_vcast): New.
7430         (struct wcast_data_t): New.
7431         (enum propagate_mask): New.
7432         (nvptx_gen_wcast): New.
7433         (nvptx_print_operand): Add 'S' case.
7434         (struct parallel): New.
7435         (parallel::parallel, parallel::~parallel): New.
7436         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7437         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7438         nvptx_find_par, nvptx_discover_pars): New.
7439         (nvptx_propagate): New.
7440         (vprop_gen, nvptx_vpropagate): New.
7441         (wprop_gen, nvptx_wpropagate): New.
7442         (nvptx_wsync): New.
7443         (nvptx_single, nvptx_skip_par): New.
7444         (nvptx_process_pars, nvptx_neuter_pars): New.
7445         (ntptx_reorg): Split blocks, generate parallel structure, apply
7446         neutering.
7447         (nvptx_cannot_copy_insn_p): New.
7448         (nvptx_file_end): Emit worker broadcast decl.
7449         (nvptx_goacc_fork_join): New.
7450         (TARGET_CANNOT_COPY_INSN_P): Override.
7451         (TARGET_GOACC_FORK_JOIN): Override.
7453 2015-10-28  Richard Biener  <rguenther@suse.de>
7455         * fold-const.c (negate_expr_p): Adjust the division case to
7456         properly avoid introducing undefined overflow.
7457         (fold_negate_expr): Likewise.
7459 2015-10-28  Richard Biener  <rguenther@suse.de>
7461         PR tree-optimization/65962
7462         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7463         Avoid creating loop carried dependences also for outer loops
7464         of the loop a use to replace is in.
7466 2015-10-28  Richard Biener  <rguenther@suse.de>
7468         * common.opt (fchecking): New flag controlling flag_checking.
7469         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7470         * timevar.c (timer::print): Adjust output.
7471         * doc/invoke.texi (fchecking): Document.
7473 2015-10-28  Richard Biener  <rguenther@suse.de>
7475         PR middle-end/68067
7476         * fold-const.c (negate_expr_p): We cannot negate plus or minus
7477         if overflow is not wrapping.  Likewise multiplication unless
7478         one operand is constant and not power of two.
7479         (fold_negate_expr): Adjust accordingly.
7481 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7483         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7484         fields.
7485         (is_oacc_parallel, is_oacc_kernels): New.
7486         (enclosing_target_ctx): May return NULL.
7487         (ctx_in_oacc_kernels_region): New.
7488         (check_oacc_kernel_gwv): New.
7489         (oacc_loop_or_target_p): Delete.
7490         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
7491         operands.  Strip reductions fro kernels.
7492         (scan_omp_target): Don't calculate gwv mask.
7493         (lower_oacc_head_mark, lower_oacc_loop_marker,
7494         lower_oacc_head_tail): New.
7495         (struct oacc_collapse): New.
7496         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7497         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7498         Remove OpenACC handling.
7499         (expand_oacc_for): New.
7500         (expand_omp_for): Call expand_oacc_for.
7501         (lower_omp_for): Call lower_oacc_head_tail.
7503 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
7505         * attribs.c (check_attribute_tables): New function, broken out from...
7506         (init_attributes): Use it.
7507         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7508         gcc_checking_assert and checking_* functions to eliminate
7509         ENABLE_CHECKING conditionals.
7510         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7511         (pass_expand::execute): Likewise.
7512         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7513         * cgraphunit.c (mark_functions_to_output): Likewise.
7514         (cgraph_node::expand_thunk): Likewise.
7515         (symbol_table::compile): Likewise.
7516         * ddg.c (add_cross_iteration_register_deps): Likewise.
7517         (create_ddg_all_sccs): Likewise.
7518         * df-core.c (df_finish_pass, df_analyze): Likewise.
7519         * diagnostic-core.h: Likewise.
7520         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7521         * dominance.c (calculate_dominance_info): Likewise.
7522         * dwarf2out.c (add_AT_die_ref): Likewise.
7523         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7524         (loc_list_from_tree, gen_lexical_block_die): Likewise.
7525         gen_type_die_with_usage, gen_type_die): Likewise.
7526         (dwarf2out_decl): Likewise.
7527         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7528         * except.c (duplicate_eh_regions): Likewise.
7529         * fwprop.c (register_active_defs, update_df_init): Likewise.
7530         (fwprop_init, fwprop_done): Likewise.
7531         (update_uses): Likewise.
7532         * ggc-page.c (ggc_grow): Likewise.
7533         * gimplify.c (gimplify_body): Likewise.
7534         (gimplify_hasher::equal): Likewise.
7535         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7536         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7537         Likewise.
7538         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7539         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7540         * hash-table.h (::find_empty_slot_for_expand): Likewise.
7541         * ifcvt.c (if_convert): Likewise.
7542         * ipa-cp.c (ipcp_propagate_stage): Likewise.
7543         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7544         (odr_type_p, odr_types_equivalent_p): Likewise.
7545         (add_type_duplicate, get_odr_type): Likewise.
7546         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7547         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7548         (sem_item_optimizer::verify_classes): Likewise.
7549         (sem_item_optimizer::traverse_congruence_split): Likewise.
7550         (sem_item_optimizer::checking_verify_classes): New.
7551         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7552         method.
7553         * cfgrtl.c (commit_edge_insertions): Likewise.
7554         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7555         (rtl_flow_call_edges_add): Likewise.
7556         * cgraph.c (symbol_table::create_edge): Likewise.
7557         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7558         * cgraph.h (symtab_node): Likewise.
7559         (symtab_node::checking_verify_symtab_nodes): Define.
7560         (cgraph_node::checking_verify_cgraph_nodes): Define.
7561         * cfghooks.h (checking_verify_flow_info): Define.
7562         * cfgloop.h (checking_verify_loop_structure): Define.
7563         * dominance.h (checking_verify_dominators): Define.
7564         * et-forest.c: Fix comment.
7565         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7566         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7567         ENABLE_CHECKING conditionals.
7568         * ipa-inline-transform.c (save_inline_function_body): Likewise.
7569         * ipa-inline.c (inline_small_functions): Likewise.
7570         (early_inliner): Likewise.
7571         * ipa-inline.h (estimate_edge_growth): Likewise.
7572         * ipa-visibility.c (function_and_variable_visibility): Likewise.
7573         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7574         (ipa_single_use): Likewise.
7575         * ira-int.h: Likewise.
7576         * ira.c (ira): Likewise.
7577         * loop-doloop.c (doloop_optimize_loops): Likewise.
7578         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7579         * loop-invariant.c (move_loop_invariants): Likewise.
7580         * lra-assigns.c (lra_assign): Likewise.
7581         * lra-constraints.c (lra_constraints): Likewise.
7582         * lra-eliminations.c (lra_eliminate): Likewise.
7583         * lra-int.h (struct lra_reg): Likewise.
7584         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7585         (lra_create_live_ranges_1): Likewise.
7586         * lra-remat.c (create_remat_bb_data): Likewise.
7587         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7588         (lra): Likewise.
7589         (check_rtl): Always define. Remove incorrect guard around
7590         extract_constrain_insn call.
7591         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7592         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7593         ENABLE_CHECKING conditionals.
7594         * lto-streamer-out.c (DFS::DFS): Likewise.
7595         (lto_output): Likewise.
7596         * lto-streamer.c (lto_streamer_init): Likewise.
7597         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7598         expand_omp_target, execute_expand_omp): Likewise.
7599         (lower_omp_target): Likewise.
7600         * passes.c (execute_function_todo): Likewise.
7601         (execute_todo, execute_one_pass): Likewise.
7602         (verify_curr_properties): Always define.
7603         * predict.c (tree_estimate_probability: Use flag_checking,
7604         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7605         ENABLE_CHECKING conditionals.
7606         (propagate_freq): Likewise.
7607         * pretty-print.c (pp_format): Likewise.
7608         * real.c (real_to_decimal_for_mode): Likewise.
7609         * recog.c (split_all_insns): Likewise.
7610         * regcprop.c (kill_value_one_regno): Likewise.
7611         (copy_value): Likewise.
7612         (validate_value_data): Define unconditionally.
7613         * reload.c: Fix comment.
7614         * timevar.c: Include options.h
7615         * tree-ssa.h (checking_verify_ssa): Define.
7616         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7617         * sched-deps.c (CHECK): Remove unused macro.
7618         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7619         gcc_checking_assert and checking_* functions to eliminate
7620         ENABLE_CHECKING conditionals.
7621         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7622         * sel-sched.c (struct moveop_static_params): Likewise.
7623         (find_best_reg_for_expr, move_cond_jump): Likewise.
7624         (move_op_orig_expr_not_found): Likewise.
7625         (code_motion_process_successors, move_op): Likewise.
7626         * ssa-iterators.h (first_readonly_imm_use): Likewise.
7627         (next_readonly_imm_use): Likewise.
7628         * store-motion.c (compute_store_table): Likewise.
7629         * symbol-summary.h (function_summary::function_summary): Likewise.
7630         * target.h (cumulative_args_t): Likewise.
7631         (get_cumulative_args, pack_cumulative_args): Likewise.
7632         * timevar.c: (timer::print): Likewise.
7633         * trans-mem.c (ipa_tm_execute): Likewise.
7634         * tree-cfg.c (move_stmt_op): Likewise.
7635         (move_sese_region_to_fn): Likewise.
7636         (gimple_flow_call_edges_add): Likewise.
7637         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7638         Likewise.
7639         * tree-eh.c (remove_unreachable_handlers): Likewise.
7640         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7641         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7642         * tree-into-ssa.c (update_ssa): Likewise.
7643         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7644         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7645         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7646         * tree-predcom.c (suitable_component_p): Likewise.
7647         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7648         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7649         * tree-ssa-live.c (verify_live_on_entry): Likewise.
7650         * tree-ssa-live.h (register_ssa_partition): Likewise.
7651         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7652         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7653         (tree_transform_and_unroll_loop): Likewise.
7654         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7655         * tree-ssa-operands.c (get_expr_operands): Likewise.
7656         * tree-ssa-propagate.c (replace_exp_1): Likewise.
7657         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7658         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7659         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7660         * tree-ssanames.c (release_ssa_name_fn): Likewise.
7661         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7662         * tree-vect-loop-manip.c
7663         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7664         (slpeel_checking_verify_cfg_after_peeling): Likewise.
7665         (vect_do_peeling_for_loop_bound): Likewise.
7666         (vect_do_peeling_for_alignment): Likewise.
7667         * tree-vrp.c (supports_overflow_infinity): Likewise.
7668         (set_value_range): Likewise.
7669         * tree.c (free_lang_data_in_cgraph): Likewise.
7670         * value-prof.c (gimple_remove_histogram_value): Likewise.
7671         (free_hist): Likewise.
7672         * var-tracking.c (canonicalize_values_star): Likewise.
7673         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7675 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7677         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7678         IFN_GOACC_LOOP): New.
7679         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7680         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7681         IFN_UNIQUE_OACC_TAIL_MARK.
7682         (enum ifn_goacc_loop_kind): New.
7683         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7684         IFN_UNIQUE_OACC_JOIN cases.
7685         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7686         (expand_GOACC_LOOP): New.
7687         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7688         * omp-low.c: Include gimple-pretty-print.h.
7689         (struct oacc_loop): New.
7690         (enum oacc_loop_flags): New.
7691         (oacc_thread_numbers): New.
7692         (oacc_xform_loop): New.
7693         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7694         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7695         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7696         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7697         oacc_loop_discovery): New.
7698         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7699         oacc_loop_process): New.
7700         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7701         (execute_oacc_device_lower): Discover & process loops.  Process
7702         internal fns.
7703         * target.def (goacc.fork_join): Change sense of hook, clarify
7704         documentation.
7705         * doc/tm.texi: Regenerated.
7707 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7709         * target-insns.def (oacc_fork, oacc_join): Define.
7710         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7711         (goacc.fork_join): New GOACC hook.
7712         * targhooks.h (default_goacc_fork_join): Declare.
7713         * omp-low.c (default_goacc_forkjoin): New.
7714         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7715         * doc/tm.texi: Regenerate.
7717 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7719         * omp-low.c (oacc_init_rediction_array): New.
7720         (oacc_initialize_reduction_data): Initialize array.
7722 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7724         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7726 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
7728         * internal-fn.c (expand_UNIQUE): New.
7729         * internal-fn.h (enum ifn_unique_kind): New.
7730         * internal-fn.def (IFN_UNIQUE): New.
7731         * target-insns.def (unique): Define.
7732         * gimple.h (gimple_call_internal_unique_p): New.
7733         * gimple.c (gimple_call_same_target_p): Check internal fn
7734         uniqueness.
7735         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7736         * tree-ssa-threadedge.c
7737         (record_temporary_equivalences_from_stmts): Likewise.
7738         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7740 2015-10-27  Richard Henderson  <rth@redhat.com>
7742         PR rtl-opt/67609
7743         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7744         narrowing subregs on SSE and MMX registers.
7745         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7746         appear to be sub-words of multi-register pseudos must be rejected.
7747         * doc/tm.texi: Regenerate.
7749 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7751         PR target/68102
7752         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7753         operands[0] is a reg before taking its REGNO in split condition.
7754         (*movdi_aarch64): Likewise.
7756 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7758         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7759         Handle floating point inner modes properly.
7761 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
7763         * tree-vect-looop.c
7764         (vectorizable_live_operation): Change iterator.
7766 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7767             Aditya Kumar  <aditya.k7@samsung.com>
7769         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7770           function to schedule based on isl_schedule_node.
7771         (get_schedule_map_st): New schedule optimizer based on
7772         isl_schedule_node.
7773         (scop_get_domains): New. Return the isl_union_set containing the
7774         domains of all the pbbs.
7775         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7777 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
7779         PR target/67215
7780         * calls.c (prepare_call_address): Don't handle -fno-plt here.
7781         * config/i386/i386.c (ix86_expand_call): Generate indirect call
7782         via GOT for -fno-plt.  Support indirect call via GOT for x32.
7783         * config/i386/predicates.md (sibcall_memory_operand): Allow
7784         GOT memory operand.
7786 2015-10-27  Richard Biener  <rguenther@suse.de>
7788         PR tree-optimization/68104
7789         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7790         strided access check ...
7791         (vect_compute_data_refs_alignment): ... here.
7793 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
7794             Joseph Myers  <joseph@codesourcery.com>
7795             Mark Shinwell  <shinwell@codesourcery.com>
7796             Andrew Stubbs  <ams@codesourcery.com>
7797             Rich Felker <dalias@libc.org>
7799         * config.gcc: Handle --enable-fdpic.
7800         * config/sh/constraints.md (Ccl): New constraint.
7801         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7802         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7803         __SH_FDPIC__.
7804         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7805         library functions.
7806         * config/sh/sh-protos.h (function_symbol_result): New struct.
7807         (function_symbol): Return function_symbol_result.
7808         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7809         declarations.
7810         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7811         target hook.
7812         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7813         (sh_option_override): Force -fPIC if FDPIC is in effect.
7814         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7815         UNSPEC_GOTOFFFUNCDESC cases.
7816         (prepare_move_operands): Use FDPIC initial GOT register for
7817         TLS-related GOT access; inhibit cross-section address offset constants
7818         for FDPIC.
7819         (sh_assemble_integer): New function.
7820         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7821         PC-relative call sites.
7822         (expand_ashiftrt): Adapt invocation of function_symbol.
7823         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7824         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7825         UNSPEC_GOTOFFFUNCDESC.
7826         (legitimize_pic_address): Resolve function symbols to function
7827         descriptors for FDPIC.  Do not use GOT-relative addressing for local
7828         data that may be read-only on FDPIC.
7829         (sh_emit_storesi, sh_emit_storehi): New functions.
7830         (sh_trampoline_init): Generate FDPIC trampolines.
7831         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7832         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7833         (sh_output_mi_thunk): Generate FDPIC call.
7834         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
7835         FDPIC, generate call site labels to use PC-relative addressing rather
7836         than GOT-relative addressing.
7837         (sh_conditional_register_usage): Make PIC register fixed and call used
7838         when FDPIC is in effect.
7839         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7840         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7841         sh_get_fdpic_reg_initial_val): New functions.
7842         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
7843         Handle -mfdpic.
7844         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
7845         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
7846         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
7847         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
7848         FDPIC_SELF_SPECS.
7849         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
7850         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
7851         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
7852         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
7853         constants.
7854         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
7855         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
7856         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
7857         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
7858         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
7859         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
7860         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
7861         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
7862         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
7863         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
7864         block_move_real, block_lump_real, block_move_real_i4,
7865         block_lump_real_i4): Add support for FDPIC calls.
7866         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
7867         call_value_pop): Adjust for new function_symbol signature.
7868         * config/sh/sh.opt (-mfdpic): New option.
7869         * doc/install.texi (Options specification): Document --enable-fdpic.
7870         * doc/invoke.texi (SH Options): Document -mfdpic.
7873 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7875         PR tree-optimization/65963
7876         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7877         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7879 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7881         PR target/67929
7882         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
7883         * config/arm/constraints.md (Dp): Update callsite.
7884         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
7886 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7888         * builtins.c (fold_builtin_load_exponent): Rename to...
7889         (fold_const_builtin_load_exponent): ...this and only handle
7890         constant arguments.
7891         (fold_builtin_2): Update accordingly.
7892         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
7894 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7896         * builtins.c (fold_builtin_logb): Rename to...
7897         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
7898         (fold_builtin_significand): Rename to...
7899         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
7900         (fold_builtin_1): Update accordingly.
7902 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7904         * builtins.c (fold_builtin_fmin_fmax): Delete.
7905         (fold_builtin_2): Handle constant fmin and fmax arguments here.
7906         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
7908 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
7910         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
7911         for register extension into sign and zero register extension.
7912         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
7913         for sign and zero register extension.
7914         (cortexa57_addrcost_table): Likewise.
7915         (xgene1_addrcost_table): Likewise.
7917 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7919         * fold-const.c (fold_minmax): Delete.
7920         (fold_binary_loc): Don't call it.
7921         * match.pd: Add rules previously handled by fold_minmax.
7923 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7925         * builtins.c (fold_builtin_fma): Remove constant handling.
7926         (fold_builtin_3): Handle constant fma arguments here.
7928 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7930         * builtins.c (fold_builtin_fabs): Remove constant handling.
7931         (fold_builtin_abs): Likewise.
7933 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7935         * builtins.c (fold_builtin_copysign): Delete.
7936         (fold_builtin_2): Handle constant copysign arguments here.
7937         * match.pd: Add rules previously handled by fold_builtin_copysign.
7939 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7941         * builtins.c (fold_builtin_signbit): Delete.
7942         (fold_builtin_2): Handle constant signbit arguments here.
7943         * match.pd: Add rules previously handled by fold_builtin_signbit.
7945 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7947         * match.pd: Handle sqrt(x) cmp 0 specially.
7949 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
7951         * tree-vect-generic.c (expand_vector_operations_1): Check
7952         optab type before using it.
7954 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7956         * config/aarch64/aarch64-protos.h
7957         (struct tune_params): Add autoprefetcher_model field.
7958         * config/aarch64/aarch64.c: Include params.h
7959         (generic_tunings): Specify autoprefetcher_model value.
7960         (cortexa53_tunings): Likewise.
7961         (cortexa57_tunings): Likewise.
7962         (cortexa72_tunings): Likewise.
7963         (thunderx_tunings): Likewise.
7964         (xgene1_tunings): Likewise.
7965         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
7966         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
7967         (aarch64_override_options_internal): Set
7968         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
7970 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7972         * builtins.c (fold_builtin_exponent): Delete.
7973         (fold_builtin_2): Handle constant expN arguments here.
7974         * match.pd: Fold expN(logN(x)) -> x.
7976 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7978         * builtins.c (fold_builtin_powi): Delete.
7979         (fold_builtin_2): Handle constant powi arguments here.
7980         * match.pd: Add rules previously handled by fold_builtin_powi.
7982 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7984         * builtins.c (fold_builtin_pow): Delete in favor of...
7985         (fold_const_builtin_pow): ...this new function.  Only handle constant
7986         arguments.
7987         (fold_builtin_2): Update accordingly.
7988         * match.pd: Add rules previously handled by fold_builtin_pow.
7990 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7992         * builtins.c (fold_builtin_hypot): Delete.
7993         (fold_builtin_2): Handle constant hypot arguments here.
7994         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
7995         hypot(x, x) to fabs(x)*sqrt(2).
7997 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
7999         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8000         instead of make_ssa_name if not yet in SSA form.
8002 2015-10-27  Richard Biener  <rguenther@suse.de>
8004         * cfg.c (free_edge): Add function argument and use it instead of cfun.
8005         (clear_edges): Likewise.
8006         * cfg.h (clear_edges): Adjust prototype.
8007         * cfgexpand.c (pass_expand::execute): Adjust.
8008         * cfgloop.c (release_recorded_exits): Add function argument and use
8009         it instead of cfun.
8010         * cfgloop.h (release_recorded_exits): Adjust prototype.
8011         (loops_state_satisfies_p): Add overload with function argument.
8012         (loops_state_set): Likewise.
8013         (loops_state_clear): Likewise.
8014         (struct loop_iterator): Add function argument to constructor
8015         and iterator and use it instead of cfun.
8016         (FOR_EACH_LOOP_FN): New macro.
8017         (loop_optimizer_finalize): Add overload with function argument.
8018         * loop-init.c (loop_optimizer_init): Adjust.
8019         (fix_loop_structure): Likewise.
8020         (loop_optimizer_finaliz): Add function argument and use it
8021         instead of cfun.
8022         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8023         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8024         * cgraph.c (release_function_body): Do not push/pop cfun.
8025         * final.c (rest_of_clean_state): Adjust.
8026         * graphite.c (graphite_finalize): Likewise.
8027         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8028         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8029         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8030         (tree_unroll_loops_completely): Likewise.
8031         (pass_complete_unrolli::execute): Likewise.
8032         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8033         Add function argument and use it instead of cfun.
8034         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8035         Adjust prototype.
8036         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8037         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8038         instead of cfun.
8039         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8040         * tree-ssanames.c (fini_ssanames): Add function argument and use it
8041         instead of cfun.
8042         * tree-ssanames.c (fini_ssanames): Adjust prototype.
8043         * tree-vrp.c (execute_vrp): Adjust.
8044         * value-prof.c (free_histograms): Add function argument and use it
8045         instead of cfun.
8046         * value-prof.h (free_histograms): Adjust prototype.
8048 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8050         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8051         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8052         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
8054 2015-10-27  Tom de Vries  <tom@codesourcery.com>
8056         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8057         field_type.
8059 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
8061         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8062         (inv_can_prop_to_addr_use): New function.
8063         (record_use): Call can_prop_to_addr_uses, set the new field.
8064         (get_inv_cost): Count cost if inv can't be propagated into its
8065         address uses.
8067 2015-10-26  Doug Evans  <dje@google.com>
8069         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8071 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
8073         * match.pd (fold_widened_comparison): Apply simplifications to all
8074         integral types.
8076 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
8078         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8079         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8080         * doc/tm.texi: Regenerated.
8081         * reorg.c (dbr_schedule): Use new hook.
8082         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8084 2015-10-26  Jeff Law  <law@redhat.com>
8086         PR tree-optimization/68013
8087         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8088         Make sure the first block in the path is in VISITED_BBs.
8090 2015-10-26  Richard Biener  <rguenther@suse.de>
8091         Dominik Vogt  <vogt@linux.vnet.ibm.com>
8093         PR middle-end/67443
8094         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8095         Properly prune ref->ref for accesses outside of ref.
8097 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8099         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8100         new statements to be inserted if inplace.  Allow calls to have
8101         nonempty sequences.
8103 2015-10-26  Richard Biener  <rguenther@suse.de>
8105         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8106         (do_valueize): New function.
8107         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8108         replace_uses_by.
8109         * tree-ssa-threadedge.c: Remove builtins.h include, include
8110         gimple-fold.h
8111         (fold_assignment_stmt): Remove.
8112         (threadedge_valueize): New function.
8113         (record_temporary_equivalences_from_stmts): Use
8114         gimple_fold_stmt_to_constant_1, note additional cleanup
8115         opportunities.
8117 2015-10-26  Richard Biener  <rguenther@suse.de>
8119         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8120         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8122 2015-10-26  Alan Hayward <alan.hayward@arm.com>
8124         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8125         VEC_COND_EXPR types.
8127 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8129         * auto-inc-dec.c (insert_move_insn_before): Delete.
8130         (attempt_change): Remember to cost the simple move in the
8131         FORM_PRE_ADD and FORM_POST_ADD cases.
8133 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8135         PR target/68091
8136         * config/sh/sh.c (sh_vector_mode_supported_p): Use
8137         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8139 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8141         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8142         factored out of ...
8143         (intra_create_variable_infos): ... here.
8145 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8147         * tree-ssa-structalias.c (intra_create_variable_infos): Add
8148         restrict_pointer_p and recursive_restrict_p variables.
8150 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8152         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8153         get_vi_for_tree call.
8155 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8157         PR middle-end/67989
8158         * optabs.c (expand_atomic_compare_and_swap): Handle case when
8159         ptarget_oval or ptarget_bool are const0_rtx.
8161 2015-10-26  Christian Bruel  <christian.bruel@st.com>
8163         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8164         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8165         * cp/method.c (implicitly_declare_fn): Likewise.
8166         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8167         * java/class.c (add_method_1): Likewise.
8169 2015-10-26  Richard Biener  <rguenther@suse.de>
8171         * alloc-pool.h (base_pool_allocator): Use placement new.
8172         (base_pool_allocator::remove): Likewise.  Compute size outside of
8173         flag_checking.
8175 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8177         * builtins.c (do_real_to_int_conversion): New function.
8178         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8179         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8180         arguments here.
8181         * match.pd: Add rules previously handled by fold_fixed_mathfn
8182         and fold_builtin_int_roundingfn.
8184 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8186         * match.pd: Use macros to define built-in operator lists.
8188 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8189             Richard Biener  <rguenther@suse.de>
8191         * genmatch.c (dt_simplify::gen): Skip captures that are
8192         part of the result.
8193         (parser::parse_expr): Allow captures in results too.
8194         * builtins.c (fold_builtin_cexp): Delete.
8195         (fold_builtin_1): Handle constant cexp arguments here.
8196         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8198 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
8200         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8201         conditional compilation.
8202         (base_pool_allocator::remove): Use flag_checking.
8204 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
8206         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8208         PR middle-end/68079
8209         * dojump.c (do_compare_and_jump): Canonicalize both function and
8210         method types.
8212 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
8214         PR target/68084
8215         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8216         for =@ccae.
8218 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8220         PR ipa/pr67600
8221         * ipa-polymorphic-call.c
8222         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8223         instance offset with offset of outer type.
8225 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8227         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8229 2015-10-23  Caroline Tice  <cmtice@google.com>
8231         (from Richard Biener
8232         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
8233         call to iterative_hash_host_wide_int.
8235 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8237         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8238         Define as yes.
8240 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8242         * tree-vect-generic.c (expand_vector_operations_1): Check
8243         optab exists before use it.
8245 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8247         * tree-vect-generic.c (expand_vector_condition): Avoid
8248         uninitialized variable warning.
8250 2015-10-23  Jeff Law  <law@redhat.com>
8252         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8253         here.  Instead...
8254         (execute_todo): Call it here.
8255         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8256         statistics
8257         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8259 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8260             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8262         * config.gcc (enable_secureplt): Add *-linux*-musl*.
8264 2015-10-23  Jeff Law  <law@redhat.com>
8266         PR tree-optimization/67830
8267         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8268         Explicitly verify the mask has no bits outside the type of
8269         the innermost operands.
8271 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8272             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8274         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8275         (MUSL_DYNAMIC_LINKER64): Define.
8276         (GNU_USER_DYNAMIC_LINKER32): Update.
8277         (GNU_USER_DYNAMIC_LINKER64): Update.
8278         (CHOOSE_DYNAMIC_LINKER): Update.
8280         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8281         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8282         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8283         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8284         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8285         (CHOOSE_DYNAMIC_LINKER): Update.
8286         (INCLUDE_DEFAULTS): Redefine.
8288         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8290 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8292         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8293         comparing addresses.
8295 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8297         * fold-const.c (operand_equal_p): Handle matching of vector
8298         constructors.
8300 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8302         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8304 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
8305             Andrew Pinski  <apinski@cavium.com>
8307         PR rtl-optimization/67736
8308         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8309         of gen_lowpart.
8311 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8313         PR middle-end/68066
8314         * tree.c (build_truth_vector_type): Support BLK mode
8315         returned for boolean vector.
8317 2015-10-23  Alan Hayward <alan.hayward@arm.com>
8319         PR tree-optimization/65947
8320         * tree-vect-loop.c
8321         (vect_is_simple_reduction_1): Find condition reductions.
8322         (vect_model_reduction_cost): Add condition reduction costs.
8323         (get_initial_def_for_reduction): Add condition reduction initial var.
8324         (vect_create_epilog_for_reduction): Add condition reduction epilog.
8325         (vectorizable_reduction): Condition reduction support.
8326         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8327         * doc/sourcebuild.texi (Vector-specific attributes): Document
8328         vect_max_reduc
8330 2015-10-23  Richard Biener  <rguenther@suse.de>
8332         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8333         and builtins.def.
8335 2015-10-23  Richard Biener  <rguenther@suse.de>
8336             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8338         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8339         into (A ^ B) - B to match.pd
8340         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8342         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8343         New simplifier.
8344         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8345         New simplifier.
8346         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8347         New simplifier.
8348         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8349         New simplifier.
8350         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8351         INTEGER_CST@1)): New simplifier.
8353 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
8355         * builtins.c (integer_valued_real_p): Move to fold-const.c.
8356         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8357         (fold_builtin_ceil, fold_builtin_round): Delete.
8358         (fold_builtin_1): Handle constant trunc, floor, ceil and round
8359         arguments here.
8360         * convert.c (convert_to_real): Remove narrowing of rounding
8361         functions.
8362         * fold-const.h (integer_valued_real_unary_p)
8363         (integer_valued_real_binary_p, integer_valued_real_call_p)
8364         (integer_valued_real_single_p, integer_valued_real_p): Declare.
8365         * fold-const.c (tree_single_nonnegative_warnv_p): Move
8366         name_registered_for_update_p check to SSA_NAME case statement.
8367         Don't call tree_simple_nonnegative_warnv_p for SSA names.
8368         (integer_valued_real_unary_p, integer_valued_real_binary_p)
8369         (integer_valued_real_call_p, integer_valued_real_single_p)
8370         (integer_valued_real_invalid_p): New functions.
8371         (integer_valued_real_p): Move from fold-const.c and rework
8372         to call the functions above.  Handle SSA names.
8373         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8374         * gimple-fold.c (gimple_assign_integer_valued_real_p)
8375         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8376         (gimple_stmt_integer_valued_real_p): New functions.
8377         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8378         Fold f(x)->x for the same f if x is known to be integer-valued.
8379         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8380         the result.  Canonicalize floor(x) as trunc(x) if x is
8381         nonnegative.
8383 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8385         * tree-ssa-structalias.c (intra_create_variable_infos): Use
8386         make_constraint_from.
8388 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8390         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8391         setting of is_full_var in case of a single field.
8393 2015-10-22  Martin Sebor  <msebor@redhat.com>
8395         PR driver/68043
8396         * config/i386/i386.opt: Add missing periods to the ends of sentences.
8397         * config/msp430/msp430.opt: Same.
8399 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8401         * doc/extend.exp (Global Register Variables): Rewrite.
8403 2015-10-22  Jeff Law  <law@redhat.com>
8405         * genattrtab.c (main): If we do not have any annul-true or annul-false
8406         slots, then write out a dummy eligible_for_annul_true or
8407         eligible_for_annul_false as needed.
8409 2015-10-22  Nick Clifton  <nickc@redhat.com>
8411         * config/msp430/msp430.opt: Add -msilicon-errata and
8412         -msilicon-errata-warn.
8413         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8414         assembler.
8415         * doc/invoke.texi: Document new options.
8417 2015-10-22  Richard Biener  <rguenther@suse.de>
8419         PR tree-optimization/58497
8420         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8421         (expand_vector_operations_1): Use it.  Lower operations on
8422         all uniform vectors to scalar operations if the HW supports it.
8424 2015-10-22  Richard Biener  <rguenther@suse.de>
8426         PR tree-optimization/19049
8427         PR tree-optimization/65962
8428         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8429         to strided accesses if single-element interleaving doesn't work.
8431 2015-10-22  Richard Biener  <rguenther@suse.de>
8433         PR middle-end/68046
8434         PR middle-end/61893
8435         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8436         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8437         (expand_unop): Likewise.
8439 2015-10-22  Richard Biener  <rguenther@suse.de>
8441         * fold-const.c (fold_addr_of_array_ref_difference): Properly
8442         convert operands before folding a MINUS_EXPR.
8443         (fold_binary_loc): Move simplification of MINUS_EXPR on
8444         converted POINTER_PLUS_EXPRs ...
8445         * match.pd: ... here.
8447 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8449         * builtins.c (fold_builtin_tan): Delete.
8450         (fold_builtin_1): Handle constant tan arguments here.
8451         * match.pd: Simplify (tan (atan x)) to x.
8453 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
8455         * builtins.c (fold_builtin_cproj): Delete.
8456         (fold_builtin_1): Handle constant arguments here.
8457         (build_complex_cproj): Move and rename to...
8458         * tree.c: (build_complex_inf): ...this.
8459         * tree.h (build_complex_inf): Declare.
8460         * match.pd: Fold cproj(x)->x if x has no infinity.
8461         Use build_complex_inf for existing cproj rules.
8463 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8465         PR target/68015
8466         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8467         already have a comparison result.
8469 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8471         PR target/63304
8472         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8473         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8474         (aarch64_classify_address): Likewise.
8475         (aarch64_secondary_reload): Likewise.
8476         (aarch64_override_options_after_change_1): Adjust.
8477         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8478         Use aarch64_nopcrelative_literal_loads.
8479         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8480         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8481         Declare.
8483 2015-10-21  Martin Sebor  <msebor@redhat.com>
8485         PR driver/68043
8486         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8487         (print_filtered_help): Reference aliased option's name and encourage
8488         readers to use it in preference to the alias if the former is not
8489         documented.  Mention when using an option is diagnosed.
8490         * gcc.c (display_help): End each sentence with a period.
8492         * common.opt: End each sentence that describes an option with
8493         a period.
8494         * config/aarch64/aarch64.opt: Same.
8495         * config/alpha/alpha.opt: Same.
8496         * config/arc/arc.opt: Same.
8497         * config/arm/arm.opt: Same.
8498         * config/avr/avr.opt: Same.
8499         * config/bfin/bfin.opt: Same.
8500         * config/c6x/c6x.opt: Same.
8501         * config/cr16/cr16.opt: Same.
8502         * config/cris/cris.opt: Same.
8503         * config/cris/linux.opt: Same.
8504         * config/darwin.opt: Same.
8505         * config/epiphany/epiphany.opt: Same.
8506         * config/fr30/fr30.opt: Same.
8507         * config/frv/frv.opt: Same.
8508         * config/ft32/ft32.opt: Same.
8509         * config/g.opt: Same.
8510         * config/h8300/h8300.opt: Same.
8511         * config/i386/cygming.opt: Same.
8512         * config/i386/djgpp.opt: Same.
8513         * config/i386/i386.opt: Same.
8514         * config/i386/interix.opt: Same.
8515         * config/i386/mingw-w64.opt: Same.
8516         * config/i386/mingw.opt: Same.
8517         * config/ia64/ia64.opt: Same.
8518         * config/ia64/ilp32.opt: Same.
8519         * config/iq2000/iq2000.opt: Same.
8520         * config/linux.opt: Same.
8521         * config/lm32/lm32.opt: Same.
8522         * config/lynx.opt: Same.
8523         * config/m32c/m32c.opt: Same.
8524         * config/m32r/m32r.opt: Same.
8525         * config/m68k/ieee.opt: Same.
8526         * config/m68k/m68k.opt: Same.
8527         * config/mcore/mcore.opt: Same.
8528         * config/mep/mep.opt: Same.
8529         * config/microblaze/microblaze.opt: Same.
8530         * config/mips/mips.opt: Same.
8531         * config/mmix/mmix.opt: Same.
8532         * config/mn10300/mn10300.opt: Same.
8533         * config/moxie/moxie.opt: Same.
8534         * config/msp430/msp430.opt: Same.
8535         * config/nios2/elf.opt: Same.
8536         * config/nios2/nios2.opt: Same.
8537         * config/nvptx/nvptx.opt: Same.
8538         * config/pa/pa-hpux.opt: Same.
8539         * config/pa/pa-hpux1010.opt: Same.
8540         * config/pa/pa-hpux1111.opt: Same.
8541         * config/pa/pa-hpux1131.opt: Same.
8542         * config/pa/pa.opt: Same.
8543         * config/pa/pa64-hpux.opt: Same.
8544         * config/pdp11/pdp11.opt: Same.
8545         * config/rl78/rl78.opt: Same.
8546         * config/rs6000/476.opt: Same.
8547         * config/rs6000/aix64.opt: Same.
8548         * config/rs6000/darwin.opt: Same.
8549         * config/rs6000/linux64.opt: Same.
8550         * config/rs6000/rs6000.opt: Same.
8551         * config/rs6000/sysv4.opt: Same.
8552         * config/s390/s390.opt: Same.
8553         * config/s390/tpf.opt: Same.
8554         * config/sh/sh.opt: Same.
8555         * config/sol2.opt: Same.
8556         * config/sparc/long-double-switch.opt: Same.
8557         * config/sparc/sparc.opt: Same.
8558         * config/spu/spu.opt: Same.
8559         * config/stormy16/stormy16.opt: Same.
8560         * config/tilegx/tilegx.opt: Same.
8561         * config/tilepro/tilepro.opt: Same.
8562         * config/v850/v850.opt: Same.
8563         * config/vax/vax.opt: Same.
8564         * config/visium/visium.opt: Same.
8565         * config/vms/vms.opt: Same.
8566         * config/vxworks.opt: Same.
8567         * config/xtensa/xtensa.opt: Same.
8569 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8570             Sebastian Pop  <s.pop@samsung.com>
8572         * graphite-scop-detection.c (parameter_index_in_region): Update call to
8573         invariant_in_sese_p_rec.
8574         * graphite-sese-to-poly.c (extract_affine): Same.
8575         * sese.c (invariant_in_sese_p_rec): Pass in an extra
8576         parameter has_vdefs.
8577         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8578         variable depends on virtual definitions in the current region.
8579         * sese.h (invariant_in_sese_p_rec): Update declaration.
8581 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8582             Sebastian Pop  <s.pop@samsung.com>
8584         * graphite-scop-detection.c (build_scops): Do not handle scops
8585         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8586         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8588 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
8590         * config.in: Regenerate.
8591         * configure: Regenerate.
8592         * configure.ac (CHECKING_P): Define.
8593         * system.h: Use CHECKING_P.
8595 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8597         PR ipa/67056
8598         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8599         is negative we don't know the type.
8600         (check_stmt_for_type_change): Skip constructors of non-polymorphic
8601         types as those won't help devirutalization.
8603 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8605         * fold-const.c (operand_equal_p): Add code matching empty constructors.
8607 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8609         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8610         comments.
8611         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8612         Add comments on sign of the result.
8613         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8614         Recurse on operand #1 instead of operand #0.
8615         <CEIL_MOD_EXPR>: Do not recurse.
8616         <ROUND_MOD_EXPR>: Likewise.
8618 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8620         * cfgrtl.c (pass_free_cfg::execute): Adjust.
8621         * final.c (dbr_sequence_length): Always define.
8622         (shorten_branches): Adjust.
8623         * genattr-common.c (main): Always define DELAY_SLOTS.
8624         * genattr.c (main): Unconditionally declare functions and define
8625         macros related to delay slots.
8626         * genattrtab.c (write_eligible_delay): Adjust.
8627         (main): Always write out delay slot functions.
8628         * opts.c (default_options_table): Adjust.
8629         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8630         (redirect_with_delay_list_safe_p): Likewise.
8631         (fill_simple_delay_slots): Likewise.
8632         (fill_slots_from_thread): Likewise.
8633         (make_return_insns): Likewise.
8634         (dbr_schedule): Likewise.
8635         (rest_of_handle_delay_slots): Likewise.
8636         (pass_delay_slots::gate): Likewise.
8637         * toplev.c (process_options): Likewise.
8639 2015-10-21  Richard Henderson  <rth@redhat.com>
8641         * targhooks.c (default_addr_space_pointer_mode): Remove check
8642         for generic address space.
8643         (default_addr_space_address_mode): Likewise.
8644         (default_addr_space_valid_pointer_mode): Likewise.
8645         (default_addr_space_legitimate_address_p): Likewise.
8646         (default_addr_space_legitimize_address): Likewise.
8647         * target.def (addr_space.pointer_mode): Update documentation
8648         of default behavior.
8649         (addr_space.address_mode): Likewise.
8650         * tm.texi: Update.
8652         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8653         address spaces.
8655 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8657         * builtins.c (fold_builtin_cabs): Delete.
8658         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
8659         * match.pd: Add rules previously handled by fold_builtin_cabs.
8661 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8663         * fold-const.h (fold_strip_sign_ops): Delete.
8664         * fold-const.c (fold_strip_sign_ops): Likewise.
8665         (fold_unary_loc, fold_binary_loc): Remove calls to it.
8666         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8667         (fold_builtin_ccos): Delete.
8668         (fold_builtin_pow): Don't call fold_strip_sign_ops.
8669         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8670         Remove fndecl argument.
8671         (fold_builtin_1): Update calls accordingly.  Handle constant
8672         cos, cosh, ccos and ccosh here.
8674 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8676         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8677         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8678         * common.opt (fssa-backprop): New option.
8679         * fold-const.h (negate_mathfn_p): Declare.
8680         * fold-const.c (negate_mathfn_p): Make public.
8681         * timevar.def (TV_TREE_BACKPROP): New.
8682         * tree-pass.h (make_pass_backprop): Declare.
8683         * passes.def (pass_backprop): Add.
8684         * gimple-ssa-backprop.c: New file.
8686 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8687             Sebastian Pop  <s.pop@samsung.com>
8689         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8690         Do not call create_empty_if_region_on_edge when cond_expr is true.
8691         (translate_isl_ast_node_for): Check whether a guard has been generated.
8693 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8695         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8696         (operator=): Removed.
8697         (dr_info): Make alias_set number the last argument with default
8698         value of invalid_alias_set.
8699         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8700         of dr_info.
8701         (rewrite_reductions_out_of_ssa): Iterate only through the
8702         basic blocks which are inside region.
8703         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8704         * sese.h (struct sese_l): Removed assignment operator.
8705         (split_region_for_bb): Removed dead code.
8707 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
8709         * graphite-poly.h (struct dr_info): Removed conversion constructor.
8710         (struct scop): Renamed scop::region to scop::scop_info
8711         (scop_set_region): Same.
8712         (SCOP_REGION): Removed
8713         (SCOP_CONTEXT): Removed.
8714         (POLY_SCOP_P): Removed.
8715         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8716         Rename scop->region to scop->scop_info.
8717         (add_parameters_to_ivs_params): Same.
8718         (graphite_regenerate_ast_isl): Same.
8719         * graphite-poly.c (new_scop): Same.
8720         (free_scop): Same.
8721         (print_scop_params): Same.
8722         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8723         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8724         (dot_all_scops_1): Rename scop->region to scop->scop_info.
8725         (scop_detection::nb_pbbs_in_loops): Same.
8726         (find_scop_parameters): Same.
8727         (try_generate_gimple_bb): Same.
8728         (gather_bbs::before_dom_children): Same.
8729         (gather_bbs::after_dom_children): Same.
8730         (build_scops): Same.
8731         * graphite-sese-to-poly.c (build_scop_scattering): Same.
8732         (extract_affine_chrec): Same.
8733         (extract_affine): Same.
8734         (set_scop_parameter_dim): Same.
8735         (build_loop_iteration_domains): Same.
8736         (create_pw_aff_from_tree): Same.
8737         (add_param_constraints): Same.
8738         (build_scop_iteration_domain): Same.
8739         (build_scop_drs): Same.
8740         (analyze_drs_in_stmts): Same.
8741         (insert_out_of_ssa_copy_on_edge): Same.
8742         (rewrite_close_phi_out_of_ssa):Same.
8743         (rewrite_reductions_out_of_ssa):Same.
8744         (handle_scalar_deps_crossing_scop_limits):Same.
8745         (rewrite_cross_bb_scalar_deps):Same.
8746         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8747         (build_poly_scop):Same.
8748         (build_alias_set): Use pointer to dr_info.
8749         * graphite.c (print_graphite_scop_statistics):
8750         (graphite_transform_loops):
8751         * sese.h (struct sese_l): Remove conversion constructor.
8753 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
8755         PR middle-end/67966
8756         * tree.c (verify_type): Verify that TYPE_MODE match
8757         between TYPE_CANONICAL and type.
8758         * expr.c (store_expr_with_bounds): Revert my previous change.
8759         * expmed.c (store_bit_field_1): Revert prevoius change.
8760         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8761         to match for all types.
8763 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
8765         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8766         nesting.
8768 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8770         * doc/tm.texi: Regenerated.
8771         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8772         * stor-layout.c (layout_type): Use mode to get vector mask size.
8773         * target.def (get_mask_mode): New.
8774         * targhooks.c (default_get_mask_mode): New.
8775         * targhooks.h (default_get_mask_mode): New.
8776         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8777         for boolean vector.
8778         * tree.c (MAX_BOOL_CACHED_PREC): New.
8779         (nonstandard_boolean_type_cache): New.
8780         (build_nonstandard_boolean_type): New.
8781         (make_vector_type): Vector mask has no canonical type.
8782         (build_truth_vector_type): New.
8783         (build_same_sized_truth_vector_type): New.
8784         (truth_type_for): Support vector masks.
8785         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8786         (build_truth_vector_type): New.
8787         (build_same_sized_truth_vector_type): New.
8788         (build_nonstandard_boolean_type): New.
8789         * tree-cfg.c (verify_gimple_comparison) Require boolean
8790         vector type for vector comparison.
8791         (verify_gimple_assign_ternary): Likewise.
8792         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8793         condition operand.
8794         * tree-vect-stmts.c (vectorizable_condition): Use boolean
8795         vector type for vector comparison.
8796         * tree-vect-generic.c (elem_op_func): Add new operand to hold
8797         vector type.
8798         (do_unop): Adjust to modified function type.
8799         (do_binop): Likewise.
8800         (do_plus_minus): Likewise.
8801         (do_negate); Likewise.
8802         (expand_vector_piecewise): Likewise.
8803         (do_cond): Likewise.
8804         (do_compare): Use comparison instead of condition.
8805         (expand_vector_divmod): Use boolean vector type for comparison.
8806         (expand_vector_operations_1): Skip scalar mask operations.
8808 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
8810         * omp-low.c (simd_clone_create): Set in_other_partition
8811         for created clones.
8813 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
8815         * doc/extend.exp (Local Register Variables): Rewrite.
8817 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
8819         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8820         and x*x in cases where the operands are sign ops.  Extend these
8821         rules to handle copysign as a sign op (including for cos, cosh
8822         and pow, which already treated negate and abs as sign ops).
8824 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
8826         PR target/68018
8827         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8828         for 64-bit MS_ABI targets also when default incoming stack boundary
8829         is overriden.
8831 2015-10-21  Richard Biener  <rguenther@suse.de>
8833         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8834         cond stmts, enhanced and split out from ...
8835         (vn_phi_eq): ... here.
8837 2015-10-21  Richard Biener  <rguenther@suse.de>
8839         PR middle-end/68031
8840         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8841         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8842         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
8843         make sure they are not registered for update.
8845 2015-10-21  Richard Biener  <rguenther@suse.de>
8847         PR tree-optimization/68026
8848         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
8849         unsigned VARYING values.
8851 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
8853         * asan.c (asan_emit_stack_protection): Don't pass local stack to
8854         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
8855         NULL and use local stack than.
8856         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
8857         in addition to __asan_init.
8858         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
8859         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
8860         * asan.h (asan_intercepted_p): Handle new string builtins.
8861         * ubsan.c (ubsan_use_new_style_p): New function.
8862         (ubsan_instrument_float_cast): If location is unknown, assign
8863         input_location to loc. Propagate loc to ubsan_create_data if
8864         ubsan_use_new_style_p returned true.
8866 2015-10-21  Jeff Law  <law@redhat.com>
8868         * Makefile.in (OBJS): Remove sched-vis.c
8869         * sched-vis.c: Removed.  Code moved into...
8870         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
8871         * rtl.h: Remove prototypes for functions now living in print-rtl.c
8872         * print-rtl.h Add prototypes for new functions in print-rtl.c.
8873         * auto-inc-dec.c: Include print-rtl.h
8874         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
8875         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
8877         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
8878         ATTRIBUTE_UNUSED.
8880 2015-10-21  Richard Biener  <rguenther@suse.de>
8881             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8883         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
8884         to match.pd.
8885 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
8886 about signed left shift stronger and clarify the cases when they're
8887 broken.
8888         Move (a * (1 << b)) is (a << b) to match.pd.
8889         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
8890         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
8891         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
8893         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
8894         New simplifier.
8895         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
8896         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
8897         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
8898         : New simplifier.
8899         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
8900         New simplifier.
8901         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
8903 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
8904             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8905             Alan Modra  <amodra@gmail.com>
8907         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
8908         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
8909         (LINK_SPEC): Add %(link_secure_plt).
8910         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
8911         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
8913 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
8914             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8916         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
8917         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8919 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8921         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
8922         New function.
8923         (fusion_load_store): Use it.
8924         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
8925         ldp and stp in VD modes.
8926         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
8927         (store_pair<mode>, VD): Likewise.
8929 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
8931         PR rtl-optimization/67609
8932         * lra-splill.c (lra_final_code_change): Don't remove all
8933         sub-registers.
8935 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8937         * simplify-rtx.c (simplify_binary_operation): If either operand was
8938         a constant pool reference use them if all other simplifications failed.
8940 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8942         * config/aarch64/aarch64.md
8943         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
8944         * config/aarch64/aarch64-simd.md
8945         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
8946         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
8947         (aarch64_fpconst_pow_of_2): New function.
8948         (aarch64_vec_fpconst_pow_of_2): Likewise.
8949         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
8950         prototype.
8951         (aarch64_vec_fpconst_pow_of_2): Likewise.
8952         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
8953         (aarch64_fp_vec_pow2): Likewise.
8955 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
8957         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
8958         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
8959         * config/alpha/alpha.c (alpha_function_arg_advance): Update
8960         ALPHA_ARG_SIZE usage.
8961         (alpha_arg_partial_bytes): Ditto.
8963 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8965         PR target/66810
8966         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
8967         error_mark_node decls.
8969 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8971         PR target/67963
8972         PR target/67985
8973         * common/config/i386/i386-common.c (ix86_handle_option): Remove
8974         OPT_miamcu handling.
8975         * config/i386/i386.c (PTA_NO_80387): New macro.
8976         (processor_alias_table): Add PTA_NO_80387 to lakemont.
8977         (ix86_option_override_internal): Update MASK_80387 from
8978         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
8979         SSE math only if 80387 is supported.  Don't change
8980         MASK_FLOAT_RETURNS.
8981         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
8982         80387 is supported.
8983         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
8984         if TARGET_80387 is true and TARGET_IAMCU is false.
8985         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
8986         is true and TARGET_IAMCU_P is false.
8988 2015-10-20  Richard Biener  <rguenther@suse.de>
8990         PR tree-optimization/68017
8991         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
8993 2015-10-20  Martin Liska  <mliska@suse.cz>
8995         * cgraphclones.c (cgraph_node::create_virtual_clone):
8996         Verify cgraph_node.local.versionable instead of calling
8997         tree_versionable_function_p.
8998         * ipa-cp.c (determine_versionability): Save the information
8999         to ipa_node_params summary.
9000         (ipcp_versionable_function_p): Use it.
9001         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9002         (ipcp_generate_summary): Do not compute cgraph_node
9003         versionability.
9004         * ipa-inline-analysis.c (inline_generate_summary): Compute
9005         versionability for all cgraph nodes.
9006         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9007         ipa_node_params::versionability.
9008         * ipa-prop.h (struct ipa_node_params): Declare it.
9010 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9012         PR other/67868
9013         * varasm.c (assemble_variable): Move special vtv handling to..
9014         (handle_vtv_comdat_sections): .. here. New function.
9015         (output_object_block): Handle vtv sections.
9017 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9019         PR target/66912
9020         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9022 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
9024         * doc/extend.texi: Update documentation WRT inline functions.
9026 2015-10-20  Alan Modra  <amodra@gmail.com>
9028         PR go/66870
9029         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9030         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9031         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9033 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
9035         PR rtl-optimization/66790
9036         * df.h (DF_MIR): New macro.
9037         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9038         (DF_MIR_INFO_BB): New macro.
9039         (DF_MIR_IN, DF_MIR_OUT): New macros.
9040         (struct df_mir_bb_info): New.
9041         (df_mir): New macro.
9042         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9043         declarations.
9044         (df_mir_get_bb_info): New.
9045         * df-problems.c (struct df_mir_problem_data): New.
9046         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9047         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9048         df_mir_confluence_0, df_mir_confluence_n,
9049         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9050         df_mir_bottom_dump, df_mir_verify_solution_start,
9051         df_mir_verify_solution_end): New.
9052         (problem_MIR): New.
9053         (df_mir_add_problem, df_mir_simulate_one_insn): New.
9054         * timevar.def (TV_DF_MIR): New.
9055         * ree.c: Include bitmap.h
9056         (add_removable_extension): Add an INIT_REGS parameter.  Use it
9057         to skip zero-extensions that may get an uninitialized register.
9058         (find_removable_extensions): Compute must-initialized registers
9059         using the MIR dataflow problem. Update the call to
9060         add_removable_extension.
9061         (find_and_remove_re): Call df_mir_add_problem.
9063 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
9065         * common/config/mn10300/mn10300-common.c
9066         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9067         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9069 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
9071         * doc/extend.texi (Explicit Register Variables): Simplify and
9072         avoid unnecessary and confusion abbreviations.  Update cross
9073         references.
9074         doc/implement-c.tex: Update cross reference.
9076 2015-10-19  Jeff Law  <law@redhat.com>
9078         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9079         that create irreducible loops unless the path elimiantes a multiway
9080         branch.
9082 2015-10-19  Richard Biener  <rguenther@suse.de>
9084         PR tree-optimization/67975
9085         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9086         * tree-cfg.c (extract_true_false_controlled_edges): Split out
9087         core worker from ...
9088         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9089         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9090         instead of block number for PHIs with two or one args.
9091         (vn_phi_eq): Compare edge predicates of PHIs that are in different
9092         blocks.
9094 2015-10-19  Richard Biener  <rguenther@suse.de>
9096         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9097         (gimple_stmt_nonnegative_warnv_p): Use it.
9098         * match.pd (CPROJ): New operator list.
9099         (cproj (complex ...)): Move simplifications from ...
9100         * builtins.c (fold_builtin_cproj): ... here.
9102 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9104         * config/i386/i386.c (ix86_expand_vector_move): Use
9105         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9106         alignment.
9108 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9110         * doc/invoke.texi: Replace @optindex with @opindex.
9112 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9114         PR target/67995
9115         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9116         arch= is set,  clear all bits in x_ix86_isa_flags, except for
9117         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9119 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
9121         PR middle-end/68002
9122         * common.opt (fkeep-static-functions): New option.
9123         * doc/invoke.texi: Document it.
9124         * cgraphunit.c (cgraph_node::finalize_function): Use it.
9126 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9128         * sched-int.h (struct autopref_multipass_data_): Remove offset
9129         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
9130         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9131         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
9132         (autopref_rank_data): New function.
9133         (autopref_rank_for_schedule): Use it.
9134         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9136 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
9138         PR other/65800
9139         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9141 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9143         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9144         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
9145         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9146         (STANDARD_STARTFILE_PREFIX_1): New.
9147         (STANDARD_STARTFILE_PREFIX_2): New.
9149 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9151         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9152         (darwin_driver_init): Note a version-min when provided on the c/l.
9153         * config/darwin.h (%darwin_minversion): Remove.
9154         * config/i386/darwin.h: Likewise.
9155         * config/rs6000/darwin.h: Likewise.
9156         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9157         rather than an arbitrary constant.
9159 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9161         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9162         PPC, detect conflicts between -arch and multilib settings.  Detect
9163         and warn about conflicts between multiple -arch definitions.
9165 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9167         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9169 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9171         * lra-constraints.c (add_next_usage_insn): Change argument type
9172         from rtx to rtx_insn *.
9174 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
9176         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9177         for Lakemont.
9179 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
9181         * config/tilepro/gen-mul-tables.cc: Adjust include files.
9182         * config/tilegx/mul-tables.c: Regenerate.
9183         * config/tilepro/mul-tables.c: Regenerate.
9185         * config/tilegx/tilegx-c.c: Adjust include files.
9186         * config/tilegx/tilegx.c: Likewise.
9187         * config/tilepro/tilepro-c.c: Likewise.
9188         * config/tilepro/tilepro.c: Likewise.
9189         * config/aarch64/aarch64-builtins.c: Likewise.
9190         * config/aarch64/aarch64.c: Likewise.
9191         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9192         * config/alpha/alpha.c: Likewise.
9193         * config/arc/arc.c: Likewise.
9194         * config/arm/aarch-common.c: Likewise.
9195         * config/arm/arm-builtins.c: Likewise.
9196         * config/arm/arm-c.c: Likewise.
9197         * config/arm/arm.c: Likewise.
9198         * config/avr/avr-c.c: Likewise.
9199         * config/avr/avr-devices.c: Likewise.
9200         * config/avr/avr-log.c: Likewise.
9201         * config/avr/avr.c: Likewise.
9202         * config/bfin/bfin.c: Likewise.
9203         * config/c6x/c6x.c: Likewise.
9204         * config/cr16/cr16.c: Likewise.
9205         * config/cris/cris.c: Likewise.
9206         * config/darwin-c.c: Likewise.
9207         * config/darwin-driver.c: Likewise.
9208         * config/darwin.c: Likewise.
9209         * config/default-c.c: Likewise.
9210         * config/epiphany/epiphany.c: Likewise.
9211         * config/epiphany/mode-switch-use.c: Likewise.
9212         * config/epiphany/resolve-sw-modes.c: Likewise.
9213         * config/fr30/fr30.c: Likewise.
9214         * config/frv/frv.c: Likewise.
9215         * config/ft32/ft32.c: Likewise.
9216         * config/glibc-c.c: Likewise.
9217         * config/h8300/h8300.c: Likewise.
9218         * config/i386/host-cygwin.c: Likewise.
9219         * config/i386/host-mingw32.c: Likewise.
9220         * config/i386/i386-c.c: Likewise.
9221         * config/i386/i386.c: Likewise.
9222         * config/i386/msformat-c.c: Likewise.
9223         * config/i386/winnt-cxx.c: Likewise.
9224         * config/i386/winnt-stubs.c: Likewise.
9225         * config/i386/winnt.c: Likewise.
9226         * config/ia64/ia64-c.c: Likewise.
9227         * config/ia64/ia64.c: Likewise.
9228         * config/iq2000/iq2000.c: Likewise.
9229         * config/lm32/lm32.c: Likewise.
9230         * config/m32c/m32c-pragma.c: Likewise.
9231         * config/m32c/m32c.c: Likewise.
9232         * config/m32r/m32r.c: Likewise.
9233         * config/mcore/mcore.c: Likewise.
9234         * config/mep/mep-pragma.c: Likewise.
9235         * config/mep/mep.c: Likewise.
9236         * config/microblaze/microblaze-c.c: Likewise.
9237         * config/microblaze/microblaze.c: Likewise.
9238         * config/mips/mips-tables.opt
9239         * config/mips/mips.c: Likewise.
9240         * config/mmix/mmix.c: Likewise.
9241         * config/mn10300/mn10300.c: Likewise.
9242         * config/moxie/moxie.c: Likewise.
9243         * config/msp430/msp430-c.c: Likewise.
9244         * config/msp430/msp430.c: Likewise.
9245         * config/nds32/nds32-cost.c: Likewise.
9246         * config/nds32/nds32-fp-as-gp.c: Likewise.
9247         * config/nds32/nds32-intrinsic.c: Likewise.
9248         * config/nds32/nds32-isr.c: Likewise.
9249         * config/nds32/nds32-md-auxiliary.c: Likewise.
9250         * config/nds32/nds32-memory-manipulation.c: Likewise.
9251         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9252         * config/nds32/nds32-predicates.c: Likewise.
9253         * config/nds32/nds32.c: Likewise.
9254         * config/nios2/nios2.c: Likewise.
9255         * config/nvptx/mkoffload.c: Likewise.
9256         * config/nvptx/nvptx.c: Likewise.
9257         * config/pa/pa.c: Likewise.
9258         * config/pdp11/pdp11.c: Likewise.
9259         * config/rl78/rl78-c.c: Likewise.
9260         * config/rl78/rl78.c: Likewise.
9261         * config/rs6000/host-darwin.c: Likewise.
9262         * config/rs6000/rs6000-c.c: Likewise.
9263         * config/rs6000/rs6000-linux.c: Likewise.
9264         * config/rs6000/rs6000.c: Likewise.
9265         * config/rx/rx.c: Likewise.
9266         * config/s390/s390-c.c: Likewise.
9267         * config/s390/s390.c: Likewise.
9268         * config/sh/sh-c.c: Likewise.
9269         * config/sh/sh-mem.cc: Likewise.
9270         * config/sh/sh.c: Likewise.
9271         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9272         * config/sh/sh_treg_combine.cc: Likewise.
9273         * config/sol2-c.c: Likewise.
9274         * config/sol2-cxx.c: Likewise.
9275         * config/sol2-stubs.c: Likewise.
9276         * config/sol2.c: Likewise.
9277         * config/sparc/sparc-c.c: Likewise.
9278         * config/sparc/sparc.c: Likewise.
9279         * config/spu/spu-c.c: Likewise.
9280         * config/spu/spu.c: Likewise.
9281         * config/stormy16/stormy16.c: Likewise.
9282         * config/v850/v850-c.c: Likewise.
9283         * config/v850/v850.c: Likewise.
9284         * config/vax/vax.c: Likewise.
9285         * config/visium/visium.c: Likewise.
9286         * config/vms/vms-c.c: Likewise.
9287         * config/vms/vms.c: Likewise.
9288         * config/vxworks.c: Likewise.
9289         * config/winnt-c.c: Likewise.
9290         * config/xtensa/xtensa.c: Likewise.
9292 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9294         PR target/67745
9295         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9296         (FUNCTION_BOUNDARY_P): New macro:
9297         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9298         New hook.
9299         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9300         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9301         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9302         * function.c (allocate_struct_function): Call
9303         relayout_function hook.
9304         * passes.c (rest_of_decl_compilation): Likewise.
9306 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9308         PR target/67745
9309         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9310         * config/arm/arm.c (arm_option_override_internal): Call
9311         arm_override_options_after_change_1.
9312         (arm_override_options_after_change): New function.
9313         (arm_override_options_after_change_1): Likewise.
9314         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9316 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9318         Revert:
9319         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9320         empty constructors.
9322 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9324         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9325         argument is an ADDR_EXPR.
9327 2015-10-16  Richard Biener  <rguenther@suse.de>
9329         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9330         and get rid of force_gimple_operand_gsi.
9331         (gimple_fold_builtin_memory_chk): Likewise.
9332         (gimple_fold_builtin_stxcpy_chk): Likewise.
9333         (rewrite_to_defined_overflow): Likewise.
9334         (gimple_convert_to_ptrofftype): New function.
9335         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9337 2015-10-16  Richard Biener  <rguenther@suse.de>
9339         * tree-nested.h (build_addr): Adjust prototype.
9340         * tree-nested.c (build_addr): Remove context argument and use
9341         mark_addressable.
9342         (get_static_chain): Adjust calls to build_addr.
9343         (convert_nl_goto_reference): Likewise.
9344         (convert_tramp_reference_op): Likewise.
9345         (finalize_nesting_tree_1): Likewise.
9346         * value-prof.c (gimple_ic): Likewise.
9347         * gimple-low.c (lower_builtin_setjmp): Likewise.
9348         * tree-parloops.c (take_address_of): Likewise.
9349         (create_call_for_reduction_1): Likewise.
9350         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9351         (gimple_gen_ic_func_profiler): Likewise.
9353 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9355         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9356         empty constructors.
9358 2015-10-16  Michael Collison  <michael.collison@linaro.org>
9359             Andrew Pinski <andrew.pinski@caviumnetworks.com>
9361         * match.pd ((x < y) && (x < z) -> x < min (y,z),
9362         (x > y) and (x > z) -> x > max (y,z))
9364 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
9365             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9367         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9368         (DYNAMIC_LINKER): Renamed to ...
9369         (GLIBC_DYNAMIC_LINKER): This.
9370         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9372 2015-10-15  Marek Polacek  <polacek@redhat.com>
9374         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9375         gimple_call_builtin instead of is_gimple_call.
9377 2015-10-15  Richard Biener  <rguenther@suse.de>
9379         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9381 2015-10-15  Richard Biener  <rguenther@suse.de>
9383         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9384         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9385         * tree-vect-loop.c (get_initial_def_for_induction): Drop
9386         use of force_gimple_operand in favor of gimple_build.
9387         Use vect_get_new_ssa_name.
9388         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9389         (vectorizable_mask_load_store): Likewise.
9390         (vectorizable_call): Likewise.
9391         (vectorizable_store): Likewise.
9392         (vectorizable_load): Likewise.
9393         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9395 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
9397         PR tree-optimization/67945
9398         * tree-pass.h (PROP_gimple_opt_math): New property flag.
9399         * generic-match-head.c (canonicalize_math_p): New function.
9400         * gimple-match-head.c: Include tree-pass.h.
9401         (canonicalize_math_p): New function.
9402         * match.pd: Group math built-in rules into simplifications
9403         and canonicalizations.  Guard the latter with canonicalize_math_p.
9404         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9405         PROP_gimple_opt_math property.
9407 2015-10-15  Marek Polacek  <polacek@redhat.com>
9409         PR tree-optimization/67953
9410         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9412 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
9414         * config.gcc: Recognize "." in architecture base name for AArch64.
9416 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9418         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9419         ROUND_UP macro.
9420         * config/mips/mips.c (mips_setup_incoming_varargs): Use
9421         ROUND_DOWN to calculate off.
9422         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9423         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9424         rounded_size.
9426 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9428         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9430 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
9431             Torvald Riegel  <triegel@redhat.com>
9433         PR target/67281
9434         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9435         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9436         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9437         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9438         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
9439         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9440         trechkpt, treclaim, tsr, ttest): New define_expands.
9441         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9442         __TM_FENCE__ for htm.
9443         * doc/extend.texi: Update documentation for htm builtins.
9445 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
9447         PR target/67967
9448         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9449         REG_CFA_EXPRESSION to aligned SSE stores.
9451 2015-10-14  Jeff Law  <law@redhat.com>
9453         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9454         num_threaded_edges for successful FSM threads too.
9456 2015-10-14  Richard Biener  <rguenther@suse.de>
9458         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9459         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
9460         (vect_get_vec_def_for_operand): Remove unused parameter.
9461         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9462         (vect_create_epilog_for_reduction): Likewise.
9463         (vectorizable_reduction): Likewise.
9464         (vectorizable_live_operation): Likewise.
9465         * tree-vect-patterns.c (type_conversion_p): Likewise.
9466         (vect_recog_vector_vector_shift_pattern): Likewise.
9467         (check_bool_pattern): Likewise.
9468         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9469         (vect_analyze_slp_cost_1): Likewise.
9470         * tree-vect-stmts.c (process_use): Likewise.
9471         (vect_get_vec_def_for_operand): Do not handle reductions.
9472         (vect_get_vec_defs): Adjust.
9473         (vectorizable_mask_load_store): Likewise.
9474         (vectorizable_call): Likewise.
9475         (vectorizable_simd_clone_call): Likewise.
9476         (vect_get_loop_based_defs): Likewise.
9477         (vectorizable_conversion): Likewise.
9478         (vectorizable_assignment): Likewise.
9479         (vectorizable_shift): Likewise.
9480         (vectorizable_operation): Likewise.
9481         (vectorizable_store): Likewise.
9482         (vectorizable_load): Likewise.
9483         (vect_is_simple_cond): Likewise.
9484         (vectorizable_condition): Likewise.
9485         (vect_is_simple_use): Remove unused parameters.
9486         (vect_is_simple_use_1): Adjust and rename.
9488 2015-10-14  Richard Biener  <rguenther@suse.de>
9490         PR tree-optimization/67915
9491         * match.pd: Handle comparisons of addresses of STRING_CSTs.
9492         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9493         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9494         stmt folding in favor of GIMPLE one.
9496 2015-10-14  Marek Polacek  <polacek@redhat.com>
9498         PR tree-optimization/67815
9499         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9500         (reassociate_bb): Call it.
9502 2015-10-14  Richard Biener  <rguenther@suse.de>
9504         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9505         Reset info at start.
9506         (vect_analyze_group_access_1): Add debug print.
9507         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9508         (vect_compute_single_scalar_iteration_cost): ... to this.
9509         (vect_analyze_loop_2): Adjust.
9510         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9511         * tree-vectorizer.h: ... here.
9512         (add_stmt_info_to_vec): Remove.
9513         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9515 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9517         * targhooks.c (default_target_option_pragma_parse): Do not warn if
9518         called on behalf of "#pragma GCC pop_options".
9520 2015-10-14  Tom de Vries  <tom@codesourcery.com>
9522         * cfganal.c (verify_no_unreachable_blocks): New function.
9523         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9524         verify_no_unreachable_blocks.
9525         cfganal.h (verify_no_unreachable_blocks): Declare.
9527 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
9529         * common.opt: Add flag_checking.
9530         * system.h (CHECKING_P): Define.
9532 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9533             Aldy Hernandez  <aldyh@redhat.com>
9534             Ilya Verbin  <ilya.verbin@intel.com>
9536         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9537         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9538         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9539         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9540         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9541         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9542         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9543         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9544         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9545         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9546         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9547         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9548         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9549         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9550         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9551         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9552         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9553         (struct cgraph_simd_clone_arg): Adjust comment.
9554         * coretypes.h (struct gomp_ordered): New forward decl.
9555         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9556         set critical clauses to it.
9557         (gimple_build_omp_ordered): Return gomp_ordered * instead of
9558         gimple *.  Add CLAUSES argument, set ordered clauses to it.
9559         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9560         GIMPLE_OMP_ORDERED.
9561         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9562         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9563         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
9564         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9565         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
9566         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9567         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
9568         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9569         renumber
9570         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9571         (gomp_critical): Add clauses field.
9572         (gomp_ordered): New struct.
9573         (is_a_helper <gomp_ordered *>::test): New inline.
9574         (gimple_build_omp_critical): Add CLAUSES argument.
9575         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
9576         instead of gimple *.
9577         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9578         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9579         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9580         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9581         inline functions.
9582         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9583         (dump_gimple_omp_target): Handle enter data and exit data.
9584         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9585         (dump_gimple_omp_critical): Print clauses.
9586         (dump_gimple_omp_ordered): New function.
9587         (dump_gimple_omp_task): Handle taskloop.
9588         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9589         GIMPLE_OMP_ORDERED.
9590         * gimple-walk.c (walk_gimple_op): Walk clauses on
9591         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9592         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9593         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9594         (struct gimplify_omp_ctx): Add loop_iter_var,
9595         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9596         and target_firstprivatize_array_bases fields.
9597         (delete_omp_context): Release loop_iter_var.
9598         (gimplify_bind_expr): Handle ORT_NONE.
9599         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9600         ORT_COMBINED_TARGET.
9601         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9602         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9603         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
9604         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
9605         ctx->target_map_scalars_firstprivate.
9606         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
9607         data sharing clauses.  For data sharing clause with VLA decl
9608         on omp target/target data don't add firstprivate for the pointer.
9609         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9610         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9611         the addition of ORT_COMBINED_TARGET.
9612         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
9613         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
9614         pointers as zero length array sections and
9615         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9616         data sharing.
9617         (omp_check_private): Handle omp_member_access_dummy_var vars.
9618         (find_decl_expr): New function.
9619         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
9620         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9621         Handle OMP_CLAUSE_GANG separately.  Handle
9622         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9623         clauses.  Diagnose linear clause on combined
9624         distribute {, parallel for} simd construct, unless it is the loop
9625         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9626         Handle map clauses with COMPONENT_REF.  Initialize
9627         ctx->target_map_scalars_firstprivate,
9628         ctx->target_firstprivatize_array_bases and
9629         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
9630         linear clause even to target region if combined.  Remove
9631         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9632         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
9633         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9634         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
9635         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9636         For linear clause on worksharing loop combined with parallel add
9637         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
9638         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
9639         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
9640         taskloop if needed.
9641         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9642         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9643         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9644         GOMP_MAP_POINTER.
9645         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
9646         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9647         in target body.  Handle removal of struct mapping if struct is not
9648         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
9649         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
9650         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
9651         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9652         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9653         clause appear together.  Handle
9654         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
9655         clause if it has map-type-modifier always.  Handle
9656         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9657         clauses.
9658         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9659         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9660         callers.
9661         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
9662         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
9663         iterators in doacross loops.
9664         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9665         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
9666         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
9667         for the addition of ORT_COMBINED_TARGET.
9668         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9669         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
9670         and OMP_TARGET_EXIT_DATA.
9671         (gimplify_omp_ordered): New function.
9672         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9673         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
9674         Gimplify clauses on OMP_CRITICAL.
9675         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9676         expand_GOMP_SIMD_ORDERED_END): New functions.
9677         * internal-fn.def (GOMP_SIMD_ORDERED_START,
9678         GOMP_SIMD_ORDERED_END): New internal functions.
9679         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9680         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9681         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9682         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9683         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9684         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9685         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9686         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9687         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9688         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9689         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9690         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9691         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9692         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9693         adjust type.
9694         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9695         GOMP_target_data_41, adjust type.
9696         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9697         GOMP_target_update_41, adjust type.
9698         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9699         field.
9700         (struct omp_for_data): Add ordered and simd_schedule fields.
9701         (omp_member_access_dummy_var, unshare_and_remap_1,
9702         unshare_and_remap, is_taskloop_ctx): New functions.
9703         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9704         (extract_omp_for_data): Handle taskloops and doacross loops
9705         and simd schedule modifier.
9706         (omp_adjust_chunk_size): New function.
9707         (get_ws_args_for): Use it.
9708         (lookup_sfield): Change first argument to splay_tree_key,
9709         add overload with first argument tree.
9710         (maybe_lookup_field): Likewise.
9711         (use_pointer_for_field): Handle omp_member_access_dummy_var.
9712         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9713         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9714         (build_outer_var_ref): Add LASTPRIVATE argument, handle
9715         taskloops and omp_member_access_dummy_var vars.
9716         (build_sender_ref): Change first argument to splay_tree_key,
9717         add overload with first argument tree.
9718         (install_var_field): For mask & 8 use &DECL_UID as key instead
9719         of the tree itself.
9720         (fixup_child_record_type): Const qualify *.omp_data_i.
9721         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9722         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9723         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9724         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9725         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9726         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9727         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9728         kinds.
9729         (add_taskreg_looptemp_clauses): New function.
9730         (scan_omp_parallel): Use it.
9731         (scan_omp_task): Likewise.
9732         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9733         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9734         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9735         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
9736         sandwiched taskloop constructs.  Type check
9737         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
9738         region.  Diagnose depend(source) or depend(sink:...) on
9739         target constructs or task/taskloop.
9740         (handle_simd_reference): Use get_name.
9741         (lower_rec_input_clauses): Likewise.  Ignore all
9742         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9743         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
9744         before passing it to omp_clause_{default,copy}_ctor.  Handle
9745         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
9746         lastprivate_firstprivate flag for linear that needs copyin and
9747         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9748         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9749         on taskloop lookup decl in outer context.  Pass true to
9750         build_outer_var_ref lastprivate argument.  Handle
9751         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9752         outside of outer taskloop for.
9753         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9754         OMP_CLAUSE_DECL.
9755         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9756         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
9757         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
9758         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
9759         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9760         abstract origin.  Handle omp_member_access_dummy_var vars.
9761         (expand_parallel_call): Use expand_omp_build_assign.
9762         (expand_task_call): Handle taskloop construct expansion.  Add
9763         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
9764         integers.  Add priority argument to GOMP_task* calls.  Or in
9765         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9766         GOMP_task call.
9767         (expand_omp_build_assign): Add prototype.  Add AFTER
9768         argument, if true emit statements after *GSI_P and continue linking.
9769         (expand_omp_taskreg): Adjust expand_task_call caller.
9770         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9771         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9772         zero_iter2_bb and first_zero_iter2 arguments, handle computation
9773         of counts even for ordered loops.
9774         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9775         (expand_omp_ordered_source, expand_omp_ordered_sink,
9776         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9777         functions.
9778         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
9779         clauses on worksharing loop.  Handle DOACROSS loop expansion.
9780         (expand_omp_for_static_nochunk): Handle linear clauses on
9781         worksharing loop.  Adjust expand_omp_for_init_counts
9782         callers.
9783         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
9784         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
9785         expand_omp_for_init_counts callers.
9786         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9787         functions.
9788         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9789         Handle doacross loops.
9790         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9791         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
9792         GOMP_target_{41,update_41,enter_exit_data} libcalls.
9793         (expand_omp): Don't expand ordered depend constructs here, record
9794         ord_stmt instead for later expand_omp_for_generic.
9795         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9796         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9797         clause as stand-alone directive.
9798         (lower_omp_ordered_clauses): New function.
9799         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9800         don't lower anything.
9801         (lower_omp_for_lastprivate): Use last _looptemp_ clause
9802         on taskloop for comparison.
9803         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
9804         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9805         expansion for linear adjustments.
9806         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9807         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9808         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
9809         to tree * pointing to the stmt's clauses.
9810         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9811         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9812         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9813         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9814         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9815         clauses.  Always use short kind and 8-bit align shift.
9816         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9817         (struct lower_omp_regimplify_operands_data): New type.
9818         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9819         New functions.
9820         (lower_omp_1): Use lower_omp_regimplify_operands instead of
9821         gimple_regimplify_operands.
9822         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9823         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
9824         clause as stand-alone directive.
9825         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9826         (simd_clone_mangle): Mangle the various linear kinds
9827         per the new ABI.
9828         (simd_clone_adjust_argument_types): Handle
9829         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9830         (simd_clone_init_simd_arrays): Don't do anything for uval.
9831         (simd_clone_adjust): Handle
9832         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9833         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9834         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9835         * omp-low.h (omp_member_access_dummy_var): New prototype.
9836         * passes.def (pass_simduid_cleanup): Schedule another copy of the
9837         pass after all optimizations.
9838         * tree.c (omp_clause_code_name): Add entries for
9839         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9840         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9841         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
9842         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
9843         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
9844         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
9845         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9846         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
9847         clauses.
9848         * tree-core.h (enum omp_clause_linear_kind): New.
9849         (struct tree_omp_clause): Change type of map_kind
9850         from unsigned char to unsigned int.  Add subcode.if_modifier
9851         and subcode.linear_kind fields.
9852         (enum omp_clause_code): Add
9853         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9854         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9855         (OMP_CLAUSE_REDUCTION): Document
9856         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9857         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
9858         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
9859         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
9860         operand.
9861         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
9862         operand.
9863         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
9864         codes.
9865         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
9866         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
9867         char.
9868         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
9869         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
9870         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
9871         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
9872         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
9873         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
9874         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
9875         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
9876         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
9877         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
9878         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
9879         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
9880         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
9881         * tree-inline.c (remap_gimple_stmt): Handle clauses on
9882         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
9883         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
9884         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
9885         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9886         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9887         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
9888         (convert_local_omp_clauses): Likewise.
9889         * tree-pretty-print.c (dump_omp_clause): Handle
9890         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
9891         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
9892         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
9893         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
9894         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
9895         GOMP_MAP_FORCE_DEALLOC.  Handle
9896         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
9897         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
9898         and clauses on OMP_ORDERED and OMP_CRITICAL.
9899         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
9900         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
9901         (vectorize_loops): Adjust comments.
9902         (pass_simduid_cleanup::execute): Likewise.
9903         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9904         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
9905         * wide-int.h (wi::gcd): New.
9907 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9909         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
9910         (ix86_function_arg_advance): Ditto.
9911         (ix86_function_arg): Ditto.
9912         (ix86_gimplify_va_arg): Ditto.
9913         (ix86_class_max_nregs): Ditto.
9914         (inline_memory_move_cost): Ditto.
9915         (ix86_set_reg_reg_cost): Ditto.
9916         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
9918 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
9920         PR middle-end/67912
9921         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
9923 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
9925         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
9926         ROUND_UP macro and UNITS_PER_WORD * 2.
9927         * config/sparc/sparc.c (sparc_compute_frame_size):
9928         Use ROUND_UP and ROUND_DOWN macros where applicable.
9929         (function_arg_record_value, function_arg_record_value_1)
9930         (function_arg_record_value_1): Ditto.
9931         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
9932         alignment to double-word.
9933         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
9934         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
9935         rounded_size.
9937 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
9939         * rtl.h (print_insn): Fix prototype.
9941 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9943         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
9944         -1.  Add assert that returned entry matches phi argument.
9945         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
9946         free_stmt_vec_info_vec ...
9947         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
9948         with -1.
9950 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
9952         PR tree-optimization/67909, 67947
9953         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
9954         really skip the inner loop.
9956 2015-10-13  Jeff Law  <law@redhat.com>
9958         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9959         Allow single block jump threading paths.
9961 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9963         PR tree-optimization/67476
9964         * doc/invoke.texi (@item parloops-schedule): New item.
9965         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
9966         * tree-parloops.c: Include params-enum.h.
9967         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
9969 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9971         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
9972         * params-enum.h: New file.
9973         * opts.c (handle_param): Handle case that param arg is a string.
9974         * params-list.h: Handle DEFPARAMENUM5 in params.def.
9975         * params.c (find_param): New function, factored out of ...
9976         (set_param_value): ... here.
9977         (param_string_value_p): New function.
9978         * params.h (struct param_info): Add value_names field.
9979         (find_param, param_string_value_p): Declare.
9981 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9983         PR tree-optimization/67476
9984         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
9986 2015-10-13  Richard Biener  <rguenther@suse.de>
9988         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
9989         the data dependence vector.
9990         (vect_peeling_hash_insert): Get the peeling hash table as argument.
9991         (vect_peeling_hash_get_lowest_cost): Likewise.
9992         (vect_enhance_data_refs_alignment): Adjust.
9993         (struct _vect_peel_info, struct _vect_peel_extended_info,
9994         struct peel_info_hasher): Move from ...
9995         * tree-vectorizer.h: ... here.
9996         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
9997         (LOOP_VINFO_PEELING_HTAB): Likewise.
9998         (struct _loop_vec_info): Remove min_profitable_iters and
9999         peeling_htab members.
10000         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10001         here.
10002         (destroy_loop_vec_info): Adjust.
10003         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10004         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10005         to estimate alias versioning cost.
10006         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10008 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
10010         * real.h (real_isinteger): Declare.
10011         * real.c (real_isinteger): New function.
10012         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10013         if y is an even integer.
10015 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10017         revert:
10018         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10019         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10020         counts when these are more informative.
10022 2015-10-12  Jeff Law  <law@redhat.com>
10024         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10025         (fsm_find_control_stmt_paths): Change name of first argument to
10026         more accurately relfect what it really is.  Handle simplification
10027         of GIMPLE_COND after finding a thread path for NAME.
10028         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10029         nontrivial conditions to be handled by FSM threader.
10030         (thread_through_normal_block): Extract the name to looup via
10031         FSM threader from COND_EXPR.
10033         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10034         restriction that traced SSA_NAME is a user variable.
10036 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10038         PR tree-optimization/67476
10039         * omp-low.c (expand_omp_for_generic): Add missing phis.
10041 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10043         PR tree-optimization/67476
10044         * omp-low.c (expand_omp_for_generic): Handle simple latch.
10046 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
10048         * config/aarch64/aarch64-simd-builtins.def: Update builtins
10049         tables: add tbl3 and tbx4.
10050         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10051         (aarch64_tbx4v8qi): New.
10052         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10053         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10054         Rewrite using builtin functions.
10055         * config/aarch64/iterators.md (UNSPEC_TBX): New.
10057 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10059         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10060         ROUND_UP macro.
10061         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10062         Use ROUND_UP and ROUND_DOWN macros where applicable.
10063         (rs6000_darwin64_record_arg_flush): Ditto.
10064         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10065         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10066         rounded_size.
10068 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10070         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10071         (AARCH64_ROUND_DOWN): Ditto.
10072         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10074 2015-10-12  Richard Biener  <rguenther@suse.de>
10076         PR ipa/67783
10077         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10078         code that analyzes IVs on each stmt but in a cheaper way avoiding
10079         quadratic behavior.
10081 2015-10-12  Nick Clifton  <nickc@redhat.com>
10083         * config/msp430/msp430.c (msp430_mcu_names): Rename to
10084         msp430_mcu_data, add fields for ISA and hardware multiply
10085         support.  Import latest data from the devices.csv file.
10086         (msp430_override_option): Use the data from the new array.
10087         (msp430_use_f5_series_hwmult): Likewise.
10088         (use_32bit_hwmult): Likewise.
10089         (msp430_no_hwmult): Likewise.
10090         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10091         MCU names.
10092         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10093         not recognised then no hardware multiply support is assumed and
10094         that only the MSP430 ISA is allowed.
10096 2015-10-12  Richard Biener  <rguenther@suse.de>
10098         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10099         related code ...
10100         (vect_analyze_loop_2): ... here.
10102 2015-10-11  Jason Merrill  <jason@redhat.com>
10104         PR c++/67557
10105         * expr.c (store_field): Call store_constructor directly when
10106         storing a CONSTRUCTOR into a target smaller than its type.
10107         Guard against unsafe bitwise copy.
10109 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10111         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10112         counts when these are more informative.
10114 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10116         * tree-profile.c (tree_profiling): Do not clear
10117         pure/const when not instrumenting.
10118         (pass tree_profile): Add dump of symtab.
10120 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10122         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10123         addresses.
10124         (fold_addr_of_array_ref_difference): Likewise.
10126 2015-10-11  Jeff Law  <law@redhat.com>
10128         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10129         tree-ssa-threadbackward.c.
10130         (fsm_find_control_statement_thread_paths): Likewise.
10131         (thread_through_normal_block): Break out FSM bits and move them
10132         into a new function in tree-ssa-threadbackward.c.  Call new function
10133         instead.
10134         Minimize header file usage.
10135         * tree-ssa-threadbackward.h: New file.
10136         * tree-ssa-threadbackward.c: Likewise.
10137         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10139 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
10141         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10143 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
10145         PR rtl-optimization/67864
10146         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10147         fallthrough edges for conditional jumps.  Don't sort candidate
10148         edges if not optimizing for speed.
10150 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10152         * defaults.h (REVERSE_CONDITION): New default definition.
10153         * jump.c (reversed_comparison_code_parts): Adjust.
10155 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10157         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10158         check HARD_FRAME_POINTER_IS_ARG_POINTER.
10160 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10162         * defaults.h (FRAME_ADDR_RTX): New default definition.
10163         * builtins.c (expand_builtin_return_addr): Adjust.
10165 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10167         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10168         * builtins.c (expand_builtin_return_addr): Adjust.
10170 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10172         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10173         * builtins.c (expand_builtin_return_addr): Adjust.
10174         * doc/tm.texi: Likewise.
10175         * doc/tm.texi.in: Likewise.
10176         * except.c (expand_builtin_unwind_init): Likewise.
10178 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10180         * builtins.c (expand_builtin_return_addr): Adjust.
10181         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10183 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10185         * tree.c (type_with_interoperable_signedness): New.
10186         (gimple_canonical_types_compatible_p): Use it.
10187         * tree.h (type_with_interoperable_signedness): Declare
10189 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10191         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10192         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10193         when OEP_ADDRESS_OF is se.
10195 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10196             Sebastian Pop  <s.pop@samsung.com>
10198         * graphite-dependences.c (scop_get_dependences): Add dump of the
10199         data dependence graph.
10200         * graphite-poly.c (print_isl_union_map): New.
10201         (debug_isl_union_map): New.
10202         * graphite-poly.h (print_isl_union_map): Declare.
10203         (debug_isl_union_map): Declare.
10205 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10206             Sebastian Pop  <s.pop@samsung.com>
10208         * graphite-poly.c (print_iteration_domain): Remove verbosity.
10209         Remove OpenScop formatting.
10210         (print_iteration_domains): Same.
10211         (debug_iteration_domain): Same.
10212         (debug_iteration_domains): Same.
10213         (print_pdr): Same.
10214         (debug_pdr): Same.
10215         (dump_gbb_cases): Same.
10216         (dump_gbb_conditions): Same.
10217         (print_pdrs): Same.
10218         (debug_pdrs): Same.
10219         (print_pbb_body): Same.
10220         (print_pbb): Same.
10221         (print_scop_params): Same.
10222         (print_scop_context): Same.
10223         (print_scop): Same.
10224         (debug_pbb_domain): Same.
10225         (debug_pbb): Same.
10226         (debug_scop_context): Same.
10227         (debug_scop): Same.
10228         (debug_scop_params): Same.
10229         * graphite-poly.h: Same.
10230         * graphite.c (graphite_transform_loops): Same.
10232 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10234         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10235         call that isn't needed.
10237 2015-10-09  Jeff Law  <law@redhat.com>
10239         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10240         rather than moving each name to the freelist individually.
10242 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
10244         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10245         * frame-header-opt.c: New file.
10246         * config/mips/mips-proto.h (mips_register_frame_header_opt):
10247         Add prototype.
10248         * config/mips/mips.c (mips_compute_frame_info): Check
10249         optimize_call_stack flag.
10250         (mips_option_override): Register new frame_header_opt pass.
10251         (mips_frame_info, mips_int_mask, mips_shadow_set,
10252         machine_function): Move these types to...
10253         * config/mips/mips.h: here.
10254         (machine_function): Add does_not_use_frame_header and
10255         optimize_call_stack fields.
10256         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10257         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10258         Document new flags.
10259         * config/mips/mips.opt (mframe-header-opt): Add new option.
10261 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
10263         * config/i386/i386.c
10264         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10265         ROUND_DOWN where applicable.
10267 2015-10-09  Jeff Law  <law@redhat.com>
10269         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10270         correct statement.
10272 2015-10-09  Renlin Li  <renlin.li@arm.com>
10274         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10275         operands[0] and operands[2].
10276         (neon_vtrn<mode>_insn): Likewise.
10277         (neon_vzip<mode>_insn): Likewise.
10279 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10281         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10282         ((X & C2) << C1): Expand to...
10283         (X {&,^,|} C2 << C1): ...This.
10284         ((X & C2) >> C1): Expand to...
10285         (X {&,^,|} C2 >> C1): ...This.
10287 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
10289         PR target/67895
10290         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10291         Adjust embedded rounding/SAE specifier position.
10292         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10293         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10294         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10295         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10296         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10297         Likewise.
10298         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10300 2015-10-09  Martin Jambor  <mjambor@suse.cz>
10302         tree-optimization/67794
10303         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10304         between types of state,ents but accept original definitions as a
10305         parameter.
10306         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10307         iterate over definitions.
10309 2015-10-09  James Norris  <jnorris@codesourcery.com>
10311         * config/rs6000/rs6000.c (rs6000_offload_options): New.
10312         (TARGET_OFFLOAD_OPTIONS): New.
10314 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
10316         PR middle-end/67891
10317         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10319         PR middle-end/67766
10320         * function.c (expand_function_end): Move return value
10321         promotion past the handling of PARALLELs and CONCATs.
10323         PR rtl-optimization/67828
10324         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10325         (tree_may_unswitch_on): Don't unswitch on expressions
10326         involving undefined values.
10328 2015-10-09  Richard Biener  <rguenther@suse.de>
10330         * genmatch.c (print_operand): Fix formatting.
10331         (dt_node::append_simplify): Warn for multiple simplifiers
10332         that match the same pattern.
10333         * match.pd (log (exp @0)): Remove duplicates.
10335 2015-10-09  Richard Biener  <rguenth@suse.de>
10337         PR target/67366
10338         * gimple-fold.c (optabs-query.h): Include
10339         (gimple_fold_builtin_memory_op): Allow unaligned stores
10340         when movmisalign_optabs are available.
10342 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10344         PR target/67366
10345         * config/arm/arm.md (movmisalign<mode>): New.
10346         * config/arm/iterators.md (HSI): New.
10348 2015-10-09  Richard Biener  <rguenther@suse.de>
10350         PR tree-optimization/67891
10351         * gimple-match.h (gimple_simplified_result_is_gimple_val):
10352         New helper.
10353         (gimple_resimplify1): Declare.
10354         (gimple_resimplify2): Likewise.
10355         (gimple_resimplify3): Likewise.
10356         * gimple-match-head.c (gimple_resimplify1): Export.
10357         (gimple_resimplify2): Likewise.
10358         (gimple_resimplify3): Likewise.
10359         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10360         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10361         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10362         to avoid creating stmts without VN info.
10364 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
10366         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10367         of availability.
10369 2015-10-08  Jeff Law  <law@redhat.com>
10371         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10372         and release_ssa_name in two places.
10373         (gimple_stringop_fixed_value): Similarly.
10375         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10376         release_defs.
10378         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10379         unlink_stmt_vdef and release_ssa_name_fn.
10381         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10382         release_defs.
10384 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
10386         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10387         SSE register save area to 16 bytes only if the incoming stack
10388         boundary is no less than 16 bytes.
10390 2015-10-08  Jeff Law  <law@redhat.com>
10392         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10393         release_ssa_name.  Fix typo in comment.
10395 2015-10-08  Nathan Sidwell  <nathan@acm.org>
10397         * config/nvptx/nvptx.h (struct machine_function): Add comment.
10398         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10399         may return pointer as well as in memory.
10400         (nvptx_output_return): Likewise.
10402 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10404         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10405         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10406         * match.pd: Add rules previously handled by fold_builtin_sqrt
10407         and fold_builtin_cbrt.
10409 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
10411         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10412         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10413         * fold-const.h (tree_unary_nonnegative_warnv_p)
10414         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10415         (tree_expr_nonnegative_warnv_p): Add depth parameters.
10416         * fold-const.c: Include gimple-fold.h and params.h.
10417         (tree_ssa_name_nonnegative_warnv_p): New function.
10418         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10419         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10420         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10421         Add a depth parameter and increment it for recursive calls to
10422         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
10423         to handle SSA names.
10424         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10425         (gimple_stmt_nonnegative_warnv_p): Declare.
10426         * tree-vrp.c (remove_range_assertions): Remove assert that condition
10427         cannot be proven false.
10428         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10429         (gimple_stmt_nonnegative_warnv_p): Move to...
10430         * gimple-fold.c: ...here.  Add depth parameters and pass them
10431         down to the tree routines.  Accept statements that aren't
10432         assignments or calls but just return false for them.
10433         (gimple_val_nonnegative_real_p): Delete.
10434         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10435         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10436         Check HONOR_NANs first.
10438 2015-10-08  Martin Jambor  <mjambor@suse.cz>
10440         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
10441         unnecessary MIN.
10443 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10445         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10446         in the tail of outer-loop.
10448 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
10450         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10451         return UI_NONE.
10453 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
10455         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10456         "cfghooks.h", add prototypes for introduced new functions.
10457         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10458         checks on ability of loop unswitching to tree_unswitch_single_loop;
10459         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10460         on innermost loop check.
10461         (tree_unswitch_single_loop): Add all required checks on ability of
10462         loop unswitching under zero recursive level guard.
10463         (tree_unswitch_outer_loop): New function.
10464         (find_loop_guard): Likewise.
10465         (empty_bb_without_guard_p): Likewise.
10466         (used_outside_loop_p): Likewise.
10467         (get_vop_from_header): Likewise.
10468         (hoist_guard): Likewise.
10469         (check_exit_phi): Likewise.
10471 2015-10-08  Marek Polacek  <polacek@redhat.com>
10473         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10474         ops element.
10476 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10478         PR c/65345
10479         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10480         create_tmp_var_raw instead of create_tmp_var.
10482 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
10484         * expr.c (store_expr_with_bounds): Handle aggregate moves from
10485         BLKmode.
10486         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10487         to define gimple type system; compare aggregates only by size.
10489 2015-10-07  Jeff Law  <law@redhat.com>
10491         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10492         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10493         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
10494         unnecessarily.
10496 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10497             Sebastian Pop  <s.pop@samsung.com>
10499         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10500         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10501         (generate_isl_schedule): Same.
10502         * graphite-optimize-isl.c (scop_get_domains): Same.
10503         (apply_schedule_map_to_scop): Same.
10504         * graphite-poly.c (print_iteration_domains): Same.
10505         (remove_gbbs_in_scop): Same.
10506         (new_scop): Same.
10507         (free_scop): Same.
10508         (print_scop): Same.
10509         * graphite-poly.h (struct scop): Rename bbs to pbbs.
10510         (SCOP_BBS): Remove.
10511         * graphite-scop-detection.c (compare_bb_depths): Remove.
10512         (graphite_sort_dominated_info): Remove.
10513         (try_generate_gimple_bb): Move out of scop_detection.
10514         (all_non_dominated_preds_marked_p): Remove.
10515         (build_scop_bbs_1): Remove.
10516         (build_scop_bbs): Remove.
10517         (nb_pbbs_in_loops): Do not use SCOP_BBS.
10518         (find_scop_parameters): Same.
10519         (sese_dom_walker): Rename gather_bbs.
10520         (before_dom_children): Call try_generate_gimple_bb and collect gbb
10521         and pbb.
10522         (build_scops): Call gather_bbs.
10523         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10524         (add_conditions_to_constraints): Same.
10525         (build_scop_iteration_domain): Same.
10526         (build_scop_drs): Same.
10527         (new_pbb_from_pbb): Same.
10528         * sese.c (new_sese_info): Create bbs.
10529         * sese.h (struct sese_info_t): Add bbs.
10531 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
10533         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10534         encoding in 64-bit mode.
10536 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
10538         PR target/66697
10539         * config/i386/i386.c (ix86_option_override_internal): Always use
10540         8-byte minimum stack boundary in 64-bit mode.
10541         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10542         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10543         Add a REG_CFA_EXPRESSION note if needed.
10544         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10545         (ix86_handle_force_align_arg_pointer_attribute): New.
10546         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10547         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10548         with ix86_handle_force_align_arg_pointer_attribute.
10549         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10551 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10552             Sebastian Pop  <s.pop@samsung.com>
10554         * graphite-scop-detection.c (parameter_index_in_region): Remove
10555         use of SESE_ADD_PARAMS.
10556         (find_scop_parameters): Same.
10557         * sese.c (new_sese_info): Same.
10558         * sese.h (struct sese_info_t): Remove add_params.
10559         (SESE_ADD_PARAMS): Remove.
10561 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
10562             Sebastian Pop  <s.pop@samsung.com>
10564         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10565         an sese_info_p.
10566         (copy_def): Same.
10567         (copy_internal_parameters): Same.
10568         (translate_isl_ast_to_gimple): Use an sese_l.
10569         (build_iv_mapping): Same.
10570         * graphite-poly.c (new_sese): Rename new_sese_info.
10571         (free_sese): Rename free_sese_info.
10572         * graphite-poly.h (struct scop): Use an sese_info_p.
10573         (scop_set_region): Same.
10574         * graphite-scop-detection.c (struct sese_l): Moved...
10575         (get_entry_bb): Moved...
10576         (get_exit_bb): Moved...
10577         (parameter_index_in_region_1): Use an sese_info_p.
10578         (parameter_index_in_region): Same.
10579         (scan_tree_for_params): Same.
10580         (find_params_in_bb): Same.
10581         (sese_dom_walker): Use an sese_l.
10582         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10583         (reduction_phi_p): Same.
10584         (parameter_index_in_region_1): Use an sese_info_p.
10585         (propagate_expr_outside_region): Use an sese_l.
10586         * graphite.c: Replace uses of SCOP_REGION.
10587         * sese.c (sese_record_loop): Use an sese_info_p.
10588         (build_sese_loop_nests): Same.
10589         (sese_build_liveouts_use): Same.
10590         (sese_build_liveouts_bb): Same.
10591         (sese_build_liveouts_bb): Same.
10592         (sese_bad_liveouts_use): Same.
10593         (sese_reset_debug_liveouts_bb): Same.
10594         (sese_build_liveouts): Same.
10595         (new_sese): Renamed new_sese_info.
10596         (free_sese): Renamed free_sese_info.
10597         (set_rename): Use an sese_info_p.
10598         (graphite_copy_stmts_from_block): Same.
10599         (copy_bb_and_scalar_dependences): Same.
10600         (outermost_loop_in_sese_1): Use an sese_l.
10601         (outermost_loop_in_sese): Same.
10602         (if_region_set_false_region): Use an sese_info_p.
10603         (move_sese_in_condition): Same.
10604         (scalar_evolution_in_region): Use an sese_l.
10605         * sese.h (struct sese_l): ... here.
10606         (SESE_ENTRY): Remove.
10607         (SESE_ENTRY_BB): Remove.
10608         (SESE_EXIT): Remove.
10609         (SESE_EXIT_BB): Remove.
10610         (sese_contains_loop): Use an sese_info_p.
10611         (sese_nb_params): Same.
10612         (bb_in_sese_p): Use an sese_l.
10613         (stmt_in_sese_p): Same.
10614         (defined_in_sese_p): Same.
10615         (loop_in_sese_p): Same.
10616         (sese_loop_depth): Same.
10617         (struct ifsese_s): Use an sese_info_p.
10618         (gbb_loop_at_index): Use an sese_l.
10619         (nb_common_loops): Same.
10620         (scev_analyzable_p): Same.
10622 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10624         * config/i386/i386.c (ix86_conditional_register_usage): Use
10625         CALL_USED_REGISTERS_MASK.
10626         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10628 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10630         PR bootstrap/67385
10631         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10632         * configure: Regenerated.
10634 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
10636         PR target/67850
10637         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10638         (ix86_set_current_function): This.
10639         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10641 2015-10-07  Richard Biener  <rguenther@suse.de>
10643         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10644         (vinfo_for_stmt): Adjust.
10645         (set_vinfo_for_stmt): Likewise.
10646         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10647         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10648         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10649         of inner loop.
10650         (vect_analyze_loop_1): Remove.
10651         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10652         inner loop when vectorizing an outer loop by splitting out from ...
10653         (vect_analyze_loop_form): ... here.
10655 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10657         PR c/65345
10658         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10659         Use create_tmp_var_raw instead of create_tmp_var.
10661 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
10663         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10664         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10665         * real.c (CACHED_FRACTION): New helper macro.
10666         (dconst_third_ptr): Use it.
10667         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10668         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10669         dconst_sixth.
10670         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10672 2015-10-06  Jeff Law  <law@redhat.com>
10674         PR tree-optimization/67816
10675         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10676         from remove_jump_threads_starting_at.  Accept an edge rather than
10677         a basic block.
10678         * tree-ssa-threadupdate.c (removed_edges): New hash table.
10679         (remove_jump_threads_including): Note edges that get removed from
10680         the CFG for later pruning of jump threading paths including them.
10681         (thread_through_all_blocks): Remove paths which include edges that
10682         have been removed.
10683         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10684         on each outgoing edges when optimizing away a control statement.
10686 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10688         * reorg.c (emit_delay_sequence): Store list of delay slot insns
10689         in a vector instead of rtx_insn_list.
10690         (add_to_delay_list): Likewise.
10691         (delete_from_delay_slot): Likewise.
10692         (optimize_skip): Likewise.
10693         (redirect_with_delay_list_safe_p): Likewise.
10694         (check_annul_list_true_false): Likewise.
10695         (steal_delay_list_from_target): Likewise.
10696         (steal_delay_list_from_fallthrough): Likewise.
10697         (redundant_insn): Likewise.
10698         (fill_simple_delay_slots): Likewise.
10699         (fill_slots_from_thread): Likewise.
10700         (fill_eager_delay_slots): Likewise.
10701         (relax_delay_slots): Likewise.
10703 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
10705         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10706         For -mgpopt=local, also exclude unintialized common symbols.
10707         * doc/invoke.texi (Nios II Options): Document the change.
10709 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10711         * config/aarch64/iterators.md (vwcore): Add missing cases for
10712          V4HF/V8HF modes.
10714 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10715             Sebastian Pop  <s.pop@samsung.com>
10717         * graphite-poly.c (new_scop): Initialize drs.
10718         * graphite-poly.h (struct dr_info): New.
10719         (struct scop): Add drs.
10720         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10721         (pdr_add_memory_accesses): Same.
10722         (build_poly_dr): Same.
10723         (build_alias_set): Same.
10724         (build_scop_drs): Same.
10725         (build_pbb_drs): Remove.
10726         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10727         * tree-data-ref.h (data_reference): Remove alias_set.
10729 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10730             Sebastian Pop  <s.pop@samsung.com>
10732         * graphite-poly.c (free_data_refs_aux): Remove.
10733         (free_gimple_poly_bb): Do not call free_data_refs_aux.
10734         * graphite-poly.h (struct base_alias_pair): Remove.
10735         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10736         base_alias_pair and dr->aux.
10737         (build_alias_set): Same.
10738         * tree-data-ref.c (create_data_ref): Initialize alias_set.
10739         * tree-data-ref.h (data_reference): Add alias_set.
10741 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
10742             Sebastian Pop  <s.pop@samsung.com>
10744         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10745         Do not set PDR_BASE_OBJECT_SET.
10746         * graphite-poly.h (poly_dr): Same.
10747         (PDR_BASE_OBJECT_SET): Remove.
10748         (new_poly_dr): Update decl.
10749         * graphite-sese-to-poly.c (build_poly_dr): Update call to
10750         new_poly_dr.
10751         (write_alias_graph_to_ascii_dimacs): Remove.
10752         (write_alias_graph_to_ascii_dot): Remove.
10753         (write_alias_graph_to_ascii_ecc): Remove.
10754         (dr_same_base_object_p): Remove.
10755         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
10756         code.
10757         (build_base_obj_set_for_drs): Remove.
10758         (dump_alias_graphs): Remove.
10759         (build_scop_drs): Remove dead code.
10761 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10762             Peter Bergner  <bergner@vnet.ibm.com>
10764         PR target/67808
10765         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10766         allow registers, but provide insns for the combiner to create for
10767         loads from memory. Separate VSX code from non-VSX code. For
10768         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10769         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10770         so that registers come before memory operations. Drop support from
10771         converting DFmode to TFmode, if the DFmode value is in a GPR
10772         register.
10773         (extenddftf2_fprs): Likewise.
10774         (extenddftf2_internal): Likewise.
10775         (extenddftf2_vsx): Likewise.
10776         (extendsftf2): In the expander, only allow registers, but provide
10777         insns for the combiner to create for stores and loads.
10779 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10781         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10782         from the decl parameter.
10784 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
10786         PR 67861
10787         * gimple-fold.c (gimple_fold_builtin): Add break after
10788         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10790 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
10792         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10793         to scop->isl_context.
10795 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10797         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10798         (output_probe_stack_range): Rotate the loop and simplify.
10799         (thumb1_expand_prologue): Tweak sorry message.
10800         * config/arm/arm.md (probe_stack): Use bare string.
10802 2015-10-06  Nick Clifton  <nickc@redhat.com>
10804         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10806 2015-10-06  Nick Clifton  <nickc@redhat.com>
10808         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10809         (ATTR_PERSIST): New constant.
10810         (msp430_data_attr): New function - verifies an attribute that only
10811         applies to variables.
10812         (msp430_attributes): Add noinit and persistent attributes.
10813         (noinit_section): New variable.
10814         (presis_section): New variable.
10815         (TARGET_ASM_INIT_SECTIONS): Define.
10816         (msp430_init_sections): New function - initialises the noinit and
10817         persist section variables.
10818         (msp430_select_section): Add support for noinit and persist
10819         attributes.
10820         (msp430_section_type_flags): Likewise.
10821         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
10822         and persistent attributes.
10824 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10825             Sebastian Pop  <s.pop@samsung.com>
10827         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10828         (no_violations): Remove.
10829         (subtract_commutative_associative_deps): Remove.
10830         (compute_deps): Do not call subtract_commutative_associative_deps.
10831         (transform_is_safe): Remove.
10832         (graphite_legal_transform): Remove.
10833         * graphite-poly.h (graphite_legal_transform): Remove.
10835 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
10837         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10838         which are in this region are passed so gcc_assert and remove redundant
10839         computation.
10840         * sese.c (sese_build_liveouts): Pass only those bbs which are not
10841         in region.
10842         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
10843         gcc_assert on that and remove unnecessary computation.
10844         (sese_build_liveouts_use): Same.
10846 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
10848         * graphite-dependences.c (scop_get_reads): Renamed scop->context
10849         to scop->param_context.
10850         (scop_get_must_writes): Same.
10851         (scop_get_may_writes): Same.
10852         (scop_get_original_schedule): Same.
10853         (scop_get_transformed_schedule): Same.
10854         (subtract_commutative_associative_deps): Same.
10855         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
10856         (generate_isl_context): Same.
10857         (generate_isl_schedule): Same.
10858         (scop_to_isl_ast): Same.
10859         (graphite_regenerate_ast_isl): Same.
10860         * graphite-optimize-isl.c (scop_get_domains): Same.
10861         (optimize_isl): Renamed scop->context to scop->param_context.
10862         * graphite-poly.c (new_poly_bb): Change the type of argument to
10863         gimple_poly_bb_p.
10864         (new_scop): Renamed scop->context to scop->param_context.
10865         (free_scop): Same.
10866         (print_scop_context): Same.
10867         * graphite-poly.h (new_poly_dr): Change the type of argument from
10868         void* to data_reference_p.
10869         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
10870         (new_poly_bb): Change the type of argument from void* to
10871         gimple_poly_bb_p.
10872         (pbb_set_black_box): Same.
10873         (struct scop): Rename context to param_context, ctx to isl_context.
10874         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
10875         Move declarations closer to assignment.
10876         (find_params_in_bb): Same.
10877         (find_scop_parameters): Same.
10878         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
10879         Global to be used for statement IDs.
10880         (isl_id_for_pbb): Use ssa_name_version_typesize.
10881         (simple_copy_phi_p): Move declarations closer to assignment.
10882         (build_pbb_scattering_polyhedrons): Same.
10883         (build_scop_scattering): Same.
10884         (isl_id_for_ssa_name): Same.
10885         (extract_affine_name): Same.
10886         (extract_affine_int): Same.
10887         (extract_affine): Same.
10888         (set_scop_parameter_dim): Use renamed member.
10889         (build_loop_iteration_domains): Same.
10890         (add_param_constraints): Same.
10891         (build_scop_iteration_domain): Same.
10892         (pdr_add_data_dimensions): Same.
10893         (build_poly_dr): Same.
10894         (build_scop_drs): Move declarations closer to assignment.
10895         (analyze_drs_in_stmts): Same.
10896         (insert_out_of_ssa_copy): Same.
10897         (insert_out_of_ssa_copy_on_edge): Same.
10898         (propagate_expr_outside_region): Same.
10899         (rewrite_phi_out_of_ssa): Same.
10900         (rewrite_degenerate_phi): Same.
10901         (rewrite_reductions_out_of_ssa): Same.
10902         (rewrite_cross_bb_scalar_dependence): Same.
10903         (handle_scalar_deps_crossing_scop_limits): Same.
10904         (rewrite_cross_bb_scalar_deps): Same.
10905         * graphite.c (graphite_transform_loops): Use renamed member.
10907 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
10909         PR c/65345
10910         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
10911         create_tmp_var_raw instead of create_tmp_var.
10913 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10915         PR c/65345
10916         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
10917         Use create_tmp_var_raw instead of create_tmp_var.
10919 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
10921         PR target/67849
10922         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
10923         split for upper-bank registers when target does not support
10924         AVX512VL.
10925         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
10926         split when target does not support AVX512VL.
10928 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
10930         PR c/65345
10931         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
10932         Adjust to use create_tmp_var_raw instead of create_tmp_var.
10934 2015-10-06  Nick Clifton  <nickc@redhat.com>
10936         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
10937         multiplication.
10939 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10941         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
10942         (case ${target}): Add znver1.
10943         * config/i386/cpuid.h(bit_CLZERO):  Define.
10944         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
10945         -march=native recognize znver1 processors.
10946         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10947         znver1, clzero def_and_undef.
10948         * config/i386/i386.c (struct processor_costs znver1_cost): New.
10949         (m_znver1): New definition.
10950         (m_AMD_MULTIPLE): Includes m_znver1.
10951         (processor_target_table): Add znver1 entry.
10952         (ix86_target_string) : Add clzero entry.
10953         (static const char *const cpu_names): Add znver1 entry.
10954         (ix86_option_override_internal): Add znver1 instruction sets.
10955         (PTA_CLZERO) :  New definition.
10956         (ix86_option_override_internal): Handle new clzerooption.
10957         (ix86_issue_rate): Add znver1.
10958         (ix86_adjust_cost): Add znver1.
10959         (ia32_multipass_dfa_lookahead): Add znver1.
10960         (has_dispatch): Add znver1.
10961         * config/i386/i386.h (TARGET_znver1): New definition.
10962         (TARGET_CLZERO): Define.
10963         (TARGET_CLZERO_P): Define.
10964         (struct ix86_size_cost): Add TARGET_ZNVER1.
10965         (enum processor_type): Add PROCESSOR_znver1.
10966         * config/i386/i386.md (define_attr "cpu"): Add znver1.
10967         (set_attr znver1_decode): New definitions for znver1.
10968         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
10969         (mclzero): New.
10970         * config/i386/mmx.md (set_attr znver1_decode): New definitions
10971         for znver1.
10972         * config/i386/sse.md (set_attr znver1_decode): Likewise.
10973         * config/i386/x86-tune.def:  Add znver1 tunings.
10974         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
10975         * doc/invoke.texi: Add details about znver1
10977 2015-10-06  Richard Biener  <rguenther@suse.de>
10979         PR tree-optimization/67859
10980         * tree-ssa-pre.c (create_expression_by_pieces): Properly
10981         discard not inserted stmts.
10983 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
10985         * doc/extend.texi (Template Instantiation): Reorder options and
10986         de-emphasize -frepo.
10987         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
10988         example instead of -frepo.
10990 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
10992         PR c/65345
10993         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
10994         use create_tmp_var_raw rather than create_tmp_var.
10996 2015-10-06  Richard Biener  <rguenther@suse.de>
10998         * tree-vectorizer.h (vec_info): New base class for...
10999         (_loop_vec_info): ... this and ...
11000         (_bb_vec_info): ... this.
11001         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11002         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11003         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11004         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11005         vect_destroy_datarefs): Adjust interface to take a vec_info *
11006         rather than both a loop_vec_info and a bb_vec_info argument.
11007         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11008         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11009         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11010         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11011         accordingly.
11012         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11013         (destroy_loop_vec_info, vect_analyze_loop_2,
11014         vect_is_simple_reduction_1, get_initial_def_for_induction,
11015         vect_create_epilog_for_reduction, vectorizable_reduction,
11016         vectorizable_live_operation, vect_transform_loop): Adjust.
11017         * tree-vect-patterns.c (type_conversion_p,
11018         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11019         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11020         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11021         check_bool_pattern, vect_recog_bool_pattern,
11022         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11023         * tree-vect-slp.c (vect_get_and_check_slp_defs,
11024         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11025         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11026         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11027         (new_bb_vec_info): Initialize base classs.
11028         * tree-vect-stmts.c (record_stmt_cost, process_use,
11029         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11030         vectorizable_mask_load_store, vectorizable_call,
11031         vectorizable_simd_clone_call, vectorizable_conversion,
11032         vectorizable_assignment, vectorizable_shift,
11033         vectorizable_operation, vectorizable_store,
11034         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11035         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11036         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11038 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11040         PR c/65345
11041         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11042         create_tmp_var_raw rather than create_tmp_var.
11044 2015-10-05  Marek Polacek  <polacek@redhat.com>
11046         * tree-ssa-loop-im.c
11047         (move_computations_dom_walker::before_dom_children): Don't set
11048         SSA_NAME_ANTI_RANGE_P.
11049         * tree-ssa-phiopt.c (value_replacement): Likewise.
11051 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11052             Sebastian Pop  <s.pop@samsung.com>
11054         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11056 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11057             Sebastian Pop  <s.pop@samsung.com>
11059         * graphite-poly.c (new_gimple_poly_bb): ... here.
11060         (free_data_refs_aux): ... here.
11061         (free_gimple_poly_bb): ... here.
11062         (remove_gbbs_in_scop): ... here.
11063         (new_scop): Call new_sese.
11064         (free_scop): Call remove_gbbs_in_scop and free_sese.
11065         * graphite-poly.h (base_alias_pair): ... here.
11066         (new_gimple_poly_bb): Declare.
11067         (free_gimple_poly_bb): Declare.
11068         * graphite-scop-detection.c (parameter_index_in_region_1):
11069         (parameter_index_in_region): ... here.
11070         (scan_tree_for_params): ... here.
11071         (find_params_in_bb): ... here.
11072         (find_scop_parameters): ... here.
11073         (build_scops): Call find_scop_parameters.
11074         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11075         (free_scops): Move...
11076         (single_pred_cond_non_loop_exit): Move...
11077         (sese_dom_walker::before_dom_children): Move...
11078         (sese_dom_walker::after_dom_children): Move...
11079         (build_poly_scop): Move...
11080         * graphite-sese-to-poly.h (base_alias_pair): Move...
11081         * graphite.c (free_scops): ... here.
11083 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11084             Sebastian Pop  <s.pop@samsung.com>
11086         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11087         (trivially_empty_bb_p): Move...
11088         (same_close_phi_node): Move...
11089         (new_gimple_poly_bb): Move...
11090         (compare_bb_depths): Move...
11091         (graphite_sort_dominated_info): Move...
11092         (remove_duplicate_close_phi): Move...
11093         (make_close_phi_nodes_unique): Move...
11094         (canonicalize_loop_closed_ssa): Move...
11095         (canonicalize_loop_closed_ssa_form): Move...
11096         (loop_ivs_can_be_represented): Move...
11097         (single_pred_cond_non_loop_exit): Move...
11098         (graphite_can_represent_init): Move...
11099         (graphite_can_represent_scev): Move...
11100         (stmt_has_simple_data_refs_p): Move...
11101         (stmt_has_side_effects):  Move...
11102         (graphite_can_represent_stmt): Move...
11103         (scop_detection): ... here.
11104         (sese_dom_walker): ... and here.
11105         (build_scops): Call all moved functions.
11106         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11107         (all_non_dominated_preds_marked_p): Move...
11108         (build_scop_bbs_1): Move...
11109         (build_scop_bbs): Move...
11110         (set_scop_parameter_dim): Move...
11111         (nb_pbbs_in_loops): Move...
11112         (build_poly_scop): Do not call all the moved functions.
11114 2015-10-05  Martin Jambor  <mjambor@suse.cz>
11115             Jan Hubicka  <hubicka@ucw.cz>
11117         * ipa-cp.c (ipcp_alignment_lattice): New type.
11118         (ipcp_param_lattices): Use the above to represent alignment.
11119         (ipcp_alignment_lattice::print): New function.
11120         (print_all_lattices): Use it to print alignment information.
11121         (ipcp_alignment_lattice::top_p): New function.
11122         (ipcp_alignment_lattice::bottom_p): Likewise.
11123         (ipcp_alignment_lattice::set_to_bottom): Likewise.
11124         (ipcp_alignment_lattice::meet_with_1): Likewise.
11125         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11126         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11127         (initialize_node_lattices): Likewise.
11128         (propagate_alignment_accross_jump_function): Work with the new class
11129         for alignment lattices.
11130         (propagate_constants_accross_call): Pass only the alignment lattice to
11131         propagate_alignment_accross_jump_function.
11132         (ipcp_store_alignment_results): Work with the new class for alignment
11133         lattices.
11135 2015-10-05  Marek Polacek  <polacek@redhat.com>
11137         PR tree-optimization/67821
11138         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11140 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
11142         PR other/65021
11143         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11144         function to...
11145         (mkoffload_cleanup): ... this.  Adjust all users.
11146         (maybe_unlink): Look at save_temps and verbose flags instead of
11147         debug flag.
11148         (main): Parse "-save-temps" flag.
11149         (generate_target_descr_file, generate_target_offloadend_file)
11150         (generate_host_descr_file, prepare_target_image): Pass it on.
11151         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11152         (mkoffload_cleanup): New function.
11153         (maybe_unlink): Look at save_temps and verbose flags instead of
11154         debug flag.
11155         (main): Instead of calling utils_cleanup, register atexit handler
11156         for mkoffload_cleanup.
11157         (main): Parse "-save-temps" flag.
11158         (compile_native, main): Pass it on.
11159         * lto-wrapper.c (compile_offload_image): Likewise.
11161 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11163         * gimple.h (gimple_op_ptr): Require a non const gimple *.
11164         (gimple_assign_lhs_ptr): Likewise.
11165         (gimple_assign_rhs1_ptr): Likewise.
11166         (gimple_assign_rhs2_ptr): Likewise.
11167         (gimple_assign_rhs3_ptr): Likewise.
11168         (gimple_call_lhs_ptr): Likewise.
11169         (gimple_call_fn_ptr): Likewise.
11170         (gimple_call_chain_ptr): Likewise.
11171                 (gimple_call_arg_ptr): Likewise.
11172                 (gimple_cond_lhs_ptr): Likewise.
11173         (gimple_cond_rhs_ptr): Likewise.
11174         (gimple_switch_index_ptr): Likewise.
11175         (gimple_return_retval_ptr): Likewise.
11177 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11179         * gimple.h (gimple_asm_input_op_ptr): Remove.
11180         (gimple_asm_output_op_ptr): Likewise.
11182 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11184         * gimple.h (gimple_location_ptr): Remove.
11185         * tree-vrp.c (check_all_array_refs): Adjust.
11187 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11189         * tree-ssa-operands.c (build_uses): store tree * instead of
11190         tree.
11191         (finalize_ssa_uses): Adjust.
11192         (append_use): Likewise.
11193         (verify_ssa_operands): Likewise.
11195 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11197         * real.h (build_real_truncate): Declare.
11198         * tree.c (build_real_truncate): New function.
11199         (strip_float_extensions): Use it.
11200         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11201         (fold_builtin_hypot, fold_builtin_pow): Likewise.
11202         * match.pd: Likewise.
11204 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11205            Jiong Wang  <jiong.wang@arm.com>
11207         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11209 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11211         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11212         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11213         (aarch64_print_operand, aarch64_float_const_representable_p)
11214         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11215         instead of REAL_VALUE_FROM_CONST_DOUBLE.
11216         * config/arc/arc.c (arc_print_operand): Likewise.
11217         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11218         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11219         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11220         Likewise.
11221         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11222         (consttable_16): Likewise.
11223         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11224         * config/avr/avr.c (avr_print_operand): Likewise.
11225         * config/bfin/bfin.md: Likewise (in a define_split).
11226         * config/c6x/c6x.md: Likewise (in a define_split).
11227         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11228         (cr16_print_operand): Likewise.
11229         * config/cris/cris.c (cris_print_operand): Likewise.
11230         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11231         * config/fr30/fr30.c (fr30_print_operand): Likewise.
11232         (fr30_const_double_is_zero): Likewise.
11233         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11234         * config/frv/frv.md: Likewise (in a define_split).
11235         * config/frv/predicates.md (int_2word_operand): Likewise.
11236         * config/h8300/h8300.c (h8300_print_operand): Likewise.
11237         * config/i386/i386.c (standard_80387_constant_p): Likewise.
11238         (ix86_print_operand, ix86_split_to_parts): Likewise.
11239         * config/i386/i386.md: Likewise (in a define_split).
11240         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11241         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11242         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11243         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11244         (print_operand): Likewise.
11245         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11246         * config/mep/mep.md: Likewise (in define_split).
11247         * config/microblaze/microblaze.c (microblaze_const_double_ok)
11248         (print_operand): Likewise.
11249         * config/mips/mips.md (consttable_float): Likewise.
11250         * config/mmix/mmix.c (mmix_intval): Likewise.
11251         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11252         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11253         * config/pa/pa.c (pa_singlemove_string): Likewise.
11254         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11255         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11256         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11257         (output_toc): Likewise.
11258         * config/rs6000/rs6000.md: Likewise (in define_splits).
11259         * config/rx/rx.c (rx_print_operand): Likewise.
11260         * config/s390/s390.c (s390_output_pool_entry): Likewise.
11261         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11262         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11263         (and also in define_splits).
11264         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11265         (fp_high_losum_p): Likewise.
11266         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11267         (*movsf_high): Likewise.
11268         * config/spu/spu.c (const_double_to_hwint): Likewise.
11269         * config/v850/v850.c (const_double_split): Likewise.
11270         * config/vax/vax.c (vax_float_literal): Likewise.
11271         * config/visium/visium.c (visium_expand_copysign): Likewise.
11272         * config/visium/visium.md: Likewise (in define_split).
11273         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11274         * config/xtensa/xtensa.c (print_operand): Likewise.
11275         (xtensa_output_literal): Likewise.
11276         * cprop.c (implicit_set_cond_p): Likewise.
11277         * dwarf2out.c (insert_float): Likewise.
11278         * expmed.c (expand_mult, make_tree): Likewise.
11279         * expr.c (compress_float_constant): Likewise.
11280         * rtlanal.c (split_double): Likewise.
11281         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11282         (simplify_const_unary_operation, simplify_binary_operation_1)
11283         (simplify_const_binary_operation): Likewise.
11284         (simplify_const_relational_operation): Likewise.
11285         * varasm.c (output_constant_pool_2): Likewise.
11287 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11289         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11290         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11291         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11292         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11293         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11294         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11295         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11296         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11297         (ix86_emit_swsqrtsf): Likewise.
11298         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11299         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11300         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11301         * config/pa/pa.c (pa_expand_builtin): Likewise.
11302         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11303         (rs6000_scale_v2df): Likewise.
11304         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11305         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11306         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11307         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11308         (vec_ctul): Likewise.
11309         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11310         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11311         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11312         * cse.c (fold_rtx): Likewise.
11313         * emit-rtl.c (immed_double_const): Likewise (in comments).
11314         (init_emit_once): Likewise.
11315         * expr.c (compress_float_constant, expand_expr_real_1)
11316         (const_vector_from_tree): Likewise.
11317         * optabs.c (expand_float, expand_fix): Likewise.
11318         * reg-stack.c (reg_to_stack): Likewise.
11319         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11320         (simplify_const_unary_operation, simplify_binary_operation_1)
11321         (simplify_const_binary_operation, simplify_relational_operation)
11322         (simplify_immed_subreg): Likewise.
11324 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11326         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11327         * doc/tm.texi: Regenerate.
11328         * real.h (REAL_ARITHMETIC): Delete.
11329         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11330         (ix86_expand_round_sse4): Use real_arithmetic instead of
11331         REAL_ARITHMETIC.
11332         * config/i386/sse.md (round<mode>2): Likewise.
11333         * rtl.h (rtx_to_tree_code): Likewise (in comment).
11334         * explow.c (rtx_to_tree_code): Likewise (in comment).
11335         * match.pd: Likewise.
11336         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11337         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11338         (expand_pow_as_sqrts): Likewise.
11339         * tree-pretty-print.c (dump_generic_node): Remove code that
11340         was conditional on REAL_ARITHMETIC being undefined.
11342 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11344         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11345         * doc/tm.texi: Regenerate.
11346         * real.h (real_less): Declare.
11347         (REAL_VALUES_LESS): Delete.
11348         * real.c (real_less): New function.
11349         (real_compare): Use it.
11350         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11351         of REAL_VALUES_LESS.
11352         * config/microblaze/microblaze.c (microblaze_const_double_ok):
11353         Likewise.
11354         * fold-const.c (fold_convert_const_int_from_real): Likewise.
11355         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11356         (simplify_const_relational_operation): Likewise.
11357         * tree-call-cdce.c (check_pow): Likewise.
11358         (gen_conditions_for_pow_cst_base): Likewise.
11360 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11362         * real.h (REAL_VALUES_IDENTICAL): Delete.
11363         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11364         instead of REAL_VALUES_IDENTICAL.
11365         * fold-const.c (operand_equal_p): Likewise.
11366         * ipa-icf.c (sem_variable::equals): Likewise.
11367         * tree-complex.c (some_nonzerop): Likewise.
11368         (expand_complex_multiplication): Likewise.
11369         * tree.c (simple_cst_equal): Likewise.
11370         * varasm.c (compare_constant): Likewise.
11372 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11374         * real.h (real_equal): Declare.
11375         (REAL_VALUES_EQUAL): Delete.
11376         * real.c (real_equal): New function.
11377         (real_compare): Use it.
11378         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11379         * doc/tm.texi: Regenerate.
11380         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11381         real_equal instead of REAL_VALUES_EQUAL.
11382         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11383         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11384         (fp_const_from_val): Likewise.
11385         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11386         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11387         (floating_exact_log2): Likewise.
11388         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11389         * config/vax/vax.c (vax_float_literal): Likewise.
11390         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11391         * cprop.c (implicit_set_cond_p): Likewise.
11392         * expmed.c (expand_mult): Likewise.
11393         * fold-const.c (const_binop): Likewise.
11394         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11395         (simplify_const_binary_operation): Likewise.
11396         (simplify_const_relational_operation): Likewise.
11397         * tree-call-cdce.c (check_pow): Likewise.
11398         (gen_conditions_for_pow_cst_base): Likewise.
11399         * tree-inline.c (estimate_num_insns): Likewise.
11400         * tree-ssa-dom.c (record_equality): Likewise.
11401         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11402         (gimple_expand_builtin_pow): Likewise.
11403         (pass_optimize_widening_mul::execute): Likewise.
11404         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11405         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11406         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11408 2015-10-05  Richard Biener  <rguenther@suse.de>
11410         PR ipa/67783
11411         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11412         consider loop header PHI defs as IVs.
11414 2015-10-05  Richard Biener  <rguenther@suse.de>
11416         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11417         call handling ...
11418         (create_expression_by_pieces): ... here and build GIMPLE
11419         calls directly.  Use gimple_build API and avoid force_gimple_operand.
11420         (insert_into_preds_of_block): Simplify.
11421         (do_regular_insertion): Add comment.
11423 2015-10-04  Jason Merrill  <jason@redhat.com>
11425         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11427 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
11429         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11430         check for general register.
11431         (ix86_emit_save_regs): Ditto.
11432         (ix86_emit_save_regs_using_mov): Ditto.
11433         (ix86_emit_restore_regs_using_pop): Ditto.
11434         (ix86_emit_restore_regs_using_mov): Ditto.
11436 2015-10-03  Marek Polacek  <polacek@redhat.com>
11438         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11439         (insn-dfatab.o): Likewise.
11441 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
11443         * config.gcc (xtensa*-*-uclinux*): New configuration.
11444         * config/xtensa/uclinux.h: New file.
11445         * config/xtensa/uclinux.opt: New file.
11447 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
11449         * doc/cpp.texi (Standard Predefined Macros): Document value of
11450         __cplusplus for C++14.
11452 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
11454         * gcc.c (process_command): Use spec_machine rather than
11455         spec_host_machine to build tooldir_prefix2.
11457 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11458             Bernd Schmidt  <bernds@codesourcery.com>
11460         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11461         (Token, Stmt): Remove structs.
11462         (decls, vars, fns): Remove variables.
11463         (alloc_comment, append_stmt, is_keyword): Remove macros.
11464         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11465         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11466         (parse_init, parse_file): Remove functions.
11467         (read_file): Accept a pointer to a length and store into it.
11468         (process): Don't try to parse the input file, just write it out as
11469         a string, but looking for maps.  Also write out the length.
11470         (main): Don't use "-S" to compile PTX code.
11472 2015-10-02  Jeff Law  <law@redhat.com>
11474         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11475         fixups.
11477 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
11479         PR target/67822
11480         * config/nvptx/mkoffload.c (main): Scan the argument vector for
11481         -fopenmp, and skip generating an offloading image if specified.
11483 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
11485         * system.h (ROUND_UP): New macro definition.
11486         (ROUND_DOWN): Ditto.
11487         * ggc-page.c (ROUND_UP): Remove local macro definition.
11488         (PAGE_ALIGN): Implement using ROUND_UP macro.
11490         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11491         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11492         to align values.
11493         (ix86_compute_frame_layout): Ditto.
11494         (ix86_expand_prologue): Ditto.
11495         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11496         to round down values.
11497         (expand_set_or_movmem_via_rep): Ditto.
11499 2015-10-02  Marek Polacek  <polacek@redhat.com>
11501         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11503 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
11505         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11506         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11507         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11508         (free_gimple_bb): Renamed free_gimple_poly_bb.
11509         (try_generate_gimple_bb): Hoist loop invariant code.
11510         (analyze_drs_in_stmts): Same.
11511         (build_scop_drs): Call renamed functions.
11512         (new_pbb_from_pbb): Same.
11513         (scop_ivs_can_be_represented): Delete as functionality now moved to
11514         graphite-scop-detection.c
11515         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11517 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
11519         * graphite-scop-detection.c (stmt_has_side_effects): New function
11520           outlined from stmt_simple_for_scop_p.
11521         (graphite_can_represent_stmt): Same.
11522         (stmt_simple_for_scop_p): Moved code out of this function for better
11523         readability.
11525 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11527         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11528         F_AVX512IFMA.
11529         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11531 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11533         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11535 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11537         PR rtl-optimization/67756
11538         * lra-constraints.c (match_reload): Add a new parameter.  Use it
11539         for creating a pseudo with the same value.
11540         (curr_insn_transform): Pass a new argument to match_reload.
11542 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11544         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11545         (expand_vec_perm_even_odd_1): Handle V64QImode.
11546         (ix86_expand_vec_perm_const_1): Try expansion with
11547         expand_vec_perm_even_odd_trunc as well.
11548         * config/i386/sse.md (VI124_AVX512F): Rename to ...
11549         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11550         to V54QI.
11551         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11552         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11553         to V32HI and V16SI.
11554         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11555         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11556         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11557         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11558         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11559         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11561 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
11563         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11564         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11566 2015-10-02  Jason Merrill  <jason@redhat.com>
11568         PR c/59218
11569         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11570         (diagnose_tm_1_op): Also diagnose volatile accesses in
11571         transaction_safe function.
11573 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
11575         * system.h (malloc.h): Don't include obsolete header.
11577 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11579         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11580         (TLS_SECTION_ASM_FLAG): Delete.
11582 2015-10-02  Marek Polacek  <polacek@redhat.com>
11584         PR c/64249
11585         * doc/invoke.texi: Document -Wduplicated-cond.
11586         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11587         (insn-dfatab.o): Likewise.
11588         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11589         warning.
11591 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
11593         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11594         sequences.
11596 2015-10-02  Renlin Li  <renlin.li@arm.com>
11598         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11600 2015-10-02  Renlin Li  <renlin.li@arm.com>
11602         PR target/66776
11603         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11605 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11607         PR rtl-optimization/67786
11608         PR rtl-optimization/67787
11609         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11610         it modifies a reg used in the condition calculation.
11612 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
11614         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11615         alternatives for reads from memory and moves from general-purpose
11616         registers.
11617         (*aarch64_combinez_be<mode>): Likewise.
11619 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
11621         PR target/51726
11622         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11623         selectany within this function without need to keep attribute.
11624         (i386_pe_encode_section_info): Remove selectany-code.
11626 2015-10-02  Richard Biener  <rguenther@suse.de>
11628         * tree-ssa-sccvn.c (has_VN_INFO): New function.
11629         (free_scc_vn): Use it.
11630         (visit_use): Remove dead code and refactor to use gassign
11631         and use less indentation.
11633 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11635         PR target/67788
11636         PR target/67789
11637         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11638         (rs6000_cannot_copy_insn_p): New function.
11639         * config/rs6000/rs6000.md (cannot_copy): New attribute.
11640         (load_toc_v4_PIC_1_normal): Set cannot_copy.
11641         (load_toc_v4_PIC_1_476): Ditto.
11643 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11645         * graphite-scop-detection.c (struct sese_l): New conversion constructor
11646         so that this type can be pushed into a vec.
11647         (class scop_builder): use sese_l to collect scops.
11648         (get_scops): New getter function.
11649         (remove_intersecting_scops): Use sese_l instead of scops_p.
11650         (intersects): Same.
11651         (add_scop): Same.
11652         (subsumes): Same.
11653         (remove_subscops): Same.
11654         (build_scops): Add scops to vec<scops_p> once all the scops have been
11655         detected.
11657 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
11659         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11660         Renamed type from gimple_bb_p to gimple_poly_bb_p.
11661         (translate_isl_ast_node_user): Same.
11662         * graphite-poly.c (new_poly_bb): Same.
11663         * graphite-poly.h (gbb_from_bb): Same.
11664         * sese.h: Same.
11665         * graphite-sese-to-poly.c (new_gimple_bb):
11666         gimple_bb_p -> gimple_poly_bb_p
11667         (build_scop_scattering): Same.
11668         (find_params_in_bb): Same.
11669         (add_conditions_to_domain): Same.
11670         (sese_dom_walker::before_dom_children): Same.
11671         (analyze_drs_in_stmts): Same.
11672         (new_pbb_from_pbb): Same.
11673         (free_data_refs_aux): New pointer to type base_alias_pair.
11674         * graphite-sese-to-poly.h: Same.
11675         * sese.c (if_region_set_false_region): Fixed Indentation.
11676         (move_sese_in_condition): Same.
11678 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11679             Aditya Kumar  <aditya.k7@samsung.com>
11681         PR tree-optimization/66980
11682         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11683         when data reference analysis has failed.
11685 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11686             Aditya Kumar  <aditya.k7@samsung.com>
11688         PR tree-optimization/67754
11689         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11690         scev analysis on the same loop nest as analyze_drs_in_stmts.
11691         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11692         renamed...
11693         (try_generate_gimple_bb): Call outermost_loop_in_sese.
11694         (analyze_drs_in_stmts): Same.
11695         * sese.c (outermost_loop_in_sese): ...here.
11697 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
11698             Aditya Kumar  <aditya.k7@samsung.com>
11700         PR tree-optimization/67754
11701         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11702         recursion on the inner loops.
11704 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11706         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11707         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11708         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11709         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11710         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11712 2015-10-01  Marek Polacek  <polacek@redhat.com>
11714         PR c/65345
11715         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11716         create_tmp_var_raw rather than create_tmp_var.
11718 2015-10-01  Marek Polacek  <polacek@redhat.com>
11720         PR tree-optimization/67769
11721         * tree-ssa-phiopt.c (conditional_replacement): Call
11722         reset_flow_sensitive_info_in_bb.
11723         (minmax_replacement): Likewise.
11724         (abs_replacement): Likewise.
11726 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
11728         * builtins.c: Don't include gomp-constants.h.
11729         (fold_builtin_1): Don't fold acc_on_device here.
11730         * gimple-fold.c: Include gomp-constants.h.
11731         (gimple_fold_builtin_acc_on_device): New.
11732         (gimple_fold_builtin): Call it.
11734 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
11736         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11737         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11739 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
11741         * config/arm/aarch-common-protos.h
11742         (aarch_accumulator_forwarding): New.
11743         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11744         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11745         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11746         * config/arm/cortex-a53.md: Rewrite.
11748 2015-10-01  Richard Biener  <rguenther@suse.de>
11750         * gimple-match.h (mprts_hook): Declare.
11751         * gimple-match.head.c (mprts_hook): Define.
11752         (maybe_push_res_to_seq): Use new hook.
11753         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11754         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11755         (vn_ssa_aux::has_constants): Remove.
11756         * tree-ssa-sccvn.c: Include gimple-match.h.
11757         (VN_INFO_GET): Assert we don't re-use SSA names.
11758         (vn_get_expr_for): Remove.
11759         (expr_has_constants): Likewise.
11760         (stmt_has_constants): Likewise.
11761         (simplify_binary_expression): Likewise.
11762         (simplify_unary_expression): Likewise.
11763         (vn_lookup_simplify_result): New hook.
11764         (visit_copy): Adjust.
11765         (visit_reference_op_call): Likewise.
11766         (visit_phi): Likewise.
11767         (visit_use): Likewise.
11768         (process_scc): Likewise.
11769         (init_scc_vn): Likewise.
11770         (visit_reference_op_load): Likewise.  Use match-and-simplify and
11771         a gimple seq for inserted expressions.
11772         (try_to_simplify): Remove GENERIC stmt combining code.
11773         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11774         * tree-ssa-pre.c (eliminate_insert): Adjust.
11775         (eliminate_dom_walker::before_dom_children): Likewise.
11777 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11779         * doc/invoke.texi (Optimization Options): Add
11780         -freorder-blocks-algorithm=.
11781         (Optimize Options) <-O>: Add -freorder-blocks.
11782         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
11783         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11784         <-freorder-blocks>: Also enabled at levels -O and -Os.
11785         <-freorder-blocks-algorithm=>: Document new option.
11787 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11789         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11790         with flag_reorder_blocks_algorithm.
11791         * common.opt (freorder-blocks-algorithm=): New flag.
11792         (reorder_blocks_algorithm): New enum.
11793         * flag-types.h (reorder_blocks_algorithm): New enum.
11794         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11795         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11797 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11799         * bb-reorder.c: Add intro comment.
11800         (reorder_basic_blocks_software_trace_cache): Print a header to
11801         the dump file.
11802         (edge_order): New function.
11803         (reorder_basic_blocks_simple): New function.
11804         (reorder_basic_blocks): Choose between the STC and the simple
11805         algorithms (always choose the former).
11807 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
11809         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11810         function, factored out from ...
11811         (reorder_basic_blocks): ... here.
11813 2015-10-01  Tom de Vries  <tom@codesourcery.com>
11815         * tree-cfg.c (dump_function_to_file): Dump function attributes using
11816         __attribute__(()) string.  Move dumping of function attributes to before
11817         function name.
11819 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
11821         PR target/66870
11822         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11823         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11824         based on gold linker version.
11825         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11826         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11827         * configure, config.in: Regenerate.
11829 2015-10-01  Alan Modra  <amodra@gmail.com>
11831         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11832         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11833         (rs6000_output_mi_thunk): Likewise.
11835 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11837         * config/nvptx/mkoffload.c (process): Change offload data format.
11839 2015-09-30  Jeff Law  <law@redhat.com>
11841         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11842         with constant conditions.
11843         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
11844         (remove_ctrl_stmt_and_useless_edges): No longer static.
11845         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
11846         (remove_ctrl_stmt_and_useless_edges): Likewise.
11848 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
11849             Cesar Philippidis  <cesar@codesourcery.com>
11851         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
11852         (TARGET_GOACC_VALIDATE_DIMS): Override.
11853         * target.def (TARGET_GOACC): New target hook prefix.
11854         (validate_dims): New hook.
11855         * targhooks.h (default_goacc_validate_dims): New.
11856         * omp-low.c (oacc_validate_dims): New.
11857         (execute_oacc_device_lower): New.
11858         (default_goacc_validate_dims): New.
11859         (pass_data_oacc_device_lower): New.
11860         (pass_oacc_device_lower): New pass.
11861         (make_pass_oacc_device_lower): New.
11862         * tree-pass.h (make_pass_oacc_device_lower): Declare.
11863         * passes.def (pass_oacc_device_lower): Add it.
11864         * doc/tm.texi: Rebuilt.
11865         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
11866         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
11868 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11870         PR rtl-optimization/67037
11871         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
11873 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
11875         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
11876         * passes.c: Include tree-ssanames.h.
11877         (execute_function_todo): Flush the pending free SSA_NAMEs after
11878         eliminating unreachable basic blocks.
11879         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
11880         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
11881         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
11882         (flush_ssanames_freelist): New function.
11883         (release_ssaname_fn): Put released names on the queue.
11884         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
11885         * tree-ssanames.h (flush_ssanames_freelist): Declare.
11887 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11889         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
11890         (generate_target_descr_file, generate_target_offloadend_file)
11891         (generate_host_descr_file, prepare_target_image): Pass it on.
11892         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
11893         (compile_native, main): Pass it on.
11894         * lto-wrapper.c (compile_offload_image): Likewise.
11896 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11897             Ilya Verbin  <ilya.verbin@intel.com>
11898             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11900         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
11901         (prepare_target_image, main): Refactor argv building to use
11902         obstacks.
11904 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11906         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
11907         * config/spu/spu.c (spu_expand_atomic_op): New function.
11908         * config/spu/spu.md (AINT): New mode iterator.
11909         (ATOMIC): New code iterator.
11910         (atomic_name, atomic_pred): New code predicates.
11911         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
11912         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
11913         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
11914         "atomic_<atomic_name>_fetch<mode>"): Likewise.
11916 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
11918         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
11919         debug insns.
11920         (scalar_chain::convert_reg): Likewise.
11922 2015-09-30  Richard Biener  <rguenther@suse.de>
11924         * builtins.c: Add comment that no new simplifications should
11925         be added here.
11927 2015-09-30  Marek Polacek  <polacek@redhat.com>
11929         PR tree-optimization/67690
11930         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
11931         reset_flow_sensitive_info_in_bb.
11932         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
11933         * tree-ssanames.c: Include "gimple-iterator.h".
11934         (reset_flow_sensitive_info_in_bb): New function.
11935         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
11937 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
11939         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
11940         variable, replacing it with...
11941         (offload_abi): ... this new variable.  Adjust all users.
11942         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
11944 2015-09-30  Matthias Klose  <doko@ubuntu.com>
11946         * configure.ac: Remove extraneous ;;.
11947         * configure: Regenerate.
11949 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
11951         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
11952         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
11953         predicate, disallow register for operand 2.
11955 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
11957         * graphite-dependences.c (scop_get_dependences): Moved in down
11958         in order to be visible to its caller.
11959         * graphite-poly.h: Removed compute_deps, and extend_schedule.
11961 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11962             Aditya Kumar  <aditya.k7@samsung.com>
11964         PR tree-optimization/67754
11965         * graphite-optimize-isl.c (optimize_isl): Call
11966         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
11968 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
11970         * builtins.c (expand_builtin_acc_on_device): Delete.
11971         (expand_builtin): Don't call it.
11972         (fold_builtin_1): Fold acc_on_device.
11974 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
11976         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
11977         (ix86_nsaved_sseregs): Likewise.
11979 2015-09-29  Jeff Law  <law@redhat.com>
11981         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
11982         computation of unused value.
11984         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
11985         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
11986         inline macro expansion.
11988         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
11990         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
11991         (gen_shl_sext): Likewise.
11992         * config/sh/sh.md (divsi3): Likewise.
11993         (imm->ext_dest_operand splitter): Likewise.
11995 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
11996             Aditya Kumar  <aditya.k7@samsung.com>
11998         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
11999         (nb_data_writes_in_bb): Remove.
12000         (split_pbb): Remove.
12001         (split_reduction_stmt): Remove.
12002         (is_reduction_operation_p): Remove.
12003         (phi_contains_arg): Remove.
12004         (follow_ssa_with_commutative_ops): Remove.
12005         (detect_commutative_reduction_arg): Remove.
12006         (detect_commutative_reduction_assign): Remove.
12007         (follow_inital_value_to_phi): Remove.
12008         (edge_initial_value_for_loop_phi): Remove.
12009         (initial_value_for_loop_phi): Remove.
12010         (used_outside_reduction): Remove.
12011         (detect_commutative_reduction): Remove.
12012         (translate_scalar_reduction_to_array_for_stmt): Remove.
12013         (remove_phi): Remove.
12014         (dr_indices_valid_in_loop): Remove.
12015         (close_phi_written_to_memory): Remove.
12016         (translate_scalar_reduction_to_array): Remove.
12017         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12018         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12019         (rewrite_commutative_reductions_out_of_ssa): Remove.
12020         (build_poly_scop): Remove call to
12021         rewrite_commutative_reductions_out_of_ssa.
12023 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
12025         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12026         Add new insn types for vector load and store pairs.
12027         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12028         types "neon_ldp{,_q}".
12029         * config/arm/cortex-a57.md (neon_load_c): Add insn types
12030         "neon_ldp{,_q}".
12031         (neon_store_complex): Add insn types "neon_stp{,_q}".
12032         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12033         "neon_{ldp,stp}_q".
12035 2015-09-29  Jeff Law  <law@redhat.com>
12037         * config/rx/constraints.md (Int08): Fix undefined left shift
12038         behaviour.
12039         (Sint08, Sint16, Sint24): Likewise.
12040         * config/rx/rx.c (rx_get_stack_layout): Likewise.
12042         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12043         behaviour.
12045         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12046         left shift behaviour.
12047         * config/msp430/constraints.md ('L' constraint): Similarly.
12048         ('Ys' constraint): Similarly.
12050 2015-09-29  Richard Biener  <rguenther@suse.de>
12052         PR tree-optimization/67170
12053         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12054         the translate function pointer parameter to get the
12055         bool whether to disambiguate only by reference.
12056         (walk_non_aliased_vuses): Likewise.
12057         * tree-ssa-alias.c (maybe_skip_until): Adjust.
12058         (get_continuation_for_phi_1): Likewise.
12059         (get_continuation_for_phi): Likewise.
12060         (walk_non_aliased_vuses): Likewise.
12061         * tree-ssa-sccvn.c (const_parms): New bitmap.
12062         (vn_reference_lookup_3): Adjust for interface change.
12063         Disambiguate parameters pointing to readonly memory.
12064         (free_scc_vn): Free const_parms.
12065         (run_scc_vn): Initialize const_parms from a fn spec attribute.
12067 2015-09-29  Richard Biener  <rguenther@suse.de>
12069         PR tree-optimization/67741
12070         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12071         builtin calls with correct signature.
12073 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
12075         PR target/65105
12076         * config/i386/i386.c: Include dbgcnt.h.
12077         (has_non_address_hard_reg): New.
12078         (convertible_comparison_p): New.
12079         (scalar_to_vector_candidate_p): New.
12080         (remove_non_convertible_regs): New.
12081         (scalar_chain): New.
12082         (scalar_chain::scalar_chain): New.
12083         (scalar_chain::~scalar_chain): New.
12084         (scalar_chain::add_to_queue): New.
12085         (scalar_chain::mark_dual_mode_def): New.
12086         (scalar_chain::analyze_register_chain): New.
12087         (scalar_chain::add_insn): New.
12088         (scalar_chain::build): New.
12089         (scalar_chain::compute_convert_gain): New.
12090         (scalar_chain::replace_with_subreg): New.
12091         (scalar_chain::replace_with_subreg_in_insn): New.
12092         (scalar_chain::emit_conversion_insns): New.
12093         (scalar_chain::make_vector_copies): New.
12094         (scalar_chain::convert_reg): New.
12095         (scalar_chain::convert_op): New.
12096         (scalar_chain::convert_insn): New.
12097         (scalar_chain::convert): New.
12098         (convert_scalars_to_vector): New.
12099         (pass_data_stv): New.
12100         (pass_stv): New.
12101         (make_pass_stv): New.
12102         (ix86_option_override): Created and register stv pass.
12103         (flag_opts): Add -mstv.
12104         (ix86_option_override_internal): Likewise.
12105         * config/i386/i386.md (SWIM1248x): New.
12106         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12107         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12108         (*anddi3_doubleword): New.
12109         (*zext<mode>_doubleword): New.
12110         (*zextsi_doubleword): New.
12111         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12112         (*<code>di3_doubleword): New.
12113         * config/i386/i386.opt (mstv): New.
12114         * dbgcnt.def (stv_conversion): New.
12116 2015-09-29  Tom de Vries  <tom@codesourcery.com>
12118         * tree-cfg.c (dump_function_to_file): Dump function attributes.
12120 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12122         PR target/67716
12123         * config/sh/sh.c (sh_override_options_after_change): New.
12124         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12125         (sh_option_override): Move align_loops, align_jumps and
12126         align_functions handling into sh_override_options_after_change.
12128 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
12130         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12131         (nvptx_record_offload_symbol): Record function execution geometry.
12132         * config/nvptx/mkoffload.c (process): Include launch geometry in
12133         function data.
12134         * omp-low.c (oacc_launch_pack): New.
12135         (replace_oacc_fn_attrib): New.
12136         (set_oacc_fn_attrib): New.
12137         (get_oacc_fn_attrib): New.
12138         (expand_omp_target): Create keyed varargs for GOACC_parallel call
12139         generation.
12140         * omp-low.h (get_oacc_fn_attrib): Declare.
12141         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12142         (DEF_FUNCTION_TYPE_VAR_11): Delete.
12143         * tree.h (OMP_CLAUSE_EXPR): New.
12144         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12146 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12147             Sebastian Pop  <s.pop@samsung.com>
12149         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12151 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12152             Sebastian Pop  <s.pop@samsung.com>
12154         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12155         * graphite-scop-detection.c (struct sese_l): New type.
12156         (get_entry_bb): API for getting entry bb of SESE.
12157         (get_exit_bb): API for getting exit bb of SESE.
12158         (class debug_printer): New type.  Simple printer in debug mode.
12159         (trivially_empty_bb_p): New.  Return true when BB is empty or
12160         contains only debug instructions.
12161         (graphite_can_represent_expr): Call scalar_evoution_in_region
12162         instead of analyze_scalar_evolution.  Pass in scop instead of only
12163         the scop entry.
12164         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12165         scop entry.
12166         (stmt_simple_for_scop_p): Same.
12167         (harmful_stmt_in_bb): Same.
12168         (graphite_can_represent_loop): Deleted.
12169         (struct scopdet_info): Deleted.
12170         (scopdet_basic_block_info): Deleted.
12171         (build_scops_1): Deleted.
12172         (bb_in_sd_region): Deleted.
12173         (find_single_entry_edge): Deleted.
12174         (find_single_exit_edge): Deleted.
12175         (create_single_entry_edge): Deleted.
12176         (sd_region_without_exit): Deleted.
12177         (create_single_exit_edge): Deleted.
12178         (unmark_exit_edges): Deleted.
12179         (mark_exit_edges): Deleted.
12180         (create_sese_edges): Deleted.
12181         (build_graphite_scops): Deleted.
12182         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12183         (build_scops): Use the new scop_builder to build scops.
12184         (dot_all_scops_1): Use the new pretty printer.  Print loop father
12185         as well.
12186         (loop_body_is_valid_scop): New.  Return true if loop body is a
12187         valid scop.
12188         (class scop_builder): New.  Builds SCoPs for polyhedral
12189         optimizations.
12190         (scop_builder): New constructor.
12191         (static sese_l invalid_sese): sese_l with invalid edges.
12192         (get_sese): Get an sese (from a loop) if possible, invalid_sese
12193         otherwise.
12194         (get_nearest_dom_with_single_entry): Get nearest dominator of a
12195         basic_block with single entry.  Return NULL if we get to the
12196         beginning of a function.
12197         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12198         a basic_block with single exit.  Return NULL if we get to the
12199         beginning of a function.
12200         (print_sese): Pretty-print SESE.
12201         (merge_sese): Merge two SESEs if possible and return the new SESE.
12202         (build_scop_depth): Start building the SCoP within a loop nest.
12203         (build_scop_breadth): Start building the SCoP at a single loop
12204         depth.  Merge adjacent SESEs if valid.
12205         (can_represent_loop_1): Returns true if Graphite can represent
12206         loop inside SCoP.  Helper for can_represent_loop.
12207         (can_represent_loop): Returns true if Graphite can represent LOOP
12208         and all its nested loops in SCoP.
12209         (loop_is_valid_scop): Returns true if LOOP and all its nests
12210         constitute a valid SCoP.
12211         (region_has_one_loop): Returns true of a region has only one loop.
12212         (add_scop): Add SCoP to the list of valid scops.  Removes an
12213         already existing scop if it intersects with or subsumed by this one.
12214         (harmful_stmt_in_region): Returns true if SCoP has any statment
12215         which cannot be represented by Graphite.
12216         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12217         (remove_subscops): Remove any SCoP from the list of already found
12218         SCoPs, if subsumed by S1.
12219         (intersects): Return true if region bounded by SCoPs S1 and S2
12220         intersect.
12221         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12222         * graphite.c (print_graphite_scop_statistics):
12223         (print_graphite_statistics): Print SCoP info while debugging.
12224         (graphite_initialize): Early exit in case number of loops in a
12225         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12226         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12227         (graphite_finalize):
12228         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12229         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12230         (recompute_all_dominators): Recalculate POST_DOMINATORS.
12231         * tree-cfg.c (print_loops): Print the function name while printing
12232         loops.
12234 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12235             Sebastian Pop  <s.pop@samsung.com>
12237         PR tree-optimization/67700
12238         * graphite-sese-to-poly.c (parameter_index_in_region): Call
12239         invariant_in_sese_p_rec.
12240         (extract_affine): Same.
12241         (rewrite_cross_bb_scalar_deps): Call update_ssa.
12242         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
12243         * sese.h (invariant_in_sese_p_rec): Declare.
12245 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
12247         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12249 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
12251         Revert:
12252         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12253                     Jiong Wang  <jiong.wang@arm.com>
12255         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12256         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12257         (REG_CLASS_NAMES): Likewise.
12258         (REG_CLASS_CONTENTS): Likewise.
12259         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12260         (aarch64_register_move_cost): Likewise.
12261         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12262         possible.
12263         * config/aarch64/constraints.md (Uc0): New constraint.
12265 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
12267         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12269 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
12271         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12272         SECTION_EXCLUDE in XO mapping class.
12274 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12276         PR target/54236
12277         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12278         and handle ne and eq codes.
12279         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12280         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
12281         CONST_INT_P.  Use reverse_condition.
12282         (sh_split_treg_set_expr): Likewise.
12284 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
12286         * config/arm/types.md (type): Add rotate_imm.
12287         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12288         ROR immediate case.
12289         (*rorsi3_insn_uxtw): Likewise.
12290         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12291         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12292         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12294 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12296         PR rtl-optimization/67481
12297         * ifcvt.c (contains_ccmode_rtx_p): New function.
12298         (insn_valid_noce_process_p): Use it.
12300 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12302         PR rtl-optimization/67456
12303         PR rtl-optimization/67464
12304         PR rtl-optimization/67465
12305         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12306         move in the mode of x.  Handle combination of complex and simple
12307         block pairs as well as the case when one is empty.
12309 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12311         * doc/gimple.texi: Update references to gimple_statement_base.
12312         * gdbhooks.py: Likewise.
12313         * gimple.h: Likewise.
12315 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12317         * config/sparc/driver-sparc.c: map LEON to leon3
12319 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12321         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12322           and make it inverse to change default
12323         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12324           supervisor mode
12325         * doc/invoke.texi: Document change of default
12327 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12329         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12330         true on %f0 for a target without FPU.
12331         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12332         without FPU.
12333         (untyped_return): Do not load %f0 for a target without FPU.
12335 2015-09-28  Andrew Pinski  <apinski@cavium.com>
12337         * config/aarch64/aarch64.md (prefetch):
12338         Change the predicate of operand 0 to register_operand.
12340 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
12342         * config/i386/predicates.md (register_sse4nonimm_operand): New
12343         predicate.
12344         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12345         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12346         Use register_sse4nonimm_operand as operand 0 predicate.
12347         (*vec_extractv8hi_sse2): Remove insn pattern.
12348         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12349         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12351 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
12352             Kaz Kojima  <kkojima@gcc.gnu.org>
12354         PR target/67391
12355         * config/sh/sh-protos.h (sh_lra_p): Declare.
12356         * config/sh/sh.c (sh_lra_p): Make non-static.
12357         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12358         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
12359         Expand into addsi3_scr if operands[2] if needed.
12360         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
12361         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
12362         (addsi3_scr, *addsi3): New insn_and_split patterns.
12364 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
12366         PR rtl-optimization/64164
12367         PR tree-optimization/67312
12368         PR middle-end/67340
12369         PR middle-end/67490
12370         PR bootstrap/67597
12371         * cfgexpand.c (parm_in_stack_slot_p): Remove.
12372         (ssa_default_def_partition): Remove.
12373         (get_rtl_for_parm_ssa_default_def): Remove.
12374         (set_rtl): Check that RTL assignments match expectations.
12375         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
12376         default def location for params and results.  Record SSA names
12377         or types in REG and MEM attrs, respectively.
12378         (set_parm_rtl): New.
12379         (expand_one_ssa_partition): Drop logic that assigned MEMs with
12380         unassigned addresses.
12381         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12382         deferred stack alloc vars.
12383         (expand_used_vars): Skip partitions holding parm default defs.
12384         Move adjust_one_expanded_partition_var loop...
12385         (pass_expand::execute): ... here.  Drop redundant assert.
12386         Adjust comments before the final loop over all ssa names.
12387         Require assigned rtl of parms and results to match exactly.
12388         Reset its attributes to match them, not any other variables in
12389         the same partition.
12390         (expand_debug_expr): Use entry value for PARM's default defs
12391         only iff they have zero nondebug uses.
12392         * cfgexpand.h (parm_in_stack_slot_p): Remove.
12393         (get_rtl_for_parm_ssa_default_def): Remove.
12394         (set_parm_rtl): Declare.
12395         * doc/invoke.texi: Improve wording.
12396         * explow.c (promote_decl_mode): Fix promote_function_mode for
12397         result decls not by reference.
12398         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12399         bypass TYPE_MODE to get the actual vector mode.
12400         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
12401         2015-08-19's changes as follows.  Drop include of
12402         basic-block.h and df.h.
12403         (rtl_for_parm): Remove.
12404         (maybe_reset_rtl_for_parm): Remove.
12405         (parm_in_unassigned_mem_p): Remove.
12406         (use_register_for_decl): Add logic for RESULT_DECLs matching
12407         assign_parms' behavior.
12408         (split_complex_args): Revert.
12409         (assign_parms_augmented_arg_list): Revert.  Add comment
12410         referencing the logic above.
12411         (assign_parm_adjust_stack_rtl): Revert.
12412         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
12413         of SET_DECL_RTL.  Set up a REG if the parm demands so.
12414         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
12415         calls into a single set_parm_rtl.  Set up a temporary RTL
12416         temporarily for expand_assignment.
12417         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
12418         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
12419         (assign_bounds): Revert.
12420         (assign_parms): Revert.  Use set_parm_rtl.
12421         (allocate_struct_function): Relayout result and parms of
12422         non-abstruct functions.
12423         (expand_function_start): Revert.  Use set_parm_rtl.  If the
12424         result is not a hard reg, create a pseudo from the promoted
12425         mode of the default def.  Promote static chain mode.
12426         * tree-outof-ssa.c (remove_ssa_form): Drop unused
12427         partition_has_default_def.  Set up
12428         partitions_for_parm_default_defs.
12429         (finish_out_of_ssa): Remove partition_has_default_def.
12430         Release partitions_for_parm_default_defs.
12431         * tree-outof-ssa.h (struct ssaexpand): Remove
12432         partition_has_default_def.  Add
12433         partitions_for_parm_default_defs.
12434         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12435         stor-layout.h.
12436         (build_ssa_conflict_graph): Fix conflict-detection of default
12437         defs of even unused default defs of params and results.
12438         (for_all_parms): New.
12439         (create_default_def): New.
12440         (register_default_def): New.
12441         (coalesce_with_default): New.
12442         (create_outofssa_var_map): Create default defs for all parms
12443         and results, and register their partitions.  Add GIMPLE_RETURN
12444         operands as coalesce candidates with results.  Add default
12445         defs of each parm or result as coalesce candidates with its
12446         other defs.  Mark each result def, and each default def of
12447         parms, as used_in_copy.
12448         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
12449         with the ssa names, even anonymous ones.  Drop
12450         parm_in_stack_slot_p calls.  Require same signedness and
12451         alignment.
12452         (coalesce_ssa_name): Add coalesce candidates for all defs of
12453         each parm and result, even unused ones.
12454         (parm_default_def_partition_arg): New type.
12455         (set_parm_default_def_partition): New.
12456         (get_parm_default_def_partitions): New.
12457         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12458         * tree-ssa-live.c (partition_view_init): Regard unused defs of
12459         parms and results as used.
12460         (verify_live_on_entry): Don't error out just because they're
12461         not live.
12463 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
12465         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12466         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12467         (output_fde): Don't output length for debug_frame on AIX.
12468         (output_call_frame_info): Don't output length for debug_frame on AIX.
12469         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12470         HAVE_XCOFF_DWARF_EXTRAS.
12471         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12472         HAVE_XCOFF_DWARF_EXTRAS.
12473         (output_compilation_unit_header): Don't output length on AIX.
12474         (output_pubnames): Don't output length on AIX.
12475         (output_aranges): Delete argument. Compute length locally. Don't
12476         output length on AIX.
12477         (output_line_info): Don't output length on AIX.
12478         (dwarf2out_finish): Don't compute aranges_length.
12479         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12480         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12481         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12482         symbol decoration for AIX.
12483         (rs6000_xcoff_debug_unwind_info): New.
12484         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12485         for SECTION_DEBUG.
12486         (rs6000_xcoff_declare_function_name): Emit different
12487         .function pseudo-op when DWARF2_DEBUG. Don't call
12488         xcoffout_declare_function for DWARF2_DEBUG.
12489         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12490         Redefine.
12491         * config/rs6000/aix71.h: New.
12492         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12493         locations support.
12494         * configure: Regenerate.
12495         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12496         DWARF support.
12498 2015-09-26  Jeff Law  <law@redhat.com>
12500         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12501         behaviour.
12502         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12503         behaviour.
12505         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12506         behaviour
12508         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12509         undefined behaviour.
12511         * config/cris/cris.md (asrandb): Fix left shift undefined
12512         behaviour.
12513         (asrandw): Likewise.
12515 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
12517         PR target/61578
12518         * lra-constarints.c (match_reload): Check presence of the input pseudo
12519         in the output operand.
12521 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12523         * doc/invoke.texi (-fsanitize): Minor wording tweak.
12525 2015-09-25  Tobias Burnus  <burnus@net-b.de>
12527         * doc/invoke.texi (-fsanitize): Update URLs.
12529 2015-09-25  Teresa Johnson  <tejohnson@google.com>
12531         * opts.c (finish_options): Unset -freorder-blocks-and-partition
12532         if not using profile.
12534 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12536         PR pretty-print/67567
12537         * pretty-print.c (pp_string): Add gcc_checking_assert.
12538         * pretty-print.h (output_buffer_append_r): Likewise.
12540 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
12542         PR target/67675
12543         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12544         addr2 individually.  Don't emit logical or insn if one is known to
12545         be aligned approriately.
12546         (sh_expand_cmpnstr): Likewise.
12548 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
12550         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12551         __builtin_aarch64_fp[sc]r arguments into a register.
12553 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
12555         * config.gcc (x86_archs): Replace lakemount with lakemont.
12556         (with_cpu): Likewise.
12557         (with_arch): Likewise.
12558         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12559         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
12560         __tune_lakemount__ with __tune_lakemont__.
12561         * config/i386/i386.c (lakemount_cost): Renamed to ...
12562         (lakemont_cost): This.
12563         (m_LAKEMOUNT): Renamed to ...
12564         (m_LAKEMONT): This.
12565         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12566         (processor_target_table): Replace "lakemount" with "lakemont".
12567         (processor_alias_table): Likewise.
12568         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12569         PROCESSOR_LAKEMONT.
12570         (ix86_adjust_cost): Likewise.
12571         (ia32_multipass_dfa_lookahead): Likewise.
12572         * config/i386/i386.h (processor_type): Likewise.
12573         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12574         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
12575         Lakemount with Lakemont.
12577 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
12579         * config.gcc (x86_archs): Replace iamcu with lakemount.
12580         (with_cpu): Likewise.
12581         (with_arch): Likewise.
12582         * doc/invoke.texi: Likewise.
12583         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12584         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
12585         __tune_iamcu__ with __tune_lakemount__.
12586         * config/i386/i386.c (iamcu_cost): Renamed to ...
12587         (lakemount_cost): This.
12588         (m_IAMCU): Renamed to ...
12589         (m_LAKEMOUNT): This.
12590         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12591         (processor_target_table): Replace "iamcu" with "lakemount".
12592         (processor_alias_table): Likewise.
12593         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12594         PROCESSOR_LAKEMOUNT.
12595         (ix86_adjust_cost): Likewise.
12596         (ia32_multipass_dfa_lookahead): Likewise.
12597         * config/i386/i386.h (processor_type): Likewise.
12598         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12600 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
12602         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12603         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12604         Declare.
12605         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12606         (pa_expand_compare_and_swap_loop): New.
12607         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12608         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12609         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12610         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12611         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12612         Revise.
12614 2015-09-24  Michael Collison  <michael.collison@linaro.org>
12616         PR other/57195
12617         * read-md.c (read_name): Allow mode iterators inside angle
12618         brackets in rtl expressions.
12620 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
12622         PR target/61578
12623         * ira-color.c (update_allocno_cost): Add parameter.
12624         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
12625         parameter.
12627 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12629         PR driver/67640
12630         * opts-common.c (prune_options): Discard all -fdiagnostics-color
12631         but the last one, which is moved to the front to be processed
12632         first.
12633         * opts.c (enable_warning_as_error): Reject options that do not
12634         control warnings.
12636 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12638         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12640 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
12642         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12643         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12644         (aarch64_cannot_force_const_mem): Likewise.
12645         (aarch64_classify_address): Likewise.
12646         (aarch64_classify_symbolic_expression): Likewise.
12647         (aarch64_print_operand): Likewise.
12648         (aarch64_classify_symbol): Likewise.
12649         (aarch64_mov_operand_p): Likewise.
12650         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12651         (aarch64_mov_operand): Likewise.
12653 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
12655         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12656         for info->spe_gp_size.
12658 2015-09-24  Richard Biener  <rguenther@suse.de>
12660         PR lto/67699
12661         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12662         abstract origins.
12664 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
12666         * tree-object-size.c (plus_stmt_object_size)
12667         (cond_expr_object_size): Change the formal parameters from gimple
12668         to gimple *.
12669         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12670         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12671         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12673 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12675         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12676         Check for ld -type pie on Solaris 11.x and 12.
12677         * configure: Regenerate.
12678         * config.in: Regenerate.
12680         * gcc.c (LD_PIE_SPEC): Allow redefinition.
12682         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12683         (STARTFILE_SPEC): Use it.
12684         (ENDFILE_CRTEND_SPEC): Define.
12685         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12686         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12687         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12688         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12689         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12690         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12691         (ENDFILE_ARCH_SPEC): Define.
12692         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12694 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12696         * configure.ac (gcc_cv_solaris_crts): New test.
12697         * configure. Regenerate.
12698         * config.in: Regenerate.
12699         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12700         HAVE_SOLARIS_CRTS variant.
12702 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12704         * tree-inline.h (count_insns_seq): Delete prototype.
12705         (estimate_num_insns_seq): Define prototype.
12706         * tree-inline.c (count_insns_seq): Delete.
12707         (estimate_num_insns_seq): Remove static qualifier.
12708         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12709         with estimate_num_insns_seq.
12711 2015-09-24  Richard Biener  <rguenther@suse.de>
12713         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12714         members.
12715         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12716         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
12717         offset.
12718         (ao_ref_init_from_vn_reference): Record clique and base in the
12719         built base.
12720         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12722 2015-09-24  Richard Biener  <rguenther@suse.de>
12724         PR tree-optimization/48885
12725         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12726         as not including any restrict tags from other pointers.
12728 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12730         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12731         character when appending to offload_targets.
12733         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12734         offload targets by commas, not colons.
12735         * config.in: Regenerate.
12736         * configure: Likewise.
12737         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12738         instead of setting up the default offload targets here...
12739         (process_command): ..., do it here.
12740         libgomp/
12741         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12742         targets are separated by commas.
12743         * config.h.in: Regenerate.
12745 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
12746             Nathan Sidwell  <nathan@codesourcery.com>
12748         * omp-low.h (omp_reduction_init_op): Declare.
12749         * omp-low.c (omp_reduction_init_op): New, broken out of ...
12750         (omp_reduction_init): ... here.  Call it.
12751         * tree-parloops.c (initialize_reductions): Use
12752         omp_reduction_init_op.
12754 2015-09-23   Richard Biener  <rguenther@suse.de>
12756         PR middle-end/67662
12757         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12758         undefined overflow unless they will cancel out.
12760 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12762         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12763         insn emit.
12765 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12767         PR c/49655
12768         * opts.h (write_langs): Declare.
12769         * opts-global.c (write_langs): Make it extern.
12771 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
12773         PR target/67391
12774         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12775         overlapping regs when matching the pattern.
12777 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12779         * config/aarch64/aarch64-simd.md
12780         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12781         (aarch64_float_truncate_hi_v4sf_le): New.
12782         (aarch64_float_truncate_hi_v4sf_be): Likewise.
12784 2015-09-23  Richard Biener  <rguenther@suse.de>
12786         * tree-ssa-structalias.c (intra_create_variable_infos): Build
12787         representatives for all restrict qualified pointer destinations.
12789 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
12791         * config/i386/i386.md (define_code_attr mshift): New.
12792         (define_mode_iterator SWI1248_AVX512BW): Rename ...
12793         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12794         only.
12795         (define_insn "*k<logic><mode>"): Use new iterator name.
12796         (define_insn "*<mshift><mode>3"): New.
12798 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
12800         PR middle-end/67649
12801         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12802         mark the block as accessible.
12804 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
12806         * function.c (thread_prologue_and_epilogue_insns): Delete
12807         orig_entry_edge argument to try_shrink_wrapping.
12808         * shrink-wrap.c (can_get_prologue): New function.
12809         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12810         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
12811         can_get_prologue where needed.  Remove code that finds a single
12812         edge for the prologue.  Remove code that tests if any reg clobbered
12813         by the prologue is live on the prologue edge.  Remove code that finds
12814         the new prologue edge after duplicating blocks.  Make a new prologue
12815         block and edge.
12816         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12818 2015-09-22  Jeff Law  <law@redhat.com>
12820         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12821         behavior.
12823 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
12825         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
12826         -Wtemplates, -Wnamespaces): Document.
12828 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12830         PR tree-optimization/67671
12831         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12832         pointer references as restrict.
12834 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
12836         * config/nios2/nios2.c (nios2_legitimize_address): When handling
12837         'reg + reloc' cases, allow first operand to be non-REG, and use
12838         force_reg() to enforce address pattern.
12840 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
12842         PR target/67480
12843         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
12844         (define_mode_iterator VI12_AVX_AVX512F): New.
12845         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
12846         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
12847         (define_insn "*<code><mode>3"): ... Into new pattern using
12848         VI12_AVX_AVX512F iterators without masking.
12850 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12852         * config.gcc: Support "skylake-avx512".
12853         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12854         PROCESSOR_SKYLAKE_AVX512.
12855         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
12856         (processor_target_table): Add "skylake-avx512".
12857         (PTA_SKYLAKE_AVX512): Define.
12858         (ix86_option_override_internal): Add "skylake_avx512".
12859         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
12860         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
12861         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
12862         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
12863         * doc/invoke.texi (skylake-avx512): New.
12865 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12867         * config/i386/i386.md (define_insn "kunpckhi"): Fix
12868         operand in pattern.
12869         (define_insn "kunpcksi"): Ditto.
12870         (define_insn "kunpckdi"): Ditto.
12872 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12874         * config/i386/i386.md (define_split not/xor SWI1248x): Use
12875         iterator instead of fixed modes.
12877 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12879         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12880         Adjust declaration.
12881         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
12882         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
12883         out_result.  Update to support update-fetch operations.
12884         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
12885         Adjust for change to aarch64_gen_atomic_ldop.
12886         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
12887         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
12888         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
12889         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
12890         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
12892 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12894         * config/aarch64/aarch64-protos.h
12895         (aarch64_atomic_ldop_supported_p): Declare.
12896         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
12897         (enum aarch64_atomic_load_op_code): New.
12898         (aarch64_emit_atomic_load_op): New.
12899         (aarch64_gen_atomic_ldop): Update to support load-operate
12900         patterns.
12901         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
12902         to an expander.
12903         (aarch64_atomic_<atomic_optab><mode>): New.
12904         (aarch64_atomic_<atomic_optab><mode>_lse): New.
12905         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
12906         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
12907         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
12909 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12911         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
12912         (UNSPECV_ATOMIC_LDOP_OR): New.
12913         (UNSPECV_ATOMIC_LDOP_BIC): New.
12914         (UNSPECV_ATOMIC_LDOP_XOR): New.
12915         (UNSPECV_ATOMIC_LDOP_PLUS): New.
12916         (ATOMIC_LDOP): New.
12917         (atomic_ldop): New.
12918         (aarch64_atomic_load<atomic_ldop><mode>): New.
12920 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12922         * config/aarch64/aarch64.md
12923         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
12924         pattern.
12926 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
12928         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
12929         Declare.
12930         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
12931         (aarch64_gen_atomic_ldop): New.
12932         (aarch64_split_atomic_op): Fix whitespace and add a comment.
12933         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
12934         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
12935         (atomic_exchange<mode>): Replace with an expander.
12936         (aarch64_atomic_exchange<mode>): New.
12937         (aarch64_atomic_exchange<mode>_lse): New.
12938         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
12939         (aarch64_atomic_swp<mode>): New.
12941 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12943         * tree-inline.c (expand_call_inline): Use inform for extra note.
12944         Do not give a note with UNKNOWN_LOCATION.
12945         Replace input_location with gimple_location (stmt).
12946         Use true/false instead of TRUE/FALSE.
12948 2015-09-22  Tom de Vries  <tom@codesourcery.com>
12950         PR tree-optimization/67666
12951         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
12952         with single field non-conservative.
12954 2015-09-21  David S. Miller  <davem@davemloft.net>
12956         PR/67622
12957         Revert:
12958         2015-09-11  David S. Miller  <davem@davemloft.net>
12960         * config/sparc/constraints.md: Make "U" constraint a real register
12961         constraint.
12962         * config/sparc/sparc.c (TARGET_LRA_P): Define.
12963         (D_MODES, DF_MODES): Add missing cast.
12964         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
12965         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
12966         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
12967         cost to 8.
12968         * config/sparc/sparc.h (PROMOTE_MODE): Define.
12969         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
12970         provide these insn when flag_pic.
12972         2015-09-17  David S. Miller  <davem@davemloft.net>
12974         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
12975         Declare.
12976         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
12977         function.
12978         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
12979         (HARD_REGNO_CALLER_SAVE_MODE): Define.
12980         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
12981         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
12982         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
12983         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
12984         provide when flag_pic.
12986 2015-09-21  Jeff Law  <law@redhat.com>
12988         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
12989         behavior.
12991 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12993         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
12995 2015-09-21  Richard Biener  <rguenther@suse.de>
12997         * passes.c (rest_of_decl_compilation): Do not call
12998         dwarf2out_early_global_decl for aliases.
13000 2015-09-21  Richard Biener  <rguenther@suse.de>
13002         PR debug/67664
13003         * dwarf2out.c (add_location_or_const_value_attribute): Remove
13004         attribute parameter.  Early exit if either DW_AT_const_value
13005         or DW_AT_location are present already.
13006         (gen_variable_die): Adjust caller.
13007         (dwarf2out_late_global_decl): Likewise.
13009 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13011         PR target/67657
13012         * config/sh/sh.c (sh_remove_overlapping_post_inc,
13013         sh_peephole_emit_move_insn): Add new functions.
13014         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13015         sh_peephole_emit_move_insn): Declere them.
13016         * config/sh/sh.md: Use them in various peephole2 patterns.
13018 2015-09-21  Richard Biener  <rguenther@suse.de>
13020         PR middle-end/67651
13021         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13022         address with -fno-delete-null-pointer-checks.
13024 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
13026         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13027         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13028         (reduc_uplus_v16qi): Remove.
13030         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13031         (reduc_<VEC_reduc_name>_v2df): Remove.
13032         (reduc_<VEC_reduc_name>_v4sf): Remove.
13033         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13035         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13036         gen_ function by removing * prefix.
13037         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13039 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13041         PR middle-end/60832
13042         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13043         Print i_bound without converting it to a tree.
13045 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
13047         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13048         operands[4] operands[5] swap with std::swap, removed tmp variable.
13049         (arm_evpc_neon_vzip): Replaced in0/in1 and
13050         out0/out1 swaps with std::swap, removed x variable.
13051         (arm_evpc_neon_vtrn): Replaced in0/int1 and
13052         out0/out1 swaos with std::swap, removed x variable.
13053         (arm_expand_vec_perm_const_1): Replaced
13054         d->op0/d->op1 swap with std::swap, removed x variable.
13055         (arm_evpc_neon_vuzp): Replaced in0/in1 and
13056         out0/out1 swaps with std::swap, removed x variable.
13058 2015-09-21  Jonathan Yong  <10walls@gmail.com>
13060         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13061         sysroot/usr/lib/32api for additional win32 libraries,
13062         fixes failing Cygwin bootstrapping.
13064 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13066         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13068 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13070         PR target/67126
13071         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13072         (*mov_t_msb_neg): Rewrite negc pattern.
13074 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13076         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13077         immediate generation code.
13079 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13081         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13082         redundant immediate generation code.
13084 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13086         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13087         (AARCH64_NUM_BITMASKS): Remove.
13088         (aarch64_bitmasks_cmp): Remove.
13089         (aarch64_build_bitmask_table): Remove.
13091 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13093         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13094         slow immediate matching loops with a faster algorithm.
13096 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13098         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13099         faster algorithm.
13101 2015-09-20  Jeff Law  <law@redhat.com>
13103         PR tree-optimization/47679
13104         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13105         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13106         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13107         (thread_through_normal_block): Use record_temporary_equivalences.
13109 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
13111         * coretypes.h (gimple): Change typedef to be a forward declaration.
13112         * gimple.h (gimple_statement_base): rename to gimple.
13113         * (all functions and types using gimple): Adjust.
13114         * *.[ch]: Likewise.
13116 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
13117             David Edelsohn  <dje.gcc@gmail.com>
13119         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13120         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13121         (EH_FRAME_THROUGH_COLLECT2): Define.
13122         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13123         (ASM_OUTPUT_DWARF_PCREL): Define.
13124         (ASM_OUTPUT_DWARF_DATAREL): Define.
13126 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
13128         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13129         of TARGET_ELF32.
13131 2015-09-18  Jeff Law  <law@redhat.com>
13133         PR tree-optimization/47679
13134         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
13135         it here ...
13136         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13137         object.  Update constructor.
13138         (pass_dominator::execute):  Corresponding chagnes to declaration
13139         and initialization of avail_exprs_stack.  Update constructor call
13140         for dom_opt_dom_walker object.
13141         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
13142         it down to children as needed.
13143         (record_equivalences_from_incoming_edge): Likewise.
13144         (eliminate_redundant_computations): Likewise.
13145         (record_equivalences_from_stmt): Likewise.
13146         (simplify_stmt_for_jump_threading): Likewise.
13147         (record_temporary_equivalences): Likewise.
13148         (optimize_stmt): Likewise.
13149         (dom_opt_dom_walker::thread_across_edge): Update access to
13150         avail_exprs_stack object and pass it to children as needed.
13151         (dom_opt_dom_walker::before_dom_children): Similarly.
13152         (dom_opt_dom_walker::after_dom_children): Similarly.
13153         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13154         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13155         Add avail_expr_stack argument.  Pass it to children as needed.
13156         (dummy_simplify): Likewise.
13157         (simplify_control_stmt_condition): Likewise.
13158         (thread_around_empty_blocks): Likewise.
13159         (thread_through_normal_block): Likewise.
13160         (thread_across_edge): Likewise.
13161         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13162         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13164         PR tree-optimization/47679
13165         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
13166         it here ...
13167         (dom_opt_dom_walker): New private member holding the const_and_copies
13168         object.  Update constructor.
13169         (pass_dominator::execute): Corresponding changes to declaration
13170         and initialization of const_and_copies.  Update constructor call
13171         for the dom_opt_dom_walker object.
13172         (record_temporary_equivalences): Accept const_and_copies argument
13173         pass it down to children as needed.
13174         (record_equality): Likewise.
13175         (record_equivalences_from_incoming_edge): Likewise.
13176         (cprop_into_successor_phis, optimize_stmt): Likewise.
13177         (eliminate_redundant_computations): Likewise.
13178         (dom_opt_dom_walker::thread_across_edge): Update access to
13179         const_and_copies object and pass it to children as needed.
13180         (dom_opt_dom_walker::before_dom_children): Similarly.
13181         (dom_opt_dom_walker::after_dom_children): Similarly.
13183         PR tree-optimization/47679
13184         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
13185         it into the avail_exprs_stack class.
13186         (pass_dominator::execute): Corresponding changes to declaration
13187         and initialization of avail_exprs.  Pass avail_exprs to
13188         dump_dominator_optimization_stats.
13189         (record_cond): Extract avail_exprs from avail_exprs_stack.
13190         (lookup_avail_expr): Similarly.
13191         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
13192         position in file.
13193         (dump_dominator_optimization_stats): Make static and prototype.
13194         Add argument for the hash table to dump.
13195         (debug_dominator_optimization_stats): Remove.
13196         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13197         prototype.
13198         (debug_dominator_optimization_stats): Similarly.
13199         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13200         "void" in prototype for pop_to_marker method.  Add accessor method
13201         for the underlying avail_exprs table.
13203         * tree-ssa-threadedge.c: Remove trailing whitespace.
13205 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
13207         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13208         unsigned.
13209         (pa_ldil_cint_p): Likewise.
13210         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13211         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13212         Update callers.
13213         * config/pa/pa.md: Likewise.
13215 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
13217         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13218         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13219         (diagnostic_show_locus): Likewise.
13220         (diagnostic_print_caret_line): Likewise.
13221         * diagnostic-show-locus.c: New file.
13223 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
13225         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13226         "back" parameter. Declare label in #if block.
13228 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
13230         PR middle-end/67619
13231         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13232         the address to a register.
13234 2015-09-18  Jeff Law  <law@redhat.com>
13236         PR tree-optimization/47679
13237         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13238         * tree-ssa-dom.c: Remove unnecessary header includes.
13239         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13240         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13241         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13242         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13243         (pass_phi_only_cprop::execute): Likewise.
13244         (make_pass_phi_only_cprop): Likewise.
13245         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
13246         uses of file scoped statics by passing the required objects
13247         as parameters wherever needed.
13249 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
13250             David Edelsohn  <dje.gcc@gmail.com>
13252         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13253         EH_FRAME_THROUGH_COLLECT2.
13254         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13255         DW_EH_PE_datarel.
13256         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13257         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
13258         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13259         * except.c (switch_to_exception_section): Use a read-only section
13260         even if EH_FRAME_SECTION_NAME is undefined.
13261         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13262         * collect2.c (write_c_file_stat): Provide dbase on AIX.
13263         (scan_prog_file): Don't export __dso_handle nor
13264         __gcc_unwind_dbase.
13265         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13266         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13267         (ASM_OUTPUT_DWARF_PCREL): Define.
13268         (ASM_OUTPUT_DWARF_DATAREL): Define.
13269         (EH_FRAME_THROUGH_COLLECT2): Define.
13270         (EH_FRAME_IN_DATA_SECTION): Delete.
13271         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13272         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13273         Declare.
13274         (rs6000_asm_output_dwarf_datarel): Declare.
13275         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13276         (rs6000_aix_asm_output_dwarf_datarel): New.
13277         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13278         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13279         (EH_FRAME_THROUGH_COLLECT2): Define.
13280         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13281         (EH_FRAME_THROUGH_COLLECT2): Define.
13282         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13283         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13284         (EH_FRAME_THROUGH_COLLECT2): New.
13285         (ASM_OUTPUT_DWARF_DATAREL): New.
13286         * doc/tm.texi: Regenerate.
13288 2015-09-18  Richard Biener  <rguenther@suse.de>
13290         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13291         we're in early phase.
13292         (schedule_generic_params_dies_gen): Likewise.
13293         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13294         work as possible, retaining unhandled cases.
13295         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13296         clear out generic_type_instances at the end.
13297         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13298         (dwarf2out_early_finish): ... here.  Do most of
13299         gen_remaining_tmpl_value_param_die_attribute here.
13301 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
13303         PR tree-optimization/67283
13304         * tree-sra.c (type_consists_of_records_p): Rename to...
13305         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13306         (completely_scalarize_record): Rename to...
13307         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13308         (scalarize_elem): New.
13309         (analyze_all_variable_accesses): Follow renamings.
13311 2015-09-18  Richard Biener  <rguenther@suse.de>
13313         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13314         in early-dwarf.
13316 2015-09-18  Richard Biener  <rguenther@suse.de>
13318         PR tree-optimization/66142
13319         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13320         treat MEM[&x] and x the same.
13321         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13322         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13323         when we simplified sth.
13324         (vn_reference_maybe_forwprop_address): Likewise.
13325         (valueize_refs_1): When we simplified through
13326         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13327         set valueized_anything to true.
13328         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13329         one ref kills the other instead of just a offset-based test.
13330         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13331         for the operand_equal_p test to compare bases and also compare
13332         sizes.
13334 2015-09-17  Christian Bruel  <christian.bruel@st.com>
13336         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13338 2015-09-17  Richard Henderson  <rth@redhat.com>
13340         PR libstdc++/65913
13341         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13342         pointers that encode the alignment of the object.
13344 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13346         PR rtl-optimization/66790
13347         * df-problems.c (LIVE): Amend documentation.
13349 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
13351         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13352         and optabs-tree.o.
13353         (GTFILES): Replace optabs.c with optabs-libfunc.c.
13354         * genopinit.c (main): Add an include guard to insn-opinit.h.
13355         Protect the rtx_code parts with NUM_RTX_CODE.
13356         * optabs.h: Split parts out to...
13357         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13358         * optabs.c: Split parts out to...
13359         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13360         * cilk-common.c: Include optabs-query.h rather than optabs.h.
13361         * fold-const.c: Likewise.
13362         * target-globals.c: Likewise.
13363         * tree-if-conv.c: Likewise.
13364         * tree-ssa-forwprop.c: Likewise.
13365         * tree-ssa-loop-prefetch.c: Likewise.
13366         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13367         Remove unncessary include files.
13368         * tree-ssa-phiopt.c: Likewise.
13369         * tree-ssa-reassoc.c: Likewise.
13370         * tree-switch-conversion.c: Likewise.
13371         * tree-vect-data-refs.c: Likewise.
13372         * tree-vect-generic.c: Likewise.
13373         * tree-vect-loop.c: Likewise.
13374         * tree-vect-patterns.c: Likewise.
13375         * tree-vect-slp.c: Likewise.
13376         * tree-vect-stmts.c: Likewise.
13377         * tree-vrp.c: Likewise.
13378         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13379         rather than optabs.h.
13380         * expr.c: Include optabs-tree.h.
13381         * function.c: Likewise.
13383 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13385         PR middle-end/65958
13386         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13387         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13388         * config/arm/arm.c: Include common/common-target.h.
13389         (use_return_insn): Return 0 if the static chain register was saved
13390         above a non-APCS frame.
13391         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13392         (struct scratch_reg): New.
13393         (get_scratch_register_on_entry): New function.
13394         (release_scratch_register_on_entry): Likewise.
13395         (arm_emit_probe_stack_range): Likewise.
13396         (output_probe_stack_range): Likewise.
13397         (arm_expand_prologue): Factor out code dealing with the IP register
13398         for nested function and adjust it for stack checking.
13399         Invoke arm_emit_probe_stack_range if static builtin stack checking
13400         is enabled.
13401         (thumb1_expand_prologue): Sorry out if static builtin stack checking
13402         is enabled.
13403         (arm_expand_epilogue): Add the saved static chain register, if any, to
13404         the amount of pre-pushed registers to pop.
13405         (arm_frame_pointer_required): Return true if static stack checking is
13406         enabled and we want to catch the exception with the EABI unwinder.
13407         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13408         (UNSPEC_PROBE_STACK_RANGE): Likewise.
13409         * config/arm/arm.md (probe_stack): New insn.
13410         (probe_stack_range): Likewise.
13412 2015-09-17  Richard Biener  <rguenther@suse.de>
13414         * genmatch.c (parser::parse_expr): Improve error message
13415         for mis-placed flags.
13417 2015-09-17  Richard Biener  <rguenther@suse.de>
13419         * passes.c (rest_of_decl_compilation): Always call early_global_decl
13420         debug hook when we created a varpool node.
13421         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13422         dwarf2out_early_global_decl, when not just add location or
13423         value attributes to existing DIEs.
13425 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
13427         * config/aarch64/aarch64.md (copysigndf3): New.
13428         (copysignsf3): Likewise.
13430 2015-09-17  David S. Miller  <davem@davemloft.net>
13432         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13433         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13434         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13435         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13436         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13437         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13438         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13439         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13440         provide when flag_pic.
13442 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13444         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13445         object_allocator change.
13447 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13449         PR tree-optimization/66388
13450         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13451         (dump_iv): Dump no_overflow information.
13452         (alloc_iv): Initialize new field for struct iv.
13453         (mark_bivs): Count number of no_overflow bivs.
13454         (find_deriving_biv_for_expr, record_biv_for_address_use): New
13455         functions.
13456         (idx_find_step): Call new functions above.
13457         (add_candidate_1, add_candidate): New paramter.
13458         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13459         (get_computation_aff): Simplify convertion of cand for BIV.
13460         (get_computation_cost_at): Step cand's base if necessary.
13462 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
13464         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13465         parameter.
13466         (tree_simplify_using_condition): Ditto.
13467         (simplify_using_initial_conditions): Ditto.
13468         (loop_exits_before_overflow): Pass new argument to function
13469         simplify_using_initial_conditions.  Remove case for type conversions
13470         simplification.
13471         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13472         parameter.
13473         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13474         in iv base using loop initial conditions.
13476 2015-09-16  Jeff Law  <law@redhat.com>
13478         PR tree-optimization/47679
13479         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13480         (free_all_edge_infos): Use it.
13481         (allocate_edge_info): Free preexisting edge info data.
13482         (pass_dominator::execute): Set up initial edge info structures.
13483         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13484         thread_across_edge.
13485         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13486         If non-null, then push/pop markers appropriately.
13487         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13488         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13489         thread-across_edge.
13491 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
13493         * config/ft32/ft32.c: Fix the memory address space predicate.
13495 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13497         PR target/67573
13498         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13499         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13501 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13503         * toplev.h (check_global_declaration): Remove declaration.
13504         * toplev.c (check_global_declaration): Move to ...
13505         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13506         (analyze_functions): Update call.
13508 2015-09-16  David S. Miller  <davem@davemloft.net>
13510         * lra-constraints.c (simplify_operand_subreg): Do not assume that
13511         lowpart of a SUBREG has offset zero.
13513 2015-09-16  Jeff Law  <law@redhat.com>
13515         PR tree-optimization/47679
13516         * tree-ssa-dom.c (enum expr_kind): Moved from here to
13517         tree-ssa-scopedtables.h.
13518         (struct hashable_expr, class expr_hash_elt): Likewise.
13519         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13520         Move associated methods into tree-ssa-scopedtables.c.
13521         (avail_expr_hash, initialize_expr_from_cond): Similarly.
13522         (hashable_expr_equal_p, add_expr_commutative): Likewise.
13523         (add_hashable_expr): Likewise.
13524         (record_cond): Delete element directly.
13525         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13526         private copy ctor and assignment operator methods.
13527         (expr_elt_hasher): Inline trivial methods.
13528         (initialize_expr_from_cond): Prototype.
13529         * tree-ssa-scopedtables.c: Add necessary includes, functions and
13530         methods that were previously in tree-ssa-dom.c.  Improve various
13531         comments.
13533 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
13535         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13537 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
13539         PR bootstrap/67587
13540         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13541         fixup_partitions.
13543 2015-09-16  Richard Biener  <rguenther@suse.de>
13545         PR middle-end/67253
13546         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13547         location of possibly shared trees.
13549 2015-09-16  Richard Biener  <rguenther@suse.de>
13551         PR middle-end/67271
13552         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13554 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
13556         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13557         offset and size computations instead of HOST_WIDE_INT.
13559 2015-09-16  Richard Biener  <rguenther@suse.de>
13561         PR middle-end/67442
13562         * fold-const.c (extract_muldiv_1): Properly extend multiplication
13563         result before builting a tree via wide_int_to_tree.
13565 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
13567         * Makefile.in: Add memory-block.cc
13568         (pool_allocator::initialize): Use fixed block size.
13569         (pool_allocator::release): Use memory_block_pool.
13570         (pool_allocator::allocate): Likewise.
13571         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13572         object pools.
13573         * cfg.c (initialize_original_copy_tables): Likewise.
13574         * cselib.c (elt_list_pool, elt_loc_list_pool,
13575         cselib_val_pool): Likewise.
13576         * df-problems.c (df_chain_alloc): Likewise.
13577         * df-scan.c (df_scan_alloc): Likewise.
13578         * dse.c (cse_store_info_pool, rtx_store_info_pool,
13579         read_info_type_pool, insn_info_type_pool, bb_info_pool,
13580         group_info_pool, deferred_change_pool): Likewise.
13581         * et-forest.c (et_nodes, et_occurrences): Likewise.
13582         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13583         ipcp_agg_lattice_pool): Likewise.
13584         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13585         * ipa-profile.c (histogram_pool): Likewise.
13586         * ipa-prop.c (ipa_refdesc_pool): Likewise.
13587         * ira-build.c (live_range_pool, allocno_pool, object_pool,
13588         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13589         * ira-color.c (update_cost_record_pool): Likewise.
13590         * lra-lives.c (lra_live_range_pool): Likewise.
13591         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13592         * memory-block.cc: New file.
13593         * memory-block.h: New file.
13594         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13595         * sched-deps.c (sched_deps_init): Likewise.
13596         * sel-sched-ir.c (sched_lists_pool): Likewise.
13597         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13598         * tree-sra.c (access_pool): Likewise.
13599         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13600         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13601         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13602         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13603         * tree-ssa-strlen.c (strinfo_pool): Likewise.
13604         * tree-ssa-structalias.c (variable_info_pool): Likewise.
13605         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13606         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13608 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13610         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13611         definition.
13612         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13613         call0 ABI.
13615 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
13617         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13618         to pass TLS call argument, according to current ABI.
13619         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13620         callx0 for TLS call, according to current ABI.
13622 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13624         * tree-eh.c (lower_try_finally_dup_block): Clear location information
13625         on stack restore statements.
13626         (decide_copy_try_finally): Do not consider a stack restore statement as
13627         coming from sources.
13629 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
13631         * config/alpha/alpha.c (alpha_expand_block_clear): Use
13632         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13634 2015-09-15  Jeff Law  <law@redhat.com>
13636         PR tree-optimization/47679
13637         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13638         methods and private members.
13639         (avail_exprs_stack): Similarly.  Change type of global
13640         from a pair of expr_hash_elt_t to the new class.
13641         (expr_elt_hasher::hash): Corresponding changes.
13642         (expr_elt_hasher::equal): Similarly.
13643         (avail_expr_hash): Similarly.
13644         (pass_dominator::execute): Similarly.
13645         (dom_opt_dom_walker::thread_across_edge): Similarly.
13646         (record_cond): Similarly.
13647         (dom_opt_dom_walker::before_dom_children): Similarly.
13648         (dom_opt_dom_walker::after_dom_children): Similarly.
13649         (lookup_avail_expr): Likewise.
13650         (initialize_hash_element): Now a expr_hash_elt constructor.
13651         (initialize_hash_element_from_expr): Similarly.
13652         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13653         (free_expr_hash_elt): Call dtor for the element.
13654         (remove_local_expressions_from_table): Now the "pop_to_marker"
13655         method in the available_exprs_stack class.
13656         (avail_expr_stack::record_expr): Method factored out.
13657         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13658         Fix formatting.
13659         (hashable_expr_equal_p): Fix formatting.
13661 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
13663         * input.h (location_get_source_line): Drop "expanded_location"
13664         param in favor of a file and line number.
13665         * input.c (location_get_source_line): Likewise.
13666         (dump_location_info): Update for change in signature of
13667         location_get_source_line.
13668         * diagnostic.c (diagnostic_print_caret_line): Likewise.
13670 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
13672         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13673         Bump to 4KB for SJLJ exceptions.
13674         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
13675         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13676         * doc/tm.texi: Regenerate.
13678 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13680         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13681         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
13682         Update prototype.
13684 2015-09-15  Richard Biener  <rguenther@suse.de>
13686         PR tree-optimization/67470
13687         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13688         structure for PHI hoisting by inserting a forwarder block
13689         if appropriate.
13691 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13693         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13694         (arm_option_print): New function.
13696 2015-09-15  Christian Bruel  <christian.bruel@st.com>
13698         PR target/52144
13699         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13700         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13701         Remove flags parameter.
13702         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13703         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13704         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13705         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13706         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13707         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13708         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13709         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13711 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13713         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13715         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13716         AARCH64_VALID_SIMD_DREG_MODE.
13718 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13720         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13721         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13722         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13723         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13724         aarch64_ld4_lane<mode>): Combine together, making...
13725         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13726         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13727         aarch64_st4_lane<mode>): Combine together, making...
13728         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13729         * config/aarch64/iterators.md (nregs): Add comment.
13731 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13733         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13734         Change operand mode from <V_TWO_ELEM> to BLK.
13735         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13736         (aarch64_vec_store_lanesoi_lane<mode): Likewise
13737         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13738         (aarch64_ld2_lane<mode>): Likewise.
13739         (aarch64_st2_lane<VQ:mode>): Likewise.
13740         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13742 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13744         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13745         Change operand mode from <V_FOUR_ELEM> to BLK.
13746         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13747         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13748         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13749         (aarch64_ld4_lane<mode>): Likewise.
13750         (aarch64_st4_lane<mode>): Likewise.
13751         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13753 2015-09-15  Richard Biener  <rguenther@suse.de>
13755         PR middle-end/67563
13756         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13757         transfer EH info from old to new stmt.
13758         (replace_call_with_value): Likewise.
13759         (replace_call_with_call_and_fold): Likewise.
13760         (gimple_fold_builtin_memory_op): Likewise.
13761         (gimple_fold_builtin_memset): Likewise.
13762         (gimple_fold_builtin_stpcpy): Likewise.
13763         (gimple_fold_call): Likewise.
13765 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13767         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13768         comment.
13769         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13770         (aarch64_simd_intEI_type_node): Likewise.
13771         (aarch64_simd_builtin_std_type): Remove EImode case.
13772         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13773         * config/aarch64/aarch64-modes.def: Remove EImode.
13775 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13777         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13778         Change operand mode from <V_THREE_ELEM> to BLK.
13779         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13780         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13781         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13782         (aarch64_ld3_lane<mode>): Likewise.
13783         (aarch64_st3_lane<mode>): Likewise.
13784         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13786 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13788         * config/aarch64/aarch64-simd.md
13789         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13790         Change all TImode operands to BLKmode.
13791         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13792         Change all EImode operands to BLKmode.
13793         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13794         Change all OImode operands to BLKmode.
13796         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13797         and call set_mem_size.
13798         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13800         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13802 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
13804         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13805         to...
13806         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13808         (vec_store_lanesci_lane<mode>): Rename to...
13809         (aarch64_vec_store_lanesci_lane<mode>): ...this.
13811         (vec_store_lanesxi_lane<mode>): Rename to...
13812         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13814         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13815         aarch64_st4_lane<mode>): Follow renaming.
13817 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13819         * config/s390/s390.c (s390_const_operand_ok): Add missing
13820         brackets.
13822 2015-09-15  Richard Biener  <rguenther@suse.de>
13824         PR lto/67568
13825         * lto-streamer.h (lto_location_cache::current_sysp): Properly
13826         initialize.
13827         * lto-streamer-out.c (clear_line_info): Likewise.
13829 2015-09-15  Richard Biener  <rguenther@suse.de>
13831         * doc/match-and-simplify.texi: Fix wording.
13833 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
13835         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13836         unnecessary type conversion in op1.
13838 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
13840         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13841         (dup_block_and_redirect): Delete function.
13842         (can_dup_for_shrink_wrapping): New function.
13843         (fix_fake_fallthrough_edge): New function.
13844         (try_shrink_wrapping): Rewrite function.
13845         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
13847 2015-09-14  Rich Felker  <dalias@libc.org>
13849         * configure.ac: Change target pattern for sh TLS support
13850         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
13851         * configure: Regenerate.
13853 2015-09-14  Jeff Law  <law@redhat.com>
13855         PR tree-optimization/47679
13856         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
13857         type rather than void *.
13859 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13861         PR fortran/67460
13862         * diagnostic.c (diagnostic_initialize): Do not set
13863         some_warnings_are_errors.
13864         (diagnostic_finish): Use DK_WERROR count instead.
13865         (diagnostic_report_diagnostic): Do not set
13866         some_warnings_are_errors.
13867         * diagnostic.h (struct diagnostic_context): Remove
13868         some_warnings_are_errors.
13870 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
13872         * config/sparc/predicates.md (const_all_ones_operand): Use
13873         CONSTM1_RTX to simplify definition.
13875 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
13877         PR target/67061
13878         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
13879         Handle call insns.
13881 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
13883         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
13884         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
13885         OPT_fshow_column to handled saved option cases.
13886         (append_compiler_options): Do not skip the above added options.
13888 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13890         PR target/63304
13891         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
13892         nopcrelative_literal_loads.
13893         (aarch64_classify_address): Likewise.
13894         (aarch64_constant_pool_reload_icode): Define.
13895         (aarch64_secondary_reload): Handle secondary reloads for
13896         literal pools.
13897         (aarch64_override_options): Handle nopcrelative_literal_loads.
13898         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
13899         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
13900         Define.
13901         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
13902         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
13903         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
13904         predicate.
13905         * doc/invoke.texi (mpc-relative-literal-loads): Document.
13907 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
13909         PR middle-end/67401
13910         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
13911         sync_compare_and_swap_optab libcall to target_oval.
13913 2015-09-14  Marek Polacek  <polacek@redhat.com>
13915         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
13916         value.
13917         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
13919 2015-09-11  Mark Wielaard  <mjw@redhat.com>
13921         PR c/28901
13922         * toplev.c (check_global_declaration): Check and use
13923         warn_unused_const_variable.
13924         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
13925         (-Wunused-variable): Remove non-constant. For C implies
13926         -Wunused-const-variable.
13927         (-Wunused-const-variable): New.
13929 2015-09-14  Richard Biener  <rguenther@suse.de>
13931         * doc/match-and-simplify.texi: Update for changed syntax
13932         of inner ifs and the new switch expression.
13934 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
13936         * config/i386/haswell.md: New file describing Haswell pipeline.
13937         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
13938         haswell-like processors.
13939         (ix86_reassociation_width): Increase reassociation width for 64-bit
13940         Haswell processor family.
13941         * config/i386/i386.md: Introduce haswell cpu and include new md file.
13943 2015-09-14  Richard Biener  <rguenther@suse.de>
13945         * doc/match-and-simplify.texi: Fixup some formatting issues
13946         and document the 's' flag.
13948 2015-09-13  Olivier Hainque  <hainque@adacore.com>
13949             Eric Botcazou  <ebotcazou@adacore.com>
13951         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
13952         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
13953         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
13954         (TARGET_CPU_gr5): Likewise.
13955         (TARGET_CPU_gr6): Likewise.
13956         (MULTILIB_DEFAULTS): Likewise.
13957         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
13958         for mcpu=gr5 and mcpu=gr6.
13959         (MULTILIB_DIRNAMES): Adjust accordingly.
13961 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13963         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
13964         (mem_ref_p): Likewise.
13965         (outermost_indep_loop): Adjust.
13966         (mem_ref_in_stmt): Likewise.
13967         (determine_max_movement): Likewise.
13968         (mem_ref_alloc): Likewise.
13969         (record_mem_ref_loc): Likewise.
13970         (set_ref_stored_in_loop): Likewise.
13971         (mark_ref_stored): Likewise.
13972         (gather_mem_refs_stmt): Likewise.
13973         (mem_refs_may_alias_p): Likewise.
13974         (for_all_locs_in_loop): Likewise.
13975         (struct rewrite_mem_ref_loc): Likewise.
13976         (rewrite_mem_refs): Likewise.
13977         (struct first_mem_ref_loc_1): Likewise.
13978         (first_mem_ref_loc): Likewise.
13979         (struct sm_set_flag_if_changed): Likewise.
13980         (execute_sm_if_changed_flag_set): Likewise.
13981         (execute_sm): Likewise.
13982         (hoist_memory_references):
13983         (struct ref_always_accessed): Likewise.
13984         (ref_always_accessed_p): Likewise.
13985         (refs_independent_p): Likewise.
13986         (record_dep_loop): Likewise.
13987         (ref_indep_loop_p_1): Likewise.
13988         (ref_indep_loop_p_2): Likewise.
13989         (ref_indep_loop_p): Likewise.
13990         (can_sm_ref_p): Likewise.
13991         (find_refs_for_sm): Likewise.
13992         (tree_ssa_lim_finalize): Likewise.
13994 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13996         * dwarf2out.c (dw_attr_ref): Remove typedef.
13997         (dw_line_info_ref): Likewise.
13998         (pubname_ref): Likewise.
13999         (dw_ranges_ref): Likewise.
14000         (dw_ranges_by_label_ref): Likewise.
14001         (comdat_type_node_ref): Likewise.
14002         (get_AT): Adjust.
14003         (get_AT_low_pc): Likewise.
14004         (get_AT_hi_pc): Likewise.
14005         (get_AT_string): Likewise.
14006         (get_AT_flag): Likewise.
14007         (get_AT_unsigned): Likewise.
14008         (get_AT_ref): Likewise.
14009         (get_AT_file): Likewise.
14010         (remove_AT): Likewise.
14011         (print_die): Likewise.
14012         (check_die): Likewise.
14013         (die_checksum): Likewise.
14014         (attr_checksum_ordered): Likewise.
14015         (struct checksum_attributes): Likewise.
14016         (collect_checksum_attributes): Likewise.
14017         (die_checksum_ordered): Likewise.
14018         (same_die_p): Likewise.
14019         (is_declaration_die): Likewise.
14020         (clone_die): Likewise.
14021         (clone_as_declaration): Likewise.
14022         (copy_declaration_context): Likewise.
14023         (break_out_comdat_types): Likewise.
14024         (copy_decls_walk): Likewise.
14025         (output_location_lists): Likewise.
14026         (external_ref_hasher::hash): Likewise.
14027         (optimize_external_refs_1): Likewise.
14028         (build_abbrev_table): Likewise.
14029         (size_of_die): Likewise.
14030         (unmark_all_dies): Likewise.
14031         (size_of_pubnames): Likewise.
14032         (output_die_abbrevs): Likewise.
14033         (output_die): Likewise.
14034         (output_pubnames): Likewise.
14035         (add_ranges_num): Likewise.
14036         (add_ranges_by_labels): Likewise.
14037         (add_high_low_attributes): Likewise.
14038         (gen_producer_string): Likewise.
14039         (dwarf2out_set_name): Likewise.
14040         (new_line_info_table): Likewise.
14041         (prune_unused_types_walk_attribs): Likewise.
14042         (prune_unused_types_update_strings): Likewise.
14043         (prune_unused_types): Likewise.
14044         (resolve_addr): Likewise.
14045         (optimize_location_lists_1): Likewise.
14046         (index_location_lists): Likewise.
14047         (dwarf2out_finish): Likewise.
14049 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14051         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14053 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14055         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14056         (dump_asserts_for): Adjust.
14057         (register_new_assert_for): Likewise.
14058         (process_assert_insertions): Likewise.
14059         (insert_range_assertions): Likewise.
14061 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14063         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14064         and remove typedef.
14065         (new_temp_expr_table): Adjust.
14066         (free_temp_expr_table): Likewise.
14067         (version_to_be_replaced_p): Likewise.
14068         (make_dependent_on_partition): Likewise.
14069         (add_to_partition_kill_list): Likewise.
14070         (remove_from_partition_kill_list): Likewise.
14071         (add_dependence): Likewise.
14072         (finished_with_expr): Likewise.
14073         (process_replaceable): Likewise.
14074         (kill_expr): Likewise.
14075         (kill_virtual_exprs): Likewise.
14076         (mark_replaceable): Likewise.
14077         (find_replaceable_in_bb): Likewise.
14078         (find_replaceable_exprs): Likewise.
14079         (debug_ter): Likewise.
14081 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14083         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14084         (struct btr_user): Rename from btr_user_s.
14085         (struct btr_def): Rename from btr_def_s.
14086         (find_btr_def_group): Adjust.
14087         (add_btr_def): Likewise.
14088         (new_btr_user): Likewise.
14089         (note_other_use_this_block): Likewise.
14090         (compute_defs_uses_and_gen): Likewise.
14091         (link_btr_uses): Likewise.
14092         (build_btr_def_use_webs): Likewise.
14093         (block_at_edge_of_live_range_p): Likewise.
14094         (btr_def_live_range): Likewise.
14095         (combine_btr_defs): Likewise.
14096         (move_btr_def): Likewise.
14097         (migrate_btr_def): Likewise.
14098         (migrate_btr_defs): Likewise.
14100 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14102         * var-tracking.c (shared_hash_def): Rename to shared_hash.
14103         (shared_hash): Remove typedef.
14104         (struct dataflow_set): Adjust.
14105         (shared_hash_unshare): Likewise.
14106         (dataflow_set_merge): Likewise.
14107         (vt_initialize): Likewise.
14108         (vt_finalize): Likewise.
14110 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14112         * var-tracking.c (struct location_chain): Rename from
14113         location_chain_def.
14114         (struct variable_part): Adjust.
14115         (variable_htab_free): Likewise.
14116         (unshare_variable): Likewise.
14117         (get_init_value): Likewise.
14118         (get_addr_from_local_cache): Likewise.
14119         (drop_overlapping_mem_locs): Likewise.
14120         (val_reset): Likewise.
14121         (struct variable_union_info): Likewise.
14122         (variable_union): Likewise.
14123         (find_loc_in_1pdv): Likewise.
14124         (insert_into_intersection): Likewise.
14125         (intersect_loc_chains): Likewise.
14126         (canonicalize_loc_order_check): Likewise.
14127         (canonicalize_values_mark): Likewise.
14128         (canonicalize_values_star): Likewise.
14129         (canonicalize_vars_star): Likewise.
14130         (variable_merge_over_cur): Likewise.
14131         (remove_duplicate_values): Likewise.
14132         (variable_post_merge_new_vals): Likewise.
14133         (variable_post_merge_perm_vals): Likewise.
14134         (find_mem_expr_in_1pdv): Likewise.
14135         (dataflow_set_preserve_mem_locs): Likewise.
14136         (dataflow_set_remove_mem_locs): Likewise.
14137         (variable_part_different_p): Likewise.
14138         (onepart_variable_different_p): Likewise.
14139         (find_src_set_src): Likewise.
14140         (dump_var): Likewise.
14141         (set_slot_part): Likewise.
14142         (clobber_slot_part): Likewise.
14143         (delete_slot_part): Likewise.
14144         (vt_expand_var_loc_chain): Likewise.
14145         (emit_note_insn_var_location): Likewise.
14146         (vt_finalize): Likewise.
14148 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14150         * dse.c (store_info_t): Remove typedef.
14151         (group_info_t): Likewise.
14152         (const_group_info_t): Likewise.
14153         (deferred_change_t): Likewise.
14154         (get_group_info): Adjust.
14155         (free_store_info): Likewise.
14156         (canon_address): Likewise.
14157         (clear_rhs_from_active_local_stores): Likewise.
14158         (record_store): Likewise.
14159         (replace_read): Likewise.
14160         (check_mem_read_rtx): Likewise.
14161         (scan_insn): Likewise.
14162         (remove_useless_values): Likewise.
14163         (dse_step1): Likewise.
14164         (dse_step2_init): Likewise.
14165         (dse_step2_nospill): Likewise.
14166         (scan_stores_nospill): Likewise.
14167         (scan_reads_nospill): Likewise.
14168         (dse_step3_exit_block_scan): Likewise.
14169         (dse_step3): Likewise.
14170         (dse_step5_nospill): Likewise.
14171         (dse_step6): Likewise.
14173 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14175         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14176         (alias_set_entry): Remove typedef.
14177         (alias_set_subset_of): Adjust.
14178         (alias_sets_conflict_p): Likewise.
14179         (init_alias_set_entry): Likewise.
14180         (get_alias_set): Likewise.
14181         (new_alias_set): Likewise.
14182         (record_alias_subset): Likewise.
14184 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
14186         * doc/install.texi (Downloading the source): Mark up
14187         contrib/download_prerequisites properly and drop leading "./".
14189 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14191         * config/arc/arc.h: Remove define of STRUCT_VALUE.
14192         * config/lm32/lm32.h: Likewise.
14193         * config/mep/mep.h: Likewise.
14194         * config/visium/visium.h: Likewise.
14195         * system.h: Poison STRUCT_VALUE macro.
14197 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
14199         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14200         CONSTANT_P operands.
14202 2015-09-11  David S. Miller  <davem@davemloft.net>
14204         * config/sparc/constraints.md: Make "U" constraint a real register
14205         constraint.
14206         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14207         (D_MODES, DF_MODES): Add missing cast.
14208         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14209         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14210         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14211         cost to 8.
14212         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14213         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14214         provide these insn when flag_pic.
14216 2015-09-11  Jeff Law  <law@redhat.com>
14218         PR tree-optimization/47679
14219         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14220         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14221         member with m_.  Update inline member functions as necessary.  Add
14222         toplevel comment.
14223         * tree-ssa-scopedtables.c: Update const_and_copies's member
14224         functions to use m_ prefix to access the stack.
14226 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14228         * graphite-optimize-isl.c (disable_tiling): Remove.
14229         (get_schedule_for_band): Do not use disable_tiling.
14230         (get_prevector_map): Delete function.
14231         (enable_polly_vector): Remove.
14232         (get_schedule_for_band_list): Remove dead code.
14234 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14236         * graphite-optimize-isl.c (get_tile_map): Refactor.
14237         (get_schedule_for_band): Same.
14238         (getScheduleForBand): Same.
14239         (get_prevector_map): Same.
14240         (get_schedule_for_band_list): Same.
14241         (get_schedule_map): Same.
14242         (get_single_map): Same.
14243         (apply_schedule_map_to_scop): Same.
14244         (optimize_isl): Same.
14246 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14248         PR target/63304
14249         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14250         (movtf): Delete.
14251         * config/aarch64/iterators.md (GPF_TF_F16): New.
14252         (GPF_F16): Delete.
14254 2015-09-10  Nathan Sidwell  <nathan@acm.org>
14256         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14257         (nvptx_reorg): Adjust comments.
14259 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
14261         PR bootstrap/67363
14262         * configure.ac: Check if setenv and unsetenv are declared.
14263         * configure: Rebuild.
14264         * config.in: Rebuild.
14265         * system.h: Declare setenv and unsetenv if not declared.
14267 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14269         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14270         commentary to simplify permute mask adjustment equation.
14271         (special_handling_values): Add SH_VPERM.
14272         (const_load_sequence_p): New function.
14273         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14274         the mask loaded from the constant pool.
14275         (adjust_vperm): New function.
14276         (handle_special_swappables): Call adjust_vperm.
14277         (dump_swap_insn_table): Handle SH_VPERM.
14279 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14281         * shrink-wrap.c (requires_stack_frame_p): Remove static.
14282         * shrink-wrap.h (requires_stack_frame_p): Put back.
14284 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14286         * reload1.c (elimination_costs_in_insn): Locally turn
14287         -Wmaybe-uninitialized into a warning.
14289 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
14291         * shrink-wrap.c (requires_stack_frame_p): Make static.
14292         (prepare_shrink_wrap): Likewise.
14293         (dup_block_and_redirect): Likewise.
14294         * shrink-wrap.h: Remove declarations of those functions.
14296 2015-09-10  Mark Wielaard  <mjw@redhat.com>
14298         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14300 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
14302         PR target/67506
14303         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14304         missing simplify_gen_subreg.
14306 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14308         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14309         the vector element is bigger than 64 bit.
14311 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14313         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14314         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14316 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14318         * config/s390/s390.c: Add V1TImode to constant pool modes.
14320 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14322         PR target/67439
14323         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14324         predicate.  Set predicable_short_it attr to "no".
14326 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
14328         PR rtl-optimization/67421
14329         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14330         left wide shift tranformation.
14332 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
14334         * common/config/arc/arc-common.c: Remove references to A5.
14335         * config/arc/arc-opts.h: Likewise.
14336         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14337         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14338         * config/arc/t-arc-newlib: Likewise.
14340 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
14342         * config/arc/arc.md (length): Fix attribute length for conditional
14343         executed instructions with long immediate.
14345 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14347         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14348         type for second alternative.
14350 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
14352         * doc/invoke.texi (Downloading GCC): Mention
14353         contrib/download_prerequisites script.
14355 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
14357         PR c++/67523
14358         * gimplify.c (gimplify_omp_for): If inner stmt is not found
14359         for combined loop, assert seen_error () and return GS_ERROR.
14361         PR middle-end/67521
14362         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14363         if decl is already in outer->variables.
14365         PR middle-end/67517
14366         * gimplify.c (gimplify_scan_omp_clauses): Instead of
14367         asserting that decl is not specified in octx->variables,
14368         break out of the loop if it is.
14370         PR c++/67514
14371         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14372         iterator is not explicitly determined, but is defined inside
14373         of the combined workshare region, handle it like if it has
14374         DECL_EXPR in OMP_FOR_PRE_BODY.
14376 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14378         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14379         (*cmp<mode>): Add assembler spacing.
14380         (setcc_int<mode>, set_cc_float<mode>): Likewise.
14381         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14382         level.
14383         (write_func_decl_from_insn): Refactor argument loops & comma emission.
14384         (nvptx_expand_call): Likewise.
14385         (nvptx_output_call_insn): Likewise.
14386         (nvptx_reorg_subreg): Add spacing.
14388 2015-09-09  Marek Polacek  <polacek@redhat.com>
14390         PR middle-end/67512
14391         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14392         for comparisons.
14394 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14396         PR c++/53184
14397         * doc/invoke.texi ([Wsubobject-linkage]): Document.
14399 2015-09-09  Tom de Vries  <tom@codesourcery.com>
14401         * params-list.h: Add missing copyright notice.
14403 2015-09-09  Nathan Sidwell  <nathan@acm.org>
14405         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14406         sel_truesi, not andsi.
14408 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14410         * config/arm/arm.md (*subsi3_compare0): Rename to...
14411         (subsi3_compare0): ... This.
14412         (modsi3): New define_expand.
14413         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14414         when operand is power of 2.
14416 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14418         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14419         (*neg<mode>2_compare0): Rename to...
14420         (neg<mode>2_compare0): ... This.
14421         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14422         Move check for speed inside the if-then-elses.  Reflect
14423         CSNEG sequence in MOD by power of 2 case.
14425 2015-09-09  Alan Modra  <amodra@gmail.com>
14427         PR target/67378
14428         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14429         reload replacement for PRE_MODIFY address reg.
14431 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
14433         PR tree-optimization/53852
14434         * config.in: Regenerate.
14435         * configure: Regenerate.
14436         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14437         * graphite-optimize-isl.c (optimize_isl): Stop computation when
14438         PARAM_MAX_ISL_OPERATIONS is reached.
14439         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14440         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14441         result equal to isl_stat_ok as the status now can be isl_error_quota.
14442         (subtract_commutative_associative_deps): Same.
14443         (compute_deps): Same.
14445 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14446             Sebastian Pop  <s.pop@samsung.com>
14448         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14449         Return the parameter if it was saved in corresponding
14450         parameter_rename_map of the region.
14451         (copy_def): Copy def from sese region to the newly created region.
14452         (copy_internal_parameters): Copy all the internal parameters defined
14453         within a region to the newly created region.
14454         (graphite_regenerate_ast_isl): Copy parameters to the new region before
14455         translating isl to gimple.
14456         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14457         the loop-nest does not have any data-references.
14458         (build_graphite_scops): Create a scop only when there is at least one
14459         loop inside it.
14460         (contains_only_close_phi_nodes): Deleted.
14461         (print_graphite_scop_statistics): Deleted
14462         (print_graphite_statistics): Deleted
14463         (limit_scops): Deleted.
14464         (build_scops): Removed call to limit_scops.
14465         * sese.c (new_sese): Construct.
14466         (free_sese): Destruct.
14467         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14468         added.
14469         (set_rename): Pass sese region so that parameters inside the region can
14470         be added to its parameter_rename_map.
14471         (rename_uses): Pass sese region.
14472         (graphite_copy_stmts_from_block): Do not copy parameters that have been
14473         generated in the header of the scop. For each SSA_NAME in the
14474         parameter_rename_map rename its usage.
14475         (invariant_in_sese_p_rec): Return false if tree t is defined outside
14476         sese region.
14477         (scalar_evolution_in_region): If the tree t is invariant just return t.
14478         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14479         struct sese to keep track of all the parameters which need renaming.
14480         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14481         any data-refs.
14482         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14484 2015-09-08  Tom de Vries  <tom@codesourcery.com>
14486         * Makefile.in (generated_files): Add params.list.
14487         (params.list, s-params.list): Add rule.
14488         * params.h (enum compiler_param): Include params-list.h.  Move define
14489         DEFPARAM, include params.def and undef DEFPARAM ...
14490         * params-list.h: ... here.  New file.
14492 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
14494         * pretty-print.h (printer_fn): Fix typo in comment.
14496 2015-09-07  Jeff Law  <law@redhat.com>
14498         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14500 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14502         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14503         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14504         (arm_neon_fp16_hw): New.
14506 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14508         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14509         UNITS_PER_WORD >= 4.
14511 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14513         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14514         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14515         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14516         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14517         (aarch64_float_extend_lo_v2df): Rename to...
14518         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14520         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14521         (float_extend_lo): Add v4sf.
14523         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14524         * config/aarch64/iterators.md (VQ_HSF): New iterator.
14525         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14526         (Vwide): New mode_attr.
14528 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14530         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14531         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14532         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14533         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14534         V4HF and V8HF variants to iterator.
14536         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14538         * config/aarch64/iterators.md (VDQF_F16): New.
14539         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14541 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14543         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14544         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14545         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14546         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14547         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14548         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14549         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14550         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14551         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14552         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14553         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14554         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14555         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14556         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14557         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14558         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14559         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14560         vld1q_dup_f16): New.
14562 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14564         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14565         Reparameterize to...
14566         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14567         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14568         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14570         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14571         v8hf variant.
14572         (float_truncate_lo_): Use BUILTIN_VDF iterator.
14574         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14576         * config/aarch64/iterators.md (VDF, Vdtype): New.
14577         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14579 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14581         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14582         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14583         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14584         Add __builtin_aarch64_simd_hf.
14585         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14586         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14587         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14588         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14589         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14590         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14591         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14592         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14593         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14595         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14596         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14597         (VDC, Vdbl): Add V4HF.
14599 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14601         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14602         V4HFmode and V8HFmode.
14603         (aarch64_split_simd_move): Add case for V8HFmode.
14604         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14605         (aarch64_simd_builtin_std_type): Handle HFmode.
14606         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14608         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14609         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14610         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14612         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14613         Float16x8_t.
14615         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14616         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14617         New typedefs.
14618         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14619         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14620         vst1q_lane_f16): New.
14621         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14622         (VALLDI_F16, VALL_F16): New.
14623         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14624         Add cases for V4HF and V8HF.
14625         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14627 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14629         * config/arm/arm-builtins.c (VAR11, VAR12): New.
14630         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14631         vld4_dup): Add v4hf variant.
14632         (vget_high, vget_low): Add v8hf variant.
14633         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14634         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14635         v4hf and v8hf variants.
14637         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14638         (VDX): Add V4HF.
14639         (V_DOUBLE): Add case for V4HF.
14640         (VQX): Add V8HF.
14641         (V_HALF): Add case for V8HF.
14642         (VDQX): Add V4HF, V8HF.
14643         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14644         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14646         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14647         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14648         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14649         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14650         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14651         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14652         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14653         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14654         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14656         (neon_vcreate, neon_vreinterpretv8qi<mode>,
14657         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14658         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14659         Change VDX to VD_RE.
14661         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14662         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14663         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14665         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14666         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14667         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14668         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14669         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14670         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14671         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14672         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14673         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14675 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14677         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14678         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14679         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14680         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14681         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14682         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14683         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14684         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14685         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14686         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14687         New.
14689 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14691         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14693         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14695         * config/arm/arm-builtins.c (v8hf_UP): New.
14696         (arm_init_simd_builtin_types): Initialise Float16x8_t.
14698         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14700         * config/arm/arm_neon.h (float16x8_t): New typedef.
14702 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
14704         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14705         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14706         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14707         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14708         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14709         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14710         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14711         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14712         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14713         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14715 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
14717         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14718         non-alphanumeric characters in the symbol name.
14720 2015-09-07  Marek Polacek  <polacek@redhat.com>
14722         PR inline-asm/67448
14723         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14724         a memory input.
14726 2015-09-07  Marek Polacek  <polacek@redhat.com>
14728         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14730 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
14732         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14733         not warn.
14735 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
14737         PR middle-end/67452
14738         * tree-ssa-live.c: Include cfgloop.h.
14739         (remove_unused_locals): Clear loop->simduid if simduid is about
14740         to be removed from cfun->local_decls.
14742 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14744         PR target/65210
14745         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14746         attribute as well.
14748 2015-09-04  Tom de Vries  <tom@codesourcery.com>
14750         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14752 2015-09-04  Jeff Law  <law@redhat.com>
14754         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14755         unnecessary constructor.  It's now trivial and implemented inside...
14756         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14757         constructor.  Add comments to various methods.  Remove unused
14758         private fields.
14759         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14760         * tree-vrp.c (identify_jump_threads): Likewise.
14761         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14762         indentation issues.
14763         (thread_across_edge): Similarly.
14764         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14765         arguments in constructor call.
14767 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
14769         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14770         temp path contains a '-'.
14772 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14773             Petr Murzin  <petr.murzin@intel.com>
14774             Kirill Yukhin  <kirill.yukhin@intel.com>
14776         * config/i386/i386-builtin-types.def
14777         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14778         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14779         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14780         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14781         * config/i386/i386.c
14782         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14783         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14784         IX86_BUILTIN_SCATTERALTDIV16SI.
14785         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14786         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14787         __builtin_ia32_scatteraltdiv8si.
14788         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14789         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14790         IX86_BUILTIN_SCATTERALTDIV16SI.
14791         (ix86_vectorize_builtin_scatter): New.
14792         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14793         ix86_vectorize_builtin_scatter.
14795 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
14796             Petr Murzin  <petr.murzin@intel.com>
14797             Kirill Yukhin  <kirill.yukhin@intel.com>
14799         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14800         * doc/tm.texi: Regenerate.
14801         * target.def: Add scatter builtin.
14802         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14803         for loads/stores in case of gather/scatter accordingly.
14804         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14805         STMT_VINFO_GATHER_P(S).
14806         (vect_check_gather): Rename to ...
14807         (vect_check_gather_scatter): this.
14808         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14809         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14810         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14811         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14812         variable and new checkings for it accordingly.
14813         * tree-vect-stmts.c
14814         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14815         STMT_VINFO_GATHER_P(S).
14816         (vect_check_gather_scatter): Use it instead of vect_check_gather.
14817         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14819 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
14821         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14822         define_insn.
14823         (mulv16qi3): New define_expand.
14825 2015-09-03  Martin Sebor  <msebor@redhat.com>
14827         PR c/66516
14828         * doc/extend.texi (Other Builtins): Document when the address
14829         of a built-in function can be taken.
14831 2015-09-03  Richard Biener  <rguenther@suse.de>
14833         * dwarf2out.c (flush_limbo_die_list): Split out from ...
14834         (dwarf2out_early_finish): ... here.
14835         (dwarf2out_finish): Do not call dwarf2out_early_finish but
14836         flush_limbo_die_list.  Assert we have no deferred asm names.
14838 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14840         * optabs.c (expand_binop): Don't create a broadcast vector with a
14841         source element wider than the inner mode.
14843 2015-09-03  Richard Biener  <rguenther@suse.de>
14845         * varasm.c (output_constant): Use fold_convert instead of
14846         wide_int_to_tree.
14848 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14850         PR tree-optimization/65637
14851         * omp-low.c (expand_omp_for_static_chunk): Handle case that
14852         fin_bb has 2 predecessors.
14854 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14856         PR tree-optimization/65637
14857         * omp-low.c (find_phi_with_arg_on_edge): New function.
14858         (expand_omp_for_static_chunk): Fix inner loop phi.
14860 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14862         PR tree-optimization/65637
14863         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
14864         that head is NULL.
14866 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14868         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
14870 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14872         * doc/invoke.texi (parloops-chunk-size): Add item.
14873         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
14874         * tree-parloops.c: Include params.h.
14875         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
14876         param parloops-chunk-size is used.
14878 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14880         PR middle-end/67351
14881         * fold-const.c (fold_binary_loc) : Move
14882         Transform (x >> c) << c into x & (-1<<c) or
14883         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
14884         types using simplify and match.
14885         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
14886         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
14888 2015-09-03  Richard Biener  <rguenther@suse.de>
14890         PR ipa/66705
14891         * tree-ssa-structalias.c (ctor_for_analysis): New function.
14892         (create_variable_info_for_1): Use ctor_for_analysis instead
14893         of get_constructor.
14894         (create_variable_info_for): Likewise.
14896 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
14898         PR ipa/67280
14899         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
14900         in new callgraph edge.
14902 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
14904         PR target/59810
14905         PR target/63652
14906         PR target/63653
14907         * config/aarch64/aarch64-simd.md
14908         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
14909         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
14910         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
14911         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
14913 2015-09-02  Alan Modra  <amodra@gmail.com>
14915         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
14916         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
14917         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
14919 2015-09-02  Alan Modra  <amodra@gmail.com>
14921         PR target/67417
14922         * config/rs6000/predicates.md (current_file_function_operand): Don't
14923         return true for weak symbols.
14924         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
14926 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
14927             Andrew Bennett  <andrew.bennett@imgtec.com>
14929         * config/mips/mips-opts.h (mips_cb_setting): New enum.
14930         * config/mips/mips-protos.h: Add definitions for
14931         mips_output_jump and mips_output_equal_conditional_branch
14932         * config/mips/mips.c (MIPS_JR): Change to support the
14933         JIC instruction.
14934         (mips_emit_compare): Add support for the MIPS R6 conditional
14935         compact branches.
14936         (mips_process_sync_loop): Likewise.
14937         (mips_output_order_conditional_branch): Likewise.
14938         (mips16_build_call_stub): Change MIPS_CALL to
14939         mips_output_jump.
14940         (mips_print_operand_punctuation): Update 's' case to only
14941         apply to micromips r2.
14942         (mips_adjust_insn_length): Add support for forbidden slot
14943         hazards.
14944         (mips_avoid_hazard): Likewise.
14945         (mips_reorg_process_insns): Likewise.
14946         (mips_output_jump): New function.
14947         (mips_output_equal_conditional_branch): Likewise.
14948         (mips_output_conditional_branch): Use jrc/bc if compact
14949         branch support is enabled.  Ensure the forbidden slots
14950         between the two branch instructions is filled with a nop.
14951         (mips_option_override): Add support to process the compact
14952         branch option and set the correct defaults.  Prevent
14953         non-explict relocs being using for MIPS R6.
14954         (mips_trampoline_init): Add compact branch support.
14955         (mips_mult_zero_zero_cost): Allow zero initialisation of
14956         accumulators with TARGET_DSP.
14957         * config/mips/mips.h (TARGET_CB_NEVER): New define.
14958         (TARGET_CB_MAYBE): New define.
14959         (TARGET_CB_ALWAYS): New define.
14960         (ISA_HAS_DELAY_SLOTS): New define.
14961         (ISA_HAS_COMPACT_BRANCHES): New define.
14962         (ISA_HAS_JRC): New define.
14963         (MIPS_BRANCH_C): New define.
14964         (MIPS_CALL): Removed.
14965         (MICROMIPS_J): Removed.
14966         * config/mips/mips.md (compact_form): New attr.
14967         (hazard): Add support for forbidden slots.
14968         (define_delay): Add support for compact branches.
14969         (*branch_order<mode>): Likewise.
14970         (*branch_order<mode>_inverted): Likewise.
14971         (*branch_equality<mode>): Likewise.
14972         (*branch_equality<mode>_inverted): Likewise.
14973         (*jump_absolute): Likewise.
14974         (*jump_pic): Likewise.
14975         (indirect_jump): Use mips_output_jump to produce assembly output.
14976         (tablejump_<mode>"): Likewise.
14977         (*<optab>"): Likewise.
14978         (<optab>_internal): Likewise.
14979         (sibcall_internal): Likewise.
14980         (sibcall_value_internal): Likewise.
14981         (sibcall_value_multiple_internal): Likewise.
14982         (call_internal): Likewise.
14983         (call_split): Likewise.
14984         (call_internal_direct): Likewise.
14985         (call_direct_split): Likewise.
14986         (call_value_internal): Likewise.
14987         (call_value_split): Likewise.
14988         (call_value_internal_direct): Likewise.
14989         (call_value_direct_split): Likewise.
14990         (call_value_multiple_internal): Likewise.
14991         (call_value_multiple_split): Likewise.
14992         (mips_get_fcsr_mips16_<mode>): Likewise.
14993         (mips_set_fcsr_mips16_<mode>): Likewise.
14994         (tls_get_tp_mips16_<mode>): Likewise.
14995         * config/mips/mips.opt: Add -mcompact-branches option.
14996         * config/mips/predicates.md (order_operator): Ensure the
14997         conditional compact branches are only used if the ISA them.
14998         * doc/invoke.texi: Document -mcompact-branches option.
15000 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
15002         PR target/61578
15003         * lra-lives.c (process_bb_lives): Process move pseudos with the
15004         same value for copies and preferences
15005         * lra-constraints.c (match_reload): Create match reload pseudo
15006         with the same value from single dying input pseudo.
15008 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
15010         PR target/67405
15011         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15013 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
15015         * trans-mem.c: Add contributed-by.
15016         * trans-mem.h: Same.
15018 2015-09-01  Richard Biener  <rguenther@suse.de>
15020         * expr.c (expand_expr_real_1): For expanding TERed defs
15021         set the current location to that of the def if not UNKNOWN.
15023 2015-09-01  David Sherwood  <david.sherwood@arm.com>
15025         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15027 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15029         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15030         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
15031         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15032         Include rtl-iter.h.
15033         (noce_simple_bbs): New function.
15034         (noce_try_move): Bail if basic blocks are not simple.
15035         (noce_try_store_flag): Likewise.
15036         (noce_try_store_flag_constants): Likewise.
15037         (noce_try_addcc): Likewise.
15038         (noce_try_store_flag_mask): Likewise.
15039         (noce_try_cmove): Likewise.
15040         (noce_try_minmax): Likewise.
15041         (noce_try_abs): Likewise.
15042         (noce_try_sign_mask): Likewise.
15043         (noce_try_bitop): Likewise.
15044         (bbs_ok_for_cmove_arith): New function.
15045         (noce_emit_all_but_last): Likewise.
15046         (noce_emit_insn): Likewise.
15047         (noce_emit_bb): Likewise.
15048         (noce_try_cmove_arith): Handle non-simple basic blocks.
15049         (insn_valid_noce_process_p): New function.
15050         (contains_mem_rtx_p): Likewise.
15051         (bb_valid_for_noce_process_p): Likewise.
15052         (noce_process_if_block): Allow non-simple basic blocks
15053         where appropriate.
15055 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
15057         * tree-ssa-dom.c (record_equivalences_from_phis,
15058         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15059         (lookup_avail_expr): Likewise, and remove comment and unused temp.
15061 2015-09-01  Nick Clifton  <nickc@redhat.com>
15063         * config/msp430/msp430.opt (mcpu): Fix typo.
15065 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15067         * config/aarch64/aarch64.c (aarch64_set_current_function):
15068         Re-layout any vector parameters have non-simd layout.
15069         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15070         Delete.
15071         (aarch64_simd_expand_args): Delete call to the above.
15073 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
15075         * doc/invoke.texi (asan-stack): Add space before option.
15077 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15079         * tree.h (zerop): New function.
15080         * tree.c (zerop): Likewise.
15081         (element_precision): Handle expressions.
15082         * match.pd (define_predicates): Add zerop.
15083         (x <= +Inf): Fix comment.
15084         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15085         * fold-const.c (fold_binary_loc): ... here. Remove.
15087 2015-08-31  Richard Biener  <rguenther@suse.de>
15089         PR middle-end/67381
15090         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15092 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15094         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15095         (CEXPI): New operator list.
15096         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15097         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15098         Converted from ...
15099         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15101 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15103         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15104         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15105         parameter.
15106         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15107         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15108         (rewrite_into_loop_closed_ssa): ... here.
15109         (replace_uses_in_dominated_bbs): Remove function.
15110         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15111         rewrite_into_loop_closed_ssa_1.
15113 2015-08-31  Michael Matz  <matz@suse.de>
15115         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15116         enter entry and exit blocks for reverse post order.
15118 2015-08-31  Richard Biener  <rguenther@suse.de>
15120         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15121         (lto_location_cache::current_sysp): Likewise.
15122         (output_block::current_sysp): Likewise.
15123         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15124         (lto_location_cache::apply_location_cache): Properly record
15125         system header locations.
15126         (lto_location_cache::input_location): Input whether a file
15127         is a system header.
15128         * lto-streamer-out.c (lto_output_location): Stream whether a file
15129         is a system header.
15131 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15133         PR bootstrap/67363
15134         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15136 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15138         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15139         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15140         Improve function header comments.
15142 2015-08-30  Michael Collison  <michael.collison@linaro.org>
15144         PR other/67320
15145         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15146         standard names
15148 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15150         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15151         special_handling bitfield.
15152         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15153         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15154         that represents a general xxpermdi.
15155         (insn_is_swappable_p): Add handling for vec_concat of two
15156         doublewords, which maps to a specific xxpermdi.
15157         (adjust_xxpermdi): New function.
15158         (adjust_concat): Likewise.
15159         (handle_special_swappables): Call adjust_xxpermdi and
15160         adjust_concat.
15161         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15163 2015-08-30  Rich Felker <dalias@libc.org>
15165         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15166         case instead of sh[123456ble]-*-*.
15168 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
15170         * ira.c (print_unform_and_important_classes,
15171         print_translated_classes): Remove reg_class_names static array.
15172         (print_unform_and_important_classes): Rename to ...
15173         (print_uniform_and_important_classes): ... this.
15174         (ira_debug_allocno_classes): Update accordingly.
15176 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15178         PR tree-optimization/46193
15179         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15180         clause.
15182 2015-08-28  Jeff Law  <law@redhat.com>
15184         PR lto/66752
15185         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15186         unable to find X NE 0 in the tables, return X as the simplified
15187         condition.
15188         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15189         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15190         to VISISTED_BBS.
15191         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15192         after removing the control flow statement and unnecessary edges.
15194 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
15196         Revert:
15197         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15199         PR tree-optimization/67283
15200         * tree-sra.c (type_consists_of_records_p): Rename to...
15201         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15203         (completely_scalarize_record): Rename to...
15204         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15205         code to:
15206         (scalarize_elem): New.
15208 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
15210         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15211         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15212         (aarch64_symbol_type): Likewise.
15213         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15214         Likewise.
15215         (aarch64_expand_mov_immediate): Likewise.
15216         (aarch64_print_operand): Likewise.
15217         (aarch64_classify_tls_symbol): Likewise.
15219 2015-08-28  Richard Biener  <rguenther@suse.de>
15221         * cgraphunit.c (symbol_table::compile): Move early debug generation
15222         and finish...
15223         (symbol_table::finalize_compilation_unit): ... back here and
15224         add a !seen_error () guard.
15226 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15228         * toplev.c (process_options): Do not use flag_loop_block,
15229         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
15230         flag_loop_optimize_isl.
15232 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15234         * Makefile.in (OBJS): Remove graphite-blocking.o and
15235         graphite-interchange.o.
15236         * common.opt (floop-strip-mine, floop-interchange, floop-block):
15237         Alias of floop-nest-optimize.
15238         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15239         Document as alias of -floop-nest-optimize.
15240         * graphite-blocking.c: Remove.
15241         * graphite-interchange.c: Remove.
15242         * graphite-optimize-isl.c: Include dumpfile.h.
15243         (getScheduleForBand): Add dump for tiled loops.  Use
15244         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15245         * graphite-poly.c (scop_max_loop_depth): Remove.
15246         (print_scattering_function_1): Remove.
15247         (print_scattering_function): Remove.
15248         (print_scattering_functions): Remove.
15249         (debug_scattering_function): Remove.
15250         (debug_scattering_functions): Remove.
15251         (apply_poly_transforms): Remove use of flag_loop_block,
15252         flag_loop_strip_mine, and flag_loop_interchange.
15253         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15254         PBB_ORIGINAL.
15255         (print_pdr_access_layout): Remove.
15256         (print_pdr): Print ISL representation.
15257         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15258         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15259         (free_scop): Same.
15260         (openscop_print_pbb_domain): Remove.
15261         (print_pbb): Remove call to print_scattering_function.
15262         (openscop_print_scop_context): Remove.
15263         (print_scop_context): Do not print matrices anymore.
15264         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15265         SCOP_TRANSFORMED_SCHEDULE.
15266         (print_isl_set): Add printing of a new line.
15267         (print_isl_map): Same.
15268         (print_isl_aff): Same.
15269         (print_isl_constraint): Same.
15270         (loop_to_lst): Remove.
15271         (scop_to_lst): Remove.
15272         (lst_indent_to): Remove.
15273         (print_lst): Remove.
15274         (debug_lst): Remove.
15275         (dot_lst_1): Remove.
15276         (dot_lst): Remove.
15277         (reverse_loop_at_level): Remove.
15278         (reverse_loop_for_pbbs): Remove.
15279         * graphite-poly.h (pdr_dim_iter_domain): Remove.
15280         (pdr_nb_params): Remove.
15281         (pdr_alias_set_dim): Remove.
15282         (pdr_subscript_dim): Remove.
15283         (pdr_iterator_dim): Remove.
15284         (pdr_parameter_dim): Remove.
15285         (same_pdr_p): Remove.
15286         (struct poly_scattering): Remove.
15287         (struct poly_bb): Remove _original, _transformed, _saved.
15288         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15289         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15290         (PBB_NB_LOCAL_VARIABLES): Remove.
15291         (PBB_NB_SCATTERING_TRANSFORM): Remove.
15292         (schedule_to_scattering): Remove.
15293         (number_of_write_pdrs): Remove.
15294         (pbb_dim_iter_domain): Remove.
15295         (pbb_nb_params): Remove.
15296         (pbb_nb_scattering_orig): Remove.
15297         (pbb_nb_scattering_transform): Remove.
15298         (pbb_nb_dynamic_scattering_transform): Remove.
15299         (pbb_nb_local_vars): Remove.
15300         (pbb_iterator_dim): Remove.
15301         (pbb_parameter_dim): Remove.
15302         (psco_scattering_dim): Remove.
15303         (psct_scattering_dim): Remove.
15304         (psct_local_var_dim): Remove.
15305         (psco_iterator_dim): Remove.
15306         (psct_iterator_dim): Remove.
15307         (psco_parameter_dim): Remove.
15308         (psct_parameter_dim): Remove.
15309         (psct_dynamic_dim): Remove.
15310         (psct_static_dim): Remove.
15311         (psct_add_local_variable): Remove.
15312         (new_lst_loop): Remove.
15313         (new_lst_stmt): Remove.
15314         (free_lst): Remove.
15315         (copy_lst): Remove.
15316         (lst_add_loop_under_loop): Remove.
15317         (lst_depth): Remove.
15318         (lst_dewey_number): Remove.
15319         (lst_dewey_number_at_depth): Remove.
15320         (lst_pred): Remove.
15321         (lst_succ): Remove.
15322         (lst_find_pbb): Remove.
15323         (find_lst_loop): Remove.
15324         (lst_find_first_pbb): Remove.
15325         (lst_empty_p): Remove.
15326         (lst_find_last_pbb): Remove.
15327         (lst_contains_p): Remove.
15328         (lst_contains_pbb): Remove.
15329         (lst_create_nest): Remove.
15330         (lst_remove_from_sequence): Remove.
15331         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15332         (lst_niter_for_loop): Remove.
15333         (pbb_update_scattering): Remove.
15334         (lst_update_scattering_under): Remove.
15335         (lst_update_scattering): Remove.
15336         (lst_insert_in_sequence): Remove.
15337         (lst_replace): Remove.
15338         (lst_substitute_3): Remove.
15339         (lst_distribute_lst): Remove.
15340         (lst_remove_all_before_including_pbb): Remove.
15341         (lst_remove_all_before_excluding_pbb): Remove.
15342         (struct scop): Remove original_schedule, transformed_schedule, and
15343         saved_schedule.
15344         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15345         (SCOP_SAVED_SCHEDULE): Remove.
15346         (poly_scattering_new): Remove.
15347         (poly_scattering_free): Remove.
15348         (poly_scattering_copy): Remove.
15349         (store_scattering_pbb): Remove.
15350         (store_lst_schedule): Remove.
15351         (restore_lst_schedule): Remove.
15352         (store_scattering): Remove.
15353         (restore_scattering_pbb): Remove.
15354         (restore_scattering): Remove.
15355         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15356         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
15357         compute the scattering polyhedron dimension from the dimension of
15358         pbb->domain.
15359         (build_scop_scattering): Update call to
15360         build_pbb_scattering_polyhedrons.
15361         (build_poly_scop): Remove call to scop_to_lst.
15362         * graphite.c (graphite_transform_loops): Add call to print_scop.
15363         (gate_graphite_transforms): Remove use of flag_loop_block,
15364         flag_loop_interchange, and flag_loop_strip_mine.
15366 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15368         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15369         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15370         -floop-nest-optimize.
15371         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15372         (generate_luj_sepclass): Remove.
15373         (generate_luj_options): Remove.
15374         (set_options): Remove opt_luj.
15375         (scop_to_isl_ast): Remove opt_luj.
15376         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15377         flag_loop_unroll_jam.
15378         (getPrevectorMap_full): Remove.
15379         (getScheduleForBandList): Remove map_sepcl.
15380         (getScheduleMap): Same.
15381         (apply_schedule_map_to_scop): Remove sepcl.
15382         (optimize_isl): Same.
15383         * graphite-poly.c (apply_poly_transforms): Remove check for
15384         flag_loop_unroll_jam.
15385         (new_poly_bb): Remove map_sepclass.
15386         * graphite-poly.h (struct poly_bb): Same.
15387         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15388         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15389         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15390         * toplev.c (process_options): Remove flag_loop_unroll_jam.
15392 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
15394         PR target/67317
15395         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15396         (addqi3_cc): Ditto.
15397         (UNSPEC_ADD_CARRY): Remove.
15398         (addqi3_cconly_overflow): New expander.
15399         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15400         Adjust for changed add<mode>3_carry.
15401         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15402         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15403         (<plusminus_insn><mode>3_carry): Remove expander.
15404         (*<plusminus_insn><mode>3_carry): Split insn pattern to
15405         add<mode>3_carry and sub<mode>3_carry.
15406         (plusminus_carry_mnemonic): Remove code attribute.
15407         (add<mode>3_carry): Canonicalize insn pattern.
15408         (*addsi3_carry_zext): Ditto.
15409         (sub<mode>3_carry): Ditto.
15410         (*subsi3_carry_zext): Ditto.
15411         (adcx<mode>3): Remove insn pattern.
15412         (addcarry<mode>): New insn pattern.
15413         (subborrow<mode>): Ditto.
15414         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15415         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15416         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15417         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15418         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15419         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15420         Rewrite expander to not clobber carry flag chains.
15422 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
15424         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15425         instead of a rotate.
15427 2015-08-27  Marek Polacek  <polacek@redhat.com>
15429         PR middle-end/67005
15430         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15431         an entry into an irreducible region.
15433 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15435         * configure: Regenerate.
15437 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15439         PR tree-optimization/67283
15440         * tree-sra.c (type_consists_of_records_p): Rename to...
15441         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15443         (completely_scalarize_record): Rename to...
15444         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15445         (scalarize_elem): New.
15447 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15449         * tree-sra.c (completely_scalarize_var): Rename to...
15450         (create_total_scalarization_access): ... Here. Drop call to
15451         completely_scalarize_record.
15453         (analyze_all_variable_accesses): Replace completely_scalarize_var
15454         with create_total_scalarization_access and completely_scalarize_record.
15456 2015-08-27  Alan Modra  <amodra@gmail.com>
15458         PR target/67356
15459         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15460         for operand 1.
15462 2015-08-27  Richard Biener  <rguenther@suse.de>
15464         * passes.c (rest_of_decl_compilation): Guard early_global_decl
15465         call with !seen_error ().
15466         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15467         early debug generation and finish...
15468         (symbol_table::compile): ... here to put it after a !seen_error ()
15469         guard.
15471 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15473         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15474         Solaris 12+.
15476 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15477             Andre Vieira  <andre.simoesdiasvieira@arm.com>
15479         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15480         (*cb<optab><mode>1): Likewise.
15481         (*tb<optab><mode>1): Likewise.
15482         (*cb<optab><mode>1): Likewise.
15483         * config/aarch64/iterators.md (inv_cb): New code attribute.
15484         (inv_tb): Likewise.
15485         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15486         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15488 2015-08-27  Richard Biener  <rguenther@suse.de>
15490         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15492 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15494         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15495         trap to fix ICE.
15497 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15499         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15500         Add declaration.
15502         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15503         comment.
15504         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15505         floating point in VSX registers.
15506         (rs6000_output_move_128bit): Always print out the set insn if we
15507         can't generate an appropriate 128-bit move.
15508         (rs6000_generate_compare): Add support for IEEE 128-bit floating
15509         point in VSX registers comparisons.
15510         (rs6000_expand_float128_convert): Likewise.
15512         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15513         predicate for only GPR hard registers.
15515         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15516         modes to iterators. Add new iterators for moving 128-bit values in
15517         scalar FPR registers and VSX registers.
15518         (FMOVE128): Likewise.
15519         (FMOVE128_FPR): Likewise.
15520         (FMOVE128_GPR): Likewise.
15521         (FMOVE128_VSX): Likewise.
15522         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15523         in VSX registers.
15524         (IFKF): Likewise.
15525         (IBM128): Likewise.
15526         (TFIFKF): Likewise.
15527         (RELOAD): Add IEEE 128-bit floating point modes.
15528         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15529         floating point in VSX registers modes.
15530         (signbit<mode>2, IBM128 iterator): Likewise.
15531         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15532         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15533         (negtf2): Likewise.
15534         (neg<mode>2, TFIFKF iterator): Likewise.
15535         (negtf2_internal): Likewise.
15536         (abstf2): Likewise.
15537         (abs<mode>2, TFIFKF iterator): Likewise.
15538         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15539         VSX insn support for negate, absolute value, and negative absolute
15540         value.
15541         (ieee_128bit_vsx_neg<mode>2): Likewise.
15542         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15543         (ieee_128bit_vsx_abs<mode>2): Likewise.
15544         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15545         (ieee_128bit_vsx_nabs<mode>2): Likewise.
15546         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15547         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15548         floating point in VSX registers.
15549         (unpack<mode>_dm): Likewise.
15550         (unpack<mode>_nodm): Likewise.
15551         (pack<mode>): Likewise.
15552         (unpackv1ti): Likewise.
15553         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15554         (packv1ti): Likewise.
15555         (pack<mode>, FMOVE128_VSX iterator): Likewise.
15556         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15557         registers.
15558         (extenddftf2_internal): Likewise.
15559         (trunctfdf2): Likewise.
15560         (trunctfdf2_internal2): Likewise.
15561         (fix_trunc_helper): Likewise.
15562         (fix_trunctfdi2"): Likewise.
15563         (floatditf2): Likewise.
15564         (floatuns<mode>tf2): Likewise.
15565         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15566         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15567         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15568         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15569         (float<SDI:mode><IFKF:mode>2): Likewise.
15570         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15572 2015-08-26  Renlin Li  <renlin.li@arm.com>
15574         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15576 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15577             Jiong Wang  <jiong.wang@arm.com>
15579         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15580         (tlsie_tiny_<mode>): New define_insn.
15581         (tlsie_tiny_sidi): Likewise.
15582         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15583         SYMBOL_TINY_TLSIE.
15584         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15585         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15586         SYMBOL_TINY_TLSIE.
15587         (aarch64_expand_mov_immediate): Likewise.
15588         (aarch64_print_operand): Likewise.
15589         (arch64_classify_tls_symbol): Likewise.
15591 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15593         * config/arm/arm-arches.def: Replace single value flags with
15594         an initializer built from ARM_FSET_MAKE_CPU1.
15595         * config/arm/arm-cores.def: Likewise.
15596         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15597         derivation from the ARM_CORE macro definition, use the given value
15598         instead.
15599         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15600         ARM_ARCH macro definition, use the given value instead.
15602 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15604         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15605         feature set.
15606         (struct builtin_description): Replace field mask with field
15607         features.
15608         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15609         (IWMMXT2_BUILTIN): Likewise.
15610         (IWMMXT2_BUILTIN2): Likewise.
15611         (FP_BUILTIN): Likewise.
15612         (CRC32_BUILTIN): Likewise.
15613         (CRYPTO_BUILTIN): Likewise.
15614         (iwmmx_mbuiltin): Likewise.
15615         (iwmmx2_mbuiltin): Likewise.
15616         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15617         struct builtin_description.
15619 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15621         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15622         (struct builtin_description): Change type of mask to unsigned
15623         long.
15624         * config/arm/arm-protos.h (insn_flags): Declare as type
15625         arm_feature_set.
15626         (tune_flags): Likewise.
15627         * config/arm/arm.c (feature_count): New.
15628         (insn_flags): Define as type arm_feature_set.
15629         (tune_flags): Likewise.
15630         (struct processors): Define field flags as type arm_feature_set.
15631         (all_cores): Update for change to struct processors.
15632         (all_architectures): Likewise.
15633         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15634         macros.
15635         (arm_option_override_internal): Likewise.
15636         (arm_option_override): Likewise.
15638 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15639             Jiong Wang  <jiong.wang@arm.com>
15641         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15642         tls size for tiny, small, large memory model.
15643         (aarch64_load_symref_appropriately): Support new symbol types.
15644         (aarch64_expand_mov_immediate): Likewise.
15645         (aarch64_print_operand): Likewise.
15646         (aarch64_classify_tls_symbol): Likewise.
15647         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15648         (aarch64_symbol_type): Likewise.
15649         * config/aarch64/aarch64.md (tlsle): Deleted.
15650         (tlsle12_<mode>): New define_insn.
15651         (tlsle24_<mode>): Likewise.
15652         (tlsle32_<mode>): Likewise.
15653         (tlsle48_<mode>): Likewise.
15654         * doc/sourcebuild.texi (AArch64-specific attributes): Document
15655         "aarch64_tlsle32".
15657 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15659         * config/arm/arm-protos.h (FL_NONE): New.
15660         (FL_ANY): New.
15661         (arm_feature_set): New.
15662         (ARM_FSET_MAKE): New.
15663         (ARM_FSET_MAKE_CPU1): New.
15664         (ARM_FSET_MAKE_CPU2): New.
15665         (ARM_FSET_CPU1): New.
15666         (ARM_FSET_CPU2): New.
15667         (ARM_FSET_EMPTY): New.
15668         (ARM_FSET_ANY): New.
15669         (ARM_FSET_HAS_CPU1): New.
15670         (ARM_FSET_HAS_CPU2): New.
15671         (ARM_FSET_HAS_CPU): New.
15672         (ARM_FSET_ADD_CPU1): New.
15673         (ARM_FSET_ADD_CPU2): New.
15674         (ARM_FSET_DEL_CPU1): New.
15675         (ARM_FSET_DEL_CPU2): New.
15676         (ARM_FSET_UNION): New.
15677         (ARM_FSET_INTER): New.
15678         (ARM_FSET_XOR): New.
15679         (ARM_FSET_EXCLUDE): New.
15680         (AFM_FSET_IS_EMPTY): New.
15681         (ARM_FSET_CPU_SUBSET): New.
15683 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15685         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15686         SYMBOL_TLSLE to SYMBOL_TLSLE24.
15687         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15688         Likewise.
15689         (aarch64_expand_mov_immediate): Likewise.
15690         (aarch64_print_operand): Likewise.
15691         (aarch64_classify_symbol): Likewise.
15693 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
15695         * config/aarch64/aarch64.opt (mtls-size): New entry.
15696         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15697         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15698         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15700 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
15702         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15703         ARM_CORE entry.  Fix some white-space.
15704         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15705         ARM_CORE definition.
15707 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15709         * fold-const.c (fold_binary_loc) : Move Optimize
15710         root(x)*root(y) as root(x*y) to match.pd.
15711         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15712         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15713         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15714         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15715         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15716         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15717         (mult (exps:s @0) (exps:s @1)) : New simplifier.
15718         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15719         (rdiv @0 (exps:s @1)) : New simplifier.
15721 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
15723         * gcc.c (driver::finalize): Only assign to extra_specs if
15724         [EXTRA_SPECS].
15726 2015-08-25  Marek Polacek  <polacek@redhat.com>
15728         PR middle-end/67330
15729         * varasm.c (declare_weak): Return after giving an error.
15731 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
15733         * gcc-main.c (main): Add params to driver ctor.
15734         * gcc.c (class env_manager): New.
15735         (env): New global.
15736         (env_manager::init): New.
15737         (env_manager::get): New.
15738         (env_manager::xput): New.
15739         (env_manager::restore): New.
15740         Poison getenv and putenv.
15741         (DEFAULT_TARGET_SYSTEM_ROOT): New.
15742         (target_system_root): Update initialization to use
15743         DEFAULT_TARGET_SYSTEM_ROOT.
15744         (struct spec_list): Add field "default_ptr".
15745         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15746         (init_spec): Likewise.
15747         (set_spec): Clear field "default_ptr".
15748         (read_specs): Free "spec" and "buffer".
15749         (xputenv): Reimplement in terms of env_manager.
15750         (process_command): Replace ::getenv calls with calls to the
15751         env_manager singleton.
15752         (process_brace_body): Free string in three places.
15753         (driver::driver): New.
15754         (driver::~driver): New.
15755         (used_arg): Convert from a function to...
15756         (class used_arg_t): ...this class, and...
15757         (used_arg): ...this new global instance.
15758         (used_arg_t::finalize): New function.
15759         (getenv_spec_function): Add "const" to local "value".  Replace
15760         ::getenv call with call to the env_manager singleton.
15761         (path_prefix_reset): New function.
15762         (driver::finalize): New function.
15763         * gcc.h (driver::driver): New.
15764         (driver::~driver): New.
15765         (driver::finalize): New.
15767 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15769         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15770         target doesn't have one.
15772 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15774         PR target/67346
15775         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15777 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
15779         PR target/67344
15780         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15781         a define_insn, remove second alternative.
15783 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
15784             Joseph Myers  <joseph@codesourcery.com>
15786         * gcc.c (struct switchstr): Expand comment.
15788 2015-08-25  Nathan Sidwell  <nathan@acm.org>
15790         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15791         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15793 2015-08-25  Richard Biener  <rguenther@suse.de>
15795         PR middle-end/67306
15796         * genmatch.c (expr::gen_transform): Verify the result of
15797         builtin_decl_implicit.
15798         (dt_simplify::gen_1): Likewise.
15800 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15802         * config/arm/constraints.md: Also list Cs and US ARM-specific
15803         constraints as used.
15805 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15807         PR target/66609
15808         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15809         UNSPEC_PCREL.
15810         (nonpic_symbol_mentioned_p): Likewise.
15811         (sh_delegitimize_address): Likewise.
15812         (sh_function_ok_for_sibcall): Take into account weak symbols.
15813         (sh_expand_sym_label2reg): New.
15814         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15815         * config/sh/sh.md (UNSPEC_PCREL): New enum.
15816         (call_pcrel): Use sh_expand_sym_label2reg.
15817         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15818         (symPCREL_label2reg) New expand.
15820 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15822         * graphite-poly.c: Change type of region from void* to sese.
15823         * graphite-poly.h (struct scop): Changing the type of scop::region
15824         from void* to sese. Change accessor macro accordingly.
15825         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15827 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
15829         * graphite-scop-detection.c (stmt_simple_for_scop_p):
15830         Constrain only on INTEGER_TYPE.
15832 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15834         PR target/67211
15835         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15836         -mefficient-unaligned-vsx on ISA 2.7.
15838         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15839         option to a masked option.
15841         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15842         logic for -mefficient-unaligned-vsx so that it is set via an arch
15843         ISA option, instead of being set if -mtune=power8 is set. Move
15844         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
15845         near other default option handling.
15847 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15849         * genflags.c (gen_macro): Delete.
15850         (gen_proto): Don't create GEN.*CALL.* macros.
15851         * gensupport.h (get_file_location): Declare.
15852         * gensupport.c (rtx_locs): New variable.
15853         (read_md_rtx): Record rtx locations.
15854         (get_file_location): New function.
15855         * target-insns.def (call, call_pop, call_value, call_value_pop)
15856         (sibcall, sibcall_value): New patterns.
15857         * gentarget-def.c (parse_argument): New function.
15858         (def_target_insn): Use it.  Handle optional operands.  Raise an
15859         error if an .md pattern has the wrong number of operands for the
15860         pattern name.  Remove the names of unused operands from the prototype.
15861         * builtins.c (expand_builtin_apply): Use targetm functions
15862         instead of HAVE_call_value and GEN_CALL_VALUE.
15863         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
15864         and sibcall_value_pop.
15865         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
15866         of GEN_CALL.
15867         * config/alpha/alpha.md (untyped_call): Likewise.
15868         * config/iq2000/iq2000.md (untyped_call): Likewise.
15869         * config/m68k/m68k.md (untyped_call): Likewise.
15870         * config/mips/mips.md (untyped_call): Likewise.
15871         * config/pa/pa.md (untyped_call): Likewise.
15872         * config/rs6000/rs6000.md (untyped_call): Likewise.
15873         * config/sparc/sparc.md (untyped_call): Likewise.
15874         * config/tilegx/tilegx.md (untyped_call): Likewise.
15875         * config/tilepro/tilepro.md (untyped_call): Likewise.
15876         * config/visium/visium.md (untyped_call): Likewise.
15877         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
15878         gen_call_value instead of GEN_CALL_VALUE.
15879         * config/arm/arm.md (untyped_call): Likewise.
15880         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
15881         GEN_CALL.
15883 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15885         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
15886         (have_cbranchcc4): New variable.
15887         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
15888         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
15889         (if_convert): Initialize have_cbranchcc4.
15891 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15893         * builtins.c (expand_cmpstrn): Rename to...
15894         (expand_cmpstrn_or_cmpmem): ...this.
15895         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
15896         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
15897         Remove mode argument.
15898         (expand_builtin): Update accordingly.
15900 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15902         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
15903         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
15904         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
15905         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
15906         Add predicates for operands 0 and 3.
15907         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
15908         operand.
15909         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
15910         immediate_operand to nonmemory_operand.
15912 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15914         * df-scan.c (df_insn_info_init_fields): New function, split out
15915         from...
15916         (df_insn_create_insn_record): ...here.
15917         (df_insn_info_free_fields): New function, split out from...
15918         (df_insn_info_delete): ...here.
15919         (df_insn_rescan): Use the new functions instead of freeing and
15920         reallocating the df_insn_info.
15922 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15924         * doc/install.texi (Binaries): Remove links no longer valid.
15926 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15928         * config/nvptx/mkoffload.c (process): Replace
15929         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
15931 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
15933         PR target/67329
15934         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
15936 2015-08-24  Renlin Li  <renlin.li@arm.com>
15938         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
15939         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
15940         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
15941         * config/arm/constraints.md ("j"): Add check for high code.
15943 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15945         PR tree-optimization/65468
15946         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
15947         chunk_size is one.
15949 2015-08-24  Nathan Sidwell  <nathan@acm.org>
15951         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
15952         change to nvptx_type_from_mode call. Use arg_promotion for both
15953         split and non-split args.
15955 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15957         * target-insns.def (movstr): New pattern.
15958         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
15959         (expand_movstr): Use targetm rather than HAVE_movstr/
15960         CODE_FOR_movstr.
15962 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
15964         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
15965         cast syntax.
15967 2015-08-24  Andrew Pinski  <apinski@cavium.com>
15969         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
15970         AARCH64_EXTRA_TUNING_OPTION.
15971         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
15972         New enum.
15973         (aarch64_extra_tuning_flags): Base the shifted value on the index
15974         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
15975         * config/aarch64/aarch64.c: Remove the last argument to
15976         AARCH64_EXTRA_TUNING_OPTION.
15978 2015-08-23  Nathan Sidwell  <nathan@acm.org>
15980         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
15981         decls.
15982         (nvptx_declare_function_name): Insert formatting tabs for
15983         consistency.
15985 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15987         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
15988         parm_decl, rather than generating a dummy default def in cfun.
15989         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
15990         ssa_name from cfun and child_fn do not share a stmt as def stmt.
15991         (move_stmt_op): Handle PARM_DECl.
15992         (gather_ssa_name_hash_map_from): New function.
15993         (move_sese_region_to_fn): Add default defs for function params, and add
15994         them to vars_map.  Release copied ssa names.
15995         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
15997 2015-08-23  Tom de Vries  <tom@codesourcery.com>
15999         * doc/sourcebuild.texi: Rename vect_no_int_max with
16000         vect_no_int_min_max.  Update description.
16002 2015-08-22  Andrew Pinski  <apinski@cavium.com>
16004          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16005         * config/aarch64/aarch64-protos.h
16006         (aarch64_fusion_pairs_index): New enum.
16007         (aarch64_fusion_pairs): Base the shifted value on the index instead
16008         Rewrite AARCH64_FUSE_ALL to be based on the end index.
16009         of the argument to AARCH64_FUSION_PAIR.
16010         * config/aarch64/aarch64.c: Remove the last argument to
16011         AARCH64_FUSION_PAIR.
16013 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
16015         * dominance.c (new_zero_array): Define.
16016         (dom_info): Redefine as class with proper encapsulation.
16017         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16018         Add new members.
16019         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
16020         allocations/deallocations.  Pass function as parameter (instead of
16021         using cfun).
16022         (dom_info::get_idom): Define accessor method.
16023         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16024         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
16025         (calculate_dominance_info): Adjust to use dom_info class.
16026         (verify_dominators): Likewise.
16028 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
16030         * print-rtl.c (print_rtx): Check the correct range for
16031         flag_dump_unnumbered_links to behave as documented.
16033         PR rtl-optimization/67227
16034         PR rtl-optimization/64164
16035         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16036         (nonoverlapping_memrefs_p): Test offsets and sizes when given
16037         identical gimple_reg exprs.
16039 2015-08-21  Nathan Sidwell  <nathan@acm.org>
16041         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16042         expansion.
16043         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16044         crtl->stack_alignment_needed to determine alignment.
16045         (nvptx_get_drap_rtx): New.
16046         (TARGET_GET_DRAP_RTX): Override.
16047         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16049 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16051         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16053 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16055         * configure.ac: Remove uwin* cases.
16056         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16057         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16058         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16059         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16060         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16061         i[34567]86-*-uwin*, powerpc-*-beos*.
16063 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
16065         * gencodes.c (gencodes): Print the comma for the preceding
16066         enum value rather than the current one.  Use aliased enum values
16067         rather than #defines for compiled-out patterns.
16068         (main): Update accordingly.  Replace LAST_INSN_CODE with
16069         NUM_INSN_CODES.
16070         * lra.c (insn_code_data): Update accordingly.
16071         (finish_insn_code_data_once, get_static_insn_data): Likewise.
16072         * recog.h (target_recog): Likewise.
16073         (preprocess_insn_constraints): Change parameter to unsigned int.
16074         * recog.c (preprocess_insn_constraints): Likewise.
16075         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16076         * tree-vect-stmts.c (vectorizable_operation): Simplify.
16078 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16080         PR rtl-optimization/61657
16081         * loop-iv.c (iv_number_of_iterations): Declare up and down as
16082         unsigned.  Remove superflous uint64_t cast.
16084 2014-08-21  Felix Yang  <felix.yang@huawei.com>
16085             Jiji Jiang  <jiangjiji@huawei.com>
16087         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16088         argument and get builtin function code directly from CALL.
16089         (gimple_stringop_fixed_value): Modified accordingly.
16090         (gimple_stringops_transform, gimple_stringops_values_to_profile):
16091         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16093 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16095         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16097 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16099         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16100         to match.pd.
16101         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16102         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16103         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16104         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16105         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16106         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16107         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16108         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16109         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16110         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16112         * match.pd (SIN ) : New Operator.
16113         (TAN) : New Operator.
16114         (mult (SQRT@1 @0) @1) : New simplifier.
16115         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16116         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16117         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16118         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16119         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16120         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16121         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16122         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16123         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16124         (rdiv @0 (POW:s @1 @2)) : New simplifier.
16126 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
16128         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16129         loop if EXPR is simplified to const value.
16131 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
16133         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16134         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16136 2015-08-21  Richard Biener  <rguenther@suse.de>
16138         PR middle-end/67285
16139         * gimple-fold.c (replace_stmt_with_simplification): Assert
16140         seq is empty when replacing a call with itself but different
16141         arguments.
16142         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16143         a call require that it is const.
16145 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16147         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16148         * builtins.c (get_object_alignment_2): Adjust.
16149         * varasm.c (align_variable): Likewise.
16150         (get_variable_align): Likewise.
16151         (build_constant_desc): Likewise.
16152         (force_const_mem): Likewise.
16153         * doc/tm.texi.in: Likewise.
16154         * doc/tm.texi: Regenerate.
16156 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16158         * genconfig.c (main): Always define HAVE_cc0.
16159         * recog.c (rest_of_handle_peephole2): Adjust.
16161 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16163         * reorg.c (relax_delay_slots): Don't use #if to check value of
16164         HAVE_cc0.
16166 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16168         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16169         * targhooks.c (default_have_conditional_execution): Adjust.
16171 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16173         * rtl.h (rtvec_all_equal_p): Declare.
16174         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16175         * rtl.c (rtvec_all_equal_p): New function.
16176         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16177         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16178         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16179         * config/arm/arm.c (neon_vdup_constant): Likewise.
16180         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16181         * config/tilegx/constraints.md (W, Y): Likewise.
16182         * config/tilepro/constraints.md (W, Y): Likewise.
16183         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16184         (classify_immediate): Use unwrap_const_vec_duplicate.
16185         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16186         (reg_or_v2s8bit_operand): Likewise.
16187         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16188         (reg_or_v4s8bit_operand): Likewise.
16190 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16192         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16193         (vec_shasigma_be): New #define.
16194         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16195         (VPMSUMH): Likewise.
16196         (VPMSUMW): Likewise.
16197         (VPMSUMD): Likewise.
16198         (VPMSUM): New BU_P8V_OVERLOAD_2.
16199         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16200         entries for VEC_MADD and VEC_VPMSUM.
16202 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
16204         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16205         Multiply argument avr_n_flash by 64 to match unit of "KiB".
16206         (avr_pgm_check_var_decl): Same.
16208 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
16210         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16211         initialization of HFmode scalar type (float16_t) to...
16212         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16213         code.
16215         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16217         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16218         having an -mfp16-format.
16220 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16222         * config/i386/predicates.md (vector_all_ones_operand): Use
16223         CONSTM1_RTX to simplify definition.
16225 2015-08-20  Richard Biener  <rguenther@suse.de>
16227         * toplev.c (compile_file): Remove loop calling late_global_decl
16228         on all symbols.
16229         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16230         on decls we assembled.
16232 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
16234         * common/config/aarch64/aarch64-common.c
16235         (AARCH64_CPU_NAME_LENGTH): Delete.
16236         (aarch64_option_extension): New.
16237         (all_extensions): Likewise.
16238         (processor_name_to_arch): Likewise.
16239         (arch_to_arch_name): Likewise.
16240         (all_cores): New.
16241         (all_architectures): Likewise.
16242         (aarch64_get_extension_string_for_isa_flags): Likewise.
16243         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16244         architecture names.
16245         * config/aarch64/aarch64-protos.h
16246         (aarch64_get_extension_string_for_isa_flags): New.
16247         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16248         (aarch64_option_print): Get the string to print from
16249         aarch64_get_extension_string_for_isa_flags.
16250         (aarch64_declare_function_name): Likewise.
16251         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16252         (MCPU_TO_MARCH_SPEC): This.
16253         (ASM_CPU_SPEC): Use it.
16254         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16255         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16256         (EXTRA_SPEC_FUNCTIONS): Use it.
16258 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
16260         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16261         expansion when !ISA_HAS_LWL_LWR.
16262         (mips_block_move_straight): Update the size of elements copied to
16263         account for alignment when !ISA_HAS_LWL_LWR.
16264         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16266 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16268         * expr.c (expand_expr_real_2): Check gimple statement during
16269         LSHIFT_EXPR expand.
16271 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
16273         * common.opt (fstack-protector): Initialize to -1.
16274         (fstack-protector-all): Likewise.
16275         (fstack-protector-strong): Likewise.
16276         (fstack-protector-explicit): Likewise.
16277         * configure.ac: Add --enable-default-ssp.
16278         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
16279         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16280         -1.
16281         * doc/install.texi: Document --enable-default-ssp.
16282         * config.in: Regenerated.
16283         * configure: Likewise.
16285 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
16287         PR rtl-optimization/64164
16288         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16289         (parm_in_stack_slot_p): ... this.  Disregard mode, what
16290         matters is whether the parm will live in a pseudo or a stack
16291         slot.
16292         (expand_one_ssa_partition): Deal with params without a default
16293         def.  Disregard mode.
16294         * cfgexpand.h: Renamed function declaration.
16295         * tree-ssa-coalesce.c: Adjust.
16296         * function.c (split_complex_args): Allocate stack slot for
16297         unassigned parms before splitting.
16298         (parm_in_unassigned_mem_p): New.  Use it instead of
16299         parm_maybe_byref_p throughout this file.
16300         (assign_parm_setup_block): Use it.  Accept pseudos in the
16301         expand-assigned rtl.
16302         (assign_parm_setup_reg): Drop BLKmode requirement.
16303         (assign_parm_setup_stack): Allocate and fill in the address of
16304         unassigned MEM parms.
16306 2015-08-19  David Sherwood  <david.sherwood@arm.com>
16308         * genmodes.c (emit_mode_unit_size_inline): New function.
16309         (emit_mode_unit_precision_inline): New function.
16310         (emit_insn_modes_h): Emit new #define.  Emit new functions.
16311         (emit_mode_unit_size): New function.
16312         (emit_mode_unit_precision): New function.
16313         (emit_mode_adjustments): Add mode_unit_size adjustments.
16314         (emit_insn_modes_c): Emit new arrays.
16315         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16316         use new inline methods.
16318 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16320         * config/aarch64/aarch64.c (bit_count): Delete prototype
16321         and definition.
16322         (aarch64_print_operand): Use popcount_hwi instead of the above.
16324 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16326         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16327         comment.
16329 2015-08-19  Marek Polacek  <polacek@redhat.com>
16331         PR middle-end/67133
16332         * gimple-ssa-isolate-paths.c
16333         (insert_trap_and_remove_trailing_statements): Rename to ...
16334         (insert_trap): ... this.  Don't remove trailing statements; split
16335         block instead.
16336         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16338 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
16340         PR other/67042
16341         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16342         conditionalize the whole on __GNUC__.  Add fallback code
16343         depending neither on undefined nor implementation-defined behaviour.
16345 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16347         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16348         whitespaces with tab.
16350 2015-08-19  Florian Weimer  <fweimer@redhat.com>
16352         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16353         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16354         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16355         Move Name_Ids instantiation to the Prj.Proc package, to avoid
16356         trampolines.
16358 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16360         * config/arm/arm.c (bounds_check): Use %wd print format
16361         for HOST_WIDE_INT arguments.
16363 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
16365         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16366         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16367         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16368         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16369         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16370         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16371         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16372         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16373         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16374         typedefs.
16376 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
16378         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16379         function.c, graphite-scop-detection.c, haifa-sched.c,
16380         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16381         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16382         varasm.c: Remove typedefs of structs.
16384 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16386         * config/rs6000/altivec.h (vec_adde): New define.
16387         (vec_addec): Likewise.
16388         (vec_double): Likewise.
16389         (vec_bperm): Likewise.
16390         (vec_gb): Likewise.
16391         * config/rs6000/rs6000-builtin.def (ADDE): New
16392         BU_ALTIVEC_OVERLOAD_3.
16393         (ADDEC): Likewise.
16394         (DOUBLE): New BU_VSX_OVERLOAD_1.
16395         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16396         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16397         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16398         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16399         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16400         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16401         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16402         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16403         and P8V_BUILTIN_VEC_VBPERMQ.
16405 2015-08-18  Jason Merrill  <jason@redhat.com>
16407         * print-tree.c (print_node): Handle TREE_BINFO.
16409 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16411         PR middle-end/36757
16412         * builtins.c (expand_builtin_signbit): Add asserts to make sure
16413         we can expand BUILT_IN_SIGNBIT inline.
16414         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16415         * doc/extend.texi: Document the type-generic __builtin_signbit.
16417 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
16419         PR rtl-optimization/67218
16420         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16421         (simplify_unary_operation_1): Use it.
16423 2015-08-18  Marek Polacek  <polacek@redhat.com>
16425         PR middle-end/67222
16426         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16427         if the call isn't valid.
16428         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16429         gimple_call_builtin_p.
16430         (call_may_clobber_ref_p_1): Likewise.
16431         (stmt_kills_ref_p): Likewise.
16433 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16435         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16436         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16437         (mips_hard_regno_scratch_ok): Likewise.
16438         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16439         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16441 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
16443         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16444         (determine_value_range): Call refine_value_range_using_guard for
16445         each loop initial condition to improve value range.
16447 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
16449         * config/i386/i386.c: Remove include of fibheap.h.
16451 2015-08-17  Richard Biener  <rguenther@suse.de>
16453         PR tree-optimization/67221
16454         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16455         (sccvn_dom_walker::before_dom_children): Mark backedges of
16456         non-executable blocks as not executable.
16458 2015-08-17  David Sherwood  <david.sherwood@arm.com>
16460         * config/arm/arm.c (neon_element_bits): Replace call to
16461         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16462         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16463         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16464         (neon_vdup_lane<mode>): Likewise.
16465         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16466         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16467         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16468         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16469         * config/spu/spu.c (arith_immediate_p): Likewise.
16470         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16471         * expr.c (expand_expr_real_2): Likewise.
16472         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16473         * simplify-rtx.c (simplify_immed_subreg): Likewise.
16474         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16475         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16476         New variable.
16477         * fold-const.c (fold_binary_loc): Replace call to
16478         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16479         GET_MODE_UNIT_PRECISION (m).
16481 2015-08-17  Mike Stump  <mikestump@comcast.net>
16483         * config/arm/arm.c (arm_block_move_unaligned_straight):
16484         Emit normal move instead of unaligned load when source or destination
16485         are appropriately aligned.
16487 2015-08-17  Richard Biener  <rguenther@suse.de>
16488             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16490         PR middle-end/16107
16491         * match.pd (div (coss (op @0) : New simplifier.
16493 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
16495         PR rtl-optimization/64164
16496         PR bootstrap/66978
16497         PR middle-end/66983
16498         PR rtl-optimization/67000
16499         PR middle-end/67034
16500         PR middle-end/67035
16501         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16502         * tree-ssa-copyrename.c: Removed.
16503         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
16504         -ftree-coalesce-vars.
16505         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16506         * common.opt (ftree-copyrename): Ignore.
16507         (ftree-coalesce-inlined-vars): Likewise.
16508         * doc/invoke.texi: Remove the ignored options above.
16509         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16510         * tree-ssa-coalesce.h: ... here.
16511         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16512         headers required by it.
16513         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16514         across variables when flag_tree_coalesce_vars.  Check register
16515         use and promoted modes to allow coalescing.  Do not coalesce
16516         maybe-byref parms with SSA_NAMEs of other variables, or
16517         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
16518         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16519         with its member functions to tree-ssa-coalesce.c.
16520         (var_map_base_init): Likewise.  Renamed to
16521         compute_samebase_partition_bases.
16522         (partition_view_normal): Drop want_bases parameter.
16523         (partition_view_bitmap): Likewise.
16524         * tree-ssa-live.h: Adjust declarations.
16525         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16526         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16527         default defs at the entry point.
16528         (dump_part_var_map): New.
16529         (compute_optimized_partition_bases): New, called by...
16530         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16531         of compute_samebase_partition_bases.  Adjust.
16532         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16533         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16534         (ssa_default_def_partition): New.
16535         (get_rtl_for_parm_ssa_default_def): New.
16536         (align_local_variable, add_stack_var): Support anonymous SSA
16537         names.
16538         (defer_stack_allocation): Likewise.  Declare earlier.
16539         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16540         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16541         Do no record deferred-allocation marker in
16542         SA.partition_to_pseudo.
16543         (expand_stack_vars): Adjust check for the marker in it.
16544         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
16545         redundant MEM attr setting.
16546         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
16547         from...
16548         (expand_one_stack_var): ... this.  New wrapper to check and
16549         skip already expanded SSA partitions.
16550         (record_alignment_for_reg_var): New, factored out of...
16551         (expand_one_var): ... this.
16552         (expand_one_ssa_partition): New.
16553         (adjust_one_expanded_partition_var): New.
16554         (expand_one_register_var): Check and skip already expanded SSA
16555         partitions.
16556         (expand_used_vars): Don't create DECLs for anonymous SSA
16557         names.  Expand all SSA partitions, then adjust all SSA names.
16558         (pass::execute): Replace the loops that set
16559         SA.partition_to_pseudo from partition leaders and cleared
16560         DECL_RTL for multi-location variables, and that which used to
16561         rename vars and set attrs, with one that clears DECL_RTL and
16562         checks that PARMs and RESULTs default_defs match DECL_RTL.
16563         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16564         * emit-rtl.c: Include stor-layout.h.
16565         (set_reg_attrs_for_parm): Handle NULL decl.
16566         (set_reg_attrs_for_decl_rtl): Take mode from expression if
16567         it's not a DECL.
16568         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16569         rather than its possibly-NULL DECL.
16570         * explow.c (promote_ssa_mode): New.
16571         * explow.h (promote_ssa_mode): Declare.
16572         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16573         (read_complex_part): Export.
16574         * expr.h (read_complex_part): Declare.
16575         * cfgexpand.h (parm_maybe_byref_p): Declare.
16576         * function.c: Include cfgexpand.h.
16577         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16578         (use_register_for_parm_decl): Wrapper for the above to
16579         special-case the result_ptr.
16580         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16581         (split_complex_args): Take assign_parm_data_all argument.
16582         Pass it to rtl_for_parm.  Set up rtl and context for split
16583         args.  Reset complex parm before fetching its default decl
16584         rtl.
16585         (assign_parms_unsplit_complex): Use the default-def complex
16586         parm rtl if it matches the components.
16587         (assign_parms_augmented_arg_list): Adjust.
16588         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16589         multiple locations.  Recognize split complex args.
16590         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16591         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
16592         (assign_parm_setup_block): Prefer SSA-assigned location, and
16593         fill in its address if the memory location of a maybe-byref
16594         parm was not assigned by cfgexpand.
16595         (assign_parm_setup_reg): Likewise.  Adjust its mode as
16596         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
16597         sure passed_pointer parms don't need conversion.  Copy address
16598         or value as needed.
16599         (assign_parm_setup_stack): Prefer SSA-assigned location.
16600         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
16601         rtl before testing for pointer bounds.  Special-case result_ptr.
16602         (expand_function_start): Maybe reset DECL_RTL of result.
16603         Prefer SSA-assigned location for result and static chain.
16604         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
16605         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
16606         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16607         anonymous SSA names.  Use promote_ssa_mode.
16608         (get_temp_reg): Likewise.
16609         (remove_ssa_form): Adjust.
16610         * stor-layout.c (layout_decl): Don't set mem attributes of
16611         non-MEMs.
16612         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16613         and get its reg_usage for reg invalidation.
16614         (compute_bb_dataflow): Pass it insn.
16615         (emit_notes_in_bb): Likewise.
16617 2015-08-14  Marek Polacek  <polacek@redhat.com>
16619         * tree-core.h (tree_base): Fix typo.
16621 2015-08-14  Marek Polacek  <polacek@redhat.com>
16623         PR middle-end/67133
16624         * gimple.c (infer_nonnull_range_by_attribute): Check that the
16625         nonnull argument position is not outside function arguments.
16627 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
16629         PR target/67143
16630         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16631         'lconst_atomic' with 'const_atomic'.
16632         (atomic_fetch_<optab><mode>): Likewise.
16633         (atomic_<optab>_fetch<mode>): Likewise.
16634         * config/aarch64/iterators.md (lconst-atomic): Move below
16635         'const_atomic'.
16636         (const_atomic): New.
16638 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
16639             Bernd Schmidt  <bernds@codesourcery.com>
16641         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16642         debug options.
16643         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16644         (DWARF2_DEBUGGING_INFO): Don't define.
16645         * debug.h (dwarf2_lineno_debug_hooks): Declare.
16646         * toplev.c (process_options): Add a case for it.
16647         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16648         (dwarf2out_init): Skip most initializations if
16649         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16650         case.
16651         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16652         DWARF2_LINENO_DEBUGGING_INFO.
16653         * opts.c (set_debug_level): Likewise.
16655 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
16657         * config/arm/types.md (is_neon_type): Add missing types.
16659 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
16661         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16662         for skylake.
16663         * config/i386/i386.c (PTA_SKYLAKE): New macros.
16664         (processor_alias_table): Add skylake description.
16665         (enum processor_model): Add skylake processor.
16666         (arch_names_table): Add skylake record.
16667         * doc/invoke.texi: Add skylake item.
16669 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
16671         * ira-int.h: Include recog.h.
16672         * ira-build.c: Don't include recog.h.
16673         * ira-color.c: Likewise.
16674         * ira-conflicts.c: Likewise.
16675         * ira-costs.c: Likewise.
16676         * ira-emit.c: Likewise.
16677         * ira-lives.c: Likewise.
16678         * ira.c: Likewise.
16679         * sched-deps.c: Likewise.
16680         * sel-sched.c: Likewise.
16681         * target-globals.c: Likewise.
16683 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
16685         PR bootstrap/55035
16686         * reload1.c (elimination_costs_in_insn): Make it obvious to the
16687         compiler that the n_dups and n_operands loop bounds are invariant.
16689 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16691         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16692         expressions in A and B.
16694 2015-08-13  Richard Biener  <rguenther@suse.de>
16696         * tree.c (nonnull_arg_p): Move from ...
16697         * tree-vrp.c (nonnull_arg_p): ... here.
16698         * tree.h (nonnull_arg_p): Declare.
16699         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16700         here, register ptr != 0 for nonnull_arg_p pointer arguments.
16701         Properly initialize static chain and by-reference result pointer.
16702         (run_scc_vn): Adjust.
16704 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16706         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16707         TUNE_I6400.
16709 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16711         * config/aarch64/aarch64-protos.h
16712         (aarch64_gen_atomic_cas): Declare.
16713         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16714         Choose appropriate instruction pattern for the target.
16715         (aarch64_gen_atomic_cas): New.
16716         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16717         (atomic_compare_and_swap<mode>_1): Rename to
16718         aarch64_compare_and_swap<mode>.  Fix some indentation.
16719         (aarch64_compare_and_swap<mode>_lse): New.
16720         (aarch64_atomic_cas<mode>): New.
16722 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
16724         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16725         (TARGET_LSE): New.
16727 2015-08-13  Richard Biener  <rguenther@suse.de>
16729         PR tree-optimization/67191
16730         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16731         assert we value-numbered last stmts operand because it can validly
16732         trigger for unreachable code.
16734 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16736         PR rtl-optimization/67103
16737         * ifcvt.c (noce_try_store_flag_constants): Move
16738         x = (-(test != 0) & (b - a)) + a transformation to...
16739         (noce_try_cmove): ... Here.  Try it if normal conditional
16740         move fails.
16742 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
16744         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16745         pseudo-processors.
16746         * config/mips/mips.md (processor): Remove w32 and w64.
16748 2015-08-13  Richard Biener  <rguenther@suse.de>
16750         PR tree-optimization/66502
16751         PR tree-optimization/67167
16752         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16753         backedge arguments.
16754         (vn_phi_lookup): Adjust.
16755         (vn_phi_insert): Likewise.
16756         (visit_phi): Prefer to value-number to another PHI node
16757         over value-numbering to a PHI argument.
16758         (init_scc_vn): Mark DFS back edges.
16760 2015-08-13  Richard Biener  <rguenther@suse.de>
16762         * gimple.h (gcall::code_): New constant static member.
16763         (gcond::code_): Likewise.
16764         * gimple.c (gcall::code_): Define.
16765         (gcond::code_): Likewise.
16766         (is_a_helper <const gcond *>): Add.
16767         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16768         and forward to a new gcall overload with less checking and a
16769         cheaper way to access the operand.
16770         (gimple_call_lhs_ptr): Likewise.
16771         (gimple_call_set_lhs): Likewise.
16772         (gimple_call_internal_p): Likewise.
16773         (gimple_call_with_bounds_p): Likewise.
16774         (gimple_call_set_with_bounds): Likewise.
16775         (gimple_call_internal_fn): Likewise.
16776         (gimple_call_set_ctrl_altering): Likewise.
16777         (gimple_call_ctrl_altering_p): Likewise.
16778         (gimple_call_fntype): Likewise.
16779         (gimple_call_fn): Likewise.
16780         (gimple_call_fn_ptr): Likewise.
16781         (gimple_call_set_fndecl): Likewise.
16782         (gimple_call_fndecl): Likewise.
16783         (gimple_call_chain): Likewise.
16784         (gimple_call_num_args): Likewise.
16785         (gimple_call_arg): Likewise.
16786         (gimple_call_arg_ptr): Likewise.
16787         (gimple_call_set_arg): Likewise.
16788         (gimple_call_noreturn_p): Likewise.
16789         (gimple_cond_code): Likewise.
16790         (gimple_cond_lhs): Likewise.
16791         (gimple_cond_rhs): Likewise.
16792         (gimple_has_lhs): Reduce checking.
16794 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16796         PR middle-end/25529
16797         * match.pd (div (mult @0 @1) @1) : New simplifier.
16799 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16801         PR target/67071
16802         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16803         predicate to allow construction of vector constants using the
16804         VSLDOI vector shift instruction.
16806         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16807         declaration.
16809         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16810         the number of bytes to be shifted left and filled in with either
16811         all zero or all one bits.
16812         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16813         methods exist.
16814         (output_vec_const_move): On power8, generate XXLORC to generate
16815         a vector constant with all 1's. Do a split if we need to use a
16816         VSLDOI instruction.
16818         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16819         properly test for the MSB.
16821         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16822         vector constants that can be created with VSLDOI.
16824 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16826         revert:
16827         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16828         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16829         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16830         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16831         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16832         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16833         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16834         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16835         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16837 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
16839         * config/xtensa/constraints.md (define_constraint "Y"): New
16840         constraint.
16841         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16842         * config/xtensa/linux.h (ASM_SPEC): Likewise.
16843         * config/xtensa/predicates.md (move_operand): Match constants
16844         and symbols in the presence of TARGET_AUTO_LITPOOLS.
16845         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
16846         immediate references to TLS data.
16847         (xtensa_emit_move_sequence): Don't force constants to memory in
16848         the presence of TARGET_AUTO_LITPOOLS.
16849         (print_operand): Add 'y' format, same as default, but capable of
16850         printing SF mode constants as well.
16851         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
16852         (movsf_internal): Add movi pattern that loads literal.
16853         (movsf, movdf): Don't force constants to memory in the presence
16854         of TARGET_AUTO_LITPOOLS.
16855         (movdf_internal): Add 'Y' constraint.
16856         * config/xtensa/xtensa.opt (mauto-litpools): New option.
16857         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
16859 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16861         * config/arm/arm-fpus.def: Replace booleans with feature flags.
16862         Update comment.
16863         * config/arm/arm.c (ARM_FPU): Update macro.
16864         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
16865         (TARGET_FP16): Likewise.
16866         (TARGET_CRYPTO): Likewise.
16867         (TARGET_NEON): Likewise.
16868         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
16869         field features.
16871 2015-08-12  Tom de Vries  <tom@codesourcery.com>
16873         PR other/67092
16874         PR other/67098
16875         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
16876         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
16877         accordingly.  Mention default for --with-stage1-ldflags.
16879 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
16881         * config/arm/arm.h (arm_fpu_feature_set): New.
16882         (ARM_FPU_FSET_HAS): New.
16883         (FPU_FL_NONE): New.
16884         (FPU_FL_NEON): New.
16885         (FPU_FL_FP16): New.
16886         (FPU_FL_CRYPTO): New.
16888 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16890         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
16891         after -mcmodel=large -fPIC sorry.
16893 2015-08-12  Richard Biener  <rguenther@suse.de>
16895         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
16896         comparison operand order and commutative ternary op operand order.
16897         (sccvn_dom_walker::cond_stack): New state to track temporary
16898         expressions.
16899         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
16900         no longer valid.
16901         (sccvn_dom_walker::record_cond): Add a single temporary conditional
16902         expression.
16903         (sccvn_dom_walker::record_conds): Add a temporary conditional
16904         expressions and all related expressions also true/false.
16905         (sccvn_dom_walker::before_dom_children): Record temporary
16906         expressions based on the controlling condition of a single
16907         predecessor.  When trying to simplify a conditional statement
16908         lookup expressions we might have inserted earlier.
16910 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
16912         PR target/67127
16913         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
16914         to ARM core registers.
16916 2015-08-12  Nathan Sidwell  <nathan@acm.org>
16918         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
16919         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
16921 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
16923         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
16924         line with comments.
16925         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
16927 2015-08-12  Richard Biener  <rguenther@suse.de>
16929         * gimple.h (remove_pointer): New trait.
16930         (GIMPLE_CHECK2): New inline template function.
16931         (gassign::code_): New constant static member.
16932         (is_a_helper<const gassign *>): Add.
16933         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
16934         and forward to a new gassign overload with less checking and a
16935         cheaper way to access the operand.
16936         (gimple_assign_lhs_ptr): Likewise.
16937         (gimple_assign_set_lhs): Likewise.
16938         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
16939         Likewise.
16940         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
16941         Likewise.
16942         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
16943         Likewise.
16944         (gimple_assign_rhs_code): Likewise.
16945         * gimple.c (gassign::code_): Define.
16947 2015-08-12  Richard Biener  <rguenther@suse.de>
16949         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16950         Eliminate edges marked as not executable by SCCVN.
16951         * tree-ssa-sccvn.c: Include gimple-iterator.h.
16952         (cond_dom_walker): Rename to sccvn_dom_walker.
16953         (sccvn_dom_walker::before_dom_children): Value-number defs
16954         of all stmts.
16955         (run_scc_vn): Remove loop value-numbering all SSA names.
16956         Drop not visited SSA names to varying.
16958 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
16960         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16961         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16962         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16963         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16964         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16965         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16966         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16967         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16968         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16970 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
16972         PR target/66954
16973         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
16974         to enum feature_priority and feature_list.
16975         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
16976         and isa_names_table.
16978 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16980         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
16981         vect_induction_def.
16983 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16985         PR c/66098
16986         PR c/66711
16987         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
16988         account when deciding what was the command-line status.
16990 2015-08-11  Nathan Sidwell  <nathan@acm.org>
16992         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
16994         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
16995         we're not the only contributor to target phi.
16997 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
16999         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17000         FIXED_REG0.
17002 2015-08-11  Tom de Vries  <tom@codesourcery.com>
17004         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17006 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
17008         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17009         with CPU_SLM.
17010         * config/i386/i386.md (cpu): Remove knl.
17012 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17014         PR libgomp/65742
17015         PR middle-end/66332
17016         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17017         open-coded sequence.
17018         * omp-low.c (oacc_process_reduction_data): Remove handline of
17019         GOMP_DEVICE_HOST_NONSHM.
17021         * lto-streamer-in.c (lto_input_mode_table): Adjust to
17022         GET_MODE_INNER changes.
17024 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17025             Ilya Verbin  <ilya.verbin@intel.com>
17027         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17029 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17031         * doc/options.texi (EnabledBy): Document that the argument must be
17032         a Common option.
17033         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17034         Not enabled by -Wall.
17035         * optc-gen.awk: Give nicer error messages. Detect if the argument
17036         of EnabledBy is not a Common option.
17037         * common.opt (Wnull-dereference): Not enabled by -Wall.
17038         * opt-functions.awk (lang_enabled_by): Nicer error messages.
17040 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17042         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17043         model == 0x4f as Broadwell.
17045 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17047         PR rtl-optimization/67028
17048         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
17049         Add test to see if a const_int fits in the new mode.
17051 2015-08-07  DJ Delorie  <dj@redhat.com>
17053         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17055 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
17057         PR rtl-optimization/67029
17058         * ira-color.c: Include "recog.h" before including "ira-int.h".
17059         * target-globals.c: Likewise.
17060         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17061         adds an alternative_mask argument and use it instead of
17062         preferred_alternatives.
17063         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17064         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17065         * sched-deps.c: Include "ira-int.h" after including "ira.h".
17066         (sched_analyze_insn): Update call to
17067         ira_implicitly_set_insn_hard_regs.
17068         * sel-sched.c: Include "ira-int.h" after including "ira.h".
17069         (implicit_clobber_conflict_p): Update call to
17070         ira_implicitly_set_insn_hard_regs.
17072 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17074         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17076 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17078         PR target/67002
17079         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17080         currently_expanding_to_rtl is set.
17082 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
17084         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17085         * configure: Regenerate.
17087 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17088             Jiong Wang  <jiong.wang@arm.com>
17090         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17091         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17092         (REG_CLASS_NAMES): Likewise.
17093         (REG_CLASS_CONTENTS): Likewise.
17094         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17095         (aarch64_register_move_cost): Likewise.
17096         (aarch64_load_symref_appropriately): Invoke the new added pattern if
17097         possible.
17098         * config/aarch64/constraints.md (Uc0): New constraint.
17100 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17102         * config/aarch64/constraints.md (Usf): Add the test of
17103         aarch64_is_noplt_call_p.
17105 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17107         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17108         declaration.
17109         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17110         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17111         (call_symbol): Likewise.
17113 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
17115         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17116         for vectorizing multiplication patterns.
17117         * tree-vectorizer.h: Adjust the number of patterns.
17119 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17121         * config/i386/sse.md (*vec_concatv2df): Declare added
17122         alternatives as sselog type.
17124 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17126         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17127         all GPRs.
17129 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17131         * config/s390/s390.c (s390_expand_tbegin): Expand either
17132         tbegin_1_z13 or tbegin_1 depending on VX flag.
17133         * config/s390/s390.md ("tbegin_1_z13"): New expander.
17135 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17137         * config/s390/s390.opt: Clarify description for -mzvector
17138         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17139         -mzvector.
17141 2015-08-06  Richard Biener  <rguenther@suse.de>
17143         * gimple.h (gimple_call_set_fn): Access op member directly.
17144         (gimple_call_chain_ptr): Likewise.
17145         (gimple_call_set_chain): Likewise.
17146         (gimple_cond_lhs_ptr): Likewise.
17147         (gimple_cond_set_lhs): Likewise.
17148         (gimple_cond_rhs_ptr): Likewise.
17149         (gimple_cond_set_rhs): Likewise.
17150         (gimple_cond_true_label): Likewise.
17151         (gimple_cond_set_true_label): Likewise.
17152         (gimple_cond_set_false_label): Likewise.
17153         (gimple_cond_false_label): Likewise.
17154         (gimple_label_label): Likewise.
17155         (gimple_label_set_label): Likewise.
17156         (gimple_goto_set_dest): Likewise.
17157         (gimple_asm_input_op): Likewise.
17158         (gimple_asm_input_op_ptr): Likewise.
17159         (gimple_asm_set_input_op): Likewise.
17160         (gimple_asm_output_op): Likewise.
17161         (gimple_asm_output_op_ptr): Likewise.
17162         (gimple_asm_set_output_op): Likewise.
17163         (gimple_asm_clobber_op): Likewise.
17164         (gimple_asm_set_clobber_op): Likewise.
17165         (gimple_asm_label_op): Likewise.
17166         (gimple_asm_set_label_op): Likewise.
17167         (gimple_switch_index): Likewise.
17168         (gimple_switch_index_ptr): Likewise.
17169         (gimple_return_retval_ptr): Likewise.
17170         (gimple_return_retval): Likewise.
17171         (gimple_return_set_retval): Likewise.
17172         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
17173         (gimple_switch_label): Likewise.
17174         (gimple_switch_set_label): Likewise.
17176 2015-08-06  Richard Biener  <rguenther@suse.de>
17178         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17179         bool comparison canonicalization and restrict to integers.
17181 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
17183         * coretypes.h (enum symbol_visibility): Relocate here.
17184         * flag-types.h (enum symbol_visibility): Remove.
17185         * tree-core.h (enum symbol_visibility): Remove.
17187 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
17189         PR target/66870
17190         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17191         for no_split_stack function attribute along with
17192         flag_split_stack.
17193         (rs6000_expand_split_stack_prologue): Likewise.
17195 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17196             Jeff Law  <law@redhat.com>
17198         PR c/16351
17199         * doc/invoke.texi (Wnull-dereference): New.
17200         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17201         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17202         Warn for potential NULL dereferences.
17203         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17204         * ubsan.c (instrument_nonnull_arg): Call
17205         infer_nonnull_range_by_attribute.
17206         (instrument_nonnull_return): Likewise.
17207         * common.opt (Wnull-dereference); New.
17208         * gimple.c (infer_nonnull_range): Remove bool arguments.
17209         (infer_nonnull_range_by_dereference): New.
17210         (infer_nonnull_range_by_attribute): New.
17211         * gimple.h: Update declarations.
17213 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17215         * gensupport.c (sequence_num): Replace with...
17216         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17217         ...these new variables.
17218         (init_rtx_reader_args_cb): Update accordingly.
17219         (get_num_code_insns): Likewise.
17220         (read_md_rtx): Rework to use a while loop and get_c_test.
17221         Use the new counters.  Remove redundant DEFINE_SUBST case.
17222         * genoutput.c (gen_split): Delete.
17223         (main): Don't call it.
17225 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17227         * gensupport.h (get_c_test): Declare.
17228         * gensupport.c (get_c_test): New function.
17229         * genconditions.c (main): Use it.
17230         * genrecog.c (validate_pattern): Likewise.
17231         (match_pattern_1): Likewise.  Remove c_test argument.
17232         (match_pattern): Update accordingly and remove c_test argument.
17233         (main): Update accordingly.
17235 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17237         * gensupport.h (get_num_insn_codes): Declare.
17238         * gensupport.c (get_num_insn_codes): New function.
17239         * genattrtab.c (optimize_attrs): Rename max_insn_code to
17240         num_insn_codes.
17241         (main): Likewise.  Use get_num_insn_codes.
17242         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17244 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17246         PR middle-end/66311
17247         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17248         is zero- rather than sign-extended.
17250 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17252         * target-insns.def (can_extend): Delete.
17254 2015-08-05  Richard Biener  <rguenther@suse.de>
17256         PR tree-optimization/67121
17257         * tree-if-conv.c (combine_blocks): Clear range-info produced
17258         by stmts no longer executed conditionally.
17260 2015-08-05  Nick Clifton  <nickc@redhat.com>
17262         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17263         to allow identical far pointers to remain.
17265 2015-08-05  Richard Biener  <rguenther@suse.de>
17267         PR middle-end/67120
17268         * match.pd: Compare address bases with == if they are decls
17269         or SSA names, not operand_equal_p.  Otherwise fail.
17271 2015-08-05  Richard Biener  <rguenther@suse.de>
17273         PR tree-optimization/67055
17274         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17275         NULL gimple_block.
17277         * g++.dg/torture/pr67055.C: New testcase.
17279 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17281         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17282         noavx512vl.
17283         (define_attr "enabled"): Handle avx521vl and noavx512vl.
17284         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17285         AVX-512 alternative out of SSE.
17286         (define_insn "*vec_concatv2df"): Ditto.
17288 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17290         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17291         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17292         CODE_FOR_avx_ptestv4di.
17293         * config/i386/sse.md (define_mode_iterator V_AVX): New.
17294         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17295         (define_insn "avx_ptest256"): Merge this ...
17296         (define_insn "sse4_1_ptest"): And this ...
17297         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17299 2015-08-05  Richard Biener  <rguenther@suse.de>
17301         PR tree-optimization/67109
17302         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17303         against too big groups.  Print whether this is a load or store
17304         group.  Rename from ...
17305         (vect_analyze_group_access): ... this which is now a wrapper
17306         dissolving an invalid group.
17307         (vect_analyze_data_ref_accesses): Print whether this is a load
17308         or store group.
17310 2015-08-05  Richard Biener  <rguenther@suse.de>
17312         PR middle-end/67107
17313         * match.pd: Guard const_binop result checking against NULL_TREE
17314         result.
17316 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
17318         * cse.c (cse_insn): Restoring old behaviour for src_eqv
17319          when dest and value in the REG_EQUAL are same and dest
17320          is STRICT_LOW_PART.
17322 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
17324         * config/moxie/moxie.h (PRINT_OPERAND,
17325           PRINT_OPERAND_ADDRESS): Remove macros.
17326         * config/moxie/moxie-protos.h (moxie_print_operand,
17327           moxie_print_operand_address): Remove declaration.
17328         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17329           TARGET_PRINT_OPERAND_ADDRESS): Define.
17330           (moxie_print_operand, moxie_print_operand_address): Make static.
17332 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17334         PR target/66731
17335         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17336         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17338 2015-08-04  Richard Biener  <rguenther@suse.de>
17340         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17341         generated code.
17342         (dt_operand::gen_gimple_expr): Adjust.
17344 2015-08-04  Richard Biener  <rguenther@suse.de>
17346         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17347         bool compares on RHS.
17348         * match.pd: Add X ==/!= !X is false/true pattern.
17350 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
17352         * config/aarch64/aarch64.c: Change inner loop statement cost
17353         to be consistent with other targets.
17355 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
17357         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17358         targets.
17360 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
17362         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17363         (machine_function): Remove pseudos field.
17365 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17367         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17368         Exit early and use target_option_current_node if processing current
17369         pragma.
17371 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17373         * doc/extend.texi (AArch64 Function Attributes): New node.
17374         (AArch64 Pragmas): Likewise.
17376 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17378         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17379         Initialize simd builtins if TARGET_SIMD.
17380         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17381         Make sure that the builtins are initialized only once no matter how
17382         many times the function is called.
17383         (aarch64_init_builtins): Unconditionally initialize crc builtins.
17384         (aarch64_relayout_simd_param): New function.
17385         (aarch64_simd_expand_args): Use above during argument expansion.
17386         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17387         simd builtins if TARGET_SIMD.
17388         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17389         prototype.
17390         (aarch64_relayout_simd_types): Likewise.
17392 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17394         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17395         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17396         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17397         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17398         static keyword.
17399         (aarch64_reset_previous_fndecl): New function.
17400         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17401         the string.
17402         * config/aarch64/aarch64-c.c: New file.
17403         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17404         Push and pop options at beginning and end.  Remove ifdef
17405         __ARM_FEATURE_CRC32.
17406         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17407         Add pragma +nothing+simd and +nothing+crypto where appropriate.
17408         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17409         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17410         Define prototype.
17411         (aarch64_register_pragmas): Likewise.
17412         (aarch64_reset_previous_fndecl): Likewise.
17413         (aarch64_process_target_attr): Likewise.
17414         (aarch64_override_options_internal): Likewise.
17416 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17418         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17419         New function.
17420         (aarch64_can_inline_p): Likewise.
17421         (TARGET_CAN_INLINE_P): Define.
17423 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17425         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17426         Remove static.  Handle OPT_mgeneral_regs_only,
17427         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17428         OPT_momit_leaf_frame_pointer.
17429         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17430         (aarch64_attr_opt_type): New enum.
17431         (aarch64_attribute_info): New struct.
17432         (aarch64_handle_attr_arch): New function.
17433         (aarch64_handle_attr_cpu): Likewise.
17434         (aarch64_handle_attr_tune): Likewise.
17435         (aarch64_handle_attr_isa_flags): Likewise.
17436         (aarch64_attributes): New table.
17437         (aarch64_process_one_target_attr): New function.
17438         (num_occurences_in_str): Likewise.
17439         (aarch64_process_target_attr): Likewise.
17440         (aarch64_option_valid_attribute_p): Likewise.
17441         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17442         * config/aarch64/aarch64-protos.h: Include input.h
17443         (aarch64_handle_option): Declare prototype.
17445 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17447         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17448         * config/aarch64/aarch64.c: Include target-globals.h
17449         (aarch64_previous_fndecl): New variable.
17450         (aarch64_set_current_function): New function.
17451         (TARGET_SET_CURRENT_FUNCTION): Define.
17453 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17455         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17456         (explicit_arch): Likewise.
17457         (x_aarch64_isa_flags): Likewise.
17458         (mgeneral-regs-only): Mark as Save.
17459         (mfix-cortex-a53-835769): Likewise.
17460         (mcmodel=): Likewise.
17461         (mstrict-align): Likewise.
17462         (momit-leaf-frame-pointer): Likewise.
17463         (mtls-dialect): Likewise.
17464         (master=): Likewise.
17465         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17466         (aarch64_isa_flags): Remove extern declaration.
17467         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17468         to indicate success or failure.
17469         (aarch64_validate_march): Likewise.
17470         (aarch64_validate_mtune): Likewise.
17471         (aarch64_isa_flags): Delete.
17472         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17473         instead of aarch64_isa_flags.
17474         (aarch64_get_tune_cpu): New function.
17475         (aarch64_get_arch): Likewise.
17476         (aarch64_override_options): Use above and set up explicit_tune_core
17477         and explicit_arch.
17478         (aarch64_print_extension): Move earlier in file.  Add isa_flags
17479         argument and use that instead of the global aarch64_isa_flags.
17480         (aarch64_option_save): New function.
17481         (aarch64_option_restore): Likewise.
17482         (aarch64_option_print): Likewise.
17483         (aarch64_declare_function_name): Likewise.
17484         (aarch64_start_file): Delete.
17485         (TARGET_ASM_FILE_START): Do not define.
17486         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17487         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17488         Declare prototype.
17490 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17492         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17493         flag_omit_leaf_frame_pointer to 2.
17495 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17497         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17498         define to 0 or 1.
17499         (TARGET_FIX_ERR_A53_835769): New macro.
17500         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17501         handling of opts->x_aarch64_fix_a53_err835769.
17502         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17503         than aarch64_fix_a53_err835769.
17504         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17505         * config/aarch64/aarch64-linux.h: Likewise.
17507 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
17509         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17510         ix86_expand_int_movcc as boolean.
17512 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17514         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17515         (aarch64_cpu_string): Likewise.
17516         (aarch64_tune_string): Likewise.
17517         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17518         (aarch64_parse_extension): Return aarch64_parse_opt_result.
17519         Add extra argument to put result into.
17520         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
17521         (aarch64_parse_cpu): Add arguments to put results into. Return
17522         aarch64_parse_opt_result.
17523         (aarch64_parse_tune): Likewise.
17524         (aarch64_override_options_after_change_1): New function.
17525         (aarch64_override_options_internal): New function.
17526         (aarch64_validate_mcpu): Likewise.
17527         (aarch64_validate_march): Likewise.
17528         (aarch64_validate_mtune): Likewise.
17529         (aarch64_override_options): Update to reflect above changes.
17530         Move some logic into aarch64_override_options_internal.
17531         Initialize target_option_default_node and target_option_current_node.
17532         (aarch64_override_options_after_change): Move logic into
17533         aarch64_override_options_after_change_1 and call it with global_options.
17534         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17535         flag values from that.
17537 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17539         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17540         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17541         * config/aarch64/aarch64.c (struct processor): Add arch field.
17542         (all_architectures): Handle above, move above all_cores.
17543         (all_cores): Handle above.
17544         (aarch64_parse_arch): Handle above changes.
17545         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17546         above.  Update comments.
17547         (armv8.1-a): Likewise.
17548         * config/aarch64/aarch64-cores.def: Update according to above.
17549         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17550         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17551         aarch64_arch_driver_info.
17553 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17555         * config/aarch64/aarch64.c (struct processor): Add ident field.
17556         Rename core sched_core.
17557         (all_cores): Handle above changes.
17558         (all_architectures): Likewise.
17559         (aarch64_parse_arch): Likewise.
17560         (aarch64_override_options): Likewise.
17562 2015-08-04  Richard Biener  <rguenther@suse.de>
17564         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17565         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17566         comparisons embedded in [VEC_]COND_EXPRs.
17568 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
17570         * tree-if-conv.c: Fix various typos in comments.
17571         * tree-vect-stmts.c: Likewise.
17573 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17575         PR tree-optimization/67043
17576         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17577         preheader after hoisting invariant in it.
17578         (find_defs): Force recomputation of all luids.
17580 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
17582         * config/rs6000/htm.md (tabort.): Restrict the source operand to
17583         using a base register.
17585 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
17587         * main.c (main): Pass in NULL for toplev's external_timer.
17588         * timevar.c: Include coretypes.h.
17589         (class timer::named_items): New.
17590         (timer::named_items::named_items): New.
17591         (timer::named_items::~named_items): New.
17592         (timer::named_items::push): New.
17593         (timer::named_items::pop): New.
17594         (timer::named_items::print): New.
17595         (timer::timer): Initialize field "m_jit_client_items".
17596         (timer::~timer): New.
17597         (timer::push): Move bulk of implementation to...
17598         (timer::push_internal): ...here.  New function.
17599         (timer::pop): Move bulk of implementation to...
17600         (timer::pop_internal): ...here.  New function.
17601         (timer::push_client_item): New.
17602         (timer::pop_client_item): New.
17603         (timer::print_row): New function, taken from timer::print.
17604         (timer::print): Print "GCC items" header if we also have client
17605         items.  Move row-printing to timer::print_row.  Print any client
17606         items.
17607         (timer::get_topmost_item_name): New method.
17608         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17609         (TV_JIT_CLIENT_CODE): New.
17610         * timevar.h (timer::push_client_item): New declaration.
17611         (timer::pop_client_item): New declaration.
17612         (timer::get_topmost_item_name): New method.
17613         (timer::push_internal): New declaration.
17614         (timer::pop_internal): New declaration.
17615         (timer::print_row): New declaration.
17616         (timer::named_items): New declaration.
17617         (timer::m_jit_client_items): New field.
17618         (timer): Add friend class named_items.
17619         (auto_timevar::auto_timevar): Add timer param.
17620         (auto_timevar::~auto_timevar): Use field "m_timer".
17621         (auto_timevar::m_timer): New field.
17622         * toplev.c (initialize_rtl): Add g_timer as param when
17623         constructing auto_timevar instance.
17624         (toplev::toplev): Add "external_timer" param, and use it to
17625         initialize the "g_timer" global if non-NULL.
17626         (toplev::~toplev): If this created "g_timer", delete it.
17627         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17628         with "external_timer" timer *.
17630 2015-08-03  Alexander Basov <coohpt@gmail.com>
17632         PR middle-end/64744
17633         PR middle-end/48470
17634         PR middle-end/43404
17635         * cfgexpand.c (expand_one_var): Add check if stack is going to
17636         be used in naked function.
17637         * expr.c (expand_expr_addr_expr_1): Remove excess checking
17638         whether expression should not reside in MEM.
17639         * function.c (use_register_for_decl): Do not use registers for
17640         non-register things (volatile, float, BLKMode) in naked functions.
17642 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
17644         PR target/67060
17645         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17646         Adjust splits to match new pattern.
17648 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
17650         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17651         (VEC_M): Likewise.
17652         (VEC_N): Likewise.
17653         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17654         point in VSX registers.
17656         * config/rs6000/constraints.md (wb constraint): Document unused
17657         w<x> constraint.
17658         (we constraint): Likewise.
17659         (wo constraint): Likewise.
17660         (wp constraint): New constraint for IEEE 128-bit floating point in
17661         VSX registers.
17662         (wq constraint): Likewise.
17664         * config/rs6000/predicates.md (easy_fp_constant): Add support for
17665         IEEE 128-bit floating point in VSX registers.
17666         (easy_scalar_constant): Likewise.
17668         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17669         constraints (wp, wq) for IEEE 128-bit floating point in VSX
17670         registers.
17671         (rs6000_init_hard_regno_mode_ok): Likewise.
17673         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17674         floating point in VSX registers.
17675         (VSX_L): Likewise.
17676         (VSX_M): Likewise.
17677         (VSX_M2): Likewise.
17678         (VSm): Likewise.
17679         (VSs): Likewise.
17680         (VSr): Likewise.
17681         (VSa): Likewise.
17682         (VSv): Likewise.
17683         (vsx_le_permute_<mode>): Add support to properly swap bytes for
17684         IEEE 128-bit floating point in VSX registers on little endian.
17685         (vsx_le_undo_permute_<mode>): Likewise.
17686         (vsx_le_perm_load_<mode>): Likewise.
17687         (vsx_le_perm_store_<mode>): Likewise.
17688         (splitters for IEEE 128-bit fp moves): Likewise.
17690         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17691         wq constraints.
17693         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17694         floating point in VSX registers.
17695         (VM2): Likewise.
17697         * doc/md.text (Machine Constraints): Document wp and wq
17698         constraints on PowerPC.
17700 2015-08-03  Jeff Law  <law@redhat.com>
17702         PR middle-end/66314
17703         PR gcov-profile/66899
17704         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17705         iterate over the jump threading paths when an element in the
17706         jump threading paths array is eliminated.
17708 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
17710         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17712 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
17714         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17715         is_use_properly_guarded the variable def_preds.  Free its
17716         contents before returning.
17717         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17718         (is_use_properly_guarded): Replace local variable def_preds with
17719         a parameter.  Adjust accordingly.  Only update *def_preds if it's
17720         the empty vector.
17722 2015-08-03  Richard Biener  <rguenther@suse.de>
17724         * genmatch.c (simplify::for_subst_vec): New member.
17725         (binary_ok): New helper for for lowering.
17726         (lower_for): Delay substituting operators into result expressions
17727         if we can merge the results eventually again.
17728         (capture_info::walk_result): Adjust for user_id appearing as
17729         result expression operator.
17730         (expr::gen_transform): Likewise.
17731         (dt_simplify::gen_1): Likewise.
17732         (dt_simplify::gen): Pass not substituted operators to tail
17733         functions or initialize local variable with it.
17734         (decision_tree::gen): Adjust function signature.
17735         * match.pd: Fix tests against global code and add default
17736         cases to switch stmts.
17738 2015-08-03  Richard Biener  <rguenther@suse.de>
17740         * genmatch.c (dt_simplify::gen): Create captures array
17741         with an initializer.
17743 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17745         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17746         the host compiler is affected by placement new aliasing bug.
17747         * configure: Regenerate.
17748         * Makefile.in (ALIASING_FLAGS): New variable.
17749         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17751 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17753         PR target/66731
17754         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17755         (negmulsf3_vfp): Likewise.
17756         (muldf3negdf_vfp): Disable for -frounding-math.
17757         (mulsf3negsf_vfp): Likewise.
17758         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17759         fix MULT cost with -frounding-math.
17761 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17763         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17764         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17765         explicit.  Prefer to add the flag whenever possible.
17766         (noce_process_if_block): Try noce_try_store_flag_constants before
17767         noce_try_cmove.
17769 2015-08-03  Richard Biener  <rguenther@suse.de>
17771         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17772         New hash-map to record equivalent transforms.
17773         (dt_node::analyze): Populate the equivalent transforms hash-map.
17774         (dt_simplify::info): Add reference to hash-map entry.
17775         (dt_simplify::gen): If we have split out a function for the
17776         transform, generate a call to it.
17777         (sinfo_hashmap_traits::hash): New function.
17778         (compare_op): New helper function for ...
17779         (sinfo_hashmap_traits::equal_keys): ... this new function.
17780         (decision_tree::gen): Split out common equivalent transforms
17781         into functions.
17783 2015-08-03  Richard Biener  <rguenther@suse.de>
17785         * gimple-fold.c (fold_gimple_assign): Remove folding of
17786         the comparison in COND_EXPRs.
17788 2015-08-03  Richard Biener  <rguenther@suse.de>
17790         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17791         on the rhs of assignments first simplify the embedded
17792         GENERIC condition.
17794 2015-08-03  Richard Biener  <rguenther@suse.de>
17796         PR tree-optimization/66917
17797         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17798         field.
17799         (DR_VECT_AUX): New macro.
17800         (set_dr_misalignment): Adjust.
17801         (dr_misalignment): Likewise.
17802         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17803         Compute whether the base is at least element aligned.
17804         * tree-vect-stmts.c (ensure_base_align): Adjust.
17805         (vectorizable_store): If the base is not element aligned
17806         preserve alignment of the original access if misalignment is unknown.
17807         (vectorizable_load): Likewise.
17809 2015-08-02  Martin Sebor  <msebor@redhat.com>
17811         * c-family/c.opt (-Wframe-address): New warning option.
17812         * doc/invoke.texi (Wframe-address): Document it.
17813         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17814         Clarify possible effects of calling the functions with non-zero
17815         arguments and mention -Wframe-address.
17816         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17818 2015-08-01  Michael Collison  <michael.collison@linaro.org
17819             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17821         * config/arm/arm.md (*arm_smin_cmp): New pattern.
17822         (*arm_umin_cmp): Likewise.
17824 2015-08-01  Caroline Tice  <cmtice@google.com>
17826         PR 66521
17827         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17828         global variables.
17829         (vtbl_find_mangled_name):  New function.
17830         (vtbl_register_mangled_name):  New function.
17831         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
17832         mangled name in mangled name vectors.
17833         (find_or_create_vtbl_map_node):  Ditto.
17834         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
17835         update recursion_depth on function entry; pass it to every recursive
17836         call; automatically exit if depth > 25 (give up looking at that point).
17837         (verify_bb_vtables):  Initialize recursion_depth and pass it to
17838         var_is_used_for_virtual_call_p.
17839         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17840         global variable decls.
17841         (vtbl_register_mangled_name): New extern function decl.
17843 2015-08-01  Tom de Vries  <tom@codesourcery.com>
17845         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
17846         function.
17847         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
17848         Declare.
17849         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
17850         operation_no_trapping_overflow.  Allow non-overflow operations.
17851         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
17852         operations.
17854 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17856         PR target/67049
17857         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
17859 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17861         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
17862         Enable for TARGET_32BIT.
17863         (*if_move_neg): Likewise.
17865 2015-07-31  Nick Clifton  <nickc@redhat.com>
17867         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
17868         Returns true for __model__.
17869         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17871 2015-07-31  Alan Modra  <amodra@gmail.com>
17873         PR target/66870
17874         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
17875         (rs6000_emit_prologue): Set it.
17876         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
17878 2015-07-31  Richard Biener  <rguenther@suse.de>
17880         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
17881         -> X == (C1 ^ C2) which is already implemented in match.pd.
17882         Remove redundant dispatching to fold_relational_const.
17883         Move unordered self and NaN compares ...
17884         * match.pd: ... as patterns here.  Remove some stray captures
17885         and add a comment.
17887 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
17889         * config/i386/i386.c
17890         (bdesc_special_args): Convert mask type from signed to unsigned for
17891         masked builtins.
17892         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
17893         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
17894         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
17895         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
17896         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
17897         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
17898         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
17899         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
17900         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
17901         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
17902         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
17903         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
17904         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
17905         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
17906         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
17907         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
17908         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
17909         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
17910         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
17911         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
17912         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
17913         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
17914         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
17915         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
17916         * config/i386/i386-builtin-types.def
17917         (V16QI_FTYPE_V16SI): Remove.
17918         (V8DF_FTYPE_V8SI): Ditto.
17919         (V8HI_FTYPE_V8DI): Ditto.
17920         (V8SI_FTYPE_V8DI): Ditto.
17921         (V8SF_FTYPE_V8DF): Ditto.
17922         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
17923         (V16HI_FTYPE_V16SI): Ditto.
17924         (V16SF_FTYPE_V16HI): Ditto.
17925         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
17926         (V16SF_FTYPE_V16SI): Ditto.
17927         (V4DI_FTYPE_V4DI): Ditto.
17928         (V16SI_FTYPE_V16SF): Ditto.
17929         (V16SF_FTYPE_FLOAT): Ditto.
17930         (V8DF_FTYPE_DOUBLE): Ditto.
17931         (V8DI_FTYPE_INT64): Ditto.
17932         (V8DI_FTYPE_V4DI): Ditto.
17933         (V16QI_FTYPE_V8DI): Ditto.
17934         (UINT_FTYPE_V4SF): Ditto.
17935         (UINT64_FTYPE_V4SF): Ditto.
17936         (UINT_FTYPE_V2DF): Ditto.
17937         (UINT64_FTYPE_V2DF): Ditto.
17938         (V16SI_FTYPE_V16SI): Ditto.
17939         (V8DI_FTYPE_V8DI): Ditto.
17940         (V16SI_FTYPE_PV4SI): Ditto.
17941         (V16SF_FTYPE_PV4SF): Ditto.
17942         (V8DI_FTYPE_PV2DI): Ditto.
17943         (V8DF_FTYPE_PV2DF): Ditto.
17944         (V4DI_FTYPE_PV2DI): Ditto.
17945         (V4DF_FTYPE_PV2DF): Ditto.
17946         (V16SI_FTYPE_PV2SI): Ditto.
17947         (V16SF_FTYPE_PV2SF): Ditto.
17948         (V8DI_FTYPE_PV4DI): Ditto.
17949         (V8DF_FTYPE_PV4DF): Ditto.
17950         (V8SF_FTYPE_FLOAT): Ditto.
17951         (V4SF_FTYPE_FLOAT): Ditto.
17952         (V4DF_FTYPE_DOUBLE): Ditto.
17953         (V8SF_FTYPE_PV4SF): Ditto.
17954         (V8SI_FTYPE_PV4SI): Ditto.
17955         (V4SI_FTYPE_PV2SI): Ditto.
17956         (V8SF_FTYPE_PV2SF): Ditto.
17957         (V8SI_FTYPE_PV2SI): Ditto.
17958         (V16SF_FTYPE_PV8SF): Ditto.
17959         (V16SI_FTYPE_PV8SI): Ditto.
17960         (V8DI_FTYPE_V8SF): Ditto.
17961         (V4DI_FTYPE_V4SF): Ditto.
17962         (V2DI_FTYPE_V4SF): Ditto.
17963         (V64QI_FTYPE_QI): Ditto.
17964         (V32HI_FTYPE_HI): Ditto.
17965         (V8UHI_FTYPE_V8UHI): Ditto.
17966         (V16UHI_FTYPE_V16UHI): Ditto.
17967         (V32UHI_FTYPE_V32UHI): Ditto.
17968         (V2UDI_FTYPE_V2UDI): Ditto.
17969         (V4UDI_FTYPE_V4UDI): Ditto.
17970         (V8UDI_FTYPE_V8UDI): Ditto.
17971         (V4USI_FTYPE_V4USI): Ditto.
17972         (V8USI_FTYPE_V8USI): Ditto.
17973         (V16USI_FTYPE_V16USI): Ditto.
17974         (V2DF_FTYPE_V2DF_UINT64): Ditto.
17975         (V2DI_FTYPE_V2DF_V2DF): Ditto.
17976         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
17977         (V8DF_FTYPE_V8DF_V8DI): Ditto.
17978         (V4SF_FTYPE_V4SF_UINT64): Ditto.
17979         (V4SI_FTYPE_V4SF_V4SF): Ditto.
17980         (V16SF_FTYPE_V16SF_V16SI): Ditto.
17981         (V64QI_FTYPE_V32HI_V32HI): Ditto.
17982         (V32HI_FTYPE_V16SI_V16SI): Ditto.
17983         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
17984         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
17985         (V32HI_FTYPE_V64QI_V64QI): Ditto.
17986         (V32HI_FTYPE_V32HI_V32HI): Ditto.
17987         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
17988         (V16SI_FTYPE_V16SI_V4SI): Ditto.
17989         (V16SI_FTYPE_V16SI_V16SI): Ditto.
17990         (V16SI_FTYPE_V32HI_V32HI): Ditto.
17991         (V16SI_FTYPE_V16SI_SI): Ditto.
17992         (V8DI_FTYPE_V8DI_V8DI): Ditto.
17993         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
17994         (V8DI_FTYPE_V16SI_V16SI): Ditto.
17995         (V8DI_FTYPE_V8DI_V2DI): Ditto.
17996         (QI_FTYPE_QI): Ditto.
17997         (SI_FTYPE_SI): Ditto.
17998         (DI_FTYPE_DI): Ditto.
17999         (QI_FTYPE_QI_QI): Ditto.
18000         (QI_FTYPE_QI_INT): Ditto.
18001         (HI_FTYPE_HI_INT): Ditto.
18002         (SI_FTYPE_SI_INT): Ditto.
18003         (DI_FTYPE_DI_INT): Ditto.
18004         (HI_FTYPE_V16QI_V16QI): Ditto.
18005         (SI_FTYPE_V32QI_V32QI): Ditto.
18006         (DI_FTYPE_V64QI_V64QI): Ditto.
18007         (QI_FTYPE_V8HI_V8HI): Ditto.
18008         (HI_FTYPE_V16HI_V16HI): Ditto.
18009         (SI_FTYPE_V32HI_V32HI): Ditto.
18010         (QI_FTYPE_V4SI_V4SI): Ditto.
18011         (QI_FTYPE_V8SI_V8SI): Ditto.
18012         (QI_FTYPE_V2DI_V2DI): Ditto.
18013         (QI_FTYPE_V4DI_V4DI): Ditto.
18014         (QI_FTYPE_V8DI_V8DI): Ditto.
18015         (HI_FTYPE_V16SI_V16SI): Ditto.
18016         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18017         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18018         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18019         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18020         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18021         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18022         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18023         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18024         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18025         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18026         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18027         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18028         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18029         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18030         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18031         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18032         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18033         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18034         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18035         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18036         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18037         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18038         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18039         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18040         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18041         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18042         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18043         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18044         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18045         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18046         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18047         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18048         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18049         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18050         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18051         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18052         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18053         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18054         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18055         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18056         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18057         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18058         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18059         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18060         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18061         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18062         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18063         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18064         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18065         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18066         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18067         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18068         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18069         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18070         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18071         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18072         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18073         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18074         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18075         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18076         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18077         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18078         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18079         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18080         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18081         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18082         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18083         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18084         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18085         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18086         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18087         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18088         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18089         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18090         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18091         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18092         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18093         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18094         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18095         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18096         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18097         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18098         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18099         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18100         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18101         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18102         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18103         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18104         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18105         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18106         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18107         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18108         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18109         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18110         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18111         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18112         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18113         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18114         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18115         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18116         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18117         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18118         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18119         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18120         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18121         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18122         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18123         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18124         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18125         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18126         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18127         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18128         (HI_FTYPE_HI): Ditto.
18129         (HI_FTYPE_V16QI): Ditto.
18130         (SI_FTYPE_V32QI): Ditto.
18131         (DI_FTYPE_V64QI): Ditto.
18132         (QI_FTYPE_V8HI): Ditto.
18133         (HI_FTYPE_V16HI): Ditto.
18134         (SI_FTYPE_V32HI): Ditto.
18135         (QI_FTYPE_V4SI): Ditto.
18136         (QI_FTYPE_V8SI): Ditto.
18137         (HI_FTYPE_V16SI): Ditto.
18138         (QI_FTYPE_V2DI): Ditto.
18139         (QI_FTYPE_V4DI): Ditto.
18140         (QI_FTYPE_V8DI): Ditto.
18141         (V16QI_FTYPE_HI): Ditto.
18142         (V32QI_FTYPE_SI): Ditto.
18143         (V64QI_FTYPE_DI): Ditto.
18144         (V8HI_FTYPE_QI): Ditto.
18145         (V16HI_FTYPE_HI): Ditto.
18146         (V32HI_FTYPE_SI): Ditto.
18147         (V4SI_FTYPE_QI): Ditto.
18148         (V4SI_FTYPE_HI): Ditto.
18149         (V8SI_FTYPE_QI): Ditto.
18150         (V8SI_FTYPE_HI): Ditto.
18151         (V2DI_FTYPE_QI): Ditto.
18152         (V4DI_FTYPE_QI): Ditto.
18153         (HI_FTYPE_HI_HI): Ditto.
18154         (SI_FTYPE_SI_SI): Ditto.
18155         (DI_FTYPE_DI_DI): Ditto.
18156         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18157         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18158         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18159         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18160         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18161         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18162         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18163         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18164         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18165         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18166         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18167         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18168         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18169         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18170         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18171         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18172         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18173         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18174         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18175         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18176         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18177         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18178         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18179         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18180         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18181         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18182         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18183         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18184         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18185         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18186         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18187         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18188         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18189         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18190         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18191         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18192         (V16SI_FTYPE_HI): Ditto.
18193         (V8DI_FTYPE_QI): Ditto.
18194         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18195         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18196         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18197         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18198         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18199         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18200         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18201         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18202         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18203         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18204         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18205         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18206         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18207         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18208         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18209         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18210         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18211         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18212         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18213         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18214         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18215         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18216         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18217         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18218         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18219         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18220         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18221         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18222         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18223         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18224         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18225         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18226         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18227         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18228         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18229         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18230         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18231         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18232         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18233         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18234         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18235         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18236         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18237         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18238         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18239         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18240         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18241         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18242         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18243         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18244         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18245         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18246         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18247         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18248         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18249         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18250         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18251         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18252         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18253         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18254         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18255         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18256         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18257         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18258         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18259         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18260         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18261         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18262         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18263         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18264         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18265         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18266         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18267         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18268         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18269         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18270         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18271         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18272         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18273         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18274         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18275         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18276         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18277         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18278         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18279         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18280         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18281         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18282         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18283         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18284         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18285         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18286         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18287         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18288         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18289         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18290         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18291         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18292         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18293         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18294         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18295         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18296         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18297         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18298         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18299         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18300         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18301         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18302         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18303         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18304         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18305         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18306         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18307         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18308         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18309         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18310         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18311         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18312         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18313         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18314         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18315         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18316         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18317         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18318         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18319         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18320         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18321         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18322         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18323         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18324         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18325         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18326         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18327         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18328         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18329         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18330         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18331         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18332         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18333         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18334         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18335         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18336         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18337         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18338         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18339         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18340         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18341         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18342         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18343         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18344         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18345         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18346         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18347         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18348         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18349         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18350         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18351         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18352         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18353         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18354         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18355         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18356         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18357         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18358         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18359         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18360         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18361         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18362         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18363         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18364         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18365         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18366         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18367         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18368         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18369         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18370         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18371         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18372         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18373         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18374         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18375         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18376         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18377         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18378         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18379         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18380         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18381         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18382         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18383         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18384         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18385         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18386         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18387         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18388         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18389         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18390         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18391         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18392         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18393         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18394         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18395         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18396         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18397         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18398         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18399         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18400         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18401         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18402         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18403         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18404         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18405         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18406         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18407         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18408         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18409         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18410         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18411         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18412         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18413         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18414         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18415         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18416         (QI_FTYPE_V8DF_INT_QI): Ditto.
18417         (QI_FTYPE_V4DF_INT_QI): Ditto.
18418         (QI_FTYPE_V2DF_INT_QI): Ditto.
18419         (HI_FTYPE_V16SF_INT_HI): Ditto.
18420         (QI_FTYPE_V8SF_INT_QI): Ditto.
18421         (QI_FTYPE_V4SF_INT_QI): Ditto.
18422         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18424 2015-07-31  Richard Biener  <rguenther@suse.de>
18426         * gimple-fold.c (fold_gimple_assign): Remove folding of
18427         GIMPLE_BINARY_RHS.
18429 2015-07-31  Tom de Vries  <tom@codesourcery.com>
18431         PR tree-optimization/66846
18432         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18433         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18434         (expand_omp_target) [ENABLE_CHECKING]: Same.
18435         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18436         cfun if !LOOPS_NEED_FIXUP.
18437         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
18438         that omp_for already has its own loop struct.
18439         * tree-parloops.c (create_phi_for_local_result)
18440         (create_call_for_reduction): Handle simple latch bb.
18441         (create_parallel_loop): Add simple latch bb to preserve
18442         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
18443         (gen_parallel_loop): Remove call to cancel_loop_tree.
18444         (parallelize_loops): Skip loops that are inner loops of parallelized
18445         loops.
18446         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18447         verify_loop_structure.
18449 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18451         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18452         * config/v850/v850.md (RV_REGNUM): New constants.
18453         * config/v850/v850.c (v850_libcall_value): New functions.
18454         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18455         (TARGET_LIBCALL_VALUE): Define.
18457 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
18459         * rtl.h (lowpart_subreg): Move in file.
18460         * loop-iv.c (lowpart_subreg): Move to...
18461         * simplify-rtx.c (lowpart_subreg): ...here.
18462           (simplify_binary_operation_1): Use lowpart_subreg instead of
18463           simplify_gen_subreg.
18464         * expr.c (expand_expr_real_2): Ditto.
18465         * emit-rtl.c (gen_lowpart_common): Ditto.
18466         * combine.c (gen_lowpart_for_combine): Ditto.
18467         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18468           expand_debug_source_expr): Ditto.
18470 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
18472         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18473         (expand_builtin_atomic_clear): Remove support for atomic_clear
18474         pattern.
18476 2015-07-30  Richard Biener  <rguenther@suse.de>
18478         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18479         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18480         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
18481         redundant operand canonicalization.
18483 2015-07-30  David Sherwood  <david.sherwood@arm.com>
18485         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18486         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18487         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18488         * config/arm/arm.c (neon_valid_immediate): Likewise.
18489         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18490         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18491         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18492         (expand_vec_perm_vpshufb2_vpermq): Likewise.
18493         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18494         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18495         * config/i386/sse.md
18496         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18497         (*ssse3_palignr<mode>_perm): Likewise.
18498         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18499         * config/spu/spu.c (arith_immediate_p): Likewise.
18500         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18501         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18503 2015-07-30  Richard Biener  <rguenther@suse.de>
18505         * genmatch.c (decision_tree::gen_gimple): Merge with ...
18506         (decision_tree::gen_generic): ... this into ...
18507         (decision_tree::gen): ... this.
18508         (main): Adjust callers.
18510 2015-07-30  Richard Biener  <rguenther@suse.de>
18512         * genmatch.c (verbose): New global.
18513         (warning_at): Add overload with source_location.
18514         (capture_info::capture_info): Add bool whether generating gimple
18515         or generic.  Add gimple member.
18516         (capture_info::cinfo): Add capture member.
18517         (capture_info::walk_match): Record capture.  Warn on
18518         non-captured leafs.
18519         (capture_info::walk_c_expr): Add more fragments captures cannot
18520         escape through.  Warn on escaped captures.
18521         (dt_simplify::gen_1): Warn on operands we force to have no
18522         side-effects.
18523         (main): Initialize verbose.
18524         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18526 2015-07-30  Richard Biener  <rguenther@suse.de>
18528         PR middle-end/67053
18529         * match.pd: Allow both operands to independently have conversion
18530         when simplifying compares of addresses.
18532 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
18534         PR target/66217
18535         PR target/67045
18536         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18537         around those cases that need one.
18539 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
18541         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18543 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
18545         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18546         New.  Copied from config/i386/gnu-user.h.
18547         (ASM_COMMENT_START): Likewise.
18548         (DBX_REGISTER_NUMBER): Likewise.
18550 2015-07-29  Richard Biener  <rguenther@suse.de>
18552         * gimple-fold.c (fold_gimple_cond): Remove.
18553         (fold_stmt_1): Do not call it.
18555 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
18557         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18558         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18560         * config/aarch64/aarch64-modes.def: Add HFmode.
18562         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18563         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18565         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18566         aarch64_promoted_type): New.
18568         (aarch64_float_const_representable_p): Disable HFmode.
18569         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18570         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18571         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18573         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18574         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18576         * config/aarch64/iterators.md (GPF_F16): New.
18578 2015-07-29  Richard Biener  <rguenther@suse.de>
18580         * match.pd: Merge address comparison patterns and make them
18581         handle some more cases.
18583 2015-07-29  Richard Biener  <rguenther@suse.de>
18585         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18586         (parser::parse_capture): Add bool argument on whether to reject
18587         unknown captures.
18588         (parser::parse_expr): Adjust.
18589         (parser::parse_op): Likewise.
18590         (parser::parse_pattern): Likewise.
18592 2015-07-29  Richard Biener  <rguenther@suse.de>
18594         * gimple-fold.c (has_use_on_stmt): New function.
18595         (replace_stmt_with_simplification): Use it to allow
18596         abnormals originally referenced in the stmt.
18597         (fold_stmt_1): Canonicalize operand order.
18599 2015-07-28  David Sherwood  <david.sherwood@arm.com>
18601         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18602         GET_MODE_INNER unconditionally.
18603         * config/spu/spu.c (arith_immediate_p): Likewise.
18604         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18605         * expmed.c (synth_mult): Remove check for VOIDmode result from
18606         GET_MODE_INNER.
18607         (expand_mult_const): Likewise.
18608         * fold-const.c (fold_binary_loc): Replace call to element_precision
18609         with call to GET_MODE_PRECISION.
18610         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18611         m->name.
18612         (emit_mode_inner): Likewise.
18613         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18614         result check.
18615         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18616         (GET_MODE_UNIT_PRECISION): Likewise.
18617         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18618         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18619         * stor-layout.c (bitwise_type_for_mode): Update assert.
18620         (element_precision): Remove.
18622 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18624         * target-insns.def (reload_load_address): New targetm instruction
18625         pattern.
18626         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18628 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18630         * target-insns.def (atomic_test_and_set): New targetm instruction
18631         pattern.
18632         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18633         HAVE_*/gen_* interface.
18635 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18637         * target-insns.def (can_extend, ptr_extend): New targetm instruction
18638         patterns.
18639         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18640         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18641         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18642         * rtlanal.c (nonzero_bits1): Likewise.
18643         (num_sign_bit_copies1): Likewise.
18645 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18647         * target-insns.def (eh_return): New targetm instruction pattern.
18648         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18649         interface.
18650         * function.c (thread_prologue_and_epilogue_insns): Remove
18651         preprocessor condition.
18653 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18655         * target-insns.def (indirect_jump): New targetm instruction pattern.
18656         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18657         interface.
18659 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
18661         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18662         instead of nonimmediate_operand.  Remove C condiition.
18664 2015-07-28  Richard Biener  <rguenther@suse.de>
18666         * match.pd: Add more simplification of address comparisons.
18668 2015-07-28  Richard Biener  <rguenther@suse.de>
18670         * match.pd: Re-order two cases in comparison with max/min
18671         value simplification to make it apply for bools.
18673 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18675         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18676         Handle simple SIGN_EXTEND or ZERO_EXTEND.
18677         (aarch64_rtx_costs): Properly strip extend or extract before
18678         passing down to rtx costs again.
18680 2015-07-28  Nick Clifton  <nickc@redhat.com>
18682         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18683         Optimizes the case where -mes0 is active and a constant symbolic
18684         address is used.
18685         * config/rl78/rl78-protos.h: Prototype the new function.
18686         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18688 2015-07-28  Tom de Vries  <tom@codesourcery.com>
18690         * tree-parloops.c (reduc_stmt_res): New function.
18691         (initialize_reductions, add_field_for_reduction)
18692         (create_phi_for_local_result, create_loads_for_reductions)
18693         (create_stores_for_reduction, build_new_reduction): Handle case that
18694         reduc_stmt is a phi.
18695         (gather_scalar_reductions): Allow double_reduc reductions.
18697 2015-07-28  Richard Biener  <rguenther@suse.de>
18699         * fold-const.c (fold_comparison): Remove equality folding
18700         of decl addresses ...
18701         * match.pd: ... here and merge with existing pattern.
18703 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18705         PR tree-optimization/66828
18706         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18707         from int64_t to uint64_t.
18709 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18711         * opts-common.c (read_cmdline_option): List DriverOnly enum values
18712         as valid only in the error message of the driver, not in the
18713         messages of the language compilers.
18715 2015-07-27  Tom de Vries  <tom@codesourcery.com>
18717         * tree-parloops.c (gather_scalar_reductions): Simplify function
18718         structure.
18720 2015-07-27  Marek Polacek  <polacek@redhat.com>
18722         * ipa-devirt.c (types_same_for_odr): Fix typo.
18724 2015-07-27  Jason Merrill  <jason@redhat.com>
18726         PR debug/66468
18727         * dwarf2out.c (gen_inlined_subroutine_die): Check
18728         cgraph_function_possibly_inlined_p.
18730 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18732         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18733         Place integer variant first.
18734         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18736 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18738         PR/63870
18739         * config/arm/arm-builtins.c (enum arm_builtins):
18740         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18741         (ARM_BUILTIN_NEON_BASE): Rename macro to....
18742         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18743         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18744         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18746 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
18748         PR/63870
18749         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18750         Add qualifier_lane_index.
18751         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18752         (arm_getlane_qualifiers): Use qualifier_lane_index.
18753         (arm_lanemac_qualifiers): Rename to...
18754         (arm_mac_n_qualifiers): ...this.
18755         (LANEMAC_QUALIFIERS): Rename to...
18756         (MAC_N_QUALIFIERS): ...this.
18757         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18758         (arm_setlane_qualifiers): Use qualifier_lane_index.
18759         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18760         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18761         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18762         (arm_expand_neon_builtin): Handle qualifier_lane_index.
18764         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18765         * config/arm/arm.c (bounds_check): Likewise, improve error message.
18766         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18767         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18768         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18769         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18770         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18771         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18772         qualifiers to TERNOP_IMM.
18773         (vdup_lane): Change qualifiers to GETLANE.
18774         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18775         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18776         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18777         vqdmlsl_n): Change qualifiers to MAC_N.
18779         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18780         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18781         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18782         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18783         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18784         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18785         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18786         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18787         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18788         Remove call to neon_lane_bounds.
18790 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
18792         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18793         Place integer variant first.
18795 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
18797         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18798         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18799         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18800         for armv6kz targets.
18801         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18802         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18803         (FL_FOR_ARCH6ZK): Remove.
18804         (FL_FOR_ARCH6KZ): New.
18805         (arm_arch6zk): New declaration.
18806         * config/arm/arm-tables.opt: Regenerate.
18807         * config/arm/arm.c (arm_arch6kz): New.
18808         (arm_option_override): Set arm_arch6kz.
18809         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18810         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18811         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18813 2015-07-27  Marek Polacek  <polacek@redhat.com>
18815         PR c++/66555
18816         PR c/54979
18817         * doc/invoke.texi: Document -Wtautological-compare.
18819 2015-07-27  Richard Biener  <rguenther@suse.de>
18821         * genmatch.c (decision_tree::gen_gimple): Split out large
18822         subtrees into separate functions.
18823         (decision_tree::gen_generic): Likewise.
18825 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
18827         * config/alpha/alpha.c: Use SUBREG_P predicate.
18828         * config/alpha/predicates.md: Ditto.
18830 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18832         * config.host (s390*-*-*): Include driver-native.c only when
18833         building with s390* as host *and* target.
18835 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
18837         PR target/66930
18838         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18839         T bit register modified_between_p check.
18841 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18843         * config/i386/i386.c: Use SUBREG_P predicate.
18844         * config/i386/i386.md: Ditto.
18845         * config/i386/sse.md: Ditto.
18846         * config/i386/predicates.md: Ditto.
18848 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18850         PR target/67004
18851         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
18852         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
18854 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18856         * Makefile.in: Remove use of TREEBROWSER.
18857         * config.in: Regenerated.
18858         * configure: Regenerated.
18859         * configure.ac: Remove definition of TREEBROWSER.
18860         * tree-browser.c: Removed.
18861         * tree-browser.def: Removed.
18863 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18865         * graphite-scop-detection.c: Include gimple-pretty-print.h.
18866         (stmt_simple_for_scop_p): Print when a stmt is not handled in
18867         Graphite.
18868         (scopdet_basic_block_info): Print when a loop or bb cannot be
18869         represented in Graphite.
18871 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18873         PR target/66648
18874         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
18875         execution guard when min_size is less than size_needed.
18877 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
18879         * doc/install.texi: Document supported versions of ISL.
18881 2015-07-25  Jeff Law  <law@redhat.com>
18883         Revert:
18884         PR lto/66752
18885         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
18886         unable to find X NE 0 in the tables, return X as the simplified
18887         condition.
18888         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
18889         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
18890         to VISISTED_BBS.  */
18891         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
18892         after removing the control flow statement and unnecessary edges.
18894 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
18896         Revert:
18897         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
18899         PR rtl-optimization/64164
18900         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18901         * tree-ssa-copyrename.c: Removed.
18902         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18903         -ftree-coalesce-vars.
18904         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18905         * common.opt (ftree-copyrename): Ignore.
18906         (ftree-coalesce-inlined-vars): Likewise.
18907         * doc/invoke.texi: Remove the ignored options above.
18908         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18909         * tree-ssa-coalesce.h: ... here.
18910         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18911         headers required by it.
18912         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18913         across variables when flag_tree_coalesce_vars.  Check register
18914         use and promoted modes to allow coalescing.  Moved to
18915         tree-ssa-coalesce.c.
18916         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18917         with its member functions to tree-ssa-coalesce.c.
18918         (var_map_base_init): Likewise.  Renamed to
18919         compute_samebase_partition_bases.
18920         (partition_view_normal): Drop want_bases parameter.
18921         (partition_view_bitmap): Likewise.
18922         * tree-ssa-live.h: Adjust declarations.
18923         * tree-ssa-coalesce.c: Include explow.h.
18924         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18925         default defs at the entry point.
18926         (dump_part_var_map): New.
18927         (compute_optimized_partition_bases): New, called by...
18928         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18929         of compute_samebase_partition_bases.  Adjust.
18930         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18931         * cfgexpand.c (leader_merge): New.
18932         (get_rtl_for_parm_ssa_default_def): New.
18933         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18934         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18935         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18936         redundant MEM attr setting.
18937         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18938         from...
18939         (expand_one_stack_var): ... this.  New wrapper to check and
18940         skip already expanded SSA partitions.
18941         (record_alignment_for_reg_var): New, factored out of...
18942         (expand_one_var): ... this.
18943         (expand_one_ssa_partition): New.
18944         (adjust_one_expanded_partition_var): New.
18945         (expand_one_register_var): Check and skip already expanded SSA
18946         partitions.
18947         (expand_used_vars): Don't create DECLs for anonymous SSA
18948         names.  Expand all SSA partitions, then adjust all SSA names.
18949         (pass::execute): Replace the loops that set
18950         SA.partition_to_pseudo from partition leaders and cleared
18951         DECL_RTL for multi-location variables, and that which used to
18952         rename vars and set attrs, with one that clears DECL_RTL and
18953         checks that PARMs and RESULTs default_defs match DECL_RTL.
18954         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18955         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
18956         * explow.c (promote_ssa_mode): New.
18957         * explow.h (promote_ssa_mode): Declare.
18958         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18959         * function.c: Include cfgexpand.h.
18960         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18961         (use_register_for_parm_decl): Wrapper for the above to
18962         special-case the result_ptr.
18963         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18964         (split_complex_args): Take assign_parm_data_all argument.
18965         Pass it to rtl_for_parm.  Set up rtl and context for split
18966         args.
18967         (assign_parms_augmented_arg_list): Adjust.
18968         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18969         multiple locations.  Recognize split complex args.
18970         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18971         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18972         (assign_parm_setup_block): Prefer SSA-assigned location.
18973         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
18974         if stack_parm is NULL.
18975         (assign_parm_setup_stack): Prefer SSA-assigned location.
18976         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18977         rtl before testing for pointer bounds.  Special-case result_ptr.
18978         (expand_function_start): Maybe reset DECL_RTL of result.
18979         Prefer SSA-assigned location for result and static chain.
18980         Factor out DECL_RESULT and SET_DECL_RTL.
18981         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18982         anonymous SSA names.  Use promote_ssa_mode.
18983         (get_temp_reg): Likewise.
18984         (remove_ssa_form): Adjust.
18985         * stor-layout.c (layout_decl): Don't set mem attributes of
18986         non-MEMs.
18987         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18988         and get its reg_usage for reg invalidation.
18989         (compute_bb_dataflow): Pass it insn.
18990         (emit_notes_in_bb): Likewise.
18992 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
18994         * config/i386/i386.c (ix86_va_start): Remove
18995         unneeded !TARGET_64BIT check.
18996         (ix86_gimplify_va_arg): Ditto.
18998 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19000         * graphite-sese-to-poly.c (build_poly_scop): Always call
19001         rewrite_commutative_reductions_out_of_ssa.
19003 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19005         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19006         flag_associative_math to FLOAT_TYPE_P.  Honour
19007         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19009 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19011         PR c++/64079
19012         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19013         and "%qD" in warning_at instead of "%q+D" in warning.
19015 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19017         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19018         (ix86_function_abi): Cleanup.
19020 2015-07-24  Michael Darling  <darlingm@gmail.com>
19022         PR other/66259
19023         * acinclude.m4: Reflects renaming of configure.in to configure.ac
19024         * configure: Likewise
19025         * configure.ac: Likewise
19026         * doc/install.texi: Likewise
19027         * doc/tm.texi: Likewise
19028         * doc/tm.texi.in: Likewise
19030 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19032         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19033         manually swapping values.
19034         * cse.c (fold_rtx): Likewise.
19035         * lra-eliminations.c (form_sum): Likewise.
19037 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19039         PR target/64003
19040         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19041         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19042         (*jcc_1, *jcc_2, jump, simple_return_internal)
19043         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19044         Set length_nobnd attribute instead of length attribute.
19045         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19046         (length_nobnd): Remove attribute.
19047         (length): Remove length_nobnd processing.
19049 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
19051         * gimplify.c (omp_default_clause): New function.  Reorganize flow
19052         for clarity. Broken out of ...
19053         (omp_notice_variable): ... here.
19055 2015-07-24  Gary Funck  <gary@intrepid.com>
19057         PR middle-end/66984
19058         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19059         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19061 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19063         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19064         exit-first loop transform.
19066 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
19068         PR 66714
19069         * tree-cfg.c (struct replace_decls_d): New struct.
19070         (replace_block_vars_by_duplicates_1): New function.
19071         (replace_block_vars_by_duplicates): Use it to replace the decls
19072         in the value exprs by duplicates.
19074 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19076         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19077         -shared, -symbolic, -rdynamic.
19079 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19081         PR target/65711
19082         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19083         -dynamic-linker within %{!static %{!shared, and -rdynamic within
19084         %{!static.
19086 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19088         PR ipa/66566
19089         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19090         edge summary is available.
19092 2015-07-24  Richard Biener  <rguenther@suse.de>
19094         * genmatch.c (struct dt_node): Add statistic fields.
19095         (dt_node::analyze): New method.
19096         (decision_tree::gen_gimple): Call analyze on the root node
19097         and print statistics to stderr.
19098         (decision_tree::gen_generic): Likewise.
19100 2015-07-24  Richard Biener  <rguenther@suse.de>
19102         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19103         against the highest or lowest possible integer ...
19104         * match.pd: ... as patterns here.
19106 2015-07-24  Richard Biener  <rguenther@suse.de>
19108         * genmatch.c (struct capture_info): Add same_as field.
19109         (capture_info::capture_info): Initialize same_as.
19110         (capture_info::walk_match): Compute same_as.
19111         (capture_info::walk_result): Compute stuff for the leader.
19112         (capture_info::walk_c_expr): Likewise.
19113         (dt_simplify::gen_1): Only look at leaders when deciding
19114         to force no side-effects or emit side-effects of omitted operands.
19116 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19118         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19119         reg note to the GPR -> FPR save instructions.
19121 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19123         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19124         cheaper.
19125         (s390_expand_insv): Don't generate risbg pattern for constant zero
19126         sources.
19127         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19128         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
19129         splitters.
19131 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19133         * config/s390/s390.c (s390_reorg): Clean up handling of processors
19134         with
19135         -mtune=
19136         (s390_issue_rate): Likewise.
19137         (s390_sched_reorder): Likewise.
19138         (s390_sched_variable_issue): Likewise.
19139         (s390_loop_unroll_adjust): Likewise.
19140         (s390_option_override):  Likewise.
19142 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19144         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19145         processor capabilities with -march=native.
19146         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19147         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
19148         (S390_TARGET_BITS_STRING): Macro to simplify specs.
19150 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19152         * config/s390/s390.c (s390_issue_rate): Handle
19153         PROCESSOR_2094_Z9_EC.
19154         (s390_option_override): Likewise.
19155         (s390_adjust_priority): Likewise.
19157 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19159         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19160         when cross compiling.
19162 2015-07-24  Richard Biener  <rguenther@suse.de>
19164         * fold-const.c (maybe_canonicalize_comparison_1): Move
19165         A code CST canonicalization ...
19166         * match.pd: ... to a pattern here.
19168 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
19170         Revert:
19171         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19172         PR target/63521
19173         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19174         (HONOR_REG_ALLOC_ORDER): Define.
19176 2015-07-24  Richard Biener  <rguenther@suse.de>
19178         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19179         * fold-const.c (fold_comparison): Move parameter does not
19180         alias &local simplification ...
19181         * match.pd: ... as a pattern here.
19183 2015-07-24  Richard Biener  <rguenther@suse.de>
19185         * gimple-fold.c (replace_stmt_with_simplification): Special-case
19186         valueizing call operands.
19187         * gimple-match-head.c (maybe_push_res_to_seq): Take
19188         number of call arguments from ops array.
19189         (do_valueize): New function.
19190         (gimple_simplify): Return true if valueization changed
19191         any operand even if the result didn't simplify further.
19193 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19195         PR middle-end/25530
19196         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19198 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19200         PR middle-end/25529
19201         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19203 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19205         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19206         instruction.
19208 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19210         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19211         clean up.
19213 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
19215         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19216         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
19217         targets here.
19218         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19219         ms_va_list_type_node initialization.
19221 2015-07-23  Jeff Law  <law@redhat.com>
19223         PR lto/66752
19224         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19225         unable to find X NE 0 in the tables, return X as the simplified
19226         condition.
19227         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19228         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19229         to VISISTED_BBS.  */
19230         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19231         after removing the control flow statement and unnecessary edges.
19233 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19235         * tree-pass.h (get_current_pass_name): Removed.
19237 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19239         PR rtl-optimization/64164
19240         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19241         * tree-ssa-copyrename.c: Removed.
19242         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19243         -ftree-coalesce-vars.
19244         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19245         * common.opt (ftree-copyrename): Ignore.
19246         (ftree-coalesce-inlined-vars): Likewise.
19247         * doc/invoke.texi: Remove the ignored options above.
19248         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19249         * tree-ssa-coalesce.h: ... here.
19250         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19251         headers required by it.
19252         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19253         across variables when flag_tree_coalesce_vars.  Check register
19254         use and promoted modes to allow coalescing.  Moved to
19255         tree-ssa-coalesce.c.
19256         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19257         with its member functions to tree-ssa-coalesce.c.
19258         (var_map_base_init): Likewise.  Renamed to
19259         compute_samebase_partition_bases.
19260         (partition_view_normal): Drop want_bases parameter.
19261         (partition_view_bitmap): Likewise.
19262         * tree-ssa-live.h: Adjust declarations.
19263         * tree-ssa-coalesce.c: Include explow.h.
19264         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19265         default defs at the entry point.
19266         (dump_part_var_map): New.
19267         (compute_optimized_partition_bases): New, called by...
19268         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19269         of compute_samebase_partition_bases.  Adjust.
19270         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19271         * cfgexpand.c (leader_merge): New.
19272         (get_rtl_for_parm_ssa_default_def): New.
19273         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19274         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19275         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19276         redundant MEM attr setting.
19277         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19278         from...
19279         (expand_one_stack_var): ... this.  New wrapper to check and
19280         skip already expanded SSA partitions.
19281         (record_alignment_for_reg_var): New, factored out of...
19282         (expand_one_var): ... this.
19283         (expand_one_ssa_partition): New.
19284         (adjust_one_expanded_partition_var): New.
19285         (expand_one_register_var): Check and skip already expanded SSA
19286         partitions.
19287         (expand_used_vars): Don't create DECLs for anonymous SSA
19288         names.  Expand all SSA partitions, then adjust all SSA names.
19289         (pass::execute): Replace the loops that set
19290         SA.partition_to_pseudo from partition leaders and cleared
19291         DECL_RTL for multi-location variables, and that which used to
19292         rename vars and set attrs, with one that clears DECL_RTL and
19293         checks that PARMs and RESULTs default_defs match DECL_RTL.
19294         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19295         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19296         * explow.c (promote_ssa_mode): New.
19297         * explow.h (promote_ssa_mode): Declare.
19298         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19299         * function.c: Include cfgexpand.h.
19300         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19301         (use_register_for_parm_decl): Wrapper for the above to
19302         special-case the result_ptr.
19303         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19304         (split_complex_args): Take assign_parm_data_all argument.
19305         Pass it to rtl_for_parm.  Set up rtl and context for split
19306         args.
19307         (assign_parms_augmented_arg_list): Adjust.
19308         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19309         multiple locations.  Recognize split complex args.
19310         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19311         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19312         (assign_parm_setup_block): Prefer SSA-assigned location.
19313         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19314         if stack_parm is NULL.
19315         (assign_parm_setup_stack): Prefer SSA-assigned location.
19316         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19317         rtl before testing for pointer bounds.  Special-case result_ptr.
19318         (expand_function_start): Maybe reset DECL_RTL of result.
19319         Prefer SSA-assigned location for result and static chain.
19320         Factor out DECL_RESULT and SET_DECL_RTL.
19321         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19322         anonymous SSA names.  Use promote_ssa_mode.
19323         (get_temp_reg): Likewise.
19324         (remove_ssa_form): Adjust.
19325         * stor-layout.c (layout_decl): Don't set mem attributes of
19326         non-MEMs.
19327         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19328         and get its reg_usage for reg invalidation.
19329         (compute_bb_dataflow): Pass it insn.
19330         (emit_notes_in_bb): Likewise.
19332 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
19334         PR target/66217
19335         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19336         prototype.
19337         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19338         (rs6000_emit_2insn_and): Handle dot forms.
19339         * config/rs6000/rs6000.md (and<mode>3): Adjust.
19340         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
19341         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19343 2015-07-23  Richard Biener  <rguenther@suse.de>
19345         * generic-match-head.c: Include cgraph.h.
19346         * gimple-match-head.c: Likewise.
19347         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19348         SSA names.
19349         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19350         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
19351         pattern.
19353 2015-07-23  Richard Biener  <rguenther@suse.de>
19355         * gimple-fold.c (fold_gimple_cond): Do not require folding
19356         results to pass valid_gimple_rhs_p.
19357         * tree-cfg.h (fold_cond_expr_cond): Remove.
19358         * tree-cfg.c (fold_cond_expr_cond): Likewise.
19359         (make_edges): Do not call it.
19360         * tree-inline.c (tree_function_versioning): Likewise.
19362 2015-07-23  Tom de Vries  <tom@codesourcery.com>
19364         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19365         vect_force_simple_reduction.
19366         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19367         (vect_is_simple_reduction_1): Add and handle
19368         need_wrapping_integral_overflow parameter.
19369         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19370         need_wrapping_integral_overflow parameter.
19371         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19372         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19373         decl.
19375 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
19377         PR tree-optimization/66926,66951
19378         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19379         INNER_LOOP and fix up condition for renaming virtual operands.
19381 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19383         * combine.c (try_combine): Use std::swap instead of manually
19384         swapping.
19386 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
19388         * config/mips/i6400.md: New file.
19389         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19390         (mips64r6): Likewise.
19391         (i6400): Define.
19392         * config/mips/mips-tables.opt: Regenerate.
19393         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19394         (mips_issue_rate): Add support for i6400.
19395         (mips_multipass_dfa_lookahead): Likewise.
19396         * config/mips/mips.h (TUNE_I6400): Define.
19397         * config/mips/mips.md: Include i6400.md.
19398         (processor): Add i6400.
19399         * doc/invoke.texi (-march=@var{arch}): Add i6400.
19401 2015-07-23  Richard Biener  <rguenther@suse.de>
19403         PR middle-end/66916
19404         * match.pd: Guard widen and sign-change comparison simplification
19405         with single_use.
19407 2015-07-23  Richard Biener  <rguenther@suse.de>
19409         PR tree-optimization/66945
19410         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19411         ::before_dom_children): Force the propagators idea of
19412         non-executable edges to materialize, not what the folder
19413         chooses.
19415 2015-07-23  Richard Biener  <rguenther@suse.de>
19417         * gimple.h (gimple_cond_make_false): Use 0 != 0.
19418         (gimple_cond_make_true): Use 1 != 0.
19420 2015-07-22  DJ Delorie  <dj@redhat.com>
19422         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19423         slashes.
19425         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19426         (ashrhi3): Likewise.
19427         (lshrhi3): Likewise.
19428         (movhi): Take advantage of zero-extend to load small constants.
19429         (movpsi): Likewise.
19430         (and<mode>3): Likewise.
19431         (zero_extendqihi2): Likewise.
19432         (zero_extendqisi2): New.
19433         * config/msp430/constraints.md (N,O): New.
19434         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19436 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
19438         PR target/66954
19439         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19440         to enum feature_priority and feature_list.
19441         (fold_builtin_cpu): Add F_AES to enum processor_features
19442         and isa_names_table.
19444 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19446         PR driver/66737
19447         * config/i386/linux-common.h (MPX_SPEC): Use linker option
19448         for 64bit target only.
19450 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
19452         * config/nvptx/nvptx.c: Expand some comments.
19454 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
19456         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19457         (cortex_a53_advsimd): ...This.
19459 2015-07-22  Richard Biener  <rguenther@suse.de>
19461         * genmatch.c (expr::gen_transform): Clarify error message
19462         and display location.
19464 2015-07-22  Richard Biener  <rguenther@suse.de>
19466         * genmatch.c (struct operand): Add location member.
19467         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19468         constructors.
19469         (struct simplify): Remove match_location and result_location
19470         members.
19471         (elsehwere): Adjust.
19473 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
19475         * config/mips/m5100.md: New file.
19476         * config/mips/mips-cpus.def (m5100, m5101): Define.
19477         * config/mips/mips-tables.opt: Regenerate.
19478         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19479         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19480         -march=m5101 to -mips32r5.
19481         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19482         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19483         !-msoft-float.
19484         * config/mips/mips.md: Include m5100.md.
19485         (processor): Add m5100.
19486         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19488 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
19490         * config/mips/mips-cpus.def (interaptiv): Define.
19491         * config/mips/mips-tables.opt: Regenerate.
19492         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19493         -mips32r2.
19494         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19495         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19497 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19499         PR target/63521
19500         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19501         (HONOR_REG_ALLOC_ORDER): Define.
19503 2015-07-22  Richard Biener  <rguenther@suse.de>
19505         PR tree-optimization/66952
19506         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19507         blocks we end up executing unconditionally reset all SSA
19508         info such as range and alignment.
19509         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19510         * tree-ssanames.c (reset_flow_sensitive_info): New function.
19512 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19514         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19515         typo in attribute.
19517 2015-07-22  Richard Biener  <rguenther@suse.de>
19519         * genmatch.c (parser::parse_result): Properly handle
19520         match with result operands and conditions.
19522 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
19524         PR target/63870
19525         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19526         Add qualifier_struct_load_store_lane_index.
19527         (aarch64_types_loadstruct_lane_qualifiers): Use
19528         qualifier_struct_load_store_lane_index for lane index argument for
19529         last argument.
19530         (aarch64_types_storestruct_lane_qualifiers): Ditto.
19531         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19532         (aarch64_simd_expand_args): Add new argument describing mode of
19533         builtin. Check lane bounds for arguments with
19534         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19535         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19536         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19537         (aarch64_simd_expand_builtin): Handle arguments with
19538         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19539         aarch64_simd_expand_args.
19540         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19541         vst[234]_lane with BUILTIN_VALLDIF.
19542         * config/aarch64/aarch64-simd.md:
19543         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19544         endianness reversal on lane index.
19545         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19546         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19547         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19548         (vec_store_lanesci_lane<mode>): Ditto.
19549         (vec_store_lanesxi_lane<mode>): Ditto.
19550         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19551         reversal of lane index.
19552         (aarch64_ld3_lane<mode>): Ditto.
19553         (aarch64_ld4_lane<mode>): Ditto.
19554         (aarch64_st2_lane<mode>): Ditto.
19555         (aarch64_st3_lane<mode>): Ditto.
19556         (aarch64_st4_lane<mode>): Ditto.
19557         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19558         to qmode. Add new mode parameter. Update uses.
19559         (__LD3_LANE_FUNC): Ditto.
19560         (__LD4_LANE_FUNC): Ditto.
19561         (__ST2_LANE_FUNC): Ditto.
19562         (__ST3_LANE_FUNC): Ditto.
19563         (__ST4_LANE_FUNC): Ditto.
19565 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
19567         * doc/invoke.texi (Language Independent Options): Rename node to
19568         Diagnostic Message Formatting Options.
19570 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
19572         PR ipa/66424.
19573         * lra-remat.c (operand_to_remat): Prevent using insns with input
19574         subregs processed separately by IRA.
19576 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
19578         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19579         straight loops.
19580         (single_imm_use): Check for iterator node.
19581         (num_imm_uses): Likewise.
19582         * tree-ssa-operands.c (has_zero_uses_1): Delete.
19583         (single_imm_use_1): Check for iterator node.
19585 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
19586             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19588         * configure.ac: Add check for new options in isl-0.15.
19589         * config.in, configure: Rebuilt.
19590         * graphite-blocking.c: Include <isl/constraint.h>
19591         * graphite-interchange.c,  graphite-poly.c: Likewise.
19592         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19593         * graphite.c: Likewise.
19594         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19595         <isl/union_set.h>.
19596         * graphite-dependences.c: Include <isl/constraint.h>.
19597         (max_number_of_out_dimensions): Returns isl_stat.
19598         (extend_schedule_1): Likewise
19599         (extend_schedule): Corresponding changes.
19600         * graphite-optimize-isl.c: Include <isl/constraint.h> and
19601         <isl/union_set.h>.
19602         (getSingleMap): Change return type of isl_stat.
19603         (optimize_isl): Conditionally use
19604         isl_options_set_schedule_serialize_sccs.
19605         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19606         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19608 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
19610         PR target/66956
19611         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19612         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19614 2015-07-21  Richard Biener  <rguenther@suse.de>
19616         PR tree-optimization/66948
19617         * genmatch.c (capture_info::walk_match): Also recurse to
19618         captures.  Properly compute expr state from captures of
19619         captures.
19620         * match.pd: Add single-use guards to
19621         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19623 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
19625         * config/nvptx/mkoffload.c (process): Add static destructor call.
19627 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19629         PR middle-end/66915
19630         * match.pd (A - B -> A + (-B)): Don't allow folding
19631         when type if a fixed-point type.
19633 2015-07-20  DJ Delorie  <dj@redhat.com>
19635         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19636         (iorqi3_real): Likewise for set1.
19638 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
19640         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19641         for !TARGET_64BIT.
19643 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
19645         * graphite-isl-ast-to-gimple.c:
19646         Refactor so that each function can access 'region'. This will help
19647         maintain a parameter rename_map within a region.
19649 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19651         * config/rs6000/rs6000.md (*lt0_disi): New.
19653 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
19655         PR target/66217
19656         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
19657         "available letters" comment.
19658         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19659         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19660         and_2rld_operand):  Delete.
19661         (and_operand): Adjust.
19662         (rotate_mask_operator): New.
19663         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19664         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19665         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19666         extract_ME): Delete.
19667         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19668         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19669         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19670         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19671         rs6000_emit_2insn_and): New.
19672         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19673         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19674         includes_rldic_lshift_p, includes_rldicr_lshift_p,
19675         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19676         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19677         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19678         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19679         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19680         rs6000_emit_2insn_and): New.
19681         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19682         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19683         handling.
19684         <NOT>: Don't fall through to next case.
19685         <AND>: Handle the various rotate-and-mask cases directly.
19686         <IOR>: Always cost as one insn.
19687         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19688         (and<mode>3): Adjust expander for the new patterns.
19689         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19690         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19691         (*and<mode>3_imm_dot_shifted): New.
19692         (*and<mode>3_mask): Delete, rewrite as ...
19693         (and<mode>3_mask): ... New.
19694         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19695         (andsi3_internal0_nomc): Delete.
19696         (*andsi3_internal6): Delete.
19697         (*and<mode>3_2insn): New.
19698         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19699         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19700         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19701         *insvdi_internal3): Delete.
19702         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19703         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19704         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19705         *ior<mode>_mask): New.
19706         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19707         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19708         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19709         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19710         Delete.
19711         (ashr<mode>3): Delete expander.
19712         (*ashr<mode>3): Rename to ...
19713         (ashr<mode>3): ... This.
19714         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19715         (*rotldi3_internal4, *rotldi3_internal5 and split,
19716         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19717         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19718         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19719         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19720         (splitter for loading a mask): Adjust.
19721         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19723 2015-07-20  Marek Polacek  <polacek@redhat.com>
19725         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19726         output_add_clobbers, output_added_clobbers_hard_reg_p,
19727         gen_rtx_scratch): Remove declarations.
19729 2015-07-20  Marek Polacek  <polacek@redhat.com>
19731         PR c++/55095
19732         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19734 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19736         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19737         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19739 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19741         * combine.c (combine_simplify_rtx): Move simplification step
19742         before various transformations/substitutions.
19744 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
19746         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19747         (struct int_traits): Likewise.
19749 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19751         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19752         function to vmsdbgout_function_decl.
19754 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19756         PR target/66922
19757         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19758         from misaligned positions.
19759         (ix86_expand_pinsr): Reject insertions to misaligned positions.
19761 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
19763         PR middle-end/46851
19764         PR middle-end/60340
19765         * Makefile.in: Removed omega.o.
19766         * common.opt: Document flag fcheck-data-deps as deprecated.
19767         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19768         its associated params: omega-max-vars, omega-max-geqs,
19769         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19770         omega-max-keys, omega-eliminate-redundant-constraints.
19771         * doc/loop.texi: Remove all the section on Omega.
19772         * graphite-blocking.c: Include missing params.h: it used to be
19773         included through tree-data-ref.h and omega.h.
19774         * graphite-isl-ast-to-gimple.c: Same.
19775         * graphite-optimize-isl.c: Same.
19776         * graphite-sese-to-poly.c: Same.
19777         * graphite.c: Same.
19778         * omega.c: Remove.
19779         * omega.h: Remove.
19780         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19781         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19782         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19783         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19784         * passes.def: Remove pass_check_data_deps.
19785         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19786         (dump_conflict_function): Same.
19787         (dump_subscript): Same.
19788         (print_direction_vector): Same.
19789         (print_dir_vectors): Same.
19790         (print_lambda_vector): Same.
19791         (print_dist_vectors): Same.
19792         (dump_data_dependence_relation): Same.
19793         (dump_data_dependence_relations): Same.
19794         (dump_dist_dir_vectors): Same.
19795         (dump_ddrs): Same.
19796         (init_omega_eq_with_af): Removed.
19797         (omega_extract_distance_vectors): Removed.
19798         (omega_setup_subscript): Removed.
19799         (init_omega_for_ddr_1): Removed.
19800         (init_omega_for_ddr): Removed.
19801         (ddr_consistent_p): Removed.
19802         (compute_affine_dependence): Do not use omega to check data
19803         dependences.
19804         (compute_data_dependences_for_bb): Removed.
19805         (analyze_all_data_dependences): Removed.
19806         (tree_check_data_deps): Removed.
19807         * tree-data-ref.h: Do not include omega.h.
19808         (compute_data_dependences_for_bb): Removed.
19809         (tree_check_data_deps): Removed.
19810         * tree-ssa-loop.c (pass_check_data_deps): Removed.
19811         (make_pass_check_data_deps): Removed.
19812         * tree-ssa-phiopt.c: Include params.h.
19813         * tree-vect-data-refs.c: Same.
19814         * tree-vect-slp.c: Same.
19816 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
19818         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19819         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
19820         (mem->fpreg splitters): Ditto.
19821         (general_operand->nonimmediate_operand splitter): Use explicit modes.
19822         Disable DFmode for TARGET_64BIT.
19824 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
19826         PR target/66906
19827         * config/i386/i386.c (ix86_expand_prologue): Replicate static
19828         chain on the stack.
19830 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19832         * config/nvptx/mkoffload.c (process): Constify host data.
19833         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19834         Constify host data.
19835         (generate_host_descr_file): Likewise.
19837 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
19838             Sebastian Pop  <s.pop@samsung.com>
19840         PR middle-end/61929
19841         * graphite-dependences.c (add_pdr_constraints): Renamed
19842         pdr->extent to pdr->subscript_sizes.
19843         * graphite-interchange.c (build_linearized_memory_access): Add
19844         back all gcc_assert's that the "isl_int to isl_val conversion"
19845         patch has removed.  Refactored.
19846         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
19847         * graphite-poly.c (new_poly_dr): Same.
19848         (free_poly_dr): Same.
19849         * graphite-poly.h (struct poly_dr): Same.
19850         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
19851         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
19852         * graphite-scop-detection.h: Fix space.
19853         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
19854         back all gcc_assert's removed by a previous patch.
19855         (wrap): Remove the_isl_ctx global variable that the same patch has
19856         added.
19857         (build_loop_iteration_domains): Same.
19858         (add_param_constraints): Same.
19859         (pdr_add_data_dimensions): Same.  Refactored.
19860         (build_poly_dr): Renamed extent to subscript_sizes.
19862 2015-07-17  Marek Polacek  <polacek@redhat.com>
19864         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
19865         * match.pd: ... here.
19867 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
19869         * config/nvptx/mkoffload.c (process): Constify target data.
19870         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19871         Constify target data.
19872         (generate_target_offloadend_file): Likewise.
19874 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
19876         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
19877         to allow renaming of PHI arguments on edges incoming from outer
19878         loop header, add corresponding check before start PHI iterator.
19879         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
19880         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
19881         with true force_vectorize.  Set-up dominator for outer loop too.
19882         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
19883         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
19884         was marked with force_vectorize and has restricted cfg.
19885         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
19886         inner loop.
19887         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
19888         do peeling for outer loops.
19890 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
19891             Matthias Klose  <doko@ubuntu.com>
19893         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
19894         build-sysroot, sysroot from the `Miscenalleous configure options' to
19895         the `Directories' section and strip trailing `/' from with_sysroot.
19896         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
19897         * configure: Regenerated.
19899 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19901         PR target/66824
19902         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
19903         (TARGET_HARD_DF_REGS): Ditto.
19904         (TARGET_HARD_XF_REGS): Ditto.
19905         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
19906         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
19907         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
19908         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
19909         (*movsf_internal): Add alternatives 16 and 17. Enable
19910         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
19912 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
19914         PR rtl-optimization/66891
19915         * calls.c (expand_call): Wrap precompute_register_parameters with
19916         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
19918 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
19920         * config/nvptx/mkoffload.c (process): Constify mapping variables.
19921         Define target data struct and initialize it.
19923 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
19925         PR rtl-optimization/66626
19926         * ira.h (emit-rtl.h): Include.
19927         (non_spilled_static_chain_regno_p): New.
19928         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
19929         unless it is non spilled static chain pseudo.
19930         (assign_hard_rego): Spill memory profitable allocno unless it is
19931         non spilled static chain pseudo.
19932         (allocno_spill_priority_compare): Put non spilled static chain
19933         pseudo at the end of sorted array.
19934         (improve_allocation): Do nothing if we have static chain and
19935         non-local goto.
19936         (allocno__priority_compare_func): Put non spilled static chain
19937         pseudo at the beginning of sorted array.
19938         (move_spill_restore): Ignore non spilled static chain pseudo.
19939         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
19940         to non spilled static chain pseudo.
19941         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
19942         pseudo at the beginning of sorted array.
19943         (spill_for): Spill non spilled static chain pseudo last.
19944         * lra-constraints.c (lra_constraints): Remove static chain pseudo
19945         check for equivalence.
19947 2015-07-16  Martin Liska  <mliska@suse.cz>
19949         PR ipa/66896.
19950         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
19951         dst_ctx if it does not exist.
19953 2015-07-16  Martin Liska  <mliska@suse.cz>
19955         * hash-set.h (remove): New function.
19956         (iterator): New iteration class for hash_set.
19958 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19960         * genattrtab.c (make_canonical): Add a file_location parameter.
19961         Use fatal_at rather than fatal.
19962         (get_attr_value): Likewise.  Update call to make_canonical.
19963         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
19964         (make_internal_attr): Update calls accordingly.
19966 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
19968         * read-md.h (message_with_line, error_with_line): Delete.
19969         * read-md.c (message_with_line, error_with_line): Delete.
19970         * gensupport.h: Include read-md.h.
19971         (md_rtx_info): New structure.
19972         (read_md_rtx): Use it.  Return a bool success value.
19973         * gensupport.c (read_md_rtx): Likewise.
19974         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
19975         (main): Update after interface changes.
19976         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
19977         (main): Update after interface changes.
19978         * genattrtab.c (insn_code_number): Delete.
19979         (optimize_attrs): Add a max_insn_code parameter and use it instead
19980         of insn_code_number.
19981         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
19982         Use *_at rather than *_with_line functions.
19983         (gen_insn): Likewise.
19984         (gen_delay): Likewise.
19985         (gen_insn_reserv): Likewise.
19986         (gen_bypass): Take an md_rtx_info rather than an rtx.
19987         (main): Update after interface changes.  Use a local max_insn_code
19988         variable instead of insn_code_number.
19989         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
19990         an rtx.  Use fatal_at rather than fatal.
19991         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
19992         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
19993         (gen_absence_set, gen_final_absence_set, gen_automaton)
19994         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
19995         (main): Update after interface changes.
19996         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
19997         and code number.
19998         (main): Update after interface changes.
19999         * genconditions.c (main): Use new read_md_rtx interface.
20000         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20001         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20002         (main): Update after interface changes.
20003         * genemit.c (insn_code_number, insn_index_number): Delete.
20004         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20005         Use fatal_at rather than fatal.
20006         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
20007         rather than fatal.
20008         (gen_split): Likewise.
20009         (main): Update after interface changes.
20010         * genextract.c (line_no): Delete.
20011         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20012         Update call to walk_rtx.
20013         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
20014         rather than message_with_line.
20015         (walk_rtx): Add an md_rtx_info argument.  Update call to
20016         VEC_safe_set_locstr.
20017         (main): Update after interface changes.
20018         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20019         and lineno.  Use error_at rather than separate message_with_line
20020         calls and have_error assignments.
20021         (main): Update after interface changes.
20022         * genmddump.c (main): Use new read_md_rtx interface.
20023         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20024         (main): Update after interface changes.
20025         * genoutput.c (next_code_number): Delete.
20026         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20027         (gen_peephole, gen_expand, gen_split): Likewise.
20028         (note_constraint): Likewise.  Use *_at rather than *_with_line
20029         functions.
20030         (main): Update after interface changes.
20031         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20032         rtx and lineno.
20033         (main): Update after interface changes.
20034         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20035         than an rtx and lineno.
20036         (process_define_constraint): Likewise.
20037         (process_define_register_constraint): Likewise.
20038         (main): Update after interface changes.
20039         * genrecog.c (next_insn_code, pattern_lineno): Delete.
20040         (validate_pattern): Replace top-level rtx with an md_rtx_info.
20041         Use *_at rather than *_with_line functions.
20042         (match_pattern_2): Likewise.
20043         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20044         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20045         Use *_at rather than *_with_line functions.
20046         * gentarget-def.c (add_insn): New function.
20047         (main): Use it.  Use new read_md_rtx interface.
20049 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20051         * gensupport.h (compute_test_codes): Take a file_location rather
20052         than a line number.
20053         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
20054         rather than *_with_line functions.
20055         (process_define_predicate): Update call to compute_test_codes.
20056         * genpreds.c (validate_exp): Take a file_location rather than a
20057         line number.  Use *_at functions rather than *_with_line functions.
20058         (process_define_predicate): Update call to validate_exp.
20059         (constraint_data): Replace lineno field with a file_location.
20060         (add_constraint): Take a file_location rather than a line number.
20061         Use *_at functions rather than *_with_line functions.  Fix error
20062         message for address constraints.  Update after changes to
20063         validate_exp, constraint_data and compute_test_codes.
20064         (process_define_constraint): Update accordingly.
20065         (process_define_register_constraint): Likewise.
20067 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20069         * genoutput.c (data): Use a file_location to record the source
20070         position.
20071         (nothing): Delete.
20072         (idata, idata_end): Remove initialization.
20073         (constraint_data): Replace lineno with a file_location.
20074         (output_insn_data): Update after changes to data.
20075         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20076         (scan_operands): Likewise, using *_at rather than *_with_line
20077         functions.
20078         (process_template): Likewise.
20079         (validate_insn_alternatives): Likewise.
20080         (validate_insn_operands): Likewise.
20081         (validate_optab_operands): Likewise.
20082         (init_insn_for_nothing): Initialize idata and idata_end.
20083         (note_constraint): Update after changes to constraint_data,
20084         using at rather than with_line functions.
20085         (mdep_constraint_len): Take a file_location rather than a
20086         line number.  Use at rather than with_line functions.
20088 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20090         * read-md.h (fatal_at): Declare.
20091         * read-md.c (fatal_at): New function.
20092         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20093         to record the source position.
20094         (check_attr_test): Take a file_location instead of a line number.
20095         Use fatal_at instead of fatal.
20096         (check_attr_value): Update after above changes, using "at"
20097         rather than "with_line" reporting functions.
20098         (convert_set_attr_alternative): Likewise.
20099         (gen_attr): Likewise.
20100         (check_defs): Likewise.  Don't assign to read_md_filename.
20101         (gen_insn): Update initialization after above changes.
20102         (gen_delay): Likewise.
20103         (write_insn_cases): Print the filename for a define_peephole.
20104         (gen_insn_reserv): Take a line number as argument and update
20105         the call to check_attr_test.
20106         (main): Pass a line number to gen_insn_reserv.
20108 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20110         * read-md.h (file_location): New structure.
20111         (directive_handler_t): Take a file_location rather than a line number.
20112         (message_at, error_at): Declare.
20113         (read_skip_construct): Delete.
20114         * read-md.c (message_with_line_1): Replace with...
20115         (message_at_1): ...this new function.
20116         (message_at, error_at): New functions.
20117         (message_with_line, error_with_line): Update to use message_at_1.
20118         (handle_enum): Take a file_location rather than a line number
20119         and use error_at for error reporting.
20120         (handle_include): Likewise.
20121         (read_skip_construct): Likewise.  Make static.
20122         (handle_file): Update after above changes.  Pass a file_location
20123         rather than a line number to handle_directive.
20124         * gensupport.c (queue_elem): Replace separate filename and lineno
20125         with a file_location.
20126         (queue_pattern): Replace filename and lineno arguments with a
20127         file_location.  Update after change to queue_elem.
20128         (process_define_predicate): Replace lineno argument with a
20129         file_location and use error_at for error reporting.  Update
20130         after above changes.
20131         (process_rtx): Likewise.
20132         (subst_pattern_match): Likewise.
20133         (get_alternatives_number): Likewise.
20134         (alter_predicate_for_insn): Likewise.
20135         (rtx_handle_directive): Likewise.
20136         (is_predicable): Update after above changes, using error_at rather
20137         than error_with_line.
20138         (has_subst_attribute): Likewise.
20139         (identify_predicable_attribute): Likewise.
20140         (alter_attrs_for_subst_insn): Likewise.
20141         (process_one_cond_exec): Likewise.
20142         (process_substs_on_one_elem): Likewise.
20143         (process_define_subst): Likewise.
20144         (check_define_attr_duplicates): Likewise.
20145         (read_md_rtx): Update after change to queue_elem.
20147 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20149         * genoutput.c (next_index_number): Delete.
20150         (data): Remove index_number.
20151         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20152         (main): Remove manipulation of next_index_number.
20154 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20156         * genattrtab.c (check_attr_value): Remove handling of null attrs.
20157         (make_canonical): Likewise.
20159 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
20161         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20162         instead of adjust_address_nv.
20163         (restore_stack_nonlocal): Likewise.
20164         (nonlocal_goto): Likewise.
20166 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20168         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20169         not have a corresponding loop header phi.
20171 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20173         * tree-parloops.c (create_loads_for_reductions): Handle case that
20174         reduction is unused.
20176 2015-07-16  Richard Biener  <rguenther@suse.de>
20178         PR tree-optimization/66894
20179         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20180         about deriving NE_EXPR from truncated values.
20182 2015-07-16  Martin Liska  <mliska@suse.cz>
20184         * alloc-pool.h
20185         (object_allocator): Add new class.
20186         (pool_allocator::initialize): Use the underlying class.
20187         (pool_allocator::allocate): Likewise.
20188         (pool_allocator::remove): Likewise.
20189         (operator new): A new generic allocator.
20190         * asan.c (struct asan_mem_ref): Remove unused members.
20191         (asan_mem_ref_new): Replace new operator with
20192         object_allocator::allocate.
20193         (free_mem_ref_resources): Change deallocation.
20194         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20195         with object_allocator.
20196         * config/sh/sh.c (add_constant): Replace new operator with
20197         object_allocator::allocate.
20198         (sh_reorg): Change call to a release method.
20199         * cselib.c (struct elt_list): Remove unused members.
20200         (new_elt_list): Replace new operator with
20201         object_allocator::allocate.
20202         (new_elt_loc_list): Likewise.
20203         (new_cselib_val): Likewise.
20204         (unchain_one_elt_list): Change delete operator with remove method.
20205         (unchain_one_elt_loc_list): Likewise.
20206         (unchain_one_value): Likewise.
20207         (cselib_finish): Release newly added static allocators.
20208         * cselib.h (struct cselib_val): Remove unused members.
20209         (struct elt_loc_list): Likewise.
20210         * df-problems.c (df_chain_alloc): Replace pool_allocator with
20211         object_allocator.
20212         * df-scan.c (struct df_scan_problem_data): Likewise.
20213         (df_scan_alloc): Likewise.
20214         * df.h (struct dataflow): Likewise.
20215         * dse.c (struct read_info_type): Likewise.
20216         (struct insn_info_type): Likewise.
20217         (struct dse_bb_info_type): Likewise.
20218         (struct group_info): Likewise.
20219         (struct deferred_change): Likewise.
20220         (get_group_info): Likewise.
20221         (delete_dead_store_insn): Likewise.
20222         (free_read_records): Likewise.
20223         (replace_read): Likewise.
20224         (check_mem_read_rtx): Likewise.
20225         (scan_insn): Likewise.
20226         (dse_step1): Likewise.
20227         (dse_step7): Likewise.
20228         * et-forest.c (struct et_occ): Remove unused members.
20229         (et_new_occ): Use allocate instead of new operator.
20230         (et_new_tree): Likewise.
20231         (et_free_tree): Call release method explicitly.
20232         (et_free_tree_force): Likewise.
20233         (et_free_pools): Likewise.
20234         (et_split): Use remove instead of delete operator.
20235         * et-forest.h (struct et_node): Remove unused members.
20236         * ipa-cp.c: Change pool_allocator to object_allocator.
20237         * ipa-inline-analysis.c: Likewise.
20238         * ipa-profile.c: Likewise.
20239         * ipa-prop.c: Likewise.
20240         * ipa-prop.h: Likewise.
20241         * ira-build.c (initiate_cost_vectors): Cast return value.
20242         (ira_allocate_cost_vector): Likewise.
20243         * ira-color.c (struct update_cost_record): Remove unused members.
20244         * lra-int.h (struct lra_live_range): Likewise.
20245         (struct lra_copy): Likewise.
20246         (struct lra_insn_reg): Likewise.
20247         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20248         * lra.c (new_insn_reg): Replace new operator with allocate method.
20249         (free_insn_regs): Same for operator delete.
20250         (finish_insn_regs): Release new static allocator.
20251         (finish_insn_recog_data): Likewise.
20252         (lra_free_copies): Replace delete operator with remove method.
20253         (lra_create_copy): Replace operator new with allocate method.
20254         (invalidate_insn_data_regno_info): Same for remove method.
20255         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20256         (free_debug_insn_changes): Replace delete operator with remove method.
20257         (replace_oldest_value_reg): Replace operator new with allocate method.
20258         (pass_cprop_hardreg::execute): Release new static variable.
20259         * sched-deps.c (sched_deps_init): Change pool_allocator to
20260         object_allocator.
20261         * sel-sched-ir.c: Likewise.
20262         * sel-sched-ir.h: Likewise.
20263         * stmt.c (expand_case): Likewise.
20264         (expand_sjlj_dispatch_table): Likewise.
20265         * tree-sra.c (struct access): Remove unused members.
20266         (struct assign_link): Likewise.
20267         (sra_deinitialize): Release newly added static pools.
20268         (create_access_1):Replace operator new with allocate method.
20269         (build_accesses_from_assign): Likewise.
20270         (create_artificial_child_access): Likewise.
20271         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20272         pool_allocator to object_allocator.
20273         * tree-ssa-pre.c: Likewise.
20274         * tree-ssa-reassoc.c: Likewise.
20275         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20276         * tree-ssa-strlen.c: Likewise.
20277         * tree-ssa-structalias.c: Likewise.
20278         * var-tracking.c (onepart_pool_allocate): New function.
20279         (unshare_variable): Use the newly added function.
20280         (variable_merge_over_cur): Likewise.
20281         (variable_from_dropped): Likewise.
20282         (variable_was_changed): Likewise.
20283         (set_slot_part): Likewise.
20284         (emit_notes_for_differences_1): Likewise.
20285         (vt_finalize): Release newly added static pools.
20287 2015-07-16  Martin Jambor  <mjambor@suse.cz>
20289         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
20290         all uses.  Fix two typos in its general comment.
20291         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
20293 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
20295         * config/i386/linux-common.h (LINK_MPX): New.
20296         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20297         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20298         indicating '-z bndplt' support by linker.
20299         * configure: Regenerate.
20300         * config.in: Regenerate.
20302 2015-07-16  Richard Biener  <rguenther@suse.de>
20304         * fold-const.c (fold_widened_comparison): Remove.
20305         (fold_sign_changed_comparison): Likewise.
20306         (fold_comparison): Move widened and sign-changed comparison
20307         simplification ...
20308         * match.pd: ... to patterns here.
20309         * generic-match-head.c: Include target.h.
20310         * gimple-match-head.c: Likewise.
20312 2015-07-16  Richard Biener  <rguenther@suse.de>
20314         * tree-ssa-dom.c (dom_valueize): New function.
20315         (record_temporary_equivalences): Also record equivalences
20316         for dominating stmts that have uses of equivalences we are
20317         about to record.
20319 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
20321         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20322         add_autoinc_candidates.
20323         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20324         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20325         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20326         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20327         Call new function.
20328         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20329         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20330         Remove parameter struct iv*.  Call add_autoinc_candidates here.
20331         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20332         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20333         Call new function.
20334         (find_iv_candidates): Call new functions.
20336 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
20338         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20339         uninitialized-variable warning.
20341 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
20343         PR target/65249
20344         * config/sh/sh.md (movdi): Split simple reg move to two movsi
20345         when the destination is R0.
20347 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
20349         PR target/66866
20350         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20351         * config/i386/i386.c (ix86_expand_pextr): New function.
20352         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
20353         for non-lowpart subregs.
20354         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20355         (insv<mode>): Use SWI248 mode iterator.
20356         (insv<mode>_1): Ditto.
20358 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20359             Sebastian Pop  <s.pop@samsung.com>
20361         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20362         iterator to use_stmt.
20364 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20365             Sebastian Pop <s.pop@samsung.com>
20367         * graphite-scop-detection.c (build_scops_1): Discard scops for
20368         which entry==exit.
20370 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20371             Sebastian Pop <s.pop@samsung.com>
20373         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20374         case of a return statement in scop.
20376 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
20377             Sebastian Pop <s.pop@samsung.com>
20379         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20380         INTEGER_TYPE parameters.
20381         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20382         VECTOR_CST in scan_tree_for_params.
20383         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20385 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20387         * gimple-pretty-print.h: Don't include pretty-print.h.
20388         * tree-streamer.h: Don't include lto-streamer.h.
20389         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20390         * gimple-streamer-in.c: Remove redundant includes.
20391         * gimple-streamer-out.c: Likewise.
20392         * ipa-devirt.c: Likewise.
20393         * ipa-icf.c: Likewise.
20394         * ipa-inline-analysis.c: Likewise.
20395         * ipa-polymorphic-call.c: Likewise.
20396         * ipa-profile.c: Likewise.
20397         * ipa-prop.c: Likewise.
20398         * ipa-pure-const.c: Likewise.
20399         * lto-cgraph.c: Likewise.
20400         * lto-streamer-in.c: Likewise.
20401         * lto-streamer-out.c: Likewise.
20402         * lto-streamer.c: Likewise.
20403         * tree-streamer-in.c: Likewise.
20404         * tree-streamer-out.c: Likewise.
20405         * tree-streamer.c: Likewise.
20407 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
20409         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20410         include input.h.
20411         * opts.c: Remove multiline #include comment.
20413 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
20415         * config/nvptx/mkoffload.c (process): Add C++ protection to
20416         emitted code.
20418 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20420         PR target/66854
20421         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20422         null before IEEE 128-bit floating point support patch.
20424 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20426         * simplify-rtx.c (simplify_ternary_operation): Add simplification
20427         for (!c) != {0,...,0} ? a : b for vector modes.
20429 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
20430             Martin Jambor  <mjambor@suse.cz>
20432         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20433         struct func_body_info* instead of struct ipa_node_params*, expecting
20434         fbi->info to be filled in.  Replace throughout.  Adjust call to
20435         ipa_load_from_parm_agg.
20436         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20437         instead of struct ipa_node_params*.  Adjust calls to other functions
20438         so that they pass either fbi or fbi->info.
20439         (set_switch_stmt_execution_predicate): Likewise.
20440         (will_be_nonconstant_predicate): Likewise.
20441         (compute_bb_predicates): Likewise.
20442         (estimate_function_body_sizes): Move asserts earlier.  Fill in
20443         struct func_body_info, replace parms_info with fbi.info.  Adjust
20444         calls to functions that now accept struct func_body_info.
20445         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20446         (struct func_body_info): Likewise.
20447         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20448         remove static.  Adjust callers.
20449         (ipa_load_from_parm_agg): Remove.
20450         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20451         (func_body_info): Likewise.
20452         (ipa_load_from_parm_agg): Adjust prototype.
20454 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20456         * gensupport.c (rtx_handle_directive): Adjust.
20457         * read-rtl.c (apply_iterators): Take vector to add rtxs to
20458         instead of expr list rtx.
20459         (add_define_attr_for_define_subst): Likewise.
20460         (add_define_subst_attr): Likewise.
20461         (read_subst_mapping): Likewise.
20462         (read_rtx): Likewise.
20463         * rtl.h (read_rtx): Adjust.
20465 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20467         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20469 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20471         PR target/58066
20472         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20473         (*tls_local_dynamic_base_64_<mode>): Ditto.
20474         (*tls_local_dynamic_base_64_largepic): Ditto.
20475         (tls_global_dynamic_64_<mode>): Update expander pattern.
20476         (tls_local_dynamic_base_64_<mode>): Ditto.
20478 2015-07-15  Richard Biener  <rguenther@suse.de>
20480         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20481         and bool_var == 1 -> bool_var simplifications ...
20482         * match.pd: ... to patterns here.  Factor out negate_expr_p
20483         cases from the A - B -> A + (-B) patterns as negate_expr_p
20484         predicate and add a -(A + B) -> (-B) - A pattern.
20486 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20488         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20490 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
20491             Robert Suchanek  <robert.suchanek@imgtec.com>
20493         * config/mips/mips.c (mips_int_mask): New enum.
20494         (mips_shadow_set): Likewise.
20495         (int_mask): New variable.
20496         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20497         (machine_function): Add int_mask and use_shadow_register_set.
20498         (mips_attribute_table): Add attribute handlers for interrupt and
20499         use_shadow_register_set.
20500         (mips_interrupt_mask): New static function.
20501         (mips_handle_interrupt_attr): Likewise.
20502         (mips_handle_use_shadow_register_set_attr): Likewise.
20503         (mips_use_shadow_register_set): Change return type to enum
20504         mips_shadow_set.  Add argument handling for use_shadow_register_set
20505         attribute.
20506         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20507         compare with mips_shadow_set enum.
20508         (mips_compute_frame_info): Add interrupt mask and
20509         use_shadow_register_set to per-function information structure.
20510         Add a stack slot for EPC unconditionally.
20511         (mips_expand_prologue): Compare use_shadow_register_set value
20512         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
20513         masked interrupt register but in EIC mode use K0 and save Cause in K0.
20514         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
20515         copying the stack pointer from the shadow register set.
20516         * config/mips/mips.h (SR_IM0): New define.
20517         * config/mips/mips.md (mips_rdpgpr): Rename to...
20518         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
20519         * doc/extend.texi (Declaring Attributes of Functions): Document
20520         optional arguments for interrupt and use_shadow_register_set
20521         attributes.
20523 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
20525         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20526         interrupt attribute.
20527         (mips_expand_prologue): Disable the floating point unit in an ISR.
20528         * config/mips/mips.h (SR_COP1): New define.
20530 2015-07-15  Richard Biener  <rguenther@suse.de>
20532         * genmatch.c (parser::peek, parser::peek_ident): Add argument
20533         to tell how many tokens to peek ahead (default 1).
20534         (parser::eat_token, parser::eat_ident): Return token consumed.
20535         (parser::parse_result): Parse new switch statement.
20536         * match.pd: Use case statements where appropriate.
20538 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20540         PR rtl-optimization/58066
20541         * calls.c (expand_call): Precompute register parameters before stack
20542         alignment is performed.
20544 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
20546         PR rtl-optimization/66838
20547         * postreload.c (reload_cse_move2add): Also process
20548         CALL_INSN_FUNCTION_USAGE when resetting information of
20549         call-clobbered registers.
20551 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20552             Cesar Philippidis  <cesar@codesourcery.com>
20553             Chung-Lin Tang  <cltang@codesourcery.com>
20555         * config/nios2/constraints.md (U, v): New constraints.
20556         * config/nios2/predicates.md (rdprs_dcache_operand): New.
20557         (ldstex_memory_operand): New.
20558         * config/nios2/sync.md: New file.
20559         * config/nios2/nios2.md (unspecv): Add new builtin function
20560         UNSPECV codes.
20561         (rdprs, flushd, flushda, wrpie, eni): New patterns.
20562         (top-level): Include sync.md.
20563         * config/nios2/nios2.c (N2_FTYPES): Add function types for
20564         new builtins.
20565         (N2_BUILTINS): Add arch field setting, add new builtins.
20566         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20567         for arch field.
20568         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20569         Also handle ldex/stex/ldsex/stsex builtins.
20570         (nios2_expand_rdprs_builtin): New function.
20571         (nios2_expand_cache_builtin): New function.
20572         (nios2_expand_wrpie_builtin): New function.
20573         (nios2_expand_eni_builtin): New function.
20574         (nios2_expand_builtin): Add arch field handling and new builtin
20575         cases.
20576         * doc/extend.texi (Altera Nios II Built-in Functions): Document
20577         new builtins.
20578         * doc/md.texi (Machine Constraints): Document U and v constraints.
20580 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20581             Cesar Philippidis  <cesar@codesourcery.com>
20582             Chung-Lin Tang  <cltang@codesourcery.com>
20584         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20585         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20586         callee_save_reg_size and uses_anonymous_args fields.
20587         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20588         (nios2_create_cfa_notes): New function.
20589         (nios2_adjust_stack): New function for adjusting stack.
20590         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20591         Use nios2_adjust_stack.
20592         (nios2_expand_epilogue): Likewise.
20593         (nios2_expand_return): New function.
20594         (nios2_can_use_return_insn): Update for CDX pop.n usage.
20595         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20596         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20597         * config/nios2/nios2.md (return): Use nios2_expand_return.
20599 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20600             Cesar Philippidis  <cesar@codesourcery.com>
20601             Chung-Lin Tang  <cltang@codesourcery.com>
20603         * config/nios2/predicates.md (pop_operation): New.
20604         (ldwm_operation, stwm_operation): New.
20605         (nios2_hard_register_operand): New.
20606         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20607         (ldstwm_operation_p): Declare.
20608         (gen_ldstwm_peep): Declare.
20609         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20610         (base_reg_adjustment_p): New.
20611         (pop_operation_p): New.
20612         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20613         (nios2_ldstwm_regset_p): New.
20614         (ldstwm_operation_p): New.
20615         (gen_ldst): New.
20616         (nios2_ldst_parallel): New.
20617         (struct ldswm_operand): Declare.
20618         (compare_ldstwm_operands): New.
20619         (can_use_cdx_ldstw): New.
20620         (gen_ldstwm_peep): New.
20621         * config/nios2/nios2-ldstwm.sml: New.
20622         * config/nios2/nios2.md: Include ldstwm.md.
20623         * config/nios2/ldstwm.md: Generated.
20625 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20626             Cesar Philippidis  <cesar@codesourcery.com>
20627             Chung-Lin Tang  <cltang@codesourcery.com>
20629         * config/nios2/nios2.h (LABEL_ALIGN): Define.
20630         (REG_ALLOC_ORDER): Define.
20631         (ADJUST_REG_ALLOC_ORDER): Define.
20632         (HONOR_REG_ALLOC_ORDER): Define.
20633         (CDX_REG_P): Define.
20634         (ANDCLEAR_INT): Define.
20635         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20636         (nios2_label_align): Declare.
20637         (nios2_cdx_narrow_form_p): Declare.
20638         (nios2_adjust_reg_alloc_order): Declare.
20639         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20640         operation.
20641         (nios2_large_unspec_reloc_p): New function, split from...
20642         (nios2_legitimate_pic_operand_p): ...here.
20643         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20644         (nios2_print_operand_punct_valid_p): New.
20645         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
20646         (split_mem_address): New.
20647         (split_alu_insn): New.
20648         (cdxreg): New.
20649         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20650         (enum nios2_add_insn_kind): New.
20651         (nios2_add_insn_names, nios2_add_insn_narrow): New.
20652         (nios2_add_insn_classify): New.
20653         (nios2_add_insn_asm): New.
20654         (nios2_cdx_narrow_form_p): New.
20655         (label_align, min_labelno, max_labelno): New.
20656         (nios2_reorg): New.
20657         (nios2_label_align): New.
20658         (nios2_adjust_reg_alloc_order): New.
20659         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20660         (TARGET_MACHINE_DEPENDENT_REORG): Define.
20661         * config/nios2/constraints.md (P): New constraint.
20662         * config/nios2/predicates.md (const_and_operand): New.
20663         (and_operand): New.
20664         (stack_memory_operand): New.
20665         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20666         (length): Update to use nios2_cdx_narrow_form_p().
20667         (type): Add new insn type values.
20668         (control, alu, st, ld, shift): Update insn reservations with
20669         new insn type values.
20670         (*high, *lo_sum): Define new insn patterns for constant generation.
20671         (movqi_internal, movhi_internal, movsi_internal): Reduce
20672         alternatives, update asm template to handle CDX variants, update
20673         type attributes.
20674         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20675         template, update type attributes.
20676         (extendhisi2, extendqi<mode>2): Likewise.
20677         (addsi3): Change to use function for asm string.
20678         (subsi3): Add CDX notation to asm template, update type attributes.
20679         (negsi3, one_cmplsi3): Likewise.
20680         (andsi3): New pattern, specialized from logical patterns.
20681         (<code>si3): Remove and case, combine alternatives, update asm
20682         template.
20683         (<shift_op>si3): Add CDX notation, update type attributes.
20684         (rotrsi3): Update type attribute.
20685         (*merge, extzv, insv): New insn patterns.
20686         (return): Change to define_expand.
20687         (simple_return): Add CDX notation, update type attributes.
20688         (indirect_jump): Add CDX notation.
20689         (jump): Update asm cases, update length attribute expression.
20690         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20691         (nios2_cbranch): Update asm cases and length attribute expression
20692         to handle CDX variants.
20693         (nios2_cmp<code>): Update asm template.
20694         (nop): Add CDX notation, update type attributes.
20695         (trap): Add CDX notation.
20696         (ctrapsi4): Update asm cases and length attribute expression to
20697         handle CDX variant.
20698         * doc/md.texi (Machine Constraints): Document P constraint.
20700 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20701             Cesar Philippidis  <cesar@codesourcery.com>
20702             Chung-Lin Tang  <cltang@codesourcery.com>
20704         * config/nios2/nios2.h (SMALL_INT12): New macro.
20705         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20706         (nios2_valid_addr_expr_p): Use it.
20707         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20708         with implicit "io" instructions on R2.
20709         * config/nios2/constraints.md (w): New constraint.
20710         * config/nios2/predicates.md (ldstio_memory_operand): New.
20711         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20712         operand predicate and constraint.
20713         (ld<bh>io_signed, st<bhw>io>): Likewise.
20714         * doc/md.texi (Machine Constraints): Document w constraint.
20716 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20717             Cesar Philippidis  <cesar@codesourcery.com>
20718             Chung-Lin Tang  <cltang@codesourcery.com>
20720         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20721         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20722         Nios II architecture level.
20723         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20724         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20725         (OPTION_DEFAULT_SPECS): Define.
20726         (ASM_SPEC): Add -march= spec strings.
20727         * config/nios2/nios2.c (nios2_option_override): Check for
20728         conflicts involving new options.
20729         * config.gcc (nios2*-*-*): Support --with-arch=.
20730         * doc/invoke.texi (Option Summary, Nios II Options): Document
20731         -march=, -mbmx, and -mcdx.
20733 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
20735         PR rtl-optimization/66626
20736         * lra-constraints.c (lra_constraints): Prevent equivalence
20737         substitution for static chain pseudo in functions with nonlocal
20738         goto.
20740 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
20742         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20743         (nios2_emit_stack_limit_check): Add size parameter.  Handle
20744         -fstack-limit-symbol as well as -fstack-limit-register.
20745         (nios2_expand_prologue): Emit only a single stack limit check,
20746         even if multiple stack adjustments are required.
20747         (nios2_option_override): Diagnose unsupported combination of -fpic
20748         and -stack-limit-symbol.
20750 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
20752         * Makefile.in (top_srcdir): New.
20753         * configure.ac: Use AM_ZLIB.
20754         * configure: Regeneated.
20756 2015-07-14  Matthias Klose  <doko@ubuntu.com>
20758         PR target/66840
20759         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20761 2015-07-14  Richard Biener  <rguenther@suse.de>
20763         PR tree-optimization/66863
20764         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20765         what we record for conversion use stmt lhs inequalities.
20767 2015-07-14  Richard Biener  <rguenther@suse.de>
20769         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20770         (decision_tree::gen_gimple): Likewise.
20772 2015-07-14  Tom de Vries  <tom@codesourcery.com>
20774         * gcc.c (greater_than_spec_func): Declare forward.
20775         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20776         -ftree-parallelize-loops={0,1}.
20777         (static_spec_functions): Add greater_than_spec_func function with name
20778         "gt".
20779         (greater_than_spec_func): New function.
20781 2015-07-14  Richard Biener  <rguenther@suse.de>
20783         * tree-ssa-dom.c (record_temporary_equivalences): Merge
20784         wideing type conversion case from record_equivalences_from_incoming_edge
20785         and use record_equality to record equivalences.
20786         (record_equivalences_from_incoming_edge): Call
20787         record_temporary_equivalences.
20789 2015-07-14  Richard Biener  <rguenther@suse.de>
20791         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20792         (struct if_expr): New.
20793         (struct with_expr): Likewise.
20794         (is_a_helper): Add helpers for if_expr and with_expr.
20795         (struct simplify): Add simplify_kind enum and member.  Remove
20796         ifexpr_vec member.
20797         (simplify::simplify): Adjust.
20798         (lower_commutative): Adjust.
20799         (lower_opt_convert): Likewise.
20800         (lower_cond): Likewise.
20801         (replace_id): Handle with_expr and if_expr.
20802         (lower_for): Adjust.
20803         (dt_simplify::gen_1): New recursive worker, split out from ...
20804         (dt_simplify::gen): ... here.  Deal with if and with expansion
20805         recursively.
20806         (capture_info::capture_info): Take context argument
20807         (capture_info::walk_result): Only analyze specific result.
20808         (parser::parse_result): New function.
20809         (parser::parse_simplify): Adjust to parse ifs with then end
20810         else case.
20811         (parser::parse_if): Simplify.
20812         (parser::parse_pattern): Pass down simplify kind.
20813         * match.pd: Convert if structure to new syntax.
20815 2015-07-13  Marek Polacek  <polacek@redhat.com>
20817         * rtl.c (rtx_equal_p_cb): Fix typo.
20819 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
20821         * omega.h: Don't include config.h, don't include params.h again if
20822         omega.h has already been included.
20823         * graphite-poly.h: Include sese.h.
20824         * graphite.c: Don't include sese.h, remove needless includes and
20825         minimize includes outside #ifdef HAVE_isl block.
20826         * graphite-blocking.c: Don't include sese.h, remove needless includes,
20827         and wrap entire file in #ifdef HAVE_isl
20828         * graphite-dependences.c: Likewise.
20829         * graphite-interchange.c: Likewise.
20830         * graphite-isl-ast-to-gimple.c: Likewise.
20831         * graphite-optimize-isl.c: Likewise.
20832         * graphite-poly.c: Likewise.
20833         * graphite-scop-detection.c: Likewise.
20834         * graphite-sese-to-poly.c: Likewise.
20836 2015-07-13  Tom de Vries  <tom@codesourcery.com>
20838         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20840 2015-07-13  Renlin Li  <renlin.li@arm.com>
20842         PR rtl/66556
20843         * simplify-rtx.c (simplify_const_relational_operation): Add
20844         side_effects_p checks.
20846 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
20848         * bitmap.h: Fix double word typos.
20849         * builtins.c: Same.
20850         * calls.c: Same.
20851         * cfgloopmanip.c: Same.
20852         * cgraph.c: Same.
20853         * cgraph.h: Same.
20854         * cgraphclones.c: Same.
20855         * combine.c: Same.
20856         * config/aarch64/aarch64-protos.h: Same.
20857         * config/aarch64/aarch64.c: Same.
20858         * config/aarch64/aarch64.md: Same.
20859         * config/arm/arm.md: Same.
20860         * config/arm/arm1020e.md: Same.
20861         * config/arm/arm1026ejs.md: Same.
20862         * config/arm/arm926ejs.md: Same.
20863         * config/arm/fa526.md: Same.
20864         * config/arm/fa606te.md: Same.
20865         * config/arm/fa626te.md: Same.
20866         * config/arm/fa726te.md: Same.
20867         * config/arm/fmp626.md: Same.
20868         * config/darwin.c: Same.
20869         * config/epiphany/epiphany.c: Same.
20870         * config/frv/frv.c: Same.
20871         * config/ft32/ft32.c: Same.
20872         * config/gnu-user.h: Same.
20873         * config/h8300/constraints.md: Same.
20874         * config/i386/i386.c: Same.
20875         * config/i386/i386.md: Same.
20876         * config/iq2000/iq2000.md: Same.
20877         * config/mips/mips.c: Same.
20878         * config/mmix/mmix.md: Same.
20879         * config/moxie/moxie.c: Same.
20880         * config/nds32/nds32.md: Same.
20881         * config/pa/pa.h: Same.
20882         * config/rs6000/aix.h: Same.
20883         * config/rs6000/rs6000.h: Same.
20884         * config/sh/sh.c: Same.
20885         * config/tilegx/tilegx.md: Same.
20886         * config/tilepro/gen-mul-tables.cc: Same.
20887         * cse.c: Same.
20888         * dbxout.c: Same.
20889         * doc/invoke.texi: Same.
20890         * dse.c: Same.
20891         * dwarf2out.c: Same.
20892         * final.c: Same.
20893         * gcc.c: Same.
20894         * genmatch.c: Same.
20895         * gimplify.c: Same.
20896         * hash-table.h: Same.
20897         * internal-fn.c: Same.
20898         * ipa-cp.c: Same.
20899         * ipa-devirt.c: Same.
20900         * ipa-icf.c: Same.
20901         * ipa-icf.h: Same.
20902         * ipa-profile.c: Same.
20903         * ipa-prop.c: Same.
20904         * ipa-prop.h: Same.
20905         * ira.c: Same.
20906         * omp-low.c: Same.
20907         * reg-stack.c: Same.
20908         * regcprop.c: Same.
20909         * reorg.c: Same.
20910         * rtl.h: Same.
20911         * sbitmap.h: Same.
20912         * tree-eh.c: Same.
20913         * tree-inline.c: Same.
20914         * tree-sra.c: Same.
20915         * tree-ssa-dom.c: Same.
20916         * tree-ssa-loop-ivopts.c: Same.
20917         * tree-ssa-structalias.c: Same.
20918         * tree-ssa-tail-merge.c: Same.
20919         * tree-ssa-ter.c: Same.
20920         * tree-ssa-threadupdate.c: Same.
20921         * tree-ssa-uninit.c: Same.
20922         * tree-ssanames.c: Same.
20923         * tree-vect-loop-manip.c: Same.
20924         * tree-vrp.c: Same.
20925         * tree.c: Same.
20926         * valtrack.c: Same.
20927         * vec.h: Same.
20929 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20931         PR middle-end/66726
20932         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
20933         tree_ssa_phiopt_worker): Call it.
20935 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20937         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
20938         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
20939         REG_EQUAL note.
20941 2015-07-11  Marek Polacek  <polacek@redhat.com>
20943         PR middle-end/66353
20944         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
20945         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
20946         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
20947         rather than bb_has_abnormal_call_pred.
20948         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
20949         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
20950         rather than bb_has_abnormal_call_pred.
20952 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
20954         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
20955         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
20956         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
20957         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
20958         v850_legitimate_address_p): New functions.
20959         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
20961 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
20963         PR target/66819
20964         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
20965         indirect sibcall with register arguments if register available
20966         for argument passing.
20967         (init_cumulative_args): Set cfun->machine->arg_reg_available
20968         to (cum->nregs > 0) or to true if function has a variable
20969         argument list.
20970         (function_arg_advance_32): Set cfun->machine->arg_reg_available
20971         to false if cum->nregs <= 0.
20972         * config/i386/i386.h (machine_function): Add arg_reg_available.
20974 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
20976         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
20977         and gen_higpart instead of gen_rtx_SUBREG.
20978         * config/i386/i386.md
20979         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
20980         (read-modify peephole2): Use gen_lowpart instead of
20981         gen_rtx_SUBREG for operand 5.
20983 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
20985         * config/tilepro/gen-mul-tables.cc (main): Change include list for
20986         generated files.
20987         * config/tilepro/mul-tables.c: Regenerate.
20988         * config/tilegx/mul-tables.c: Regenerate.
20990 2015-07-10  Richard Biener  <rguenther@suse.de>
20992         * fold-const.c (distribute_bit_expr): Remove.
20993         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
20994         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
20995         to A & (B | C) and simplifying A << C1 << C2 to ...
20996         * match.pd: ... patterns here.
20998 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
21000         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21001         Mark mem as READONLY and NOTRAP for PIC symbol.
21003 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21005         * gimple-predict.h: New file.
21006         (gimple_predict_predictor, gimple_predict_set_predictor,
21007         gimple_predict_outcome, gimple_predict_set_outcome,
21008         gimple_build_predict): Relocate here.
21009         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21010         gimple_predict_outcome, gimple_predict_set_outcome): Move to
21011         gimple-predict.h.
21012         * gimple.c (gimple_build_predict): Move to gimple-predict.h
21013         * basic-block.h: Don't include cfghooks.h.
21014         * backend.h: Don't include predict.h.
21015         * cfghooks.h: Include predict.h.
21016         * gimple-pretty-print.c: Include gimple-predict.h.
21017         * gimplify.c: Likwise.
21018         * predict.c: Adjust includes.
21019         * tree-inline.c: Likewise.
21020         * asan.c: Likewise.
21021         * auto-inc-dec.c: Likewise.
21022         * auto-profile.c: Likewise.
21023         * bb-reorder.c: Likewise.
21024         * builtins.c: Likewise.
21025         * caller-save.c: Likewise.
21026         * calls.c: Likewise.
21027         * cfganal.c: Likewise.
21028         * cfgbuild.c: Likewise.
21029         * cfg.c: Likewise.
21030         * cfgcleanup.c: Likewise.
21031         * cfgexpand.c: Likewise.
21032         * cfghooks.c: Likewise.
21033         * cfgloopanal.c: Likewise.
21034         * cfgloop.c: Likewise.
21035         * cfgloopmanip.c: Likewise.
21036         * cfgrtl.c: Likewise.
21037         * cgraph.c: Likewise.
21038         * cgraphunit.c: Likewise.
21039         * combine.c: Likewise.
21040         * cprop.c: Likewise.
21041         * cse.c: Likewise.
21042         * dce.c: Likewise.
21043         * dojump.c: Likewise.
21044         * dse.c: Likewise.
21045         * except.c: Likewise.
21046         * expmed.c: Likewise.
21047         * expr.c: Likewise.
21048         * final.c: Likewise.
21049         * fold-const.c: Likewise.
21050         * function.c: Likewise.
21051         * fwprop.c: Likewise.
21052         * gcc-plugin.h: Likewise.
21053         * gcse.c: Likewise.
21054         * genattrtab.c: Likewise.
21055         * genemit.c: Likewise.
21056         * gengtype.c: Likewise.
21057         * genopinit.c: Likewise.
21058         * genoutput.c: Likewise.
21059         * genpreds.c: Likewise.
21060         * genrecog.c: Likewise.
21061         * gimple-fold.c: Likewise.
21062         * gimple-iterator.c: Likewise.
21063         * gimple-ssa-isolate-paths.c: Likewise.
21064         * gimple-ssa-strength-reduction.c: Likewise.
21065         * graph.c: Likewise.
21066         * graphite-blocking.c: Likewise.
21067         * graphite.c: Likewise.
21068         * graphite-dependences.c: Likewise.
21069         * graphite-interchange.c: Likewise.
21070         * graphite-isl-ast-to-gimple.c: Likewise.
21071         * graphite-optimize-isl.c: Likewise.
21072         * graphite-poly.c: Likewise.
21073         * graphite-scop-detection.c: Likewise.
21074         * graphite-sese-to-poly.c: Likewise.
21075         * haifa-sched.c: Likewise.
21076         * ifcvt.c: Likewise.
21077         * internal-fn.c: Likewise.
21078         * ipa-cp.c: Likewise.
21079         * ipa-profile.c: Likewise.
21080         * ipa-split.c: Likewise.
21081         * ipa-utils.c: Likewise.
21082         * ira-build.c: Likewise.
21083         * ira-color.c: Likewise.
21084         * ira-conflicts.c: Likewise.
21085         * ira-costs.c: Likewise.
21086         * ira-emit.c: Likewise.
21087         * ira-lives.c: Likewise.
21088         * jump.c: Likewise.
21089         * loop-doloop.c: Likewise.
21090         * loop-init.c: Likewise.
21091         * loop-invariant.c: Likewise.
21092         * loop-unroll.c: Likewise.
21093         * lower-subreg.c: Likewise.
21094         * lra-assigns.c: Likewise.
21095         * lra.c: Likewise.
21096         * lra-coalesce.c: Likewise.
21097         * lra-constraints.c: Likewise.
21098         * lra-lives.c: Likewise.
21099         * lto-cgraph.c: Likewise.
21100         * lto-streamer-in.c: Likewise.
21101         * mode-switching.c: Likewise.
21102         * modulo-sched.c: Likewise.
21103         * omp-low.c: Likewise.
21104         * optabs.c: Likewise.
21105         * passes.c: Likewise.
21106         * postreload.c: Likewise.
21107         * postreload-gcse.c: Likewise.
21108         * profile.c: Likewise.
21109         * recog.c: Likewise.
21110         * regstat.c: Likewise.
21111         * reload1.c: Likewise.
21112         * reorg.c: Likewise.
21113         * rtlanal.c: Likewise.
21114         * sched-ebb.c: Likewise.
21115         * sel-sched-ir.c: Likewise.
21116         * sese.c: Likewise.
21117         * shrink-wrap.c: Likewise.
21118         * simplify-rtx.c: Likewise.
21119         * stmt.c: Likewise.
21120         * store-motion.c: Likewise.
21121         * tracer.c: Likewise.
21122         * trans-mem.c: Likewise.
21123         * tree-call-cdce.c: Likewise.
21124         * tree-cfg.c: Likewise.
21125         * tree-cfgcleanup.c: Likewise.
21126         * tree-chkp.c: Likewise.
21127         * tree-complex.c: Likewise.
21128         * tree-eh.c: Likewise.
21129         * tree-if-conv.c: Likewise.
21130         * tree-loop-distribution.c: Likewise.
21131         * tree-outof-ssa.c: Likewise.
21132         * tree-parloops.c: Likewise.
21133         * tree-predcom.c: Likewise.
21134         * tree-pretty-print.c: Likewise.
21135         * tree-profile.c: Likewise.
21136         * tree-sra.c: Likewise.
21137         * tree-ssa.c: Likewise.
21138         * tree-ssa-coalesce.c: Likewise.
21139         * tree-ssa-dce.c: Likewise.
21140         * tree-ssa-dom.c: Likewise.
21141         * tree-ssa-forwprop.c: Likewise.
21142         * tree-ssa-ifcombine.c: Likewise.
21143         * tree-ssa-loop-ch.c: Likewise.
21144         * tree-ssa-loop-im.c: Likewise.
21145         * tree-ssa-loop-ivcanon.c: Likewise.
21146         * tree-ssa-loop-ivopts.c: Likewise.
21147         * tree-ssa-loop-manip.c: Likewise.
21148         * tree-ssa-loop-prefetch.c: Likewise.
21149         * tree-ssa-loop-unswitch.c: Likewise.
21150         * tree-ssa-math-opts.c: Likewise.
21151         * tree-ssa-phiopt.c: Likewise.
21152         * tree-ssa-pre.c: Likewise.
21153         * tree-ssa-reassoc.c: Likewise.
21154         * tree-ssa-sink.c: Likewise.
21155         * tree-ssa-tail-merge.c: Likewise.
21156         * tree-ssa-threadedge.c: Likewise.
21157         * tree-ssa-threadupdate.c: Likewise.
21158         * tree-switch-conversion.c: Likewise.
21159         * tree-tailcall.c: Likewise.
21160         * tree-vect-data-refs.c: Likewise.
21161         * tree-vect-loop.c: Likewise.
21162         * tree-vect-loop-manip.c: Likewise.
21163         * tree-vectorizer.c: Likewise.
21164         * tree-vrp.c: Likewise.
21165         * ubsan.c: Likewise.
21166         * value-prof.c: Likewise.
21167         * varasm.c: Likewise.
21168         * var-tracking.c: Likewise.
21169         * config/aarch64/aarch64-builtins.c: Likewise.
21170         * config/aarch64/aarch64.c: Likewise.
21171         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21172         * config/alpha/alpha.c: Likewise.
21173         * config/arc/arc.c: Likewise.
21174         * config/arm/arm.c: Likewise.
21175         * config/avr/avr.c: Likewise.
21176         * config/bfin/bfin.c: Likewise.
21177         * config/c6x/c6x.c: Likewise.
21178         * config/cr16/cr16.c: Likewise.
21179         * config/cris/cris.c: Likewise.
21180         * config/darwin.c: Likewise.
21181         * config/darwin-c.c: Likewise.
21182         * config/epiphany/epiphany.c: Likewise.
21183         * config/epiphany/mode-switch-use.c: Likewise.
21184         * config/epiphany/resolve-sw-modes.c: Likewise.
21185         * config/fr30/fr30.c: Likewise.
21186         * config/frv/frv.c: Likewise.
21187         * config/ft32/ft32.c: Likewise.
21188         * config/h8300/h8300.c: Likewise.
21189         * config/i386/i386.c: Likewise.
21190         * config/i386/winnt.c: Likewise.
21191         * config/ia64/ia64.c: Likewise.
21192         * config/iq2000/iq2000.c: Likewise.
21193         * config/lm32/lm32.c: Likewise.
21194         * config/m32c/m32c.c: Likewise.
21195         * config/m32r/m32r.c: Likewise.
21196         * config/m68k/m68k.c: Likewise.
21197         * config/mcore/mcore.c: Likewise.
21198         * config/mep/mep.c: Likewise.
21199         * config/microblaze/microblaze.c: Likewise.
21200         * config/mips/mips.c: Likewise.
21201         * config/mmix/mmix.c: Likewise.
21202         * config/mn10300/mn10300.c: Likewise.
21203         * config/moxie/moxie.c: Likewise.
21204         * config/msp430/msp430.c: Likewise.
21205         * config/nds32/nds32.c: Likewise.
21206         * config/nds32/nds32-cost.c: Likewise.
21207         * config/nds32/nds32-fp-as-gp.c: Likewise.
21208         * config/nds32/nds32-intrinsic.c: Likewise.
21209         * config/nds32/nds32-isr.c: Likewise.
21210         * config/nds32/nds32-md-auxiliary.c: Likewise.
21211         * config/nds32/nds32-memory-manipulation.c: Likewise.
21212         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21213         * config/nds32/nds32-predicates.c: Likewise.
21214         * config/nios2/nios2.c: Likewise.
21215         * config/nvptx/nvptx.c: Likewise.
21216         * config/pa/pa.c: Likewise.
21217         * config/pdp11/pdp11.c: Likewise.
21218         * config/rl78/rl78.c: Likewise.
21219         * config/rs6000/rs6000.c: Likewise.
21220         * config/rx/rx.c: Likewise.
21221         * config/s390/s390.c: Likewise.
21222         * config/sh/sh.c: Likewise.
21223         * config/sh/sh-mem.cc: Likewise.
21224         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21225         * config/sh/sh_treg_combine.cc: Likewise.
21226         * config/sparc/sparc.c: Likewise.
21227         * config/spu/spu.c: Likewise.
21228         * config/stormy16/stormy16.c: Likewise.
21229         * config/tilegx/tilegx.c: Likewise.
21230         * config/tilepro/tilepro.c: Likewise.
21231         * config/v850/v850.c: Likewise.
21232         * config/vax/vax.c: Likewise.
21233         * config/visium/visium.c: Likewise.
21234         * config/xtensa/xtensa.c: Likewise.
21236 2015-07-10  Richard Biener  <rguenther@suse.de>
21238         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21239         (decision_tree::gen_gimple): Likewise.
21240         (decision_tree::gen_generic): Likewise.
21242 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21244         PR target/66813
21245         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21246         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21248 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
21250         PR middle-end/66820
21251         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21252         or ORT_TASK contexts.
21253         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21254         is non-zero.
21256 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21258         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21259         above function.
21261 2015-07-10  Tom de Vries  <tom@codesourcery.com>
21263         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21264         insert nit + 1 bound.
21266 2015-07-10  Richard Biener  <rguenther@suse.de>
21268         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21269         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21270         (if_convertible_loop_p_1): For this always compute bb predicates.
21271         (if_convertible_loop_p): And free them.
21273 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21275         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21276         in dump message.
21278 2015-07-10  Richard Biener  <rguenther@suse.de>
21280         PR tree-optimization/66823
21281         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21282         inverted predicate.
21284 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
21286         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21287         to handle mips[32|64]r3 and mips[32|64]r5.
21289 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
21291         PR middle-end/66633
21292         * tree-nested.c (get_static_chain): Or in a flag into
21293         info->static_chain_added.
21294         (get_frame_field, get_nonlocal_debug_decl): Likewise.
21295         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21296         2015-07-01 changes.
21297         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21298         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21299         add it to clauses.
21301         PR tree-optimization/66718
21302         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21303         field.
21304         (vect_simd_lane_linear): New function.
21305         (vectorizable_simd_clone_call): Support using linear arguments for
21306         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21308 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21310         PR target/66821
21311         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21313 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21315         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21316         Use machine mode, not enum machine_mode in the prototype.
21318         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21319         classify 128-bit floating point support.
21320         (FLOAT128_IBM_P): Likewise.
21321         (FLOAT128_VECTOR_P): Likewise.
21322         (FLOAT128_2REG_P): Likewise.
21323         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21324         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21325         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21326         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21328         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21329         tests against TFmode/TDmode, since those modes do not use VSX
21330         addresses.
21331         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21332         support.
21333         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21334         tests against TFmode, etc.
21335         (invalid_e500_subreg): Add tests against IFmode/KFmode.
21336         (reg_offset_addressing_ok_p): Likewise.
21337         (rs6000_legitimate_offset_address_p): Likewise.
21338         (rs6000_legitimize_address): Likewise.
21339         (rs6000_legitimize_reload_address): Likewise.
21340         (rs6000_legitimate_address_p): Clean up tests against TFmode and
21341         TDmode to use the new helper macros, which will include IFmode and
21342         KFmode.
21343         (rs6000_emit_move): Likewise.
21344         (rs6000_darwin64_record_arg_recurse): Likewise.
21345         (print_operand): Likewise.
21346         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21347         that uses a single vector register as a vector and not as a
21348         floating point register in terms of the calling sequence.
21349         (rs6000_discover_homogeneous_aggregate): Likewise.
21350         (rs6000_return_in_memory): Likewise.
21351         (init_cumulative_args): Likewise.
21352         (rs6000_function_arg_boundary): Likewise.
21353         (rs6000_function_arg_advance_1): Likewise.
21354         (rs6000_function_arg): Likewise.
21355         (rs6000_pass_by_reference): Likewise.
21356         (rs6000_gimplify_va_arg): Likewise.
21357         (rs6000_secondary_reload_memory): Use machine_mode not enum
21358         machine mode.
21359         (rs6000_split_multireg_move): Use new helper macros.
21360         (spe_func_has_64bit_regs_p): Likewise.
21361         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21362         (output_toc): Use new helper macros.
21363         (rs6000_register_move_cost): Likewise.
21364         (rs6000_function_value): Add IEEE 128-bit floating point calling
21365         sequence support.
21366         (rs6000_libcall_value): Likewise.
21367         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21368         floating point support.
21369         (rs6000_vector_mode_supported_p): Likewise.
21371 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
21373         PR rtl-optimization/66782
21374         * lra-int.h (struct lra_insn_recog_data): Add comment about
21375         clobbered hard regs for arg_hard_regs.
21376         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21377         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21378         Add condition for processing used hard regs.
21379         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21380         Process clobbered hard regs.
21382 2015-07-09  Michael Matz  <matz@suse.de>
21384         * genmatch.c (fprintf_indent): New function.
21385         (operand::gen_transform): Add indent parameter.
21386         (expr::gen_transform, c_expr::gen_transform,
21387         capture::gen_transform): Ditto and use fprintf_indent.
21388         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21389         (dt_operand::gen, dt_operand::gen_predicate,
21390         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21391         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21392         (decision_tree::gen_gimple): Adjust calls and indent generated
21393         code.
21394         (decision_tree::gen_generic): Ditto.
21395         (write_predicate): Ditto.
21397 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21399         PR target/66814
21400         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21401         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21402         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21403         {GENERAL,SSE,MMX}_REG_P where appropriate.
21405 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21407         * lto-streamer.h: Don't include target.h and alloc-pool.h.
21408         * builtins.c: Adjust includes.
21409         * gimple.c: Likewise.
21410         * ipa-icf.c: Likewise.
21411         * lto-opts.c: Likewise.
21412         * ipa-reference.c: Likewise.
21413         * lto-section-out.c: Likewise.
21414         * lto-streamer-in.c: Likewise.
21415         * lto-streamer-out.c: Likewise.
21416         * opts-global.c: Likewise.
21417         * symtab.c: Likewise.
21418         * tree-chkp.c: Likewise.
21419         * tree-ssa-live.c: Likewise.
21420         * tree-streamer-in.c: Likewise.
21421         * tree-streamer-out.c: Likewise.
21422         * config/darwin.c: Likewise.
21423         * config/i386/winnt.c: Likewise.
21425 2015-07-09  Richard Biener  <rguenther@suse.de>
21427         * genmatch.c (struct expr): Add force_single_use flag.
21428         (expr::expr): Add copy constructor.
21429         (capture_info::walk_match): Gather force_single_use captures.
21430         (expr::gen_transform): Use possibly NULLified sequence.
21431         (dt_simplify::gen): Apply single-use restrictions by NULLifying
21432         seq if any constrained expr is not single-use.
21433         (parser::parse_expr): Refactor to allow multiple flags.  Handle
21434         's' flag to force an expression have a single-use if the pattern
21435         simplifies to more than one statement.
21436         * match.pd: Convert most single_use conditionals to :s flags.
21438 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21440         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21441         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21442         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21444 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
21446         * flags.h: Don't include flag-types.h or options.h.
21447         * opts-common.c: Adjust includes.
21448         * opts-global.c: Likewise.
21449         * common/config/epiphany/epiphany-common.c: Likewise.
21451 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21453         PR target/66818
21454         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21455         for IA MCU.
21457 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21459         PR target/66817
21460         * config/i386/i386.c (ix86_return_in_memory): Return true
21461         if int_size_in_bytes returns negative for IA MCU.
21463 2015-07-09  Marek Polacek  <polacek@redhat.com>
21465         PR tree-optimization/66718
21466         * Makefile.in (OBJS): Add gimple-laddress.o.
21467         * passes.def: Schedule pass_laddress.
21468         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21469         * tree-pass.h (make_pass_laddress): Declare.
21470         * gimple-laddress.c: New file.
21472 2015-07-09  Richard Biener  <rguenther@suse.de>
21474         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21476 2015-07-09  Richard Biener  <rguenther@suse.de>
21478         PR tree-optimization/66807
21479         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21481 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
21483         * function.c (stack_protect_epilogue): Use if rather than switch for
21484         check targetm.have_stack_protect_test.
21486 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21488         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21489         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21490         * config/arc/arc.h: Likewise.
21491         * config/arm/arm.h: Likewise.
21492         * config/bfin/bfin.h: Likewise.
21493         * config/epiphany/epiphany.h: Likewise.
21494         * config/frv/frv.h: Likewise.
21495         * config/ia64/ia64.h: Likewise.
21496         * config/iq2000/iq2000.h: Likewise.
21497         * config/lm32/lm32.h: Likewise.
21498         * config/m32r/m32r.h: Likewise.
21499         * config/mcore/mcore.h: Likewise.
21500         * config/mep/mep.h: Likewise.
21501         * config/microblaze/microblaze.h: Likewise.
21502         * config/mips/mips.h: Likewise.
21503         * config/mmix/mmix.h: Likewise.
21504         * config/mn10300/mn10300.h: Likewise.
21505         * config/nds32/nds32.h: Likewise.
21506         * config/nios2/nios2.h: Likewise.
21507         * config/pa/pa.h: Likewise.
21508         * config/rl78/rl78.h: Likewise.
21509         * config/sh/sh.h: Likewise.
21510         * config/sparc/sparc.h: Likewise.
21511         * config/stormy16/stormy16.h: Likewise.
21512         * config/tilegx/tilegx.h: Likewise.
21513         * config/tilepro/tilepro.h: Likewise.
21514         * config/v850/v850.h: Likewise.
21515         * config/xtensa/xtensa.h: Likewise.
21516         * doc/tm.texi: Regenerate.
21517         * doc/tm.texi.in: Adjust.
21518         * combine.c (simplify_set): Likewise.
21519         (simplify_comparison): Likewise.
21520         * expr.c (store_constructor): Likewise.
21521         * internal-fn.c (expand_arith_overflow): Likewise.
21522         * reload.c (push_reload): Likewise.
21523         (find_reloads): Likewise.
21524         (find_reloads_subreg_address): Likewise.
21525         * reload1.c (eliminate_regs_1): Likewise.
21526         * rtlanal.c (nonzero_bits1): Likewise.
21527         (num_sign_bit_copies1): Likewise.
21528         * simplify-rtx.c (simplify_truncation): Likewise.
21530 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21532         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21533         of AUTO_INC_DEC with the preprocessor.
21534         * combine.c (combine_instructions): Likewise.
21535         (can_combine_p): Likewise.
21536         (try_combine): Likewise.
21537         * emit-rtl.c (try_split): Likewise.
21538         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21539         * lower-subreg.c (resolve_simple_move): Likewise.
21540         * lra.c (update_inc_notes): Likewise.
21541         * recog.c (asm_operand_ok): Likewise.
21542         (constrain_operands): Likewise.
21543         * regrename.c (scan_rtx_address): Likewise.
21544         * reload.c (update_auto_inc_notes): Likewise.
21545         (reg_inc_found_and_valid_p): Likewise.
21546         * reload1.c (reload): Likewise.
21547         (emit_input_reload_insns): Likewise.
21548         (delete_output_reload): Likewise.
21549         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21550         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21552 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21554         * rtl.h: Always define AUTO_INC_DEC.
21555         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21556         * combine.c (combine_instructions): Likewise.
21557         (can_combine_p): Likewise.
21558         (try_combine): Likewise.
21559         * emit-rtl.c (try_split): Likewise.
21560         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21561         * lower-subreg.c (resolve_simple_move): Likewise.
21562         * lra.c (update_inc_notes): Likewise.
21563         * recog.c (asm_operand_ok): Likewise.
21564         (constrain_operands): Likewise.
21565         * regrename.c (scan_rtx_address): Likewise.
21566         * reload.c (update_auto_inc_notes): Likewise.
21567         (find_equiv_reg): Likewise.
21568         * reload1.c (reload): Likewise.
21569         (reload_as_needed): Likewise.
21570         (choose_reload_regs): Likewise.
21571         (emit_input_reload_insns): Likewise.
21572         (delete_output_reload): Likewise.
21573         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21574         * valtrack.c (cleanup_auto_inc_dec): Likewise.
21576 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21578         * combine.c (can_combine_def_p): Don't check the value of
21579         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21580         (combinable_i3pat): Likewise.
21581         (mark_used_regs_combine): Likewise.
21582         * regrename.c (rename_chains): Likewise.
21583         * reload.c (find_reloads_address): Likewise.
21584         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21586 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21588         * combine.c (update_rsp_from_reg_equal): Don't check if
21589         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21590         (reg_nonzero_bits_for_combine): Likewise.
21591         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21592         1.
21593         * config/frv/frv.h: Likewise.
21594         * config/lm32/lm32.h: Likewise.
21595         * config/mep/mep.h: Likewise.
21596         * config/mips/mips.h: Likewise.
21597         * config/rs6000/rs6000.h: Likewise.
21598         * config/sh/sh.h: Likewise.
21599         * config/tilegx/tilegx.h (enum reg_class): Likewise.
21600         * config/tilepro/tilepro.h: Likewise.
21601         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21602         * doc/tm.texi: Regenerate.
21603         * doc/tm.texi.in: Adjust.
21604         * rtlanal.c (nonzero_bits1): Likewise.
21606 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21608         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21609         with the preprocessor.
21610         (combine_instructions): Likewise.
21611         (try_combine): Likewise.
21612         (subst): Likewise.
21613         (distribute_notes): Likewise.
21615 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21617         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21618         defined.
21619         (simplify_set): Likewise.
21620         * cse.c (cse_insn): Likewise.
21621         * fold-const.c (fold_single_bit_test): Likewise.
21622         (fold_unary_loc): Likewise.
21623         * postreload.c (reload_cse_simplify_set): Likewise.
21624         (reload_cse_simplify_operands): Likewise.
21626 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
21628         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21629         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21631 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21633         PR target/66746
21634         * config/i386/x86intrin.h: Include <adxintrin.h> even if
21635         __iamcu__ is defined.
21637 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21639         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21641 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
21643         PR target/66523
21644         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21645         names from preservation.
21647 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
21649         PR target/66806
21650         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21651         change for IAMCU.
21652         (function_arg_advance_32): Don't pass vectors in registers for
21653         IAMCU.
21654         (function_arg_32): Likewise.
21655         (ix86_return_in_memory): Don't return vectors in registers for
21656         IAMCU.
21658 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
21660         PR middle-end/66334
21661         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21662         hard regno live at the start of BB with incoming abnormal edges.
21663         * lra-lives.c (process_bb_lives): Ditto.
21665 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
21667         PR libgomp/65099
21668         * config/nvptx/mkoffload.c (main): Create an offload image only in
21669         64-bit configurations.
21671 2015-07-08  Martin Liska  <mliska@suse.cz>
21673         PR bootstrap/66744
21674         * tree-sra.c (create_access_1): Call ctor without brackets.
21675         (create_artificial_child_access): Likewise.
21677 2015-07-08  Richard Biener  <rguenther@suse.de>
21679         PR tree-optimization/66793
21680         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21681         Properly split the block after stmts ending it.
21683 2015-07-08  Richard Biener  <rguenther@suse.de>
21685         PR tree-optimization/66794
21686         * passes.c (execute_function_todo): Assert that post-dominators
21687         are not computed.
21688         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21689         Free post-dominators.
21691 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21693         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21694         with early exit.
21696 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
21698         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21699         more than or equal 8 and less than 32 when optimizing for size.
21701 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21703         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21704         COSTS_N_INSNS (1) and increment it appropriately throughout the
21705         function.
21707 2015-07-08  Richard Biener  <rguenther@suse.de>
21709         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21711 2015-07-08  Alan Modra  <amodra@gmail.com>
21713         * target.def (rtx_costs): Remove "code" param, add "mode".
21714         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21715         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
21716         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21717         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
21718         call.  Track mode when given in rtx.
21719         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
21720         (default_address_cost): Pass Pmode to rtx_cost.
21721         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21722         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21723         with NULL set.
21724         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
21725         (notreg_cost): Add mode param.  Use it.
21726         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
21727         mode param and pass to set_src_cost.  Update all calls.
21728         (hash_scan_set): Formatting.
21729         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21730         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21731         * hooks.h: Ditto.
21732         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21733         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21734         emit_store_flag): Update set_src_cost and rtx_cost calls.
21735         * auto-inc-dec.c (attempt_change): Likewise.
21736         * calls.c (precompute_register_parameters): Likewise.
21737         * combine.c (expand_compound_operation, make_extraction,
21738         force_to_mode, distribute_and_simplify_rtx): Likewise.
21739         * dojump.c (prefer_and_bit_test): Likewise.
21740         * dse.c (find_shift_sequence): Likewise.
21741         * expr.c (compress_float_constant): Likewise.
21742         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21743         * ifcvt.c (noce_try_sign_mask): Likewise.
21744         * loop-doloop.c (doloop_optimize): Likewise.
21745         * loop-invariant.c (create_new_invariant): Likewise.
21746         * lower-subreg.c (shift_cost, compute_costs): Likewise.
21747         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21748         lshift_cheap_p): Likewise.
21749         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21750         try_replace_in_use, reload_cse_move2add): Likewise.
21751         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21752         Likewise.
21753         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21754         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21755         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21756         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21757         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21758         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
21759         to rtx_cost calls.
21760         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21761         * config/arc/arc.c (arc_rtx_costs): Likewise.
21762         * config/arm/arm.c (arm_rtx_costs): Likewise.
21763         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21764         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21765         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21766         * config/cris/cris.c (cris_rtx_costs): Likewise.
21767         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21768         * config/frv/frv.c (frv_rtx_costs): Likewise.
21769         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21770         * config/i386/i386.c (ix86_rtx_costs): Likewise.
21771         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21772         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21773         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21774         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21775         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21776         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21777         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21778         * config/mep/mep.c (mep_rtx_cost): Likewise.
21779         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21780         * config/mips/mips.c (mips_rtx_costs): Likewise.
21781         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21782         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21783         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21784         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21785         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21786         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21787         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21788         * config/pa/pa.c (hppa_rtx_costs): Likewise.
21789         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21790         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21791         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21792         * config/s390/s390.c (s390_rtx_costs): Likewise.
21793         * config/sh/sh.c (sh_rtx_costs): Likewise.
21794         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21795         * config/spu/spu.c (spu_rtx_costs): Likewise.
21796         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21797         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21798         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21799         * config/v850/v850.c (v850_rtx_costs): Likewise.
21800         * config/vax/vax.c (vax_rtx_costs): Likewise.
21801         * config/visium/visium.c (visium_rtx_costs): Likewise.
21802         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21803         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21804         "code" param, and pass as outer_code to first rtx_cost call.  Pass
21805         mode to rtx_cost calls.
21806         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21807         calls.
21808         (aarch64_rtx_costs_wrapper): Update.
21809         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21810         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21811         rtx_cost calls.
21812         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21813         and rtx_cost calls.
21814         (avr_operand_rtx_cost): Similarly.
21815         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21816         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21817         * config/mips/mips.c (mips_stack_address_p): Comment typo.
21818         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21819         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21820         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21821         rtx_cost.
21822         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21823         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21824         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21825         * doc/tm.texi: Regenerate.
21827 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
21829         * tree-core.h: Include symtab.h.
21830         * rtl.h: Include hard-reg-set.h but not flags.h.
21831         (HARD_CONST): Remove condition compilation involving HARD_CONST since
21832         hard-reg-set.h is always included.
21833         * regs.h: Don't include hard-reg-set.h or rtl.h.
21834         * cfg.h: Include dominance.h.
21835         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21836         * backend.h: New.  Aggregate commonly used backend header files.
21837         * gimple-ssa.h: Don't include tree-hasher.h.
21838         * ssa.h: New.  Aggregate commonly used SSA header files.
21839         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21840         * sel-sched-ir.h: Flatten includes.
21841         * lra-int.h: Flatten completely.
21842         * sel-sched-dump.h: Flatten includes.
21843         * ira-int.h: Flatten includes.
21844         * gimple-streamer.h: Remove all includes.
21845         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
21846         * resource.h: Flatten hard-reg-set.h and df.h.
21847         * sched-int.h: Flatten insn-arrt.h and df.h.
21848         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
21849         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
21850         * genattrtab.c (write_header): Adjust generated includes.
21851         * genautomata.c (main): Likewise.
21852         * genconditions.c (write-header): Likewise.
21853         * genemit.c (main): Likewise.
21854         * gengtype.c (open_base_files): Likewise.
21855         * genopinit.c (main): Likewise.
21856         * genoutput.c (output_prologue): Likewise.
21857         * genpeep.c (main): Likewise.
21858         * genpreds.c (write_insn_preds_c): Likewise.
21859         * genrecog.c (write_header): Likewise.
21860         * alias.c: Adjust includes.
21861         * asan.c: Likewise.
21862         * attribs.c: Likewise.
21863         * auto-inc-dec.c: Likewise.
21864         * auto-profile.c: Likewise.
21865         * bb-reorder.c: Likewise.
21866         * bt-load.c: Likewise.
21867         * builtins.c: Likewise.
21868         * caller-save.c: Likewise.
21869         * calls.c: Likewise.
21870         * ccmp.c: Likewise.
21871         * cfg.c: Likewise.
21872         * cfganal.c: Likewise.
21873         * cfgbuild.c: Likewise.
21874         * cfgcleanup.c: Likewise.
21875         * cfgexpand.c: Likewise.
21876         * cfghooks.c: Likewise.
21877         * cfgloop.c: Likewise.
21878         * cfgloopanal.c: Likewise.
21879         * cfgloopmanip.c: Likewise.
21880         * cfgrtl.c: Likewise.
21881         * cgraph.c: Likewise.
21882         * cgraphbuild.c: Likewise.
21883         * cgraphclones.c: Likewise.
21884         * cgraphunit.c: Likewise.
21885         * cilk-common.c: Likewise.
21886         * combine-stack-adj.c: Likewise.
21887         * combine.c: Likewise.
21888         * compare-elim.c: Likewise.
21889         * convert.c: Likewise.
21890         * coverage.c: Likewise.
21891         * cppbuiltin.c: Likewise.
21892         * cprop.c: Likewise.
21893         * cse.c: Likewise.
21894         * cselib.c: Likewise.
21895         * data-streamer-in.c: Likewise.
21896         * data-streamer-out.c: Likewise.
21897         * data-streamer.c: Likewise.
21898         * dbxout.c: Likewise.
21899         * dce.c: Likewise.
21900         * ddg.c: Likewise.
21901         * debug.c: Likewise.
21902         * df-core.c: Likewise.
21903         * df-problems.c: Likewise.
21904         * df-scan.c: Likewise.
21905         * dfp.c: Likewise.
21906         * dojump.c: Likewise.
21907         * dominance.c: Likewise.
21908         * domwalk.c: Likewise.
21909         * double-int.c: Likewise.
21910         * dse.c: Likewise.
21911         * dumpfile.c: Likewise.
21912         * dwarf2asm.c: Likewise.
21913         * dwarf2cfi.c: Likewise.
21914         * dwarf2out.c: Likewise.
21915         * emit-rtl.c: Likewise.
21916         * et-forest.c: Likewise.
21917         * except.c: Likewise.
21918         * explow.c: Likewise.
21919         * expmed.c: Likewise.
21920         * expr.c: Likewise.
21921         * final.c: Likewise.
21922         * fixed-value.c: Likewise.
21923         * fold-const.c: Likewise.
21924         * function.c: Likewise.
21925         * fwprop.c: Likewise.
21926         * gcc-plugin.h: Likewise.
21927         * gcse-common.c: Likewise.
21928         * gcse.c: Likewise.
21929         * generic-match-head.c: Likewise.
21930         * ggc-page.c: Likewise.
21931         * gimple-builder.c: Likewise.
21932         * gimple-expr.c: Likewise.
21933         * gimple-fold.c: Likewise.
21934         * gimple-iterator.c: Likewise.
21935         * gimple-low.c: Likewise.
21936         * gimple-match-head.c: Likewise.
21937         * gimple-pretty-print.c: Likewise.
21938         * gimple-ssa-isolate-paths.c: Likewise.
21939         * gimple-ssa-strength-reduction.c: Likewise.
21940         * gimple-streamer-in.c: Likewise.
21941         * gimple-streamer-out.c: Likewise.
21942         * gimple-walk.c: Likewise.
21943         * gimple.c: Likewise.
21944         * gimplify-me.c: Likewise.
21945         * gimplify.c: Likewise.
21946         * godump.c: Likewise.
21947         * graph.c: Likewise.
21948         * graphite-blocking.c: Likewise.
21949         * graphite-dependences.c: Likewise.
21950         * graphite-interchange.c: Likewise.
21951         * graphite-isl-ast-to-gimple.c: Likewise.
21952         * graphite-optimize-isl.c: Likewise.
21953         * graphite-poly.c: Likewise.
21954         * graphite-scop-detection.c: Likewise.
21955         * graphite-sese-to-poly.c: Likewise.
21956         * graphite.c: Likewise.
21957         * haifa-sched.c: Likewise.
21958         * hw-doloop.c: Likewise.
21959         * ifcvt.c: Likewise.
21960         * init-regs.c: Likewise.
21961         * internal-fn.c: Likewise.
21962         * ipa-chkp.c: Likewise.
21963         * ipa-comdats.c: Likewise.
21964         * ipa-cp.c: Likewise.
21965         * ipa-devirt.c: Likewise.
21966         * ipa-icf-gimple.c: Likewise.
21967         * ipa-icf.c: Likewise.
21968         * ipa-inline-analysis.c: Likewise.
21969         * ipa-inline-transform.c: Likewise.
21970         * ipa-inline.c: Likewise.
21971         * ipa-polymorphic-call.c: Likewise.
21972         * ipa-profile.c: Likewise.
21973         * ipa-prop.c: Likewise.
21974         * ipa-pure-const.c: Likewise.
21975         * ipa-ref.c: Likewise.
21976         * ipa-reference.c: Likewise.
21977         * ipa-split.c: Likewise.
21978         * ipa-utils.c: Likewise.
21979         * ipa-visibility.c: Likewise.
21980         * ipa.c: Likewise.
21981         * ira-build.c: Likewise.
21982         * ira-color.c: Likewise.
21983         * ira-conflicts.c: Likewise.
21984         * ira-costs.c: Likewise.
21985         * ira-emit.c: Likewise.
21986         * ira-lives.c: Likewise.
21987         * ira.c: Likewise.
21988         * jump.c: Likewise.
21989         * langhooks.c: Likewise.
21990         * lcm.c: Likewise.
21991         * loop-doloop.c: Likewise.
21992         * loop-init.c: Likewise.
21993         * loop-invariant.c: Likewise.
21994         * loop-iv.c: Likewise.
21995         * loop-unroll.c: Likewise.
21996         * lower-subreg.c: Likewise.
21997         * lra-assigns.c: Likewise.
21998         * lra-coalesce.c: Likewise.
21999         * lra-constraints.c: Likewise.
22000         * lra-eliminations.c: Likewise.
22001         * lra-lives.c: Likewise.
22002         * lra-remat.c: Likewise.
22003         * lra-spills.c: Likewise.
22004         * lra.c: Likewise.
22005         * lto-cgraph.c: Likewise.
22006         * lto-compress.c: Likewise.
22007         * lto-opts.c: Likewise.
22008         * lto-section-in.c: Likewise.
22009         * lto-section-out.c: Likewise.
22010         * lto-streamer-in.c: Likewise.
22011         * lto-streamer-out.c: Likewise.
22012         * lto-streamer.c: Likewise.
22013         * mcf.c: Likewise.
22014         * mode-switching.c: Likewise.
22015         * modulo-sched.c: Likewise.
22016         * omega.c: Likewise.
22017         * omp-low.c: Likewise.
22018         * optabs.c: Likewise.
22019         * opts-global.c: Likewise.
22020         * passes.c: Likewise.
22021         * plugin.c: Likewise.
22022         * postreload-gcse.c: Likewise.
22023         * postreload.c: Likewise.
22024         * predict.c: Likewise.
22025         * print-rtl.c: Likewise.
22026         * print-tree.c: Likewise.
22027         * profile.c: Likewise.
22028         * real.c: Likewise.
22029         * realmpfr.c: Likewise.
22030         * recog.c: Likewise.
22031         * ree.c: Likewise.
22032         * reg-stack.c: Likewise.
22033         * regcprop.c: Likewise.
22034         * reginfo.c: Likewise.
22035         * regrename.c: Likewise.
22036         * regstat.c: Likewise.
22037         * reload.c: Likewise.
22038         * reload1.c: Likewise.
22039         * reorg.c: Likewise.
22040         * resource.c: Likewise.
22041         * rtl-chkp.c: Likewise.
22042         * rtlanal.c: Likewise.
22043         * rtlhooks.c: Likewise.
22044         * sanopt.c: Likewise.
22045         * sched-deps.c: Likewise.
22046         * sched-ebb.c: Likewise.
22047         * sched-rgn.c: Likewise.
22048         * sched-vis.c: Likewise.
22049         * sdbout.c: Likewise.
22050         * sel-sched-dump.c: Likewise.
22051         * sel-sched-ir.c: Likewise.
22052         * sel-sched.c: Likewise.
22053         * sese.c: Likewise.
22054         * shrink-wrap.c: Likewise.
22055         * simplify-rtx.c: Likewise.
22056         * stack-ptr-mod.c: Likewise.
22057         * stmt.c: Likewise.
22058         * stor-layout.c: Likewise.
22059         * store-motion.c: Likewise.
22060         * stringpool.c: Likewise.
22061         * symtab.c: Likewise.
22062         * target-globals.c: Likewise.
22063         * targhooks.c: Likewise.
22064         * toplev.c: Likewise.
22065         * tracer.c: Likewise.
22066         * trans-mem.c: Likewise.
22067         * tree-affine.c: Likewise.
22068         * tree-browser.c: Likewise.
22069         * tree-call-cdce.c: Likewise.
22070         * tree-cfg.c: Likewise.
22071         * tree-cfgcleanup.c: Likewise.
22072         * tree-chkp-opt.c: Likewise.
22073         * tree-chkp.c: Likewise.
22074         * tree-chrec.c: Likewise.
22075         * tree-complex.c: Likewise.
22076         * tree-data-ref.c: Likewise.
22077         * tree-dfa.c: Likewise.
22078         * tree-diagnostic.c: Likewise.
22079         * tree-dump.c: Likewise.
22080         * tree-eh.c: Likewise.
22081         * tree-emutls.c: Likewise.
22082         * tree-if-conv.c: Likewise.
22083         * tree-inline.c: Likewise.
22084         * tree-into-ssa.c: Likewise.
22085         * tree-iterator.c: Likewise.
22086         * tree-loop-distribution.c: Likewise.
22087         * tree-nested.c: Likewise.
22088         * tree-nrv.c: Likewise.
22089         * tree-object-size.c: Likewise.
22090         * tree-outof-ssa.c: Likewise.
22091         * tree-parloops.c: Likewise.
22092         * tree-phinodes.c: Likewise.
22093         * tree-predcom.c: Likewise.
22094         * tree-pretty-print.c: Likewise.
22095         * tree-profile.c: Likewise.
22096         * tree-scalar-evolution.c: Likewise.
22097         * tree-sra.c: Likewise.
22098         * tree-ssa-address.c: Likewise.
22099         * tree-ssa-alias.c: Likewise.
22100         * tree-ssa-ccp.c: Likewise.
22101         * tree-ssa-coalesce.c: Likewise.
22102         * tree-ssa-copy.c: Likewise.
22103         * tree-ssa-copyrename.c: Likewise.
22104         * tree-ssa-dce.c: Likewise.
22105         * tree-ssa-dom.c: Likewise.
22106         * tree-ssa-dse.c: Likewise.
22107         * tree-ssa-forwprop.c: Likewise.
22108         * tree-ssa-ifcombine.c: Likewise.
22109         * tree-ssa-live.c: Likewise.
22110         * tree-ssa-loop-ch.c: Likewise.
22111         * tree-ssa-loop-im.c: Likewise.
22112         * tree-ssa-loop-ivcanon.c: Likewise.
22113         * tree-ssa-loop-ivopts.c: Likewise.
22114         * tree-ssa-loop-manip.c: Likewise.
22115         * tree-ssa-loop-niter.c: Likewise.
22116         * tree-ssa-loop-prefetch.c: Likewise.
22117         * tree-ssa-loop-unswitch.c: Likewise.
22118         * tree-ssa-loop.c: Likewise.
22119         * tree-ssa-math-opts.c: Likewise.
22120         * tree-ssa-operands.c: Likewise.
22121         * tree-ssa-phiopt.c: Likewise.
22122         * tree-ssa-phiprop.c: Likewise.
22123         * tree-ssa-pre.c: Likewise.
22124         * tree-ssa-propagate.c: Likewise.
22125         * tree-ssa-reassoc.c: Likewise.
22126         * tree-ssa-sccvn.c: Likewise.
22127         * tree-ssa-scopedtables.c: Likewise.
22128         * tree-ssa-sink.c: Likewise.
22129         * tree-ssa-strlen.c: Likewise.
22130         * tree-ssa-structalias.c: Likewise.
22131         * tree-ssa-tail-merge.c: Likewise.
22132         * tree-ssa-ter.c: Likewise.
22133         * tree-ssa-threadedge.c: Likewise.
22134         * tree-ssa-threadupdate.c: Likewise.
22135         * tree-ssa-uncprop.c: Likewise.
22136         * tree-ssa-uninit.c: Likewise.
22137         * tree-ssa.c: Likewise.
22138         * tree-ssanames.c: Likewise.
22139         * tree-stdarg.c: Likewise.
22140         * tree-streamer-in.c: Likewise.
22141         * tree-streamer-out.c: Likewise.
22142         * tree-streamer.c: Likewise.
22143         * tree-switch-conversion.c: Likewise.
22144         * tree-tailcall.c: Likewise.
22145         * tree-vect-data-refs.c: Likewise.
22146         * tree-vect-generic.c: Likewise.
22147         * tree-vect-loop-manip.c: Likewise.
22148         * tree-vect-loop.c: Likewise.
22149         * tree-vect-patterns.c: Likewise.
22150         * tree-vect-slp.c: Likewise.
22151         * tree-vect-stmts.c: Likewise.
22152         * tree-vectorizer.c: Likewise.
22153         * tree-vrp.c: Likewise.
22154         * tree.c: Likewise.
22155         * tsan.c: Likewise.
22156         * ubsan.c: Likewise.
22157         * valtrack.c: Likewise.
22158         * value-prof.c: Likewise.
22159         * var-tracking.c: Likewise.
22160         * varasm.c: Likewise.
22161         * varpool.c: Likewise.
22162         * vmsdbgout.c: Likewise.
22163         * vtable-verify.c: Likewise.
22164         * web.c: Likewise.
22165         * wide-int.cc: Likewise.
22166         * xcoffout.c: Likewise.
22167         * config/aarch64/aarch64-builtins.c: Likewise.
22168         * config/aarch64/aarch64.c: Likewise.
22169         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22170         * config/alpha/alpha.c: Likewise.
22171         * config/arc/arc.c: Likewise.
22172         * config/arm/aarch-common.c: Likewise.
22173         * config/arm/arm-builtins.c: Likewise.
22174         * config/arm/arm-c.c: Likewise.
22175         * config/arm/arm.c: Likewise.
22176         * config/avr/avr-c.c: Likewise.
22177         * config/avr/avr-log.c: Likewise.
22178         * config/avr/avr.c: Likewise.
22179         * config/bfin/bfin.c: Likewise.
22180         * config/c6x/c6x.c: Likewise.
22181         * config/cr16/cr16.c: Likewise.
22182         * config/cris/cris.c: Likewise.
22183         * config/darwin-c.c: Likewise.
22184         * config/darwin.c: Likewise.
22185         * config/epiphany/epiphany.c: Likewise.
22186         * config/epiphany/mode-switch-use.c: Likewise.
22187         * config/epiphany/resolve-sw-modes.c: Likewise.
22188         * config/fr30/fr30.c: Likewise.
22189         * config/frv/frv.c: Likewise.
22190         * config/ft32/ft32.c: Likewise.
22191         * config/h8300/h8300.c: Likewise.
22192         * config/i386/i386-c.c: Likewise.
22193         * config/i386/i386.c: Likewise.
22194         * config/i386/msformat-c.c: Likewise.
22195         * config/i386/winnt-cxx.c: Likewise.
22196         * config/i386/winnt-stubs.c: Likewise.
22197         * config/i386/winnt.c: Likewise.
22198         * config/ia64/ia64-c.c: Likewise.
22199         * config/ia64/ia64.c: Likewise.
22200         * config/iq2000/iq2000.c: Likewise.
22201         * config/lm32/lm32.c: Likewise.
22202         * config/m32c/m32c-pragma.c: Likewise.
22203         * config/m32c/m32c.c: Likewise.
22204         * config/m32r/m32r.c: Likewise.
22205         * config/m68k/m68k.c: Likewise.
22206         * config/mcore/mcore.c: Likewise.
22207         * config/mep/mep-pragma.c: Likewise.
22208         * config/mep/mep.c: Likewise.
22209         * config/microblaze/microblaze-c.c: Likewise.
22210         * config/microblaze/microblaze.c: Likewise.
22211         * config/mips/mips.c: Likewise.
22212         * config/mmix/mmix.c: Likewise.
22213         * config/mn10300/mn10300.c: Likewise.
22214         * config/moxie/moxie.c: Likewise.
22215         * config/msp430/msp430-c.c: Likewise.
22216         * config/msp430/msp430.c: Likewise.
22217         * config/nds32/nds32-cost.c: Likewise.
22218         * config/nds32/nds32-fp-as-gp.c: Likewise.
22219         * config/nds32/nds32-intrinsic.c: Likewise.
22220         * config/nds32/nds32-isr.c: Likewise.
22221         * config/nds32/nds32-md-auxiliary.c: Likewise.
22222         * config/nds32/nds32-memory-manipulation.c: Likewise.
22223         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22224         * config/nds32/nds32-predicates.c: Likewise.
22225         * config/nds32/nds32.c: Likewise.
22226         * config/nios2/nios2.c: Likewise.
22227         * config/nvptx/nvptx.c: Likewise.
22228         * config/pa/pa.c: Likewise.
22229         * config/pdp11/pdp11.c: Likewise.
22230         * config/rl78/rl78-c.c: Likewise.
22231         * config/rl78/rl78.c: Likewise.
22232         * config/rs6000/rs6000-c.c: Likewise.
22233         * config/rs6000/rs6000.c: Likewise.
22234         * config/rx/rx.c: Likewise.
22235         * config/s390/s390-c.c: Likewise.
22236         * config/s390/s390.c: Likewise.
22237         * config/sh/sh-c.c: Likewise.
22238         * config/sh/sh-mem.cc: Likewise.
22239         * config/sh/sh.c: Likewise.
22240         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22241         * config/sh/sh_treg_combine.cc: Likewise.
22242         * config/sol2-c.c: Likewise.
22243         * config/sol2-cxx.c: Likewise.
22244         * config/sol2-stubs.c: Likewise.
22245         * config/sol2.c: Likewise.
22246         * config/sparc/sparc-c.c: Likewise.
22247         * config/sparc/sparc.c: Likewise.
22248         * config/spu/spu-c.c: Likewise.
22249         * config/spu/spu.c: Likewise.
22250         * config/stormy16/stormy16.c: Likewise.
22251         * config/tilegx/mul-tables.c: Likewise.
22252         * config/tilegx/tilegx-c.c: Likewise.
22253         * config/tilegx/tilegx.c: Likewise.
22254         * config/tilepro/mul-tables.c: Likewise.
22255         * config/tilepro/tilepro-c.c: Likewise.
22256         * config/tilepro/tilepro.c: Likewise.
22257         * config/v850/v850-c.c: Likewise.
22258         * config/v850/v850.c: Likewise.
22259         * config/vax/vax.c: Likewise.
22260         * config/visium/visium.c: Likewise.
22261         * config/vms/vms-c.c: Likewise.
22262         * config/vms/vms.c: Likewise.
22263         * config/vxworks.c: Likewise.
22264         * config/xtensa/xtensa.c: Likewise.
22266 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
22268         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22269         Remove operand constraints.  Change operand 2 predicate to
22270         nonmemory operand.  Limit const_int values to mode bitsize.  Only
22271         allow const_int values less than 32 when optimizing for size.
22272         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22273         Remove operand constraints.
22274         (*bt<mode>): Use SImode for const_int values less than 32.
22275         (regmode): Remove mode attribute.
22277 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
22279         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22280         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22281           moxie_legitimate_address_p): New functions.
22282           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22284 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22286         PR tree-optimization/66642
22287         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22288         header comment.  Rename split_edge variable to edge_at_split.  Split
22289         exit edge to create new loop exit bb.  Insert loop exit phis in new
22290         loop exit bb.
22292 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22294         * tree-cfg.c (get_virtual_phi): New function.
22295         * tree-cfg.h (get_virtual_phi): Declare.
22296         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22297         (rewrite_virtuals_into_loop_closed_ssa): New function.
22298         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22299         Declare.
22300         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22301         (transform_to_exit_first_loop_alt): Use
22302         rewrite_virtuals_into_loop_closed_ssa.
22304 2015-07-07  Richard Biener  <rguenther@suse.de>
22306         * fold-const.c (fold_binary_loc): Move
22307         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22308         * match.pd: ... here.
22309         Add (X * C1) % C2 -> 0 simplification pattern derived from
22310         extract_muldiv_1.
22312 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22314         PR target/66780
22315         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22316         change for target/65249.
22318 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
22320         * symtab.c (address_matters_1): Fix typo in comment above.
22321         (can_increase_alignment_p): Likewise.
22323 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22325         * function.c (free_after_compilation): Clear PROP_cfg in
22326         f->curr_properties.
22328 2015-07-07  Richard Biener  <rguenther@suse.de>
22330         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22331         add which use to.
22332         (add_control_edge): Remove excessive vertical space in dumping.
22333         (process_ssa_edge_worklist): Simulate at most one statement and
22334         return whether we did.  Do not simulate PHIs if they are in a
22335         BB not yet simulated.
22336         (ssa_propagate): Adjust to always drain the BB worklist whenever
22337         a BB is available there, likewise the VARYING edges list before
22338         the interesting edge list.
22340 2015-07-07  Christian Bruel  <christian.bruel@st.com>
22342         PR target/52144
22343         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22345 2015-07-07  Richard Biener  <rguenther@suse.de>
22347         PR middle-end/66739
22348         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22349         A - B.
22351 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22353         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
22354         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
22355         Copy operand 0 to a temporary if !ext_register_operand.  Remove
22356         ancient extract_bit_field workaround.
22357         (insv<mode>_1): Rename from mov<mode>_insv_1.
22358         (*insvqi): Rename from *movqi_insv_2.
22359         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22360         for renamed insvsi_1.
22361         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22363 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
22365         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
22366         call to nvptx_reorg_subreg.
22368 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
22370         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22371         * graphite-dependencies.c, graphite-interchange.c,
22372         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22373         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22374         Likewise.
22376 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
22378         * match.pd: Remove element_mode inside HONOR_*.
22379         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22380         (~X | X -> -1, ~X ^ X -> -1): Merge.
22381         * tree.c (build_each_one_cst): New function.
22382         * tree.h (build_each_one_cst): Likewise.
22384 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22386         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22387         PROCESSOR_IAMCU.
22389 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
22391         * config.gcc <mips*-*-*>: Add fused-madd.opt.
22392         * config/mips/mips.opt (mfused-madd): Remove.
22393         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22394         * config/mips/mips.h (TARGET_MIPS8000): New.
22395         (ISA_HAS_FP_MADD4_MSUB4): Remove.
22396         (ISA_HAS_FP_MADDF_MSUBF): Remove.
22397         (ISA_HAS_FP_MADD3_MSUB3): Remove.
22398         (ISA_HAS_NMADD4_NMSUB4): Remove.
22399         (ISA_HAS_NMADD3_NMSUB3): Remove.
22400         (ISA_HAS_FUSED_MADD4): New.
22401         (ISA_HAS_UNFUSED_MADD4): New.
22402         (ISA_HAS_FUSED_MADDF): New.
22403         (ISA_HAS_FUSED_MADD3): New.
22404         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22405         (*fma<mode>4_madd3) New.
22406         (*fma<mode>4_madd4) New.
22407         (*fma<mode>4_maddf) New.
22408         (fms<mode>4) New.
22409         (*fms<mode>4_msub3) New.
22410         (*fms<mode>4_msub4) New.
22411         (fnma<mode>4) New.
22412         (*fnma<mode>4_nmadd3) New.
22413         (*fnma<mode>4_nmadd4) New.
22414         (fnms<mode>4) New.
22415         (*fnms<mode>4_nmsub3) New.
22416         (*fnms<mode>4_nmsub4) New.
22417         (*madd4<mode>) Modify to be unfused only.
22418         (*msub4<mode>) Modify to be unfused only.
22419         (*nmadd4<mode>) Modify to be unfused only.
22420         (*nmsub4<mode>) Modify to be unfused only.
22421         (*madd3<mode>) Remove.
22422         (*msub3<mode>) Remove.
22423         (*nmadd3<mode>) Remove.
22424         (*nmsub3<mode>) Remove.
22425         (*nmadd3<mode>_fastmath) Remove.
22426         (*nmsub3<mode>_fastmath) Remove.
22427         (*nmadd4<mode>_fastmath) Update condition.
22428         (*nmsub4<mode>_fastmath) Update condition.
22430 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22432         PR target/65956
22433         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22434         alignment attribute, exploring one level down for records and arrays.
22436 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
22438         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
22439         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
22440         Copy operand 1 to a temporary if !ext_register_operand.  Remove
22441         ancient extract_bit_field workaround.
22442         (*extv<mode>): Rename from *mov<mode>_extv_1.
22443         (*extvqi): Rename from *movqi_extv_1.
22444         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
22445         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
22446         to a temporary if !ext_register_operand.  Remove ancient
22447         extract_bit_field workaround.
22448         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22449         (*extzvqi): Rename from *movqi_extzv_2.
22450         (*testqi_ext_3): Remove modes from const_int_operand predicated
22451         operands.  Add "n" constraint.
22452         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22453         operand.  Add "J" constraint.
22454         (*btsq, *btrq, *btcq peephole2s): Remove mode from
22455         const_0_to_63 predicated operand.
22456         (regmode): New insn attribute.
22457         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
22458         to nonmemory_operand.  Use regmode insn attribute.
22459         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22460         (*jcc_bt<mode>_mask): Remove mode from operand 3.
22461         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22462         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22463         operands.  Use "N" constraint instead of "n".
22465 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
22467         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22469 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22471         PR target/66749
22472         * config/i386/i386.c (iamcu_cost): New.
22473         (m_IAMCU): Likewise.
22474         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22475         (processor_target_table): Add an entry for "iamcu".
22476         (processor_alias_table): Likewise.
22477         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22478         (ix86_adjust_cost): Likewise.
22479         (ia32_multipass_dfa_lookahead): Likewise.
22480         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22481         * config/i386/x86-tune.def: Updated for m_IAMCU.
22483 2015-07-06  Richard Biener  <rguenther@suse.de>
22485         PR tree-optimization/66772
22486         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22487         values are available in the PHI node BB when there are
22488         still unexecutable edges.
22490 2015-07-06  Richard Biener  <rguenther@suse.de>
22492         PR tree-optimization/66767
22493         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22494         Make sure to build the alignment test on a SSA name without
22495         final alignment info valid only if the alignment test
22496         evaluates to true.
22498 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
22500         PR target/66620
22501         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22502         loop start when inserting LSETUP.
22504 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
22506         PR target/53383
22507         * config/i386/i386.c (ix86_option_override_internal): Allow
22508         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22510 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22512         * read-md.c (decimal_string): Rename to ...
22513         (md_decimal_string): ... this.
22514         (handle_enum): Reflect this.
22516 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22518         PR target/66731
22519         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22521 2015-07-06  Richard Biener  <rguenther@suse.de>
22523         PR middle-end/66759
22524         * match.pd: Add missing constraint of y to REAL_CST in
22525         REAL_CST - x CMP y to y - CST CMP x simplification.
22527 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
22529         PR tree-optimization/66757
22530         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22532 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
22533             Sandra Loosemore <sandra@codesourcery.com>
22535         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22536         Delete extern declaration.
22537         (gprel_constant_p): Add extern declaration.
22538         * config/nios2/constraints.md ("S"): Use gprel_constant_p
22539         instead of nios2_symbol_ref_in_small_data_p.
22540         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22541         (nios2_symbol_ref_in_small_data_p): Make static.
22542         (gprel_constant_p): Make non-static.
22544 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
22546         * doc/fragments.texi (Target Fragment): Convert debian.org
22547         link to use https.
22548         * doc/install.texi (Configuration): Ditto.
22550 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
22552         PR tree-optimization/66718
22553         * tree-vect-stmts.c (vectorizable_call): Replace uses of
22554         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22556         PR tree-optimization/66718
22557         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22558         vectorizable_load, vectorizable_condition): Move vectype,
22559         nunits, ncopies computation after checking what kind of statement
22560         stmt is.
22562 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22564         * target-insns.def (extv, extzv, insv): New targetm instruction
22565         patterns.
22566         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22567         interface.
22568         * recog.c (simplify_while_replacing): Likewise.
22570 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22572         * target-insns.def (doloop_begin, doloop_end): New targetm
22573         instruction patterns.
22574         * loop-init.c: Include target.h.
22575         (pass_loop2::gate): Use the new targetm patterns instead of
22576         HAVE_*/gen_* interface.
22577         (pass_rtl_doloop::gate): Likewise.
22578         (pass_rtl_doloop::execute): Remove preprocessor condition.
22579         * hw-doloop.c: Build unconditionally.
22580         * loop-doloop.c: Likewise.
22581         (doloop_optimize): Use the new targetm patterns instead of
22582         HAVE_*/gen_* interface.
22583         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22584         * modulo-sched.c (doloop_register_get): Likewise.
22586 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22588         * target-insns.def (clear_cache): New targetm instruction pattern.
22589         * builtins.c (expand_builtin___clear_cache): Use it instead of
22590         HAVE_*/gen_* interface.
22592 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22594         * target-insns.def (allocate_stack, check_stack, probe_stack)
22595         (probe_stack_address, split_stack_prologue, split_stack_space_check):
22596         New targetm instruction patterns.
22597         * explow.c (allocate_dynamic_stack_space): Use them instead of
22598         HAVE_*/gen_* interface.
22599         (emit_stack_probe): Likewise.
22600         (probe_stack_range): Likewise.
22601         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22603 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22605         * target-insns.def (stack_protect_set, stack_protect_test): New
22606         targetm instruction patterns.
22607         * cfgexpand.c (stack_protect_prologue): Use them instead of
22608         HAVE_*/gen_* interface.
22609         * function.c (stack_protect_epilogue): Likewise.
22611 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22613         * expr.h (gen_move_insn_uncast): Delete.
22614         * expr.c (gen_move_insn_uncast): Delete.
22616 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22618         * target-insns.def (restore_stack_block, restore_stack_function)
22619         (restore_stack_nonlocal, save_stack_block, save_stack_function)
22620         (save_stack_nonlocal): New targetm instruction patterns.
22621         * builtins.c (expand_builtin_apply): Use them instead of
22622         HAVE_*/gen_* interface.
22623         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22625 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22627         * target-insns.def (trap): New targetm instruction pattern.
22628         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22629         interface.
22630         * explow.c (allocate_dynamic_stack_space): Likewise.
22631         * ifcvt.c (find_if_header): Likewise.
22633 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22635         * target-insns.def (prefetch): New targetm instruction pattern.
22636         * tree-ssa-loop-prefetch.c: Include targeth.
22637         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22638         of HAVE_*/gen_* interface.
22639         * builtins.c (expand_builtin_prefetch): Likewise.
22640         * toplev.c (process_options): Likewise.
22642 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22644         * target-insns.def (untyped_call, untyped_return): New targetm
22645         instruction patterns.
22646         * builtins.c (expand_builtin_apply): Use them instead of
22647         HAVE_*/gen_* interface.
22648         (result_vector): Define unconditionally.
22650 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22652         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22653         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22654         (nonlocal_goto_receiver): New targetm instruction patterns.
22655         * builtins.c (expand_builtin_setjmp_setup): Use them instead
22656         of HAVE_*/gen_* interface.
22657         (expand_builtin_setjmp_receiver): Likewise.
22658         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22659         * except.c (expand_dw2_landing_pad_for_region): Likewise.
22661 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
22663         * target.def: Add code_for_* hooks.
22664         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22665         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22666         * target-insns.def (casesi, tablejump): New targetm instruction
22667         patterns.
22668         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22669         (do_tablejump): Likewise.
22670         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22671         (expand_sjlj_dispatch_table): Likewise.
22672         * targhooks.c (default_case_values_threshold): Likewise.
22674 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
22676         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22677         Use rtx_insn * instead of rtx.
22678         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22679         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22680         (nios2_call_tls_get_addr): Likewise.
22681         (nios2_emit_expensive_div): Likewise.
22682         (nios2_emit_move_sequence): Change return type to bool.
22683         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22684         Change return type to bool.
22686 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22688         PR target/66747
22689         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22691 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
22693         PR target/66114
22694         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22695         of register_operand.  Remove constraint.
22697 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
22699         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22700         the first argument.
22702 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
22704         * attribs.c (decl_attributes): Guard inform with the return value
22705         of the preceding warning.
22707 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22709         * doc/invoke.texi (moverride): Move to correct section.
22711 2015-07-03  Richard Biener  <rguenther@suse.de>
22713         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22714         Copy from tree.c
22715         (dt_operand::gen_gimple_expr): After valueizing operands
22716         re-canonicalize operand order for commutative tree codes.
22718 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
22720         PR target/66746.
22721         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22722         is defined.
22723         (__crc32w): Likewise.
22724         (__crc32d): Likewise.
22725         (__rdpmc): Likewise.
22726         (__rdtscp): Likewise.
22727         (_rdpmc): Likewise.
22728         (_rdtscp): Likewise.
22729         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22730         is defined.
22732 2015-07-03  Richard Biener  <rguenther@suse.de>
22734         * fold-const.c (fold_mathfn_compare): Remove.
22735         (fold_inf_compare): Likewise.
22736         (fold_comparison): Move floating point comparison simplifications...
22737         * match.pd: ... to patterns here.  Introduce simple_comparisons
22738         operator list and use it for patterns formerly in fold_comparison.
22740 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22742         PR tree-optimization/66119
22743         * toplev.c (process_options): Don't set up default values for
22744         the sra_max_scalarization_size_{speed,size} parameters.
22745         * tree-sra (analyze_all_variable_accesses): If no values
22746         have been set for the sra_max_scalarization_size_{speed,size}
22747         parameters, call get_move_ratio to get target defaults.
22749 2015-07-03  Richard Biener  <rguenther@suse.de>
22751         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22752         * match.pd: ... here.
22754 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
22756         PR target/37072
22757         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22758         is not actually the default on FreeBSD.
22760 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22762         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22763         definition.
22764         (CMPGE_8HI): Likewise.
22765         (CMPGE_4SI): Likewise.
22766         (CMPGE_2DI): Likewise.
22767         (CMPGE_U16QI): Likewise.
22768         (CMPGE_U8HI): Likewise.
22769         (CMPGE_U4SI): Likewise.
22770         (CMPGE_U2DI): Likewise.
22771         (CMPLE_16QI): Likewise.
22772         (CMPLE_8HI): Likewise.
22773         (CMPLE_4SI): Likewise.
22774         (CMPLE_2DI): Likewise.
22775         (CMPLE_U16QI): Likewise.
22776         (CMPLE_U8HI): Likewise.
22777         (CMPLE_U4SI): Likewise.
22778         (CMPLE_U2DI): Likewise.
22779         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22780         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22781         ALTIVEC_BUILTIN_VEC_CMPLE.
22782         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22783         floating-point vector modes.
22784         (vector_nlt<mode>): New define_expand.
22785         (vector_nltu<mode>): Likewise.
22786         (vector_ngt<mode>): Likewise.
22787         (vector_ngtu<mode>): Likewise.
22789 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
22791         PR rtl-optimization/66706
22792         * combine.c (make_compound_operation): If an AND of SUBREG of
22793         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22795 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
22797         * tree-pass.h (make_pass_ch_vect): New.
22798         * passes.def: Add pass_ch_vect just before pass_if_conversion.
22800         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22801         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22802         make_pass_ch_vect): New.
22803         (pass_ch): Extend ch_base.
22805         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22806         (ch_base::copy_headers): ...here.
22808 2015-07-02  Richard Biener  <rguenther@suse.de>
22810         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22811         * fold-const.c (get_pointer_modulus_and_residue): Remove.
22812         (fold_binary_loc): Implement (T)ptr & CST in terms of
22813         get_pointer_alignment_1.
22814         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22815         Make sure to build the alignment test on a SSA name without
22816         final alignment info valid only after the prologue.
22818 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
22820         * config/cris/cris.md ("epilogue"): Remove condition.
22821         ("prologue"): Ditto.
22823 2015-07-02  Richard Biener  <rguenther@suse.de>
22825         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22826         parameter to record a condition that is false.
22827         (record_conditions): When recording an extra NE_EXPR that is
22828         true also record a EQ_EXPR that is false.
22830 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
22832         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22833         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22834         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
22835         (set_iv, find_interesting_uses_address, add_candidate_1): New
22836         argument to alloc_iv.
22837         (find_interesting_uses_op, find_interesting_uses_cond): Don't
22838         duplicate struct iv.
22839         (free_loop_data): Don't free struct iv explicitly.
22840         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22842 2015-07-01  DJ Delorie  <dj@redhat.com>
22844         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
22845         (LIB_SPEC): Add.
22846         (SUPPORTS_DISCRIMINATOR): Define.
22848 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22850         PR bootstrap/66685
22851         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
22852         there are no CALLs in the same pattern.
22854 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22856         PR rtl-optimization/61047
22857         * rtlanal.c (get_initial_register_offset): New function.
22858         (rtx_addr_can_trap_p_1): Check offsets of stack references.
22860 2015-07-01  Richard Biener  <rguenther@suse.de>
22862         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
22863         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
22864         ~X CMP C -> X CMP' ~C to ...
22865         * match.pd: ... patterns here.
22867 2015-07-01  Nick Clifton  <nickc@redhat.com>
22869         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
22870         a 16-bit value into a 20-bit memory slot.
22872 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22874         * doc/sourcebuild.texi (AArch64-specific attributes): Document
22875         "aarch64_tiny", "aarch64_small", "aarch64_large",
22876         "aarch64_little_endian", "aarch64_big_endian".
22878 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22880         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
22881         Document "aarch64_small_fpic".
22883 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
22885         * configure.ac: Add check for aarch64 assembler -fpic relocation
22886         modifier support.
22887         * configure: Regenerate.
22888         * config.in: Regenerate.
22889         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
22890         to -fPIC if not support of -fpic relocation modifier in assembler.
22892 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
22894         PR bootstrap/66685
22895         * rtl.c (classify_insn): Handle returns in PARALLELs.
22897 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
22899         PR middle-end/66633
22900         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
22901         to true if the function is nested and if not optimizing.
22902         (convert_local_omp_clauses): Initialize need_frame to true if the
22903         function contains nested functions and if not optimizing.
22905 2015-07-01  Richard Biener  <rguenther@suse.de>
22907         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
22908         (X & Y) ^ Y -> ~X & Y transforms to ...
22909         * match.pd: ... here.
22911 2015-07-01  Richard Biener <rguenther@suse.de>
22913         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
22914         of converts to avoid uninteresting noise from the conversion
22915         simplifying patterns.
22917 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
22919         * config/c6x/c6x.c (try_rename_operands): Do not depend on
22920         gcc_assert evaluating its argument for side-effect.
22922 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
22924         PR target/64833
22925         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
22926         flag_pic is set.
22928 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
22930         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
22931         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
22932         (hash_scc): Add this_ref_p and ref_p parameters and pass them
22933         to the inner DFS walk.
22935 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22937         * target-insns.def (jump): New targetm instruction pattern.
22938         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
22939         instead of gen_jump.
22940         (fix_up_crossing_landing_pad): Likewise.
22941         (add_labels_and_missing_jumps): Likewise.
22942         (fix_crossing_conditional_branches): Likewise.
22943         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22944         (force_nonfallthru_and_redirect): Likewise.
22945         * cse.c (cse_insn): Likewise.
22946         * expmed.c (expand_divmod): Likewise.
22947         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
22948         * haifa-sched.c (init_before_recovery): Likewise.
22949         (sched_create_recovery_edges): Likewise.
22950         * ifcvt.c (find_cond_trap): Likewise.
22951         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
22952         (expand_float, expand_fix): Likewise.
22953         * stmt.c (emit_jump): Likewise.
22955 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22957         * defaults.h (HAVE_load_multiple, gen_load_multiple)
22958         (HAVE_store_multiple, gen_store_multiple): Delete.
22959         * target-insns.def (load_multiple, store_multiple): New targetm
22960         instruction patterns.
22961         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
22962         of HAVE_*/gen_* interface.
22964 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22966         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
22967         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
22968         (gen_mem_signal_fence): Delete.
22969         * target-insns.def (mem_signal_fence, mem_thread_fence)
22970         (memory_barrier): New targetm instruction patterns.
22971         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
22972         interface.
22973         (expand_mem_signal_fence): Likewise.
22975 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
22977         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
22978         * target-insns.def (epilogue, prologue, sibcall_prologue): New
22979         targetm instruction patterns.
22980         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
22981         interface.
22982         * calls.c (expand_call): Likewise.
22983         * cfgrtl.c (cfg_layout_finalize): Likewise.
22984         * df-scan.c (df_get_entry_block_def_set): Likewise.
22985         (df_get_exit_block_use_set): Likewise.
22986         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
22987         * final.c (final_start_function): Likewise.
22988         * function.c (thread_prologue_and_epilogue_insns): Likewise.
22989         (reposition_prologue_and_epilogue_notes): Likewise.
22990         * reorg.c (find_end_label): Likewise.
22991         * toplev.c (process_options): Likewise.
22993 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
22995         * typed-splay-tree.h: New file.
22997 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
22999         PR debug/66691
23000         * lra-int.h (lra_substitute_pseudo): Add a parameter.
23001         (lra_substitute_pseudo_within_insn): Ditto.
23002         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
23003         of constant.
23004         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
23005         to lra_substitute_pseudo.
23006         * lra-lives.c (process_bb_lives): Add an argument to
23007         lra_substitute_pseudo_within_insn call.
23008         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23009         argument to lra_substitute_pseudo and
23010         lra_substitute_pseudo_within_insn calls.
23011         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23013 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23015         * configure: Regenerated.
23017 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23019         * config.gcc: Support i[34567]86-*-elfiamcu target.
23020         * config/i386/iamcu.h: New.
23021         * config/i386/i386.opt: Add -miamcu.
23022         * doc/invoke.texi: Document -miamcu.
23023         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
23024         off x87/MMX/SSE/AVX codegen for -miamcu.
23025         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23026         __iamcu/__iamcu__ for -miamcu.
23027         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23028         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23029         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23030         * config/i386/i386.c (ix86_option_override_internal): Ignore and
23031         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
23032         MCU by default.  Default long double to 64-bit for Intel MCU.
23033         Turn on -freg-struct-return for Intel MCU.  Issue an error when
23034         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23035         AVX is turned on.
23036         (function_arg_advance_32): Pass value whose size is no larger
23037         than 8 bytes in registers for Intel MCU.
23038         (function_arg_32): Likewise.
23039         (ix86_return_in_memory): Return value whose size is no larger
23040         than 8 bytes in registers for Intel MCU.
23041         (iamcu_alignment): New function.
23042         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23043         true.
23044         (ix86_local_alignment): Don't increase alignment for Intel MCU.
23045         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23046         true.
23048 2015-06-30  Marek Polacek  <polacek@redhat.com>
23050         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
23051         both operands of the resulting expression.
23053         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
23054         the final expression with the operand's type and then convert
23055         it to the type of the expression.
23057 2015-06-30  Richard Biener  <rguenther@suse.de>
23059         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23060         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23061         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23062         * match.pd: ... to patterns here.
23064 2015-06-30  Richard Biener  <rguenther@suse.de>
23066         PR tree-optimization/66704
23067         * tree-vect-data-refs.c (vect_setup_realignment): Use
23068         make_ssa_name for non-SSA name source.
23070 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
23072         PR middle-end/66702
23073         * omp-low.c (simd_clone_adjust): Handle addressable linear
23074         or uniform parameters or non-gimple type uniform parameters.
23076 2015-06-30  Richard Biener  <rguenther@suse.de>
23078         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23079         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23080         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23081         * match.pd: ... here.
23082         Add a few cases of A - B -> A + (-B) when B "easily" negates.
23083         Move (x & y) | x -> x and friends before
23084         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23086 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23088         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23089         -mfix-ut699 is not specified.
23090         (leon3_load): Rename into...
23091         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
23092         is specified.
23094 2015-06-30  Marek Polacek  <polacek@redhat.com>
23096         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23097         * match.pd: ... here.
23099 2015-06-30  Richard Biener  <rguenther@suse.de>
23101         * target-insns.def (canonicalize_funcptr_for_compare): Add.
23102         * fold-const.c (build_range_check): Replace uses of
23103         HAVE_canonicalize_funcptr_for_compare.
23104         (fold_widened_comparison): Likewise.
23105         (fold_sign_changed_comparison): Likewise.
23106         * dojump.c: Include "target.h".
23107         (do_compare_and_jump): Replace uses of
23108         HAVE_canonicalize_funcptr_for_compare and
23109         gen_canonicalize_funcptr_for_compare.
23110         * expr.c (do_store_flag): Likewise.
23112 2015-06-30  Tom de Vries  <tom@codesourcery.com>
23114         PR tree-optimization/66652
23115         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23116         max_loop_iterations to determine if nit + 1 overflows.
23118 2015-06-30  Richard Biener  <rguenther@suse.de>
23120         * tree-vrp.c (register_edge_assert_for_2): Also register
23121         asserts for dominating conversion results.
23123 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
23125         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23126         field in struct iv.
23128 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
23130         PR target/66509
23131         * configure.ac: Fix filds and fildq test for 64-bit.
23132         * configure: Regenerated.
23134 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
23136         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23137         (nvptx_reorg): Here.  Keep the non-subreg pieces.
23139 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
23141         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23142         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23144 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
23146         * config/i386/i386.md (*jcc_1): Use %! in asm template.
23147         Set attribute "length_nobnd" instead of "length".
23148         (*jcc_2): Ditto.
23149         (jump): Ditto.
23150         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23152 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
23154         * config/nios2/nios2.c (nios2_delegitimize_address): Make
23155         assert less restrictive.
23157 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23159         PR fortran/66605
23160         * cgraphunit.c (cgraph_node::finalize_function): Do not call
23161         do_warn_unused_parameter.
23162         * function.c (do_warn_unused_parameter): Move from here.
23163         * function.h (do_warn_unused_parameter): Do not declare.
23165 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23167         PR target/65697
23168         * gcc.target/arm/armv-sync-comp-swap.c: New.
23169         * gcc.target/arm/armv-sync-op-acquire.c: New.
23170         * gcc.target/arm/armv-sync-op-full.c: New.
23171         * gcc.target/arm/armv-sync-op-release.c: New.
23173 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23175         PR target/65697
23176         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23177         initial acquire barrier with final barrier.
23179 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23181         PR target/65697
23182         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23183         initial acquire barrier with final barrier.
23185 2015-06-29  Richard Henderson  <rth@redhat.com>
23187         * config/i386/constraints.md (Bf): New constraint.
23188         * config/i386/i386-c.c (ix86_target_macros): Define
23189         __GCC_ASM_FLAG_OUTPUTS__.
23190         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23191         as flags outputs.
23192         * doc/extend.texi (FlagOutputOperands): Document them.
23194 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
23196         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23197         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23198         unspec name.
23199         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23200         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23201         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23202         (aarch64_symbol_context): Ditto.
23203         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23204         and use new pattern name.
23205         (aarch64_expand_mov_immediate): Ditto.
23206         (aarch64_print_operand): Ditto.
23207         (aarch64_classify_tls_symbol): Ditto.
23209 2015-06-29  Marek Polacek  <polacek@redhat.com>
23210             Marc Glisse  <marc.glisse@inria.fr>
23212         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23213         * match.pd: ... pattern here.
23215 2015-06-29  Tom de Vries  <tom@codesourcery.com>
23217         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23218         function structure.
23220 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23222         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23223         feature description, split out the native option, add a link to
23224         the feature documentation, rearrange and slightly rewrite text.
23225         (Aarch64 options, -mcpu): Likewise.
23226         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
23227         +rdma implies Adv. SIMD.
23229 2015-06-29  Marek Polacek  <polacek@redhat.com>
23231         PR c/66322
23232         * function.c (stack_protect_epilogue): Remove a cast to int.
23233         * doc/invoke.texi: Update -Wswitch-bool description.
23235 2015-06-29  Richard Biener  <rguenther@suse.de>
23237         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23238         * fold-const.c (fold_binary_loc): Move &A - &B simplification
23239         via ptr_difference_const ...
23240         * match.pd: ... here.
23241         When matching (X ^ Y) == Y also match with swapped operands.
23243 2015-06-29  Richard Biener  <rguenther@suse.de>
23245         * lto-streamer.h (LTO_major_version): Bump to 5.
23247 2015-06-29  Richard Biener  <rguenther@suse.de>
23249         PR tree-optimization/66677
23250         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23251         STMT_VINFO_VEC_STMT clobbering less strict.
23253 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
23255         PR middle-end/64130
23256         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23257         division, compute max and min when value ranges for dividend and
23258         divisor are available.
23260 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
23261             Sandra Loosemore <sandra@codesourcery.com>
23263         * regrename.h (regrename_do_replace): Change to return bool.
23264         * regrename.c (rename_chains): Check return value of
23265         regname_do_replace.
23266         (regrename_do_replace): Re-validate the modified insns and
23267         return bool status.
23268         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23269         Update to match rename_chains changes.
23270         * config/c6x/c6x.c (try_rename_operands): Assert that
23271         regrename_do_replace returns true.
23273 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
23275         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23276         operand 2 here.  Use copy_addr_to_reg to copy non-index
23277         register operand 2 to a temporary.
23278         (<mode>_stx): Ditto for operand 1.
23279         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23280         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23281         (ix86_store_bounds): Ditto.
23283 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
23285         * print-tree.c (print_node) [TREE_VEC]: Print its length.
23287 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
23289         * gimple.c (gimple_call_set_fndecl): Remove.
23290         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23291         build1_loc directly instead of build_fold_addr_expr_loc.
23293 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23295         * hash-map.h (hash_map::traverse): Use the definition of the
23296         Key typedef rather than the typedef itself.
23298 2015-06-26  Martin Jambor  <mjambor@suse.cz>
23300         PR debug/66301
23301         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23302         NULL instead of calling dump_enabled_p.
23304 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23306         * config/aarch64/aarch64.opt: (override): New.
23307         * doc/invoke.texi (override): Document.
23308         * config/aarch64/aarch64.c (aarch64_flag_desc): New
23309         (aarch64_fusible_pairs): Likewise.
23310         (aarch64_tuning_flags): Likewise.
23311         (aarch64_tuning_override_function): Likewise.
23312         (aarch64_tuning_override_functions): Likewise.
23313         (aarch64_parse_one_option_token): Likewise.
23314         (aarch64_parse_boolean_options): Likewise.
23315         (aarch64_parse_fuse_string): Likewise.
23316         (aarch64_parse_tune_string): Likewise.
23317         (aarch64_parse_one_override_token): Likewise.
23318         (aarch64_parse_override_string): Likewise.
23319         (aarch64_override_options): Parse the -override string if it
23320         is present.
23322 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23324         * config/aarch64/aarch64-protos.h (tune_params): Remove
23325         const from members.
23326         (aarch64_tune_params): Remove const, change to no longer be
23327         a pointer.
23328         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23329         change to no longer be a pointer, initialize to generic_tunings.
23330         (aarch64_min_divisions_for_recip_mul): Change dereference of
23331         aarch64_tune_params to member access.
23332         (aarch64_reassociation_width): Likewise.
23333         (aarch64_rtx_mult_cost): Likewise.
23334         (aarch64_address_cost): Likewise.
23335         (aarch64_branch_cost): Likewise.
23336         (aarch64_rtx_costs): Likewise.
23337         (aarch64_register_move_cost): Likewise.
23338         (aarch64_memory_move_cost): Likewise.
23339         (aarch64_sched_issue_rate): Likewise.
23340         (aarch64_builtin_vectorization_cost): Likewise.
23341         (aarch64_override_options): Take a copy of the selected tuning
23342         struct in to aarch64_tune_params, rather than just setting
23343         a pointer, change dereferences of aarch64_tune_params to member
23344         accesses.
23345         (aarch64_override_options_after_change): Change dereferences of
23346         aarch64_tune_params to member access.
23347         (aarch64_macro_fusion_p): Likewise.
23348         (aarch_macro_fusion_pair_p): Likewise.
23349         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23351 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23353         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23354         (aarch64_tune_flags): Likewise.
23355         (AARCH64_TUNE_FMA_STEERING): Likewise.
23356         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23357         to AARCH64_FL_USE_FMA_STEERING_PASS.
23358         (cortex-a57.cortex-a53): Likewise.
23359         (cortex-a72): Use cortexa72_tunings.
23360         (cortex-a72.cortex-a53): Likewise.
23361         (exynos-m1): Likewise.
23362         * config/aarch64/aarch64-protos.h (tune_params): Add
23363         a field: extra_tuning_flags.
23364         * config/aarch64/aarch64-tuning-flags.def: New.
23365         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23366         (aarch64_extra_tuning_flags): Likewise.
23367         (aarch64_tune_params): Declare here.
23368         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23369         (cortexa53_tunings): Likewise.
23370         (cortexa57_tunings): Likewise.
23371         (thunderx_tunings): Likewise.
23372         (xgene1_tunings): Likewise.
23373         (cortexa72_tunings): New.
23374         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23375          (gate): Check against aarch64_tune_params.
23376         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23377         aarch64-protos.h.
23379 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23381         * config/aarch64/aarch64-fusion-pairs.def: New.
23382         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23383         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23384         aarch64_fusion_pairs.
23385         (AARCH64_FUSE_MOV_MOVK): Likewise.
23386         (AARCH64_FUSE_ADRP_ADD): Likewise.
23387         (AARCH64_FUSE_MOVK_MOVK): Likewise.
23388         (AARCH64_FUSE_ADRP_LDR): Likewise.
23389         (AARCH64_FUSE_CMP_BRANCH): Likewise.
23391 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23393         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23394         SYMBOL_SMALL_GOT_28K.
23395         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23396         relocation modifiers.
23397         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23398         (ldr_got_small_28k_<mode>): New.
23399         (ldr_got_small_28k_sidi): New.
23400         * config/aarch64/iterators.md (got_modifier): New mode iterator.
23401         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23402         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23403         SYMBOL_SMALL_GOT_28K.
23404         (aarch64_rtx_costs): Add costs for new instruction sequences.
23405         (initialize_aarch64_code_model): Initialize new model.
23406         (aarch64_classify_symbol): Recognize new model and new symbol classification.
23407         (aarch64_asm_preferred_eh_data_format): Support new model.
23408         (aarch64_load_symref_appropriately): Generate new instruction
23409         sequences for -fpic.
23410         (TARGET_USE_PSEUDO_PIC_REG): New definition.
23411         (aarch64_use_pseudo_pic_reg): New function.
23413 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
23415         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23416         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23417         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23418         (aarch64_expand_mov_immediate): Ditto.
23419         (aarch64_print_operand): Ditto.
23420         (aarch64_classify_symbol): Ditto.
23422 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
23424         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23426 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
23428         PR bootstrap/66638
23429         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23430         assertion failed.  Remove assertion itself.
23432 2015-06-26  Richard Biener  <rguenther@suse.de>
23434         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23435         and -A CMP CST -> A CMP -CST which is redundant with a pattern
23436         in match.pd.
23437         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23438         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23439         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23440         * match.pd: ... patterns here.
23442 2015-06-26  Marek Polacek  <polacek@redhat.com>
23444         * match.pd ((x | y) & ~(x & y) -> x ^ y,
23445         (x | y) & (~x ^ y) -> x & y): New patterns.
23447 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23449         * rtl.h (emit): Add an optional boolean parameter to control
23450         whether barriers are emitted.
23451         * emit-rtl.c (emit): Likewise.
23452         * gensupport.c (get_emit_function): Return null rather than "emit".
23453         * genemit.c (gen_emit_seq): Handle the null return value.
23454         Don't emit barriers after the final instruction in the sequence.
23455         * gentarget-def.c (main): Don't emit barriers after the instruction.
23457 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23459         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23460         TARGET_UNIFIED_ASM.
23462 2015-06-26  Richard Biener  <rguenther@suse.de>
23464         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23466 2015-06-26  Richard Biener  <rguenther@suse.de>
23468         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23469         irrespective on whether the inner operation has a single use
23470         of both off are constant.
23472 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
23473             Segher Boessenkool  <segher@kernel.crashing.org>
23475         PR target/66412
23476         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23477         before doing PUT_MODE or PUT_CODE on operands to avoid
23478         in-place RTX modification.
23480 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23482         * gentarget-def.c (def_target_insn): Cast return of strtol to
23483         unsigned int.
23485 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23487         * gimple.h (gimple_call_set_fn): Move inline function.
23488         * gimple.c (gimple_call_set_fn): Relocate here.
23490 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
23492         PR target/65979
23493         PR target/66611
23494         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23495         the replacement insn will work.
23497 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
23499         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23500         by default.
23502 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
23504         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23505         * cgraph.h: Include ipa-ref.h and plugin-api.h.
23506         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23507         (symtab_node::address_can_be_compared_p): Move function.
23508         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23509         definition here.
23510         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23511         * auto-profile.c: Likewise.
23512         * bb-reorder.c: Likewise.
23513         * builtins.c: Likewise.
23514         * calls.c: Likewise.
23515         * cfgexpand.c: Likewise.
23516         * cgraphbuild.c: Likewise.
23517         * cgraphclones.c: Likewise.
23518         * cgraphunit.c: Likewise.
23519         * combine.c: Likewise.
23520         * coverage.c: Likewise.
23521         * data-streamer-in.c: Likewise.
23522         * data-streamer-out.c: Likewise.
23523         * data-streamer.c: Likewise.
23524         * dbxout.c: Likewise.
23525         * dwarf2out.c: Likewise.
23526         * except.c: Likewise.
23527         * expr.c: Likewise.
23528         * final.c: Likewise.
23529         * fold-const.c: Likewise.
23530         * ggc-page.c: Likewise.
23531         * gimple-fold.c: Likewise.
23532         * gimple-iterator.c: Likewise.
23533         * gimple-pretty-print.c: Likewise.
23534         * gimple-streamer-in.c: Likewise.
23535         * gimple-streamer-out.c: Likewise.
23536         * gimple.c: Likewise.
23537         * gimplify.c: Likewise.
23538         * ipa-chkp.c: Likewise.
23539         * ipa-comdats.c: Likewise.
23540         * ipa-cp.c: Likewise.
23541         * ipa-devirt.c: Likewise.
23542         * ipa-icf-gimple.c: Likewise.
23543         * ipa-icf.c: Likewise.
23544         * ipa-inline-analysis.c: Likewise.
23545         * ipa-inline-transform.c: Likewise.
23546         * ipa-inline.c: Likewise.
23547         * ipa-polymorphic-call.c: Likewise.
23548         * ipa-profile.c: Likewise.
23549         * ipa-prop.c: Likewise.
23550         * ipa-pure-const.c: Likewise.
23551         * ipa-ref.c: Likewise.
23552         * ipa-reference.c: Likewise.
23553         * ipa-split.c: Likewise.
23554         * ipa-utils.c: Likewise.
23555         * ipa-visibility.c: Likewise.
23556         * ipa.c: Likewise.
23557         * langhooks.c: Likewise.
23558         * lto-cgraph.c: Likewise.
23559         * lto-compress.c: Likewise.
23560         * lto-opts.c: Likewise.
23561         * lto-section-in.c: Likewise.
23562         * lto-section-out.c: Likewise.
23563         * lto-streamer-in.c: Likewise.
23564         * lto-streamer-out.c: Likewise.
23565         * lto-streamer.c: Likewise.
23566         * omp-low.c: Likewise.
23567         * opts-global.c: Likewise.
23568         * passes.c: Likewise.
23569         * predict.c: Likewise.
23570         * print-tree.c: Likewise.
23571         * profile.c: Likewise.
23572         * ree.c: Likewise.
23573         * sanopt.c: Likewise.
23574         * stor-layout.c: Likewise.
23575         * symtab.c: Likewise.
23576         * toplev.c: Likewise.
23577         * trans-mem.c: Likewise.
23578         * tree-cfg.c: Likewise.
23579         * tree-chkp.c: Likewise.
23580         * tree-eh.c: Likewise.
23581         * tree-emutls.c: Likewise.
23582         * tree-inline.c: Likewise.
23583         * tree-nested.c: Likewise.
23584         * tree-parloops.c: Likewise.
23585         * tree-pretty-print.c: Likewise.
23586         * tree-profile.c: Likewise.
23587         * tree-sra.c: Likewise.
23588         * tree-ssa-alias.c: Likewise.
23589         * tree-ssa-live.c: Likewise.
23590         * tree-ssa-loop-ivcanon.c: Likewise.
23591         * tree-ssa-loop-ivopts.c: Likewise.
23592         * tree-ssa-pre.c: Likewise.
23593         * tree-ssa-sccvn.c: Likewise.
23594         * tree-ssa-strlen.c: Likewise.
23595         * tree-ssa-structalias.c: Likewise.
23596         * tree-streamer-in.c: Likewise.
23597         * tree-streamer-out.c: Likewise.
23598         * tree-streamer.c: Likewise.
23599         * tree-switch-conversion.c: Likewise.
23600         * tree-tailcall.c: Likewise.
23601         * tree-vect-data-refs.c: Likewise.
23602         * tree-vect-stmts.c: Likewise.
23603         * tree-vectorizer.c: Likewise.
23604         * tree.c: Likewise.
23605         * tsan.c: Likewise.
23606         * ubsan.c: Likewise.
23607         * value-prof.c: Likewise.
23608         * varasm.c: Likewise.
23609         * varpool.c: Likewise.
23610         * config/arm/arm.c: Likewise.
23611         * config/bfin/bfin.c: Likewise.
23612         * config/c6x/c6x.c: Likewise.
23613         * config/cris/cris.c: Likewise.
23614         * config/darwin-c.c: Likewise.
23615         * config/darwin.c: Likewise.
23616         * config/i386/i386.c: Likewise.
23617         * config/i386/winnt.c: Likewise.
23618         * config/microblaze/microblaze.c: Likewise.
23619         * config/mips/mips.c: Likewise.
23620         * config/rs6000/rs6000.c: Likewise.
23621         * config/rx/rx.c: Likewise.
23622         * config/s390/s390.c: Likewise.
23623         * config/tilegx/mul-tables.c: Likewise.
23625 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23627         * config/aarch64/aarch64.c, config/alpha/alpha.c,
23628         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23629         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23630         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23631         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23632         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23633         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23634         config/microblaze/microblaze.c, config/mips/mips.c,
23635         config/mmix/mmix.c, config/mn10300/mn10300.c,
23636         config/moxie/moxie.c, config/msp430/msp430.c,
23637         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23638         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23639         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23640         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23641         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23642         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23643         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23644         target-def.h include.
23645         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
23647 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23649         * Makefile.in (TARGET_DEF): Add target-insns.def.
23650         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23651         (build/gentarget-def.o): New rule.
23652         (genprogrtl): Add target-def.
23653         * target-insns.def, gentarget-def.c: New files.
23654         * target.def: Add targetm.have_* and targetm.gen_* hooks,
23655         based on the contents of target-insns.def.
23656         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23657         (HAVE_return, gen_return): Delete.
23658         * target-def.h: Include insn-target-def.h.
23659         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23660         instead of direct calls.  Rely on them to do the appropriate assertions.
23661         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
23662         (convert_jumps_to_returns): Use targetm interface instead of
23663         direct calls.
23664         (thread_prologue_and_epilogue_insns): Likewise.
23665         * reorg.c (find_end_label, dbr_schedule): Likewise.
23666         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23667         * shrink-wrap.c (convert_to_simple_return): Likewise.
23668         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23670 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23672         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23673         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23674         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23675         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23676         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23677         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23678         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23679         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23680         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23681         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23682         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23683         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23684         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23685         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23686         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23687         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23688         includes to end.
23690 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23692         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23693         (unbounded_int_hashmap_traits::key_type): Likewise.
23694         * hash-map.h (hash_map): Get the key type from the traits.
23695         * hash-traits.h (default_hash_traits): By default, inherit from the
23696         template parameter.
23697         * alias.c (alias_set_traits): Delete.
23698         (alias_set_entry_d::children): Use alias_set_hash as the first
23699         template parameter.
23700         (record_alias_subset): Update accordingly.
23701         * except.c (tree_hash_traits): Delete.
23702         (type_to_runtime_map): Use tree_hash as the first template parameter.
23703         (init_eh): Update accordingly.
23704         * genmatch.c (capture_id_map_hasher): Delete.
23705         (cid_map_t): Use nofree_string_hash as first template parameter.
23706         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23707         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23708         Use symbol_compare_hash as the first template parameter in
23709         subdivide_hash_map.
23710         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23711         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23712         template parameter.
23713         * passes.c (pass_registry_hasher): Delete.
23714         (name_to_pass_map): Use nofree_string_hash as the first template
23715         parameter.
23716         (register_pass_name): Update accordingly.
23717         * sanopt.c (sanopt_tree_map_traits): Delete.
23718         (sanopt_tree_triplet_map_traits): Delete.
23719         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23720         template parameter.
23721         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23722         the first template parameter.
23723         * sese.c (rename_map_hasher): Delete.
23724         (rename_map_type): Use tree_ssa_name_hash as the first template
23725         parameter.
23726         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23727         (function_summary::m_map): Use map_hash as the first template
23728         parameter.
23729         (function_summary::release): Update accordingly.
23730         * tree-if-conv.c (phi_args_hash_traits): Delete.
23731         (predicate_scalar_phi): Use tree_operand_hash as the first template
23732         parameter to phi_arg_map.
23733         * tree-inline.h (dependence_hasher): Delete.
23734         (copy_body_data::dependence_map): Use dependence_hash as the first
23735         template parameter.
23736         * tree-inline.c (remap_dependence_clique): Update accordingly.
23737         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23738         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23739         parameter.
23740         (addr_stridxptr): Update accordingly.
23741         * value-prof.c (profile_id_traits): Delete.
23742         (cgraph_node_map): Use profile_id_hash as the first template
23743         parameter.
23744         (init_node_map): Update accordingly.
23745         * config/alpha/alpha.c (string_traits): Delete.
23746         (machine_function::links): Use nofree_string_hash as the first
23747         template parameter.
23748         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23749         * config/m32c/m32c.c (pragma_traits): Delete.
23750         (pragma_htab): Use nofree_string_hash as the first template parameter.
23751         (m32c_note_pragma_address): Update accordingly.
23752         * config/mep/mep.c (pragma_traits): Delete.
23753         (pragma_htab): Use nofree_string_hash as the first template parameter.
23754         (mep_note_pragma_flag): Update accordingly.
23755         * config/mips/mips.c (mips16_flip_traits): Delete.
23756         (mflip_mips16_htab): Use nofree_string_hash as the first template
23757         parameter.
23758         (mflip_mips16_use_mips16_p): Update accordingly.
23759         (local_alias_traits): Delete.
23760         (mips16_local_aliases): Use nofree_string_hash as the first template
23761         parameter.
23762         (mips16_local_alias): Update accordingly.
23764 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23766         * hash-map-traits.h (default_hashmap_traits): Delete.
23768 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23770         * hash-map-traits.h (unbounded_hashmap_traits): New class.
23771         (unbounded_int_hashmap_traits): Likewise.
23772         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23774 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23776         * ipa-icf.h (symbol_compare_hash): New class.
23777         (symbol_compare_hashmap_traits): Use it.
23778         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23779         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23780         (mem_alloc_description::reverse_mem_map_t): Remove redundant
23781         default_hashmap_traits.
23782         * sanopt.c (sanopt_tree_triplet_hash): New class.
23783         (sanopt_tree_triplet_map_traits): Use it.
23785 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23787         * gengtype-parse.c (require_template_declaration): Allow '+' in
23788         template parameters.  Consolidate cases.
23789         * hash-traits.h (int_hash): New class.
23790         * alias.c (alias_set_hash): New structure.
23791         (alias_set_traits): Use it.
23792         * symbol-summary.h (function_summary::map_hash): New class.
23793         (function_summary::summary_hashmap_traits): Use it.
23794         * tree-inline.h (dependence_hash): New class.
23795         (dependence_hasher): Use it.
23796         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23797         * value-prof.c (profile_id_hash): New class.
23798         (profile_id_traits): Use it.
23800 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23802         * config/mips/mips.c (mips16_flip_traits): Use it.
23803         (local_alias_traits, mips16_local_aliases): Convert from a map of
23804         rtxes to a map of symbol names.
23805         (mips16_local_alias): Update accordingly.
23807 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23809         * hash-traits.h (string_hash, nofree_string_hash): New classes.
23810         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23811         * passes.c (pass_registry_hasher): Likewise.
23812         * config/alpha/alpha.c (string_traits): Likewise.
23813         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23814         * config/m32c/m32c.c (pragma_traits): Likewise.
23815         * config/mep/mep.c (pragma_traits): Likewise.
23817 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23819         * tree-hash-traits.h (tree_hash): New class.
23820         * except.c: Include tree-hash-traits.h.
23821         (tree_hash_traits): Use tree_hash.
23823 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23825         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23826         * sese.c: Include tree-hash-traits.h.
23827         (rename_map_hasher): Use tree_ssa_name_hasher.
23829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23831         * tree-hash-traits.h (tree_decl_hash): New class.
23832         * tree-ssa-strlen.c: Include tree-hash-traits.h.
23833         (stridxlist_hash_traits): Use tree_decl_hash.
23835 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23837         * tree-hash-traits.h: New file.
23838         (tree_operand_hash): New class.
23839         * sanopt.c: Include tree-hash-traits.h.
23840         (sanopt_tree_map_traits): Use tree_operand_hash.
23841         * tree-if-conv.c: Include tree-hash-traits.h.
23842         (phi_args_hash_traits): Use tree_operand_hash.
23843         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
23844         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
23846 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23848         * hash-map-traits.h: Include hash-traits.h.
23849         (simple_hashmap_traits): New class.
23850         * mem-stats.h (hash_map): Change the default traits to
23851         simple_hashmap_traits<default_hash_traits<Key> >.
23853 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23855         * hash-table.h: Update comments.
23857 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23859         * hash-traits.h (default_hash_traits): New structure.
23860         * hash-set.h (default_hashset_traits): Delete.
23861         (hash_set): Use default_hash_traits<Key> instead of
23862         default_hashset_traits.  Delete hash_entry type and use Key directly.
23863         * ipa-devirt.c (pair_traits): Delete.
23864         (default_hash_traits <type_pair>): Override.
23865         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
23866         (odr_types_equivalent_p, add_type_duplicate): Likewise.
23868 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23870         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
23872 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23874         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
23875         (has_is_empty, is_empty_helper): Delete.
23876         (has_mark_deleted, mark_deleted_helper): Delete.
23877         (has_mark_empty, mark_empty_helper): Delete.
23878         (hash_table::is_deleted): Call the Descriptor unconditionally.
23879         (hash_table::is_empty): Likewise.
23880         (hash_table::mark_deleted): Likewise.
23881         (hash_table::mark_empty): Likewise.
23883 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23885         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
23886         redundant typedefs and members.
23887         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
23888         redundant typedefs.
23889         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
23890         * ipa-devirt.c (odr_name_hasher): Likewise.
23891         (polymorphic_call_target_hasher): Likewise.
23892         * ira-costs.c (cost_classes_hasher): Likewise.
23893         * statistics.c (stats_counter_hasher): Likewise.
23894         * trans-mem.c (log_entry_hasher): Likewise.
23895         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23896         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
23897         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
23898         * var-tracking.c (variable_hasher): Likewise.
23899         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
23900         Remove redundant typedefs and members.
23902 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23904         * hash-traits.h (ggc_cache_hasher): Rename to...
23905         (ggc_cache_remove): ...this and remove typedefs.
23906         (ggc_cache_ptr_hash): New class.
23907         * hash-table.h: Update commentary.
23908         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
23909         rather than ggc_cache_hasher.
23910         (const_wide_int_hasher, reg_attr_hasher): Likewise.
23911         (const_double_hasher, const_fixed_hasher): Likewise.
23912         * function.c (insn_cache_hasher): Likewise.
23913         * trans-mem.c (tm_wrapper_hasher): Likewise.
23914         * tree.h (tree_decl_map_cache_hasher): Likewise.
23915         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
23916         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
23917         * ubsan.c (tree_type_map_cache_hasher): Likewise.
23918         * varasm.c (tm_clone_hasher): Likewise.
23919         * config/i386/i386.c (dllimport_hasher): Likewise.
23920         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
23921         (tree_hasher): Likewise.
23923 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23925         * hash-traits.h (ggc_hasher): Rename to...
23926         (ggc_remover): ...this and remove typedefs.
23927         (ggc_cache_hasher): Update accordingly.  Add typedefs.
23928         (ggc_ptr_hash): New class.
23929         * hash-table.h: Update comment.
23930         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
23931         ggc_hasher.
23932         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
23933         (tree_descriptor_hasher): Likewise.
23934         * cgraph.c (function_version_hasher): Likewise.
23935         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
23936         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
23937         (dw_loc_list_hasher, addr_hasher): Likewise.
23938         * function.h (used_type_hasher): Likewise.
23939         * function.c (temp_address_hasher): Likewise.
23940         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
23941         * libfuncs.h (libfunc_hasher): Likewise.
23942         * lto-streamer.h (decl_state_hasher): Likewise.
23943         * optabs.c (libfunc_decl_hasher): Likewise.
23944         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
23945         * varasm.c (section_hasher, object_block_hasher): Likewise.
23946         (const_rtx_desc_hasher): Likewise.
23947         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
23948         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
23950 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23952         * hash-traits.h (free_ptr_hash): New class.
23953         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
23954         rather than typed_free_remove.  Remove redudant typedefs.
23955         (external_ref_hasher): Likewise.
23956         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
23957         (ehspec_hasher): Likewise.
23958         * ggc-common.c (saving_hasher): Likewise.
23959         * gimplify.c (gimplify_hasher): Likewise.
23960         * haifa-sched.c (delay_i2_hasher): Likewise.
23961         * loop-invariant.c (invariant_expr_hasher): Likewise.
23962         * loop-iv.c (biv_entry_hasher): Likewise.
23963         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
23964         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
23965         * tree-cfg.c (locus_discrim_hasher): Likewise.
23966         * tree-eh.c (finally_tree_hasher): Likewise.
23967         * tree-into-ssa.c (var_info_hasher): Likewise.
23968         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
23969         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
23970         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
23971         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
23972         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
23973         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
23974         (shared_bitmap_hasher): Likewise.
23975         * tree-ssa-threadupdate.c (redirection_data): Likewise.
23976         * tree-vectorizer.h (peel_info_hasher): Likewise.
23977         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
23978         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
23980 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
23982         * hash-table.h: Update comments.
23983         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
23984         (nofree_ptr_hash): New class.
23985         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
23986         than typed_noop_remove.  Remove redudant typedefs.
23987         * attribs.c (attribute_hasher): Likewise.
23988         * cfg.c (bb_copy_hasher): Likewise.
23989         * cselib.c (cselib_hasher): Likewise.
23990         * dse.c (invariant_group_base_hasher): Likewise.
23991         * dwarf2cfi.c (trace_info_hasher): Likewise.
23992         * dwarf2out.c (macinfo_entry_hasher): Likewise.
23993         (comdat_type_hasher, loc_list_hasher): Likewise.
23994         * gcse.c (pre_ldst_expr_hasher): Likewise.
23995         * genmatch.c (id_base): Likewise.
23996         * genrecog.c (test_pattern_hasher): Likewise.
23997         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
23998         * haifa-sched.c (delay_i1_hasher): Likewise.
23999         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24000         * ipa-icf.h (congruence_class_group_hash): Likewise.
24001         * ipa-profile.c (histogram_hash): Likewise.
24002         * ira-color.c (allocno_hard_regs_hasher): Likewise.
24003         * lto-streamer.h (string_slot_hasher): Likewise.
24004         * lto-streamer.c (tree_entry_hasher): Likewise.
24005         * plugin.c (event_hasher): Likewise.
24006         * postreload-gcse.c (expr_hasher): Likewise.
24007         * store-motion.c (st_expr_hasher): Likewise.
24008         * tree-sra.c (uid_decl_hasher): Likewise.
24009         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24010         (ssa_name_var_hash): Likewise.
24011         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24012         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24013         * tree-ssa-pre.c (pre_expr_d): Likewise.
24014         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24015         * vtable-verify.h (registration_hasher): Likewise.
24016         * vtable-verify.c (vtbl_map_hasher): Likewise.
24017         * config/arm/arm.c (libcall_hasher): Likewise.
24018         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24019         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24020         * config/sol2.c (comdat_entry_hasher): Likewise.
24021         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24022         (print_fold_checksum, fold_checksum_tree): Likewise.
24023         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24024         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24025         (fold_build_call_array_loc): Likewise.
24026         * tree-ssa-ccp.c (gimple_htab): Likewise.
24027         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24028         rather than pointer_type.
24030 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24032         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24033         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24035 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24037         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24038         (ggc_hasher::ggc_mx): Likewise.
24039         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
24040         that duplicate ggc_hasher ones.
24042 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24044         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24045         (gt_cleare_cache): Check here for deleted and empty entries.
24046         Replace handle_cache_entry with a call to keep_cache_entry.
24047         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24048         (ggc_cache_hasher::keep_cache_entry): New function.
24049         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24050         (tm_wrapper_hasher::keep_cache_entry): New function.
24051         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24052         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24053         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24054         (type_cache_hasher::keep_cache_entry): New function.
24055         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24056         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24057         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24058         (tree_type_map_cache_hasher::keep_cache_entry): New function.
24059         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24060         (tm_clone_hasher::keep_cache_entry): New function.
24061         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24062         (dllimport_hasher::keep_cache_entry): New function.
24064 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24066         * hash-table.h: Include hash-traits.h.
24067         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24068         (ggc_cache_hasher): Move to...
24069         * hash-traits.h: ...this new file.
24071 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24073         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24074         struct cl_optimization.
24075         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24076         * tree.c (make_node_stat): Allocate cl_optimization struct.
24077         (copy_node_stat): Allocate and copy cl_optimization struct.
24079 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24081         * function.h (struct incoming_args): Move struct.
24082         (pass_by_reference, reference_callee_copied): Remove prototypes.
24083         * emit-rtl.h (struct incoming_args): Relocate struct here.
24084         * calls.h (pass_by_reference, reference_callee_copied): Relocate
24085         prototypes here.
24086         * function.c (pass_by_reference, reference_callee_copied): Move.
24087         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24088         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24089         * ipa-chkp.c: Include calls.h.
24091 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
24093         * alias.h (alias_set_type): Move typedef.
24094         * coretypes.h (alias_set_type): Relocate typedef here.
24095         * rtl.h: Don't include alias.h.
24097 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24099         * cgraph.h (cgraph_rtl_info): Move to rtl.h
24100         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24101         and instance.
24102         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24103         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24104         doesn't exist.
24105         * calls.c: Include hard-reg-set.h before rtl.h.
24106         * ira.c: Likewise.
24108 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24109             Vladimir Makarov  <vmakarov@redhat.com>
24111         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24112         Add assert.
24114 2015-06-25  Richard Biener  <rguenther@suse.de>
24116         * fold-const.c (fold_binary_loc): Move simplification of
24117         (X <<>> C1) & C2 ...
24118         * match.pd: ... here.
24120 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
24122         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24124 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24126         * match.pd: Add patterns for vec_conds between 1 and 0.
24128 2015-06-25  Richard Biener  <rguenther@suse.de>
24130         * tree-vect-stmts.c (vectorizable_conversion): Do not set
24131         STMT_VINFO_VEC_STMT for SLP.
24132         (vectorizable_store): Likewise.
24133         (vectorizable_load): Likewise.
24134         (vect_transform_stmt): Catch SLP vectorization clobbering
24135         STMT_VINFO_VEC_STMT.
24137 2015-06-25  Richard Biener  <rguenther@suse.de>
24139         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24140         dumping.
24141         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24142         cleanup resulting dead code and parameters.
24143         (vect_transform_slp_perm_load): Adjust.
24145 2015-06-25  Nick Clifton  <nickc@redhat.com>
24147         * config/bfin/bfin.c (bfin_expand_prologue): Set
24148         current_function_static_stack_size if flag_stack_usage_info is set.
24149         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24150         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24151         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24152         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24154 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24156         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24157         comment that the generated IV is unsigned.
24159 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24161         PR target/29693
24162         * config/arm/arm.c (arm_dbx_register_number): Return
24163         DWARF_FRAME_REGISTERS by default.
24165 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24167         * dominance.c (calculate_dominance_info): Fix verify_dominators call
24168         argument.  Call verify_dominator when reusing dominator info.
24170 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
24172         PR target/66563
24173         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24174         an additional element of the unspec vector.  Modify indices
24175         of operands.
24176         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24177         * config/sh/sh.c (prepare_move_operands): Pass incremented
24178         const_int to gen_GOTaddr2picreg.
24179         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24181 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24183         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24184         Condition on TARGET_FLOAT.
24186 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24188         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24189         and (no)crypto.
24191 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24193         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24195         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24196         aarch64_err_no_fpadvsimd.
24198         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24199         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24200         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24201         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24202         Turn error into assert, test TARGET_FLOAT.
24203         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24204         TARGET_FLOAT.
24206 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
24208         PR debug/66482
24209         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24211 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
24213         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24215 2015-06-24  Renlin Li <renlin.li@arm.com>
24217         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24218         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24220 2015-06-24  Richard Biener  <rguenther@suse.de>
24222         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24223         (main): Likewise.
24224         (lower_opt_convert): Support lowering of conditional view_convert.
24225         (parser::parse_operation): Likewise.
24226         (parser::parse_for): Likewise.
24228 2015-06-24  Renlin Li  <renlin.li@arm.com>
24230         * varasm.c (emit_local): Use unsigned int for align variable.
24232 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24234         PR target/63408
24235         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24236         for negative numbers.
24238 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24240         PR rtl-optimization/66306
24241         * reload.c (find_reloads): Swap the match_dup info for
24242         commutative operands.
24244 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24246         * config/s390/vx-builtins.md
24247         ("vec_scatter_element<mode>_<non_vec_int>")
24248         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24249         attribute with bhfgq.
24251 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24253         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24255 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24257         * config/s390/s390-builtin-types.def: Add flag to indicate the
24258         options under which the function type is needed.
24259         * config/s390/s390-builtins.def: Add flag to indicate the options
24260         under which the builtin is enabled.
24261         * config/s390/s390-builtins.h: Add flags parameter to macro
24262         definitions.
24263         (bflags_for_builtin): New function.
24264         (flags_for_builtin): Renamed to ...
24265         (opflags_for_builtin): ... this.
24266         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24267         flags_for_builtin to bflags_for_builtin and
24268         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24269         * config/s390/s390.c: Add initialization of bflags_builtin and
24270         opflags_builtin arrays.
24271         Remove code for flags_builtin.
24272         (s390_init_builtins): Only create builtin function types if one of
24273         their flags is active.
24274         Only create builtins if all of their flags are active.
24275         (s390_expand_builtin): Rename flags_for_builtin to
24276         opflags_for_builtin.
24278 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24280         * config/s390/vecintrin.h: Remove internal builtins.
24282 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24284         * config/s390/s390.c (s390_secondary_reload): Fix check for
24285         GENERAL_REGS register class.
24287 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24289         * config/s390/s390.c (s390_support_vector_misalignment): Call
24290         default implementation for !TARGET_VX.
24292 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24294         * config/s390/s390.c (s390_legitimate_constant_p): Add
24295         TARGET_VX check.
24297 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24299         * config/s390/s390.c (s390_vector_abi): New variable definition.
24300         (s390_check_type_for_vector_abi): New function.
24301         (TARGET_ASM_FILE_END): New macro definition.
24302         (s390_asm_file_end): New function.
24303         (s390_function_arg): Call s390_check_type_for_vector_abi.
24304         (s390_gimplify_va_arg): Likewise.
24305         * configure: Regenerate.
24306         * configure.ac: Check for .gnu_attribute Binutils feature.
24308 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
24310         PR target/65803
24311         * config/bfin/bfin.c (hwloop_optimize): Initialize
24312         JUMP_LABEL for newly created jump.
24314 2015-06-23  Tristan Gingold  <gingold@adacore.com>
24316         * collect-utils.c (collect_wait): Unlink the response file here
24317         instead of...
24318         (do_wait): ...here.
24319         (utils_cleanup): ...and here.
24321 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
24323         * df-scan.c: Don't include target-def.h.
24324         * targhooks.c: Likewise.
24325         * config/arm/arm-c.c: Likewise.
24326         * config/i386/i386-c.c: Likewise.
24327         * config/nds32/nds32-cost.c: Likewise.
24328         * config/nds32/nds32-fp-as-gp.c: Likewise.
24329         * config/nds32/nds32-intrinsic.c: Likewise.
24330         * config/nds32/nds32-isr.c: Likewise.
24331         * config/nds32/nds32-md-auxiliary.c: Likewise.
24332         * config/nds32/nds32-memory-manipulation.c: Likewise.
24333         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24334         * config/nds32/nds32-predicates.c: Likewise.
24336 2015-06-23  Richard Biener  <rguenther@suse.de>
24338         PR tree-optimization/66636
24339         * tree-vect-stmts.c (vectorizable_store): Properly compute the
24340         def type for further defs for strided stores.
24342 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
24344         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24345         conditional selects.
24346         (setcc_int<mode>, setcc_float<mode>): Reformat.
24348 2015-06-23  Marek Polacek  <polacek@redhat.com>
24350         * match.pd ((x + y) - (x | y) -> x & y,
24351         (x + y) - (x & y) -> x | y): New patterns.
24353 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
24355         PR 65711
24356         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24357         '-dynamic-linker' within %{!shared: ...}.
24359 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
24361         PR target/66560
24362         * config/i386/predicates.md (addsub_vm_operator): New predicate.
24363         (addsub_vs_operator): Ditto.
24364         (addsub_vs_parallel): Ditto.
24365         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24366         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24367         Put minus RTX before plus and adjust vec_merge selector.
24368         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24369         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24370         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24371         (addsub vec_merge splitters): New combiner splitters.
24372         (addsub vec_select/vec_concat splitters): Ditto.
24374 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
24376         PR tree-optimization/66449
24377         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24378         POINTER_PLUS_EXPR for pointers.
24380 2015-06-23  Alan Modra  <amodra@gmail.com>
24382         * rtlanal.c (commutative_operand_precedence): Correct comments.
24383         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24384         declaration.  Return an int.  Distinguish REG,REG return from
24385         others.
24386         (struct simplify_plus_minus_op_data): Make local to function.
24387         (simplify_plus_minus): Don't set canonicalized if merely sorting
24388         registers.  Avoid packing ops if nothing changes.  White space fixes.
24390 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
24392         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24393         -fdump-ada-spec is passed but not if -fsyntax-only is.
24395 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
24397         PR bootstrap/63740
24398         * lra-lives.c (process_bb_lives): Check insn copying the same
24399         reload pseudo and don't create a copy for it.
24401 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24403         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24404         for cond_stmt.
24406 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24408         * builtins.def (DEF_GOMP_BUILTIN): Test
24409         'flag_tree_parallelize_loops > 1' instead of
24410         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
24412 2015-06-22  Tom de Vries  <tom@codesourcery.com>
24414         * dominance.c (calculate_dominance_info): Verify dominators if
24415         early-out.
24417 2015-06-22  Marek Polacek  <polacek@redhat.com>
24419         * match.pd ((x ^ y) ^ (x | y) -> x & y,
24420         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24421         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24422         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24424 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
24426         PR target/65871
24427         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24428         cost of embedded comparison.
24430 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24432         PR target/65914
24433         * config/rs6000/predicates.md (altivec_register_operand): Permit
24434         virtual stack registers.
24435         (vsx_register_operand): Likewise.
24436         (vfloat_operand): Likewise.
24437         (vint_operand): Likewise.
24438         (vlogical_operand): Likewise.
24440 2015-06-22  Richard Biener  <rguenther@suse.de>
24442         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24443         and single_scalar_iteration_cost members.
24444         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24445         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24446         (vect_get_single_scalar_iteration_cost): Remove.
24447         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24448         Use LOOP_VINFO_SCALAR_ITERATION_COST.
24449         * tree-vect-loop.c (destroy_loop_vec_info): Free
24450         scalar_cost_vec.
24451         (vect_get_single_scalar_iteration_cost): Compute result into
24452         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24453         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
24454         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24455         (vect_estimate_min_profitable_iters): Use them.
24457 2015-06-22  Christian Bruel  <christian.bruel@st.com>
24459         PR target/52144
24460         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24461         (TARGET_INSERT_ATTRIBUTES): Define.
24462         (thumb_flipper): New var.
24463         * config/arm/arm.opt (-mflip-thumb): New switch.
24465 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24466             Martin Liska  <mliska@suse.cz>
24468         PR ipa/65908
24469         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24470         construction of arg_types.
24471         (sem_function::sem_function): Likewise.
24472         (sem_function::~sem_function): Remove destruction of arg_types.
24473         (sem_function::compatible_parm_types_p): New function.
24474         (sem_function::equals_wpa): Reorg matching of return values
24475         and parameter types.
24476         (sem_function::equals_private): Reorg mathcing of argument types.
24477         (sem_function::parse_tree_args): Remove.
24478         * ipa-icf.h (init_wpa): Do not call it.
24479         (parse_tree_args): Remove.
24480         (compatible_parm_types_p): Declare.
24481         (result_type): Remove.
24482         (arg_types): Remove.
24484 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
24486         PR ipa/66351
24487         * ipa-polymorphic-call.c
24488         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24489         initializing alias oracle; fix formating; set base_alias_set if it
24490         is known.
24492 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
24494         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24495         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24496         (find_inc): Likewise.
24497         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24498         swapping.
24499         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24500         * df-scan.c (df_swap_refs): Remove.
24501         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24502         * dominance.c (link_roots): Use std::swap instead of manually swapping.
24503         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24504         * fold-const.c (fold_relational_const): Likewise.
24505         * genattrtab.c (simplify_test_exp): Likewise.
24506         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24507         gimple_simplify): Likewise.
24508         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24509         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24510         * ipa-devirt.c (add_type_duplicate): Likewise.
24511         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24512         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24513         * lra.c (lra_create_copy): Likewise.
24514         * lto-streamer-out.c (DFS::DFS): Likewise.
24515         * modulo-sched.c (get_sched_window): Likewise.
24516         * omega.c (omega_pretty_print_problem): Likewise.
24517         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24518         * reload1.c (reloads_unique_chain_p): Likewise.
24519         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24520         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24521         use std::swap.
24522         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24523         manually swapping.
24524         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24525         predicate_mem_writes): Likewise.
24526         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24527         * tree-predcom.c (combine_chains): Likewise.
24528         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24529         refs_may_alias_p_1): Likewise.
24530         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24531         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24532         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24533         number_of_iterations_cond): Likewise.
24534         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24535         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24536         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24537         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24538         * tree-vrp.c (extract_range_from_binary_expr_1,
24539         extract_range_from_unary_expr_1): Likewise.
24541 2015-06-20  Marek Polacek  <polacek@redhat.com>
24543         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24545 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24547         PR target/66591
24548         * config/sh/sh.c (prepare_move_operands): Replace subreg
24549         index term with R0 for base and index addressing.
24551 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
24553         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24554         op1 is an fp zero.
24555         (movsf_aarch64): Change condition from register_operand to
24556         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
24557         load1.  Change type for alternative 7 to store1.
24558         (movdf_aarch64): Likewise.
24560 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
24562         * config/vax/vax.md: Adjust sign/zero extend patterns to
24563         handle SUBREGs in operands[1].
24565 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24567         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24568         of manually swapping.
24569         (expand_vec_perm_interleave2): Likewise.
24571 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
24573         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24574         reuse bounds created for abnormal ssa names.
24576 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
24578         * config/nvptx/nvptx.md (allocate_stack): Rename to...
24579         (allocate_stack_<mode>): ... this, and add :P on both
24580         match_operand and unspec.
24581         (allocate_stack): New expander.
24583 2015-06-19  Christian Bruel  <christian.bruel@st.com>
24585         PR target/66541
24586         PR target/52144
24587         * config/arm/arm.c (arm_set_current_function): Handle
24588         explicit default options.
24590 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24592         * config/i386/i386.md (*movsicc_noc_zext): New insn.
24593         (zero-extended cmove with mem peephole2): New pattern.
24594         (cmove with mem peephole2): Merge patterns.
24596 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
24598         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24600 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
24602         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24603         * config/mips/mips.md (*madd4<mode>): Ditto.
24604         (*nmadd3<mode>) Ditto.
24605         (*nmadd4<mode>_fastmath): Ditto.
24606         (*nmadd3<mode>_fastmath): Ditto.
24607         (*nmsub4<mode>): Ditto.
24608         (*nmsub3<mode>): Ditto.
24609         (*nmsub4<mode>_fastmath): Ditto.
24610         (*nmsub3<mode>_fastmath): Ditto.
24612 2015-06-18  Michael Matz  <matz@suse.de>
24614         PR middle-end/66253
24615         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24616         grouped strided stores.
24617         (vectorizable_load): Don't use the DR from first_stmt in
24618         the non-SLP grouped strided case.
24620 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24622         PR target/66569
24623         * function.c (assign_bounds): Add arguments assign_regs,
24624         assign_special, assign_bt.
24625         (assign_parms): For vararg functions handle bounds in BT
24626         and special slots after incoming vararg bounds.
24628 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24630         PR middle-end/66568
24631         * cfgexpand.c (expand_return): Handle missing bounds.
24632         (expand_gimple_stmt_1): Likewise.
24633         * tree-chkp.c (chkp_expand_zero_bounds): New.
24634         * tree-chkp.h (chkp_expand_zero_bounds): New.
24636 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24638         PR middle-end/66567
24639         * ipa-chkp.c (chkp_maybe_create_clone): Require
24640         functions to be instrumentable.
24641         * tree-chkp.c (chkp_replace_function_pointer): Use
24642         chkp_instrumentable_p instead of attribute check.
24644 2015-06-18  Richard Biener  <rguenther@suse.de>
24646         PR tree-optimization/66510
24647         * tree-vect-stmts.c (vectorizable_load): Properly compute the
24648         number of vector loads for SLP permuted loads.
24649         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24650         check the stride for loop vectorization.
24651         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24652         vectorization factor.
24653         (vect_analyze_group_access): If the group size is not a power
24654         of two require a epilogue loop.
24655         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24656         compute and optimizing and alias test pruning after final
24657         vectorization factor computation.
24658         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24659         vector alignment.
24660         (vect_transform_slp_perm_load): Properly compute the original
24661         number of vector load stmts.
24663 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
24665         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24666         "unlikely character , in @var" warning.
24668 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
24670         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24671         (ix86_function_arg_advance): Ditto.
24672         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
24674 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24676         * function.h (struct rtl_data): Remove struct and accessor macros.
24677         * emit-rtl.h (struct rtl_data): Relocate to here.
24678         * Makefile.in (GTFILES): Add emit-rtl.h.
24679         * df-core.c: Include emit-rtl.h.
24680         * genattrtab.c: Likewise.
24681         * genconditions.c: Likewise.
24682         * genpreds.c: Likewise.
24683         * genrecog.c: Likewise.
24684         * regcprop.c: Likewise.
24685         * resource.c: Likewise.
24686         * sched-rgn.c: Likewise.
24687         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24688         * config/i386/winnt.c: Likewise.
24690 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
24692         PR middle-end/66429
24693         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24694         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
24695         and has_force_vectorize_loops flags from cfun into
24696         child_cfun.
24697         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24698         if simduid is non-NULL.
24699         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24700         * passes.def (pass_simduid_cleanup): Add new pass after loop
24701         passes.
24702         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24703         indirection from htab argument's type.
24704         (shrink_simd_arrays): New function.
24705         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
24706         Don't call adjust_simduid_builtins if there are no loops.
24707         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24708         (pass_simduid_cleanup::execute): New method.
24709         (make_pass_simduid_cleanup): New function.
24711 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
24713         * tree-core.h (tree_target_option): Make opts field a pointer to a
24714         cl_target_option instead of an instance of the struct.
24715         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24716         the structure.
24717         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24718         TARGET_OPTION_NODE.
24719         (copy_node_stat): Allocate and copy struct cl_target_option.
24721 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24723         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24724         Remove conditional exposure of prototypes.
24725         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24726         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
24727         definitions in tree.h with functions.
24728         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24729         anon_aggrname_p.
24730         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24732 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
24734         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24735         (*cmp<mode>_signed): ... this.
24736         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24737         (*cmp<mode>_unsigned): ... this.  Remove %b.
24739 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
24741         * coretypes.h: Include input.h and as-a.h.
24742         * rtl.h: Include input.h and as-a.h for generator files.
24743         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24744         * vec.c: Don't include diagnostic-core.h.
24745         * alias.c: Do not include input.h, line-map.h or is-a.h.
24746         * asan.c: Likewise.
24747         * attribs.c: Likewise.
24748         * auto-inc-dec.c: Likewise.
24749         * auto-profile.c: Likewise.
24750         * bb-reorder.c: Likewise.
24751         * bt-load.c: Likewise.
24752         * builtins.c: Likewise.
24753         * caller-save.c: Likewise.
24754         * calls.c: Likewise.
24755         * ccmp.c: Likewise.
24756         * cfg.c: Likewise.
24757         * cfganal.c: Likewise.
24758         * cfgbuild.c: Likewise.
24759         * cfgcleanup.c: Likewise.
24760         * cfgexpand.c: Likewise.
24761         * cfghooks.c: Likewise.
24762         * cfgloop.c: Likewise.
24763         * cfgloop.h: Likewise.
24764         * cfgloopanal.c: Likewise.
24765         * cfgloopmanip.c: Likewise.
24766         * cfgrtl.c: Likewise.
24767         * cgraph.c: Likewise.
24768         * cgraphbuild.c: Likewise.
24769         * cgraphclones.c: Likewise.
24770         * cgraphunit.c: Likewise.
24771         * cilk-common.c: Likewise.
24772         * combine-stack-adj.c: Likewise.
24773         * combine.c: Likewise.
24774         * compare-elim.c: Likewise.
24775         * convert.c: Likewise.
24776         * coverage.c: Likewise.
24777         * cppbuiltin.c: Likewise.
24778         * cprop.c: Likewise.
24779         * cse.c: Likewise.
24780         * cselib.c: Likewise.
24781         * data-streamer-in.c: Likewise.
24782         * data-streamer-out.c: Likewise.
24783         * data-streamer.c: Likewise.
24784         * dbxout.c: Likewise.
24785         * dce.c: Likewise.
24786         * ddg.c: Likewise.
24787         * debug.c: Likewise.
24788         * df-core.c: Likewise.
24789         * df-problems.c: Likewise.
24790         * df-scan.c: Likewise.
24791         * df.h: Likewise.
24792         * dfp.c: Likewise.
24793         * diagnostic-core.h: Likewise.
24794         * diagnostic.c: Likewise.
24795         * dojump.c: Likewise.
24796         * dominance.c: Likewise.
24797         * domwalk.c: Likewise.
24798         * double-int.c: Likewise.
24799         * dse.c: Likewise.
24800         * dumpfile.c: Likewise.
24801         * dumpfile.h: Likewise.
24802         * dwarf2asm.c: Likewise.
24803         * dwarf2cfi.c: Likewise.
24804         * dwarf2out.c: Likewise.
24805         * emit-rtl.c: Likewise.
24806         * et-forest.c: Likewise.
24807         * except.c: Likewise.
24808         * explow.c: Likewise.
24809         * expmed.c: Likewise.
24810         * expr.c: Likewise.
24811         * final.c: Likewise.
24812         * fixed-value.c: Likewise.
24813         * fold-const.c: Likewise.
24814         * function.c: Likewise.
24815         * fwprop.c: Likewise.
24816         * gcc-plugin.h: Likewise.
24817         * gcse.c: Likewise.
24818         * generic-match-head.c: Likewise.
24819         * ggc-page.c: Likewise.
24820         * gimple-builder.c: Likewise.
24821         * gimple-expr.c: Likewise.
24822         * gimple-fold.c: Likewise.
24823         * gimple-iterator.c: Likewise.
24824         * gimple-low.c: Likewise.
24825         * gimple-match-head.c: Likewise.
24826         * gimple-pretty-print.c: Likewise.
24827         * gimple-ssa-isolate-paths.c: Likewise.
24828         * gimple-ssa-strength-reduction.c: Likewise.
24829         * gimple-streamer-in.c: Likewise.
24830         * gimple-streamer-out.c: Likewise.
24831         * gimple-streamer.h: Likewise.
24832         * gimple-walk.c: Likewise.
24833         * gimple.c: Likewise.
24834         * gimplify-me.c: Likewise.
24835         * gimplify.c: Likewise.
24836         * godump.c: Likewise.
24837         * graph.c: Likewise.
24838         * graphite-blocking.c: Likewise.
24839         * graphite-dependences.c: Likewise.
24840         * graphite-interchange.c: Likewise.
24841         * graphite-isl-ast-to-gimple.c: Likewise.
24842         * graphite-optimize-isl.c: Likewise.
24843         * graphite-poly.c: Likewise.
24844         * graphite-scop-detection.c: Likewise.
24845         * graphite-sese-to-poly.c: Likewise.
24846         * graphite.c: Likewise.
24847         * haifa-sched.c: Likewise.
24848         * hw-doloop.c: Likewise.
24849         * ifcvt.c: Likewise.
24850         * init-regs.c: Likewise.
24851         * input.c: Likewise.
24852         * internal-fn.c: Likewise.
24853         * ipa-chkp.c: Likewise.
24854         * ipa-comdats.c: Likewise.
24855         * ipa-cp.c: Likewise.
24856         * ipa-devirt.c: Likewise.
24857         * ipa-icf-gimple.c: Likewise.
24858         * ipa-icf.c: Likewise.
24859         * ipa-inline-analysis.c: Likewise.
24860         * ipa-inline-transform.c: Likewise.
24861         * ipa-inline.c: Likewise.
24862         * ipa-polymorphic-call.c: Likewise.
24863         * ipa-profile.c: Likewise.
24864         * ipa-prop.c: Likewise.
24865         * ipa-pure-const.c: Likewise.
24866         * ipa-ref.c: Likewise.
24867         * ipa-reference.c: Likewise.
24868         * ipa-split.c: Likewise.
24869         * ipa-utils.c: Likewise.
24870         * ipa-visibility.c: Likewise.
24871         * ipa.c: Likewise.
24872         * ira-build.c: Likewise.
24873         * ira-color.c: Likewise.
24874         * ira-conflicts.c: Likewise.
24875         * ira-costs.c: Likewise.
24876         * ira-emit.c: Likewise.
24877         * ira-lives.c: Likewise.
24878         * ira.c: Likewise.
24879         * jump.c: Likewise.
24880         * langhooks.c: Likewise.
24881         * lcm.c: Likewise.
24882         * loop-doloop.c: Likewise.
24883         * loop-init.c: Likewise.
24884         * loop-invariant.c: Likewise.
24885         * loop-iv.c: Likewise.
24886         * loop-unroll.c: Likewise.
24887         * lower-subreg.c: Likewise.
24888         * lra-assigns.c: Likewise.
24889         * lra-coalesce.c: Likewise.
24890         * lra-constraints.c: Likewise.
24891         * lra-eliminations.c: Likewise.
24892         * lra-lives.c: Likewise.
24893         * lra-remat.c: Likewise.
24894         * lra-spills.c: Likewise.
24895         * lra.c: Likewise.
24896         * lto-cgraph.c: Likewise.
24897         * lto-compress.c: Likewise.
24898         * lto-opts.c: Likewise.
24899         * lto-section-in.c: Likewise.
24900         * lto-section-out.c: Likewise.
24901         * lto-streamer-in.c: Likewise.
24902         * lto-streamer-out.c: Likewise.
24903         * lto-streamer.c: Likewise.
24904         * mcf.c: Likewise.
24905         * mode-switching.c: Likewise.
24906         * modulo-sched.c: Likewise.
24907         * omega.c: Likewise.
24908         * omp-low.c: Likewise.
24909         * optabs.c: Likewise.
24910         * opts-global.c: Likewise.
24911         * opts.h: Likewise.
24912         * passes.c: Likewise.
24913         * plugin.c: Likewise.
24914         * postreload-gcse.c: Likewise.
24915         * postreload.c: Likewise.
24916         * predict.c: Likewise.
24917         * pretty-print.h: Likewise.
24918         * print-rtl.c: Likewise.
24919         * print-tree.c: Likewise.
24920         * profile.c: Likewise.
24921         * real.c: Likewise.
24922         * realmpfr.c: Likewise.
24923         * recog.c: Likewise.
24924         * ree.c: Likewise.
24925         * reg-stack.c: Likewise.
24926         * regcprop.c: Likewise.
24927         * reginfo.c: Likewise.
24928         * regrename.c: Likewise.
24929         * regstat.c: Likewise.
24930         * reload.c: Likewise.
24931         * reload1.c: Likewise.
24932         * reorg.c: Likewise.
24933         * resource.c: Likewise.
24934         * rtl-chkp.c: Likewise.
24935         * rtl-error.c: Likewise.
24936         * rtlanal.c: Likewise.
24937         * rtlhooks.c: Likewise.
24938         * sanopt.c: Likewise.
24939         * sched-deps.c: Likewise.
24940         * sched-ebb.c: Likewise.
24941         * sched-rgn.c: Likewise.
24942         * sched-vis.c: Likewise.
24943         * sdbout.c: Likewise.
24944         * sel-sched-dump.c: Likewise.
24945         * sel-sched-ir.c: Likewise.
24946         * sel-sched.c: Likewise.
24947         * sese.c: Likewise.
24948         * shrink-wrap.c: Likewise.
24949         * simplify-rtx.c: Likewise.
24950         * stack-ptr-mod.c: Likewise.
24951         * statistics.c: Likewise.
24952         * stmt.c: Likewise.
24953         * stor-layout.c: Likewise.
24954         * store-motion.c: Likewise.
24955         * streamer-hooks.c: Likewise.
24956         * stringpool.c: Likewise.
24957         * symtab.c: Likewise.
24958         * target-globals.c: Likewise.
24959         * targhooks.c: Likewise.
24960         * toplev.c: Likewise.
24961         * tracer.c: Likewise.
24962         * trans-mem.c: Likewise.
24963         * tree-affine.c: Likewise.
24964         * tree-browser.c: Likewise.
24965         * tree-call-cdce.c: Likewise.
24966         * tree-cfg.c: Likewise.
24967         * tree-cfgcleanup.c: Likewise.
24968         * tree-chkp-opt.c: Likewise.
24969         * tree-chkp.c: Likewise.
24970         * tree-chrec.c: Likewise.
24971         * tree-complex.c: Likewise.
24972         * tree-data-ref.c: Likewise.
24973         * tree-dfa.c: Likewise.
24974         * tree-diagnostic.c: Likewise.
24975         * tree-dump.c: Likewise.
24976         * tree-eh.c: Likewise.
24977         * tree-emutls.c: Likewise.
24978         * tree-if-conv.c: Likewise.
24979         * tree-inline.c: Likewise.
24980         * tree-into-ssa.c: Likewise.
24981         * tree-iterator.c: Likewise.
24982         * tree-loop-distribution.c: Likewise.
24983         * tree-nested.c: Likewise.
24984         * tree-nrv.c: Likewise.
24985         * tree-object-size.c: Likewise.
24986         * tree-outof-ssa.c: Likewise.
24987         * tree-parloops.c: Likewise.
24988         * tree-phinodes.c: Likewise.
24989         * tree-predcom.c: Likewise.
24990         * tree-pretty-print.c: Likewise.
24991         * tree-profile.c: Likewise.
24992         * tree-scalar-evolution.c: Likewise.
24993         * tree-sra.c: Likewise.
24994         * tree-ssa-address.c: Likewise.
24995         * tree-ssa-alias.c: Likewise.
24996         * tree-ssa-ccp.c: Likewise.
24997         * tree-ssa-coalesce.c: Likewise.
24998         * tree-ssa-copy.c: Likewise.
24999         * tree-ssa-copyrename.c: Likewise.
25000         * tree-ssa-dce.c: Likewise.
25001         * tree-ssa-dom.c: Likewise.
25002         * tree-ssa-dse.c: Likewise.
25003         * tree-ssa-forwprop.c: Likewise.
25004         * tree-ssa-ifcombine.c: Likewise.
25005         * tree-ssa-live.c: Likewise.
25006         * tree-ssa-loop-ch.c: Likewise.
25007         * tree-ssa-loop-im.c: Likewise.
25008         * tree-ssa-loop-ivcanon.c: Likewise.
25009         * tree-ssa-loop-ivopts.c: Likewise.
25010         * tree-ssa-loop-manip.c: Likewise.
25011         * tree-ssa-loop-niter.c: Likewise.
25012         * tree-ssa-loop-prefetch.c: Likewise.
25013         * tree-ssa-loop-unswitch.c: Likewise.
25014         * tree-ssa-loop.c: Likewise.
25015         * tree-ssa-math-opts.c: Likewise.
25016         * tree-ssa-operands.c: Likewise.
25017         * tree-ssa-phiopt.c: Likewise.
25018         * tree-ssa-phiprop.c: Likewise.
25019         * tree-ssa-pre.c: Likewise.
25020         * tree-ssa-propagate.c: Likewise.
25021         * tree-ssa-reassoc.c: Likewise.
25022         * tree-ssa-sccvn.c: Likewise.
25023         * tree-ssa-scopedtables.c: Likewise.
25024         * tree-ssa-sink.c: Likewise.
25025         * tree-ssa-strlen.c: Likewise.
25026         * tree-ssa-structalias.c: Likewise.
25027         * tree-ssa-tail-merge.c: Likewise.
25028         * tree-ssa-ter.c: Likewise.
25029         * tree-ssa-threadedge.c: Likewise.
25030         * tree-ssa-threadupdate.c: Likewise.
25031         * tree-ssa-uncprop.c: Likewise.
25032         * tree-ssa-uninit.c: Likewise.
25033         * tree-ssa.c: Likewise.
25034         * tree-ssanames.c: Likewise.
25035         * tree-stdarg.c: Likewise.
25036         * tree-streamer-in.c: Likewise.
25037         * tree-streamer-out.c: Likewise.
25038         * tree-streamer.c: Likewise.
25039         * tree-switch-conversion.c: Likewise.
25040         * tree-tailcall.c: Likewise.
25041         * tree-vect-data-refs.c: Likewise.
25042         * tree-vect-generic.c: Likewise.
25043         * tree-vect-loop-manip.c: Likewise.
25044         * tree-vect-loop.c: Likewise.
25045         * tree-vect-patterns.c: Likewise.
25046         * tree-vect-slp.c: Likewise.
25047         * tree-vect-stmts.c: Likewise.
25048         * tree-vectorizer.c: Likewise.
25049         * tree-vrp.c: Likewise.
25050         * tree.c: Likewise.
25051         * tsan.c: Likewise.
25052         * ubsan.c: Likewise.
25053         * valtrack.c: Likewise.
25054         * value-prof.c: Likewise.
25055         * var-tracking.c: Likewise.
25056         * varasm.c: Likewise.
25057         * varpool.c: Likewise.
25058         * vmsdbgout.c: Likewise.
25059         * vtable-verify.c: Likewise.
25060         * web.c: Likewise.
25061         * wide-int.cc: Likewise.
25062         * xcoffout.c: Likewise.
25063         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25064         * common/common-targhooks.c: Likewise.
25065         * config/aarch64/aarch64-builtins.c: Likewise.
25066         * config/aarch64/aarch64.c: Likewise.
25067         * config/alpha/alpha.c: Likewise.
25068         * config/arc/arc.c: Likewise.
25069         * config/arm/aarch-common.c: Likewise.
25070         * config/arm/arm-builtins.c: Likewise.
25071         * config/arm/arm-c.c: Likewise.
25072         * config/arm/arm.c: Likewise.
25073         * config/avr/avr-c.c: Likewise.
25074         * config/avr/avr-log.c: Likewise.
25075         * config/avr/avr.c: Likewise.
25076         * config/bfin/bfin.c: Likewise.
25077         * config/c6x/c6x.c: Likewise.
25078         * config/cr16/cr16.c: Likewise.
25079         * config/cris/cris.c: Likewise.
25080         * config/darwin-c.c: Likewise.
25081         * config/darwin.c: Likewise.
25082         * config/default-c.c: Likewise.
25083         * config/epiphany/epiphany.c: Likewise.
25084         * config/epiphany/mode-switch-use.c: Likewise.
25085         * config/epiphany/resolve-sw-modes.c: Likewise.
25086         * config/fr30/fr30.c: Likewise.
25087         * config/frv/frv.c: Likewise.
25088         * config/ft32/ft32.c: Likewise.
25089         * config/glibc-c.c: Likewise.
25090         * config/h8300/h8300.c: Likewise.
25091         * config/i386/i386-c.c: Likewise.
25092         * config/i386/i386.c: Likewise.
25093         * config/i386/msformat-c.c: Likewise.
25094         * config/i386/winnt-cxx.c: Likewise.
25095         * config/i386/winnt-stubs.c: Likewise.
25096         * config/i386/winnt.c: Likewise.
25097         * config/ia64/ia64-c.c: Likewise.
25098         * config/ia64/ia64.c: Likewise.
25099         * config/iq2000/iq2000.c: Likewise.
25100         * config/lm32/lm32.c: Likewise.
25101         * config/m32c/m32c-pragma.c: Likewise.
25102         * config/m32c/m32c.c: Likewise.
25103         * config/m32r/m32r.c: Likewise.
25104         * config/m68k/m68k.c: Likewise.
25105         * config/mcore/mcore.c: Likewise.
25106         * config/mep/mep-pragma.c: Likewise.
25107         * config/mep/mep.c: Likewise.
25108         * config/microblaze/microblaze-c.c: Likewise.
25109         * config/microblaze/microblaze.c: Likewise.
25110         * config/mips/mips.c: Likewise.
25111         * config/mmix/mmix.c: Likewise.
25112         * config/mn10300/mn10300.c: Likewise.
25113         * config/moxie/moxie.c: Likewise.
25114         * config/msp430/msp430-c.c: Likewise.
25115         * config/msp430/msp430.c: Likewise.
25116         * config/nds32/nds32-cost.c: Likewise.
25117         * config/nds32/nds32-fp-as-gp.c: Likewise.
25118         * config/nds32/nds32-intrinsic.c: Likewise.
25119         * config/nds32/nds32-isr.c: Likewise.
25120         * config/nds32/nds32-md-auxiliary.c: Likewise.
25121         * config/nds32/nds32-memory-manipulation.c: Likewise.
25122         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25123         * config/nds32/nds32-predicates.c: Likewise.
25124         * config/nds32/nds32.c: Likewise.
25125         * config/nios2/nios2.c: Likewise.
25126         * config/nvptx/nvptx.c: Likewise.
25127         * config/pa/pa.c: Likewise.
25128         * config/pdp11/pdp11.c: Likewise.
25129         * config/rl78/rl78-c.c: Likewise.
25130         * config/rl78/rl78.c: Likewise.
25131         * config/rs6000/rs6000-c.c: Likewise.
25132         * config/rs6000/rs6000.c: Likewise.
25133         * config/rx/rx.c: Likewise.
25134         * config/s390/s390-c.c: Likewise.
25135         * config/s390/s390.c: Likewise.
25136         * config/sh/sh-c.c: Likewise.
25137         * config/sh/sh-mem.cc: Likewise.
25138         * config/sh/sh.c: Likewise.
25139         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25140         * config/sh/sh_treg_combine.cc: Likewise.
25141         * config/sol2-c.c: Likewise.
25142         * config/sol2-cxx.c: Likewise.
25143         * config/sol2-stubs.c: Likewise.
25144         * config/sol2.c: Likewise.
25145         * config/sparc/sparc-c.c: Likewise.
25146         * config/sparc/sparc.c: Likewise.
25147         * config/spu/spu-c.c: Likewise.
25148         * config/spu/spu.c: Likewise.
25149         * config/stormy16/stormy16.c: Likewise.
25150         * config/tilegx/mul-tables.c: Likewise.
25151         * config/tilegx/tilegx-c.c: Likewise.
25152         * config/tilegx/tilegx.c: Likewise.
25153         * config/tilepro/mul-tables.c: Likewise.
25154         * config/tilepro/tilepro-c.c: Likewise.
25155         * config/tilepro/tilepro.c: Likewise.
25156         * config/v850/v850-c.c: Likewise.
25157         * config/v850/v850.c: Likewise.
25158         * config/vax/vax.c: Likewise.
25159         * config/visium/visium.c: Likewise.
25160         * config/vms/vms-c.c: Likewise.
25161         * config/vms/vms.c: Likewise.
25162         * config/vxworks.c: Likewise.
25163         * config/winnt-c.c: Likewise.
25164         * config/xtensa/xtensa.c: Likewise.
25166 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
25168         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25169         function.
25170         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25172 2015-06-17  Richard Biener  <rguenther@suse.de>
25174         PR tree-optimization/66251
25175         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25176         stmts for SLP strided stores.
25178         Revert
25179         2015-05-22  Richard Biener  <rguenther@suse.de>
25181         PR tree-optimization/66251
25182         * tree-vect-stmts.c (vectorizable_conversion): Properly
25183         set STMT_VINFO_VEC_STMT even for the SLP case.
25185         2015-05-26  Michael Matz  <matz@suse.de>
25187         PR middle-end/66251
25188         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25189         STMT_VINFO_VEC_STMT, also with SLP.
25191 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
25193         PR target/56766
25194         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25195         (*avx_addsubv4df3_1s): Ditto.
25196         (*sse3_addsubv2df3_1): Ditto.
25197         (*sse3_addsubv2df3_1s): Ditto.
25198         (*avx_addsubv8sf3_1): Ditto.
25199         (*avx_addsubv8sf3_1s): Ditto.
25200         (*sse3_addsubv4sf3_1): Ditto.
25201         (*sse3_addsubv4sf3_1s): Ditto.
25203 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
25205         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25206         (SYSROOT_SUFFIX_SPEC): Update.
25207         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25208         (STARTFILE_PREFIX_SPEC): Update.
25209         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25210         (MULTILIB_REQUIRED): New.
25211         (MULTILIB_OSDIRNAMES): New.
25212         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25213         (MULTILIB_REQUIRED): New.
25214         (MULTILIB_OSDIRNAMES): New.
25216 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
25218         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25219         * config/aarch64/aarch64-options-extensions.def: Update "fP",
25220         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
25221         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25222         (AARCH64_FL_PAN): New.
25223         (AARCH64_FL_LOR): New.
25224         (AARCH64_FL_RDMA): New.
25225         (AARCH64_FL_FOR_ARCH8_1): New.
25226         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25227         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25229 2015-06-16  Martin Liska  <mliska@suse.cz>
25231         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25232         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25233         guard.
25235 2015-06-16  Richard Biener  <rguenther@suse.de>
25237         * tree-vect-stmts.c (vectorizable_store): Adjust.
25238         (vectorizable_load): Likewise.
25239         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25240         Simplify.
25241         (vect_create_data_ref_ptr): Likewise.
25242         (bump_vector_ptr): Adjust.
25244 2015-06-16  Richard Biener  <rguenther@suse.de>
25246         * tree-vect-stmts.c (vectorizable_load): Properly start loads
25247         with the first element if this is grouped loads.
25249 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
25251         * config/arm/arm-protos.h (struct tune_params): Rename
25252         log_op_non_sc to log_op_non_short_circuit, and rename enum
25253         values to expand SC to SHORT_CIRCUIT.
25254         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25255         to LOG_OP_NON_SHORT_CIRCUIT.
25256         (arm_fastmul_tune):Likewise
25257         (arm_strongarm_tune): Likewise.
25258         (arm_xscale_tune): Likewise.
25259         (arm_9e_tune): Likewise.
25260         (arm_marvell_pj4_tune): Likewise.
25261         (arm_v6t2_tune): Likewise.
25262         (arm_cortex_tune): Likewise.
25263         (arm_cortex_a8_tune): Likewise.
25264         (arm_cortex_a7_tune): Likewise.
25265         (arm_cortex_a15_tune): Likewise.
25266         (arm_cortex_a53_tune): Likewise.
25267         (arm_cortex_a57_tune): Likewise.
25268         (arm_xgene1_tune): Likewise.
25269         (arm_cortex_a5_tune): Likewise.
25270         (arm_cortex_a9_tune): Likewise.
25271         (arm_cortex_a12_tune): Likewise.
25272         (arm_v7m_tune): Likewise.
25273         (arm_cortex_m7_tune): Likewise.
25274         (arm_v6m_tune): Likewise.
25275         (arm_fa726te_tune): Likewise.
25277 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
25279         * altivec.md: Delete UNSPEC_VMLADDUHM.
25280         (mulv4si3_p8): New pattern.
25281         (mulv4si3): Use it for POWER8.
25282         (mulv8hi3): Use vmladduhm with zero addend.
25283         (altivec_vmladduhm): Descriptive RTL.
25285 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
25287         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25288         to use neon_move instead of mov_imm.
25289         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25290         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25292         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25293         aarch64_float_const_zero_rtx_p check before TFmode check.
25294         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25295         an fp zero.
25296         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
25297         code and attributes to match.  Change condition from register_operand
25298         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
25299         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
25300         to store2.
25302 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
25304         PR debug/66535
25305         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25306         there is no parent.
25308 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
25310         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25311         HOST_WIDE_INT parameter.
25313 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
25315         PR ipa/66181
25316         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25317         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25318         TYPE_NO_FORCE_BLK.
25319         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25321 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
25323         * rtl.h (classify_insn): Declare.
25324         * emit-rtl.c (classify_insn): Move to...
25325         * rtl.c: ...here and add generator support.
25326         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25327         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25328         * genemit.c (gen_emit_seq): New function.
25329         (gen_expand, gen_split): Use it.
25331 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
25333         * tree.c (make_vector_stat): Fix comment to state that the
25334         function returns a VECTOR_CST.
25336 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
25338         * gensupport.h (add_implicit_parallel): Declare.
25339         * genrecog.c (add_implicit_parallel): Move to...
25340         * gensupport.c (add_implicit_parallel): ...here.
25341         (process_one_cond_exec): Use it.
25342         * genemit.c (gen_insn): Likewise.
25344 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
25346         PR bootstrap/66448
25347         * passes.c (rest_of_decl_compilation): Do not register globals for
25348         early debug if they are declared in built-ins.
25350 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
25352         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25354 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25356         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25357         manually swapping.
25358         (noce_try_cmove_arith): Likewise.
25359         (noce_get_alt_condition): Likewise.
25361 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
25363         * common/config/i386/i386-common.c
25364         (OPTION_MASK_ISA_MWAITX_SET): New.
25365         (ix86_handle_option): Handle mwaitx.
25366         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25367         (x86_64-*-*): Likewise.
25368         * config/i386/mwaitxintrin.h: New header.
25369         * config/i386/cpuid.h (bit_MWAITX):  Define.
25370         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25371         MWAITX support.
25372         * config/i386/i386.opt (mwaitx): New.
25373         * config/i386/i386-builtin-types.def
25374         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25375         * config/i386/i386-c.c: Define __MWAITX__ if needed.
25376         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25377         (PTA_MWAITX): New.
25378         (ix86_option_override_internal): Handle new option.
25379         (processor_alias_table): Added PTA_MWAITX.
25380         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25381         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25382         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25383         IX86_BUILTIN_MONITORX  built-ins.
25384         * config/i386/i386.h (TARGET_MWAITX): New.
25385         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25386         UNSPEC_MONITORX.
25387         (mwaitx):  New pattern.
25388         (monitorx_<mode>): New pattern.
25389         * config/i386/x86intrin.h: Include mwaitxintrin.h.
25390         * doc/extend.texi: Document monitorx and mwaitx builtins.
25391         * doc/invoke.texi: Document -mmwaitx option.
25393 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
25395         * emit-rtl.c (need_atomic_barrier_p): Mask model with
25396         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
25398 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25400         * dbxout.c (xcoff_debug_hooks): Provide a function for
25401         register_main_translation_unit hook.
25403 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
25405         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25406         variants cases from switch.
25407         (rs6000_post_atomic_barrier): Same.
25408         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25409         (rs6000_expand_atomic_exchange): Same.
25410         (rs6000_expand_atomic_op): Same.
25411         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25412         SYNC variants cases from switch.
25413         (atomic_load): Same.
25414         (atomic_store): Same.
25416 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
25418         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25419         CONST_INT for goto.
25421 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
25423         PR bootstrap/66448
25424         * dwarf2out.c (check_die): Check for common duplicate attributes.
25425         (add_location_or_const_value_attribute): Do not add duplicate
25426         attributes.
25427         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25428         time around.
25429         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25430         (gen_type_die_with_usage): Call check_die.
25431         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25433 2015-06-11  Jason Merrill  <jason@redhat.com>
25435         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25436         dies.
25438 2015-06-11  Marek Polacek  <polacek@redhat.com>
25440         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25442 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
25444         PR bootstrap/66252
25445         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25446         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25447         (*addx_extend_sp32): Fix pasto.
25448         (*subx_extend): Rename into...
25449         (*subx_extend_sp32): ...this.
25450         (*adddi3_extend_sp32): Add earlyclobber.
25451         (*subdi3_insn_sp32): Likewise.
25452         (*subdi3_extend_sp32): Likewise.
25453         (*and_not_di_sp32): Likewise.
25454         (*or_not_di_sp32): Likewise.
25455         (*xor_not_di_sp32): Likewise.
25456         (*negdi2_sp32): Likewise.
25457         (*one_cmpldi2_sp32): Likewise.
25459 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
25461         * debug.h (struct gcc_debug_hooks): Add a
25462         register_main_translation_unit hook.
25463         * debug.c (do_nothing_debug_hooks): Provide a function for this
25464         new hook.
25465         * dbxout.c (dbx_debug_hooks): Likewise.
25466         * sdbout.c (sdb_debug_hooks): Likewise.
25467         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25468         * dwarf2out.c (main_translation_unit): New global variable.
25469         (dwarf2out_register_main_translation_unit): New function
25470         implementing the new hook.
25471         (dwarf2_debug_hooks): Assign
25472         dwarf2out_register_main_translation_unit to this new hook.
25473         (dwarf2out_init): Associate any main translation unit to
25474         comp_unit_die ().
25476 2015-06-11  Marek Polacek  <polacek@redhat.com>
25478         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25480 2015-06-11  Marek Polacek  <polacek@redhat.com>
25482         * match.pd: Use single_use throughout.
25484 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25486         * config/arm/arm.c (arm_option_params_internal): When optimising
25487         for speed set max_insns_skipped when arm_restrict_it.
25489 2015-06-11  Christian Bruel  <christian.bruel@st.com>
25491         PR target/52144
25492         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25493          macros in ...
25494         (arm_cpu_builtins): New function.
25495         (arm_pragma_target_parse): Call arm_cpu_builtins.
25496         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25497         (arm_register_target_pragmas): Likewise.
25498         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25499          Call arm_register_target_pragmas.
25500         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25501         (arm_pragma_target_parse): Likewise.
25503 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
25505         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25506         of the second operand.
25508 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
25510         PR target/66473
25511         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25512         to prepare mask operand for AVX512 modes.
25514 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
25516         PR target/66474
25517         * doc/md.texi (Machine Constraints): Document that on the PowerPC
25518         if you use a constraint that targets a VSX register, you must use
25519         %x<n> in the template.
25521 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
25523         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25524         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25525         (define_insn "trap"): New definition.
25527 2015-06-10  Richard Biener  <rguenther@suse.de>
25529         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25530         out from ...
25531         (vect_supported_load_permutation_p): ... here.  Handle
25532         supportable permutations in reductions.
25533         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25534         for vectorizing strided group loads.
25536 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
25538         PR target/66470
25539         * config/i386/i386.c (ix86_split_long_move): For collisions
25540         involving direct tls segment refs, move the UNSPEC_TP possibly
25541         wrapped in ZERO_EXTEND out of the address for lea, to each of
25542         the memory loads.
25544 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25546         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25547         dmb sy. Adjust tabs.
25549 2015-06-10  Tom de Vries  <tom@codesourcery.com>
25551         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25553 2015-06-10  Martin Liska  <mliska@suse.cz>
25555         PR bootstrap/66471
25556         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25557         all enum values in mem_alloc_origin.
25558         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25559         name.
25560         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25561         * bitmap.c (bitmap_register): Likewise.
25562         (dump_bitmap_statistics): Likewise.
25563         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25564         (ggc_record_overhead): Likewise.
25565         * hash-map.h: Likewise.
25566         * hash-set.h: Likewise.
25567         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25568         * hash-table.h: Likewise.
25569         * vec.c (vec_prefix::register_overhead): Likewise.
25570         (vec_prefix::release_overhead): Likewise.
25571         (dump_vec_loc_statistics): Likewise.
25573 2015-06-09  Christian Bruel  <christian.bruel@st.com>
25575         PR target/52144
25576         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25577         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25578         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25579         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25580         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25581         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25582         (arm_valid_target_attribute_p): Likewise.
25583         (arm_set_current_function, arm_can_inline_p): Likewise.
25584         (arm_valid_target_attribute_rec): Likewise.
25585         (arm_previous_fndecl): New variable.
25586         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25587         (TARGET_CAN_INLINE_P): Define.
25588         (arm_asm_trampoline_template): Emit mode.
25589         (arm_file_start): Don't set unified syntax.
25590         (arm_declare_function_name): Set unified syntax and mode.
25591         (arm_option_override): Init target_option_default_node.
25592         and target_option_current_node.
25593         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25594         (*call_symbol): Likewise.
25595         * doc/extend.texi: Document ARM/Thumb target attribute.
25596         * doc/invoke.texi: Likewise.
25598 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25600         Revert:
25601         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25602         PR rtl-optimization/64164
25603         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25604         * tree-ssa-copyrename.c: Removed.
25605         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25606         -ftree-coalesce-vars.
25607         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25608         * common.opt (ftree-copyrename): Ignore.
25609         (ftree-coalesce-inlined-vars): Likewise.
25610         * doc/invoke.texi: Remove the ignored options above.
25611         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25612         * tree-ssa-coalesce.h: ... here.
25613         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25614         headers required by it.
25615         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25616         across variables when flag_tree_coalesce_vars.  Check register
25617         use and promoted modes to allow coalescing.  Moved to
25618         tree-ssa-coalesce.c.
25619         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25620         with its member functions to tree-ssa-coalesce.c.
25621         (var_map_base_init): Likewise.  Renamed to
25622         compute_samebase_partition_bases.
25623         (partition_view_normal): Drop want_bases parameter.
25624         (partition_view_bitmap): Likewise.
25625         * tree-ssa-live.h: Adjust declarations.
25626         * tree-ssa-coalesce.c: Include explow.h.
25627         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25628         default defs at the entry point.
25629         (dump_part_var_map): New.
25630         (compute_optimized_partition_bases): New, called by...
25631         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25632         of compute_samebase_partition_bases.  Adjust.
25633         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25634         * cfgexpand.c (leader_merge): New.
25635         (get_rtl_for_parm_ssa_default_def): New.
25636         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25637         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25638         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25639         redundant MEM attr setting.
25640         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25641         from...
25642         (expand_one_stack_var): ... this.  New wrapper to check and
25643         skip already expanded SSA partitions.
25644         (record_alignment_for_reg_var): New, factored out of...
25645         (expand_one_var): ... this.
25646         (expand_one_ssa_partition): New.
25647         (adjust_one_expanded_partition_var): New.
25648         (expand_one_register_var): Check and skip already expanded SSA
25649         partitions.
25650         (expand_used_vars): Don't create DECLs for anonymous SSA
25651         names.  Expand all SSA partitions, then adjust all SSA names.
25652         (pass::execute): Replace the loops that set
25653         SA.partition_to_pseudo from partition leaders and cleared
25654         DECL_RTL for multi-location variables, and that which used to
25655         rename vars and set attrs, with one that clears DECL_RTL and
25656         checks that PARMs and RESULTs default_defs match DECL_RTL.
25657         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25658         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25659         * explow.c (promote_ssa_mode): New.
25660         * explow.h (promote_ssa_mode): Declare.
25661         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25662         * function.c: Include cfgexpand.h.
25663         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25664         (use_register_for_parm_decl): Wrapper for the above to
25665         special-case the result_ptr.
25666         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25667         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25668         multiple locations.
25669         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25670         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25671         (assign_parm_setup_block): Prefer SSA-assigned location.
25672         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25673         if stack_parm is NULL.
25674         (assign_parm_setup_stack): Prefer SSA-assigned location.
25675         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25676         rtl before testing for pointer bounds.  Special-case result_ptr.
25677         (expand_function_start): Maybe reset DECL_RTL of result.
25678         Prefer SSA-assigned location for result and static chain.
25679         Factor out DECL_RESULT and SET_DECL_RTL.
25680         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25681         anonymous SSA names.  Use promote_ssa_mode.
25682         (get_temp_reg): Likewise.
25683         (remove_ssa_form): Adjust.
25684         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25685         and get its reg_usage for reg invalidation.
25686         (compute_bb_dataflow): Pass it insn.
25687         (emit_notes_in_bb): Likewise.
25688         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25689         fail assert on conversion between unsigned types.
25691 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25693         PR tree-optimization/65460
25694         * omp-low.c (expand_omp_target): Set parallelized_function on
25695         cgraph_node for child_fn.
25697 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25699         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25700         parallelized_function before add_new_function.
25702 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
25704         * gcc-plugin.h: Move decls to plugin.h and include it.
25705         * plugin.h: Relocate decls from gcc-plugin.h
25706         * ggc-page.c: Include required header files.
25707         * passes.c: Likewise.
25708         * cgraphunit.c: Likewise.
25710 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25712         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25714 2015-06-09  Jason Merrill  <jason@redhat.com>
25716         PR bootstrap/66448
25717         * toplev.c (check_global_declaration): Don't warn about a clone.
25719 2015-06-09  Marek Polacek  <polacek@redhat.com>
25721         PR tree-optimization/66299
25722         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25723         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25724         patterns.
25726 2015-06-09  Richard Biener  <rguenther@suse.de>
25728         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25729         (vect_analyze_slp_instance): Instead do not falsely drop
25730         load permutations.
25732 2015-06-09  Richard Biener  <rguenther@suse.de>
25734         PR middle-end/66423
25735         * match.pd: Handle A % (unsigned)(1 << B).
25737 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
25739         * varasm.c (output_object_block_htab): Remove.
25740         (output_object_block_compare): New.
25741         (output_object_blocks): Sort named object_blocks before outputting
25742         them.
25744 2015-06-09  Richard Biener  <rguenther@suse.de>
25746         PR tree-optimization/66419
25747         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25748         consider GROUP_GAP when detecting a perfect subchain.
25750 2015-06-09  Nick Clifton  <nickc@redhat.com>
25752         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25753         place read only data in the .frodata section.
25755 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
25757         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25758         (atomic_store<mode>): Likewise.
25760 2015-06-09  Richard Biener  <rguenther@suse.de>
25762         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25764 2015-06-09  Richard Biener  <rguenther@suse.de>
25766         PR middle-end/66413
25767         * tree-inline.c (insert_init_debug_bind): Unshare value.
25769 2015-06-09  Richard Biener  <rguenther@suse.de>
25771         PR tree-optimization/66396
25772         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25773         Rename virtual operands.
25775 2015-06-09  Tom de Vries  <tom@codesourcery.com>
25777         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25778         always return false.
25780 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25782         PR rtl-optimization/64164
25783         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25784         * tree-ssa-copyrename.c: Removed.
25785         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
25786         -ftree-coalesce-vars.
25787         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25788         * common.opt (ftree-copyrename): Ignore.
25789         (ftree-coalesce-inlined-vars): Likewise.
25790         * doc/invoke.texi: Remove the ignored options above.
25791         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25792         * tree-ssa-coalesce.h: ... here.
25793         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25794         headers required by it.
25795         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25796         across variables when flag_tree_coalesce_vars.  Check register
25797         use and promoted modes to allow coalescing.  Moved to
25798         tree-ssa-coalesce.c.
25799         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25800         with its member functions to tree-ssa-coalesce.c.
25801         (var_map_base_init): Likewise.  Renamed to
25802         compute_samebase_partition_bases.
25803         (partition_view_normal): Drop want_bases parameter.
25804         (partition_view_bitmap): Likewise.
25805         * tree-ssa-live.h: Adjust declarations.
25806         * tree-ssa-coalesce.c: Include explow.h.
25807         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25808         default defs at the entry point.
25809         (dump_part_var_map): New.
25810         (compute_optimized_partition_bases): New, called by...
25811         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25812         of compute_samebase_partition_bases.  Adjust.
25813         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25814         * cfgexpand.c (leader_merge): New.
25815         (get_rtl_for_parm_ssa_default_def): New.
25816         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25817         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25818         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
25819         redundant MEM attr setting.
25820         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
25821         from...
25822         (expand_one_stack_var): ... this.  New wrapper to check and
25823         skip already expanded SSA partitions.
25824         (record_alignment_for_reg_var): New, factored out of...
25825         (expand_one_var): ... this.
25826         (expand_one_ssa_partition): New.
25827         (adjust_one_expanded_partition_var): New.
25828         (expand_one_register_var): Check and skip already expanded SSA
25829         partitions.
25830         (expand_used_vars): Don't create DECLs for anonymous SSA
25831         names.  Expand all SSA partitions, then adjust all SSA names.
25832         (pass::execute): Replace the loops that set
25833         SA.partition_to_pseudo from partition leaders and cleared
25834         DECL_RTL for multi-location variables, and that which used to
25835         rename vars and set attrs, with one that clears DECL_RTL and
25836         checks that PARMs and RESULTs default_defs match DECL_RTL.
25837         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25838         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25839         * explow.c (promote_ssa_mode): New.
25840         * explow.h (promote_ssa_mode): Declare.
25841         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25842         * function.c: Include cfgexpand.h.
25843         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25844         (use_register_for_parm_decl): Wrapper for the above to
25845         special-case the result_ptr.
25846         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25847         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25848         multiple locations.
25849         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25850         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
25851         (assign_parm_setup_block): Prefer SSA-assigned location.
25852         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
25853         if stack_parm is NULL.
25854         (assign_parm_setup_stack): Prefer SSA-assigned location.
25855         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
25856         rtl before testing for pointer bounds.  Special-case result_ptr.
25857         (expand_function_start): Maybe reset DECL_RTL of result.
25858         Prefer SSA-assigned location for result and static chain.
25859         Factor out DECL_RESULT and SET_DECL_RTL.
25860         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25861         anonymous SSA names.  Use promote_ssa_mode.
25862         (get_temp_reg): Likewise.
25863         (remove_ssa_form): Adjust.
25864         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25865         and get its reg_usage for reg invalidation.
25866         (compute_bb_dataflow): Pass it insn.
25867         (emit_notes_in_bb): Likewise.
25868         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25869         fail assert on conversion between unsigned types.
25871 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
25873         PR debug/58315
25874         * tree-inline.c (reset_debug_binding): New.
25875         (reset_debug_bindings): Likewise.
25876         (expand_call_inline): Call it.
25878 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25880         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
25881         TYPE_STRING_FLAG.
25883 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
25885         * lto-streamer-out.c (lto_output_location): Stream
25886         reserved locations correctly.
25887         * lto-streamer-in.c (lto_output_location): Likewise.
25889 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
25891         * coretypes.h: Include hash-table.h and hash-set.h for host files.
25892         * ggc.h: Don't include statistics.h>
25893         * hash-map.h: Remove all includes.
25894         * hash-set.h: Likewise.
25895         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
25896         the include list. Remove <new>.
25897         * inchash.h: Remove all includes.
25898         * mem-stats.h: Likewise.
25899         * vec.h: No special processing for generators or ggc.
25900         * alias.c : Adjust include files.
25901         * alloc-pool.c : Likewise.
25902         * alloc-pool.h : Likewise.
25903         * asan.c : Likewise.
25904         * attribs.c : Likewise.
25905         * auto-inc-dec.c : Likewise.
25906         * auto-profile.c : Likewise.
25907         * bb-reorder.c : Likewise.
25908         * bitmap.c : Likewise.
25909         * bitmap.h : Likewise.
25910         * bt-load.c : Likewise.
25911         * builtins.c : Likewise.
25912         * caller-save.c : Likewise.
25913         * calls.c : Likewise.
25914         * ccmp.c : Likewise.
25915         * cfg.c : Likewise.
25916         * cfganal.c : Likewise.
25917         * cfgbuild.c : Likewise.
25918         * cfgcleanup.c : Likewise.
25919         * cfgexpand.c : Likewise.
25920         * cfghooks.c : Likewise.
25921         * cfgloop.c : Likewise.
25922         * cfgloop.h : Likewise.
25923         * cfgloopanal.c : Likewise.
25924         * cfgloopmanip.c : Likewise.
25925         * cfgrtl.c : Likewise.
25926         * cgraph.c : Likewise.
25927         * cgraphbuild.c : Likewise.
25928         * cgraphclones.c : Likewise.
25929         * cgraphunit.c : Likewise.
25930         * cilk-common.c : Likewise.
25931         * combine-stack-adj.c : Likewise.
25932         * combine.c : Likewise.
25933         * compare-elim.c : Likewise.
25934         * context.c : Likewise.
25935         * convert.c : Likewise.
25936         * coverage.c : Likewise.
25937         * cppbuiltin.c : Likewise.
25938         * cprop.c : Likewise.
25939         * cse.c : Likewise.
25940         * cselib.c : Likewise.
25941         * data-streamer-in.c : Likewise.
25942         * data-streamer-out.c : Likewise.
25943         * data-streamer.c : Likewise.
25944         * data-streamer.h : Likewise.
25945         * dbxout.c : Likewise.
25946         * dce.c : Likewise.
25947         * ddg.c : Likewise.
25948         * debug.c : Likewise.
25949         * df-core.c : Likewise.
25950         * df-problems.c : Likewise.
25951         * df-scan.c : Likewise.
25952         * df.h : Likewise.
25953         * dfp.c : Likewise.
25954         * dojump.c : Likewise.
25955         * dominance.c : Likewise.
25956         * domwalk.c : Likewise.
25957         * double-int.c : Likewise.
25958         * dse.c : Likewise.
25959         * dumpfile.c : Likewise.
25960         * dwarf2asm.c : Likewise.
25961         * dwarf2cfi.c : Likewise.
25962         * dwarf2out.c : Likewise.
25963         * emit-rtl.c : Likewise.
25964         * et-forest.c : Likewise.
25965         * except.c : Likewise.
25966         * except.h : Likewise.
25967         * explow.c : Likewise.
25968         * expmed.c : Likewise.
25969         * expr.c : Likewise.
25970         * final.c : Likewise.
25971         * fixed-value.c : Likewise.
25972         * fold-const.c : Likewise.
25973         * function.c : Likewise.
25974         * fwprop.c : Likewise.
25975         * gcc-plugin.h : Likewise.
25976         * gcc.c : Likewise.
25977         * gcse-common.c : Likewise.
25978         * gcse.c : Likewise.
25979         * genattrtab.c : Likewise.
25980         * genautomata.c : Likewise.
25981         * genconditions.c : Likewise.
25982         * genemit.c : Likewise.
25983         * generic-match-head.c : Likewise.
25984         * genextract.c : Likewise.
25985         * gengtype-state.c : Likewise.
25986         * gengtype.c : Likewise.
25987         * genhooks.c : Likewise.
25988         * genmatch.c : Likewise.
25989         * genmodes.c : Likewise.
25990         * genrecog.c : Likewise.
25991         * gensupport.c : Likewise.
25992         * ggc-common.c : Likewise.
25993         * ggc-internal.h : Likewise.
25994         * ggc-none.c : Likewise.
25995         * ggc-page.c : Likewise.
25996         * gimple-builder.c : Likewise.
25997         * gimple-expr.c : Likewise.
25998         * gimple-fold.c : Likewise.
25999         * gimple-iterator.c : Likewise.
26000         * gimple-low.c : Likewise.
26001         * gimple-match-head.c : Likewise.
26002         * gimple-pretty-print.c : Likewise.
26003         * gimple-ssa-isolate-paths.c : Likewise.
26004         * gimple-ssa-strength-reduction.c : Likewise.
26005         * gimple-ssa.h : Likewise.
26006         * gimple-streamer-in.c : Likewise.
26007         * gimple-streamer-out.c : Likewise.
26008         * gimple-streamer.h : Likewise.
26009         * gimple-walk.c : Likewise.
26010         * gimple.c : Likewise.
26011         * gimplify-me.c : Likewise.
26012         * gimplify.c : Likewise.
26013         * godump.c : Likewise.
26014         * graph.c : Likewise.
26015         * graphds.c : Likewise.
26016         * graphite-blocking.c : Likewise.
26017         * graphite-dependences.c : Likewise.
26018         * graphite-interchange.c : Likewise.
26019         * graphite-isl-ast-to-gimple.c : Likewise.
26020         * graphite-optimize-isl.c : Likewise.
26021         * graphite-poly.c : Likewise.
26022         * graphite-scop-detection.c : Likewise.
26023         * graphite-sese-to-poly.c : Likewise.
26024         * graphite.c : Likewise.
26025         * haifa-sched.c : Likewise.
26026         * hard-reg-set.h : Likewise.
26027         * hw-doloop.c : Likewise.
26028         * ifcvt.c : Likewise.
26029         * inchash.c : Likewise.
26030         * incpath.c : Likewise.
26031         * init-regs.c : Likewise.
26032         * input.c : Likewise.
26033         * internal-fn.c : Likewise.
26034         * ipa-chkp.c : Likewise.
26035         * ipa-comdats.c : Likewise.
26036         * ipa-cp.c : Likewise.
26037         * ipa-devirt.c : Likewise.
26038         * ipa-icf-gimple.c : Likewise.
26039         * ipa-icf.c : Likewise.
26040         * ipa-inline-analysis.c : Likewise.
26041         * ipa-inline-transform.c : Likewise.
26042         * ipa-inline.c : Likewise.
26043         * ipa-polymorphic-call.c : Likewise.
26044         * ipa-profile.c : Likewise.
26045         * ipa-prop.c : Likewise.
26046         * ipa-pure-const.c : Likewise.
26047         * ipa-ref.c : Likewise.
26048         * ipa-reference.c : Likewise.
26049         * ipa-split.c : Likewise.
26050         * ipa-utils.c : Likewise.
26051         * ipa-visibility.c : Likewise.
26052         * ipa.c : Likewise.
26053         * ira-build.c : Likewise.
26054         * ira-color.c : Likewise.
26055         * ira-conflicts.c : Likewise.
26056         * ira-costs.c : Likewise.
26057         * ira-emit.c : Likewise.
26058         * ira-lives.c : Likewise.
26059         * ira.c : Likewise.
26060         * jump.c : Likewise.
26061         * langhooks.c : Likewise.
26062         * lcm.c : Likewise.
26063         * libfuncs.h : Likewise.
26064         * lists.c : Likewise.
26065         * loop-doloop.c : Likewise.
26066         * loop-init.c : Likewise.
26067         * loop-invariant.c : Likewise.
26068         * loop-iv.c : Likewise.
26069         * loop-unroll.c : Likewise.
26070         * lower-subreg.c : Likewise.
26071         * lra-assigns.c : Likewise.
26072         * lra-coalesce.c : Likewise.
26073         * lra-constraints.c : Likewise.
26074         * lra-eliminations.c : Likewise.
26075         * lra-lives.c : Likewise.
26076         * lra-remat.c : Likewise.
26077         * lra-spills.c : Likewise.
26078         * lra.c : Likewise.
26079         * lto-cgraph.c : Likewise.
26080         * lto-compress.c : Likewise.
26081         * lto-opts.c : Likewise.
26082         * lto-section-in.c : Likewise.
26083         * lto-section-out.c : Likewise.
26084         * lto-streamer-in.c : Likewise.
26085         * lto-streamer-out.c : Likewise.
26086         * lto-streamer.c : Likewise.
26087         * lto-streamer.h : Likewise.
26088         * mcf.c : Likewise.
26089         * mode-switching.c : Likewise.
26090         * modulo-sched.c : Likewise.
26091         * omega.c : Likewise.
26092         * omp-low.c : Likewise.
26093         * optabs.c : Likewise.
26094         * opts-global.c : Likewise.
26095         * opts.h : Likewise.
26096         * passes.c : Likewise.
26097         * plugin.c : Likewise.
26098         * postreload-gcse.c : Likewise.
26099         * postreload.c : Likewise.
26100         * predict.c : Likewise.
26101         * print-rtl.c : Likewise.
26102         * print-tree.c : Likewise.
26103         * profile.c : Likewise.
26104         * read-md.c : Likewise.
26105         * read-md.h : Likewise.
26106         * read-rtl.c : Likewise.
26107         * real.c : Likewise.
26108         * realmpfr.c : Likewise.
26109         * recog.c : Likewise.
26110         * ree.c : Likewise.
26111         * reg-stack.c : Likewise.
26112         * regcprop.c : Likewise.
26113         * reginfo.c : Likewise.
26114         * regrename.c : Likewise.
26115         * regstat.c : Likewise.
26116         * reload.c : Likewise.
26117         * reload1.c : Likewise.
26118         * reorg.c : Likewise.
26119         * resource.c : Likewise.
26120         * rtl-chkp.c : Likewise.
26121         * rtl.c : Likewise.
26122         * rtl.h : Likewise.
26123         * rtlanal.c : Likewise.
26124         * rtlhash.c : Likewise.
26125         * rtlhash.h : Likewise.
26126         * rtlhooks.c : Likewise.
26127         * sanopt.c : Likewise.
26128         * sched-deps.c : Likewise.
26129         * sched-ebb.c : Likewise.
26130         * sched-rgn.c : Likewise.
26131         * sched-vis.c : Likewise.
26132         * sdbout.c : Likewise.
26133         * sel-sched-dump.c : Likewise.
26134         * sel-sched-ir.c : Likewise.
26135         * sel-sched-ir.h : Likewise.
26136         * sel-sched.c : Likewise.
26137         * sese.c : Likewise.
26138         * shrink-wrap.c : Likewise.
26139         * shrink-wrap.h : Likewise.
26140         * simplify-rtx.c : Likewise.
26141         * stack-ptr-mod.c : Likewise.
26142         * statistics.c : Likewise.
26143         * stmt.c : Likewise.
26144         * stor-layout.c : Likewise.
26145         * store-motion.c : Likewise.
26146         * stringpool.c : Likewise.
26147         * symtab.c : Likewise.
26148         * target-globals.c : Likewise.
26149         * targhooks.c : Likewise.
26150         * tlink.c : Likewise.
26151         * toplev.c : Likewise.
26152         * tracer.c : Likewise.
26153         * trans-mem.c : Likewise.
26154         * tree-affine.c : Likewise.
26155         * tree-affine.h : Likewise.
26156         * tree-browser.c : Likewise.
26157         * tree-call-cdce.c : Likewise.
26158         * tree-cfg.c : Likewise.
26159         * tree-cfgcleanup.c : Likewise.
26160         * tree-chkp-opt.c : Likewise.
26161         * tree-chkp.c : Likewise.
26162         * tree-chrec.c : Likewise.
26163         * tree-complex.c : Likewise.
26164         * tree-data-ref.c : Likewise.
26165         * tree-dfa.c : Likewise.
26166         * tree-diagnostic.c : Likewise.
26167         * tree-dump.c : Likewise.
26168         * tree-eh.c : Likewise.
26169         * tree-eh.h : Likewise.
26170         * tree-emutls.c : Likewise.
26171         * tree-hasher.h : Likewise.
26172         * tree-if-conv.c : Likewise.
26173         * tree-inline.c : Likewise.
26174         * tree-inline.h : Likewise.
26175         * tree-into-ssa.c : Likewise.
26176         * tree-iterator.c : Likewise.
26177         * tree-loop-distribution.c : Likewise.
26178         * tree-nested.c : Likewise.
26179         * tree-nrv.c : Likewise.
26180         * tree-object-size.c : Likewise.
26181         * tree-outof-ssa.c : Likewise.
26182         * tree-parloops.c : Likewise.
26183         * tree-phinodes.c : Likewise.
26184         * tree-predcom.c : Likewise.
26185         * tree-pretty-print.c : Likewise.
26186         * tree-profile.c : Likewise.
26187         * tree-scalar-evolution.c : Likewise.
26188         * tree-sra.c : Likewise.
26189         * tree-ssa-address.c : Likewise.
26190         * tree-ssa-alias.c : Likewise.
26191         * tree-ssa-ccp.c : Likewise.
26192         * tree-ssa-coalesce.c : Likewise.
26193         * tree-ssa-copy.c : Likewise.
26194         * tree-ssa-copyrename.c : Likewise.
26195         * tree-ssa-dce.c : Likewise.
26196         * tree-ssa-dom.c : Likewise.
26197         * tree-ssa-dse.c : Likewise.
26198         * tree-ssa-forwprop.c : Likewise.
26199         * tree-ssa-ifcombine.c : Likewise.
26200         * tree-ssa-live.c : Likewise.
26201         * tree-ssa-loop-ch.c : Likewise.
26202         * tree-ssa-loop-im.c : Likewise.
26203         * tree-ssa-loop-ivcanon.c : Likewise.
26204         * tree-ssa-loop-ivopts.c : Likewise.
26205         * tree-ssa-loop-manip.c : Likewise.
26206         * tree-ssa-loop-niter.c : Likewise.
26207         * tree-ssa-loop-prefetch.c : Likewise.
26208         * tree-ssa-loop-unswitch.c : Likewise.
26209         * tree-ssa-loop.c : Likewise.
26210         * tree-ssa-math-opts.c : Likewise.
26211         * tree-ssa-operands.c : Likewise.
26212         * tree-ssa-phiopt.c : Likewise.
26213         * tree-ssa-phiprop.c : Likewise.
26214         * tree-ssa-pre.c : Likewise.
26215         * tree-ssa-propagate.c : Likewise.
26216         * tree-ssa-reassoc.c : Likewise.
26217         * tree-ssa-sccvn.c : Likewise.
26218         * tree-ssa-scopedtables.c : Likewise.
26219         * tree-ssa-sink.c : Likewise.
26220         * tree-ssa-strlen.c : Likewise.
26221         * tree-ssa-structalias.c : Likewise.
26222         * tree-ssa-tail-merge.c : Likewise.
26223         * tree-ssa-ter.c : Likewise.
26224         * tree-ssa-threadedge.c : Likewise.
26225         * tree-ssa-threadupdate.c : Likewise.
26226         * tree-ssa-uncprop.c : Likewise.
26227         * tree-ssa-uninit.c : Likewise.
26228         * tree-ssa.c : Likewise.
26229         * tree-ssanames.c : Likewise.
26230         * tree-stdarg.c : Likewise.
26231         * tree-streamer-in.c : Likewise.
26232         * tree-streamer-out.c : Likewise.
26233         * tree-streamer.c : Likewise.
26234         * tree-streamer.h : Likewise.
26235         * tree-switch-conversion.c : Likewise.
26236         * tree-tailcall.c : Likewise.
26237         * tree-vect-data-refs.c : Likewise.
26238         * tree-vect-generic.c : Likewise.
26239         * tree-vect-loop-manip.c : Likewise.
26240         * tree-vect-loop.c : Likewise.
26241         * tree-vect-patterns.c : Likewise.
26242         * tree-vect-slp.c : Likewise.
26243         * tree-vect-stmts.c : Likewise.
26244         * tree-vectorizer.c : Likewise.
26245         * tree-vectorizer.h : Likewise.
26246         * tree-vrp.c : Likewise.
26247         * tree.c : Likewise.
26248         * tsan.c : Likewise.
26249         * ubsan.c : Likewise.
26250         * valtrack.c : Likewise.
26251         * valtrack.h : Likewise.
26252         * value-prof.c : Likewise.
26253         * var-tracking.c : Likewise.
26254         * varasm.c : Likewise.
26255         * varpool.c : Likewise.
26256         * vec.c: Likewise.
26257         * vmsdbgout.c : Likewise.
26258         * vtable-verify.c : Likewise.
26259         * vtable-verify.h : Likewise.
26260         * web.c : Likewise.
26261         * wide-int.cc : Likewise.
26262         * xcoffout.c : Likewise.
26263         * config/aarch64/aarch64-builtins.c : Likewise.
26264         * config/aarch64/aarch64.c : Likewise.
26265         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26266         * config/alpha/alpha.c : Likewise.
26267         * config/arc/arc.c : Likewise.
26268         * config/arm/aarch-common.c : Likewise.
26269         * config/arm/arm-builtins.c : Likewise.
26270         * config/arm/arm-c.c : Likewise.
26271         * config/arm/arm.c : Likewise.
26272         * config/avr/avr-c.c : Likewise.
26273         * config/avr/avr-log.c : Likewise.
26274         * config/avr/avr.c : Likewise.
26275         * config/bfin/bfin.c : Likewise.
26276         * config/c6x/c6x.c : Likewise.
26277         * config/cr16/cr16.c : Likewise.
26278         * config/cris/cris.c : Likewise.
26279         * config/darwin-c.c : Likewise.
26280         * config/darwin.c : Likewise.
26281         * config/default-c.c : Likewise.
26282         * config/epiphany/epiphany.c : Likewise.
26283         * config/epiphany/mode-switch-use.c : Likewise.
26284         * config/epiphany/resolve-sw-modes.c : Likewise.
26285         * config/fr30/fr30.c : Likewise.
26286         * config/frv/frv.c : Likewise.
26287         * config/ft32/ft32.c : Likewise.
26288         * config/glibc-c.c : Likewise.
26289         * config/h8300/h8300.c : Likewise.
26290         * config/i386/i386-c.c : Likewise.
26291         * config/i386/i386.c : Likewise.
26292         * config/i386/msformat-c.c : Likewise.
26293         * config/i386/winnt-cxx.c : Likewise.
26294         * config/i386/winnt-stubs.c : Likewise.
26295         * config/i386/winnt.c : Likewise.
26296         * config/ia64/ia64-c.c : Likewise.
26297         * config/ia64/ia64.c : Likewise.
26298         * config/iq2000/iq2000.c : Likewise.
26299         * config/lm32/lm32.c : Likewise.
26300         * config/m32c/m32c-pragma.c : Likewise.
26301         * config/m32c/m32c.c : Likewise.
26302         * config/m32r/m32r.c : Likewise.
26303         * config/m68k/m68k.c : Likewise.
26304         * config/mcore/mcore.c : Likewise.
26305         * config/mep/mep-pragma.c : Likewise.
26306         * config/mep/mep.c : Likewise.
26307         * config/microblaze/microblaze-c.c : Likewise.
26308         * config/microblaze/microblaze.c : Likewise.
26309         * config/mips/mips.c : Likewise.
26310         * config/mmix/mmix.c : Likewise.
26311         * config/mn10300/mn10300.c : Likewise.
26312         * config/moxie/moxie.c : Likewise.
26313         * config/msp430/msp430-c.c : Likewise.
26314         * config/msp430/msp430.c : Likewise.
26315         * config/nds32/nds32-cost.c : Likewise.
26316         * config/nds32/nds32-fp-as-gp.c : Likewise.
26317         * config/nds32/nds32-intrinsic.c : Likewise.
26318         * config/nds32/nds32-isr.c : Likewise.
26319         * config/nds32/nds32-md-auxiliary.c : Likewise.
26320         * config/nds32/nds32-memory-manipulation.c : Likewise.
26321         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26322         * config/nds32/nds32-predicates.c : Likewise.
26323         * config/nds32/nds32.c : Likewise.
26324         * config/nios2/nios2.c : Likewise.
26325         * config/nvptx/nvptx.c : Likewise.
26326         * config/pa/pa.c : Likewise.
26327         * config/pdp11/pdp11.c : Likewise.
26328         * config/rl78/rl78-c.c : Likewise.
26329         * config/rl78/rl78.c : Likewise.
26330         * config/rs6000/rs6000-c.c : Likewise.
26331         * config/rs6000/rs6000.c : Likewise.
26332         * config/rx/rx.c : Likewise.
26333         * config/s390/s390-c.c : Likewise.
26334         * config/s390/s390.c : Likewise.
26335         * config/sh/sh-c.c : Likewise.
26336         * config/sh/sh-mem.cc : Likewise.
26337         * config/sh/sh.c : Likewise.
26338         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26339         * config/sh/sh_treg_combine.cc : Likewise.
26340         * config/sol2-c.c : Likewise.
26341         * config/sol2-cxx.c : Likewise.
26342         * config/sol2-stubs.c : Likewise.
26343         * config/sol2.c : Likewise.
26344         * config/sparc/sparc-c.c : Likewise.
26345         * config/sparc/sparc.c : Likewise.
26346         * config/spu/spu-c.c : Likewise.
26347         * config/spu/spu.c : Likewise.
26348         * config/stormy16/stormy16.c : Likewise.
26349         * config/tilegx/mul-tables.c : Likewise.
26350         * config/tilegx/tilegx-c.c : Likewise.
26351         * config/tilegx/tilegx.c : Likewise.
26352         * config/tilepro/mul-tables.c : Likewise.
26353         * config/tilepro/tilepro-c.c : Likewise.
26354         * config/tilepro/tilepro.c : Likewise.
26355         * config/v850/v850-c.c : Likewise.
26356         * config/v850/v850.c : Likewise.
26357         * config/vax/vax.c : Likewise.
26358         * config/visium/visium.c : Likewise.
26359         * config/vms/vms-c.c : Likewise.
26360         * config/vms/vms.c : Likewise.
26361         * config/vxworks.c : Likewise.
26362         * config/winnt-c.c : Likewise.
26363         * config/xtensa/xtensa.c : Likewise.
26365 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26367         PR lto/65378
26368         * ipa-utils.h (warn_types_mismatch): Update prototype.
26369         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26370         parameters.
26371         (type_mismatch_p): New function.
26372         (warn_types_mismatch): Reorg to work better on non-C++ types.
26373         (odr_types_equivalent_p): Add loc1/loc2 parameters.
26374         (add_type_duplicate): Update.
26376 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26378         PR rtl-optimization/66444
26379         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26380         call_used_regs.
26382 2015-06-08  Richard Biener  <rguenther@suse.de>
26384         PR tree-optimization/66422
26385         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26386         block after inserted gcc_unreachable.
26388 2015-06-08  Nick Clifton  <nickc@redhat.com>
26390         * config/rx/rx.c (rx_function_value): Do not promote vector types.
26391         (rx_promote_function_mode): Likewise.
26392         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26394 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
26396         * genattrtab.c (insn_alternatives): Change type from int *
26397         to uint64_t *.
26398         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26399         (get_attr_value): Change type of num_alt to uint64_t.
26400         (compute_alternative_mask): Change return type from
26401         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26402         (make_alternative_compare, mk_attr_alt): Change argument type
26403         from int to uint64_t.
26404         (simplify_test_exp): Change type of i from int to uint64_t.
26405         Shift ((uint64_t) 1) instead of 1 up.
26406         (main): Adjust oballocvec first argument from int to uint64_t.
26407         Shift ((uint64_t) 1) instead of 1 up.
26409 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
26411         PR other/65366
26412         * gdbhooks.py: Import sys.
26413         (intptr): New function.  Replace int(...) by intptr(...).
26415 2015-06-08  Richard Biener  <rguenther@suse.de>
26417         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26418         adjustment for gaps at the end of a SLP load group properly.
26419         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26420         all permutations we can generate.
26421         (vect_transform_slp_perm_load): Use the correct group-size.
26423 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
26425         * genmatch.c (expr::gen_transform): For conditions, guess the type
26426         from the second operand.
26428 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26430         PR tree-optimization/66442
26431         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26432         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26433         if the loop latch is not a singleton.  Use
26434         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26436 2015-06-08  Marek Polacek  <polacek@redhat.com>
26438         PR sanitizer/66452
26439         * toplev.c (check_global_declaration): Don't warn about artificial
26440         decls.
26442 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26444         PR tree-optimization/66436
26445         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26446         dump file.
26447         * gimplify.c: Add tree-dump.h include.
26448         (gimplify_function_tree): Dump function to gimple dump file.
26449         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26450         dump file.
26452 2015-06-08  Tom de Vries  <tom@codesourcery.com>
26454         PR tree-optimization/66435
26455         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26456         function.
26458 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
26460         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26461         of ptr_type_node to not be ptr_to_node.
26462         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26463         TREE_TYPE of pointers.
26464         * gimple-expr.c (useless_type_conversion): Reorder the check for
26465         function pointers and TYPE_CANONICAL.
26467 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
26469         PR bootstrap/66319
26470         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26471         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26472         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26473         later.
26474         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26475         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26476         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26477         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26478         and non iso if unix2003.
26480 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
26482         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26484 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
26486         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26487         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26488         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26489         except.c, final.c, function.c, gcse-common.c, genemit.c,
26490         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26491         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26492         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26493         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26494         more derived ones.
26496 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
26498         * combine.c (combine_split_insns): Remove cast.
26499         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26500         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26501         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26502         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26503         * genemit.c (gen_split): Change return type of generated functions to
26504         rtx_insn.
26505         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26506         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26507         gen_peephole2_* functions.
26508         (print_subroutine, main): Likewise.
26509         * recog.c (peephole2_optimize): Remove cast.
26510         (peep2_next_insn): Promote return type to rtx_insn.
26511         * recog.h (peep2_next_insn): Fix prototype.
26512         * rtl.h (try_split, split_insns): Likewise.
26514 2015-06-06  DJ Delorie  <dj@redhat.com>
26516         * config/msp430/msp430.c (msp430_asm_integer): Support addition
26517         and subtraction too.
26519 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26521         PR target/66410
26522         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26523         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26524         instead of Snd.  Disparage Sid/z alternative with '^'.
26526 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
26528         * dwarf2out.c: Remove deferred_locations*.
26529         (dwarf2_debug_hooks): Add early_finish hook.
26530         Remove global_decl hook.
26531         Add early_global_decl and late_global_decl hook.
26532         New global early_dwarf.
26533         New structure set_early_dwarf.
26534         (output_die): Indicate whether a DIE was generated early
26535         when generating assembly with -dA.
26536         (struct limbo_die_struct): Document created_for field.
26537         Remove file_table_last_lookup.
26538         (remove_AT): Return TRUE if successful.
26539         (remove_child_TAG): Clear die_parent.
26540         (reparent_child): New function abstracted from...
26541         (splice_child_die): ...here.
26542         (new_die): ICE if a DIE ends up in limbo too late.
26543         (check_die): New.
26544         (defer_location): Remove.
26545         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26546         (fill_variable_array_bounds): New.
26547         (decl_start_label): Call fill_variable_array_bounds.
26548         (gen_formal_parameter_die): Rewrite to reuse previously generated
26549         DIEs.
26550         (gen_subprogram_die): Same.
26551         (gen_variable_die): Same.
26552         (gen_const_die): Same.
26553         (gen_label_die): Same.
26554         (gen_lexical_block_die): Same.
26555         (decl_will_get_specification_p): New.
26556         (local_function_static): New.
26557         (gen_struct_or_union_type_die): Fill in variable-length fields.
26558         (gen_typedef_die): Fill in variable-length typedefs.
26559         (gen_tagged_type_die): Gracefully return on error_mark_node.
26560         Handle re-entrancy.
26561         (gen_type_die_with_usage): Handle variable-length types.
26562         Remove duplicate code for ARRAY_TYPE case.
26563         (process_scope_var): Only process imported modules during early
26564         dwarf.
26565         (dwarf2out_early_global_decl): New.
26566         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26567         (dwarf2out_type_decl): Set early_dwarf while calling
26568         dwarf2out_decl.
26569         (dwarf2out_decl): Verify that we did not recreate a previously
26570         generated DIE.
26571         Do not return on DECL_EXTERNALs in VAR_DECLs.
26572         Abstract some code to local_function_static.
26573         (lookup_filename): Remove use of file_table_last_lookup.
26574         Gracefully exit on missing file_name.
26575         (dwarf2out_finish): Verify limbo list.
26576         Remove deferred_locations_list use.
26577         Move deferred_asm_name and limbo flushing to...
26578         (dwarf2out_early_finish): ...here.  New.
26579         (dwarf2out_c_finalize): Remove set of deferred_location_list,
26580         deferred_asm_name, and file_table_last_lookup.
26581         * cgraph.h (referred_to_p): Add default argument.
26582         * cgraphunit.c (referred_to_p): Add and handle include_self
26583         argument.
26584         (analyze_functions): Add first_time argument.
26585         Call check_global_declaration for all symbols.
26586         Call late_global_decl for nodes for moribund nodes.
26587         (finalize_compilation_unit): Add new argument to
26588         analyze_functions.
26589         Call early_global_decl for functions.
26590         Call early_finish debug hook.
26591         * dbxout.c (dbxout_early_global_decl): New.
26592         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
26593         (dbx_debug_hooks): Add new hooks.
26594         (xcoff_debug_hooks): Same.
26595         * debug.c (do_nothing_debug_hooks): Add early_finish field.
26596         Add early and late debug hooks.
26597         Remove global_decl hook.
26598         * debug.h (struct gcc_debug_hooks): Add early_finish,
26599         early_global_decl, and late_global_decl fields.
26600         Remove global_decl field.
26601         Document gcc_debug_hooks.
26602         * gengtype.c (output_typename): Remove.
26603         * godump.c (go_early_global_decl): New.
26604         (go_late_global_decl): New.
26605         (go_global_decl): Remove.
26606         (dump_go_spec_init): Remove global_decl.  Add
26607         {early,late}_global_decl.
26608         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26609         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26610         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26611         (write_global_declarations): Remove.
26612         (global_decl_processing): New.
26613         * langhooks.h (struct lang_hooks_for_decls): Remove
26614         final_write_globals field.
26615         Add post_compilation_parsing_cleanups field.
26616         * passes.c (rest_of_decl_compilation): Call early_global_decl.
26617         * sdbout.c: Add early and late_global_decl hooks.  Remove
26618         sdbout_global_decl hook.
26619         Add early_finish field for sdb_debug_hooks.
26620         (sdbout_global_decl): Remove.
26621         (sdbout_early_global_decl): New.
26622         (sdbout_late_global_decl): New.
26623         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26624         * toplev.c (check_global_declaration): Rename from
26625         check_global_declaration_1.
26626         Adapt to use symtab infrastructure.
26627         (check_global_declarations): Remove.
26628         (emit_debug_global_declarations): Remove.
26629         (compile_file): Remove call to final_write_globals langhook.
26630         Run the actual compilation process.
26631         Perform any post compilation parser cleanups.
26632         Generate late debug info.
26633         * toplev.h (check_global_declaration): New.
26634         (check_global_declaration_1): Remove.
26635         (check_global_declarations): Remove.
26636         (write_global_declarations): Remove.
26637         (emit_debug_global_declarations): Remove.
26638         (global_decl_processing): New.
26639         * tree-core.h (struct tree_block): Add DIE field.
26640         * tree.h (BLOCK_DIE): New.
26641         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26642         throughout.
26643         (vmsdbgout_early_global_decl): New.
26644         (vmsdbgout_late_global_decl): New.
26645         Add early_finish debug hook field to vmsdbg_debug_hooks.
26646         Remove vmsdbgout_decl to vmsdbgout_function_decl.
26647         Add early and late_global_decl debug hooks.
26649 2015-06-05  Julian Brown  <julian@codesourcery.com>
26650             Sandra Loosemore  <sandra@codesourcery.com>
26652         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26653         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26654         to print-sysroot-suffix.sh script.
26656 2015-06-05  Tom de Vries  <tom@codesourcery.com>
26658         merge from gomp4 branch:
26659         2015-05-28  Tom de Vries  <tom@codesourcery.com>
26661         PR tree-optimization/65443
26662         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26663         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26664         (try_transform_to_exit_first_loop_alt): New function.
26665         (transform_to_exit_first_loop): Use
26666         try_transform_to_exit_first_loop_alt.
26668 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
26670         * builtins.c (expand_builtin_atomic_compare_exchange): Call
26671         emit_cmp_and_jump_insns with the mode of target.
26673 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26675         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26677 2015-06-04  DJ Delorie  <dj@redhat.com>
26679         * config/msp430/msp430.md (movsi_s): New.  Special case for
26680         storing a 20-bit symbol into a 32-bit register.
26681         * config/msp430/msp430.c (msp430_subreg): Add support for it.
26682         * config/msp430/predicates.md (msp430_symbol_operand): New.
26684 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
26686         * c-family/c-common.c (noplt): New attribute.
26687         (handle_noplt_attribute): New handler.
26688         * calls.c (prepare_call_address): Check for noplt
26689         attribute.
26690         * config/i386/i386.c (ix86_expand_call): Check
26691         for noplt attribute.
26692         (ix86_nopic_noplt_attribute_p): New function.
26693         (ix86_output_call_insn): Output indirect call for non-pic
26694         no plt calls.
26695         * doc/extend.texi (noplt): Document new attribute.
26696         * doc/invoke.texi: Document new attribute.
26698 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
26700         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26701         real.h, and fixed-value.h when included in host source files.
26702         * double-int.h: Remove redundant #includes listed above.
26703         * fixed-value.h: Likewise.
26704         * real.h: Likewise.
26705         * wide-int.h: Likewise.
26706         * inchash.h: Likewise.
26707         * rtl.h: Add some include files When included from a generator file.
26708         * target.h: Remove wide-int.h and insn-modes.h from the include list.
26709         * internal-fn.h: Don't include coretypes.h.
26710         * alias.c: Adjust includes for restructured coretypes.h.
26711         * asan.c: Likewise.
26712         * attribs.c: Likewise.
26713         * auto-inc-dec.c: Likewise.
26714         * auto-profile.c: Likewise.
26715         * bb-reorder.c: Likewise.
26716         * bt-load.c: Likewise.
26717         * builtins.c: Likewise.
26718         * caller-save.c: Likewise.
26719         * calls.c: Likewise.
26720         * ccmp.c: Likewise.
26721         * cfg.c: Likewise.
26722         * cfganal.c: Likewise.
26723         * cfgbuild.c: Likewise.
26724         * cfgcleanup.c: Likewise.
26725         * cfgexpand.c: Likewise.
26726         * cfghooks.c: Likewise.
26727         * cfgloop.c: Likewise.
26728         * cfgloop.h: Likewise.
26729         * cfgloopanal.c: Likewise.
26730         * cfgloopmanip.c: Likewise.
26731         * cfgrtl.c: Likewise.
26732         * cgraph.c: Likewise.
26733         * cgraphbuild.c: Likewise.
26734         * cgraphclones.c: Likewise.
26735         * cgraphunit.c: Likewise.
26736         * cilk-common.c: Likewise.
26737         * combine-stack-adj.c: Likewise.
26738         * combine.c: Likewise.
26739         * compare-elim.c: Likewise.
26740         * convert.c: Likewise.
26741         * coverage.c: Likewise.
26742         * cppbuiltin.c: Likewise.
26743         * cprop.c: Likewise.
26744         * cse.c: Likewise.
26745         * cselib.c: Likewise.
26746         * data-streamer-in.c: Likewise.
26747         * data-streamer-out.c: Likewise.
26748         * data-streamer.c: Likewise.
26749         * dbxout.c: Likewise.
26750         * dce.c: Likewise.
26751         * ddg.c: Likewise.
26752         * debug.c: Likewise.
26753         * df-core.c: Likewise.
26754         * df-problems.c: Likewise.
26755         * df-scan.c: Likewise.
26756         * df.h: Likewise.
26757         * dfp.c: Likewise.
26758         * dojump.c: Likewise.
26759         * dominance.c: Likewise.
26760         * domwalk.c: Likewise.
26761         * double-int.c: Likewise.
26762         * dse.c: Likewise.
26763         * dumpfile.c: Likewise.
26764         * dwarf2asm.c: Likewise.
26765         * dwarf2cfi.c: Likewise.
26766         * dwarf2out.c: Likewise.
26767         * dwarf2out.h: Likewise.
26768         * emit-rtl.c: Likewise.
26769         * et-forest.c: Likewise.
26770         * except.c: Likewise.
26771         * explow.c: Likewise.
26772         * expmed.c: Likewise.
26773         * expr.c: Likewise.
26774         * final.c: Likewise.
26775         * fixed-value.c: Likewise.
26776         * fold-const.c: Likewise.
26777         * function.c: Likewise.
26778         * fwprop.c: Likewise.
26779         * gcc-plugin.h: Likewise.
26780         * gcse.c: Likewise.
26781         * generic-match-head.c: Likewise.
26782         * ggc-page.c: Likewise.
26783         * gimple-builder.c: Likewise.
26784         * gimple-expr.c: Likewise.
26785         * gimple-fold.c: Likewise.
26786         * gimple-iterator.c: Likewise.
26787         * gimple-low.c: Likewise.
26788         * gimple-match-head.c: Likewise.
26789         * gimple-pretty-print.c: Likewise.
26790         * gimple-ssa-isolate-paths.c: Likewise.
26791         * gimple-ssa-strength-reduction.c: Likewise.
26792         * gimple-streamer-in.c: Likewise.
26793         * gimple-streamer-out.c: Likewise.
26794         * gimple-streamer.h: Likewise.
26795         * gimple-walk.c: Likewise.
26796         * gimple.c: Likewise.
26797         * gimplify-me.c: Likewise.
26798         * gimplify.c: Likewise.
26799         * godump.c: Likewise.
26800         * graph.c: Likewise.
26801         * graphite-blocking.c: Likewise.
26802         * graphite-dependences.c: Likewise.
26803         * graphite-interchange.c: Likewise.
26804         * graphite-isl-ast-to-gimple.c: Likewise.
26805         * graphite-optimize-isl.c: Likewise.
26806         * graphite-poly.c: Likewise.
26807         * graphite-scop-detection.c: Likewise.
26808         * graphite-sese-to-poly.c: Likewise.
26809         * graphite.c: Likewise.
26810         * haifa-sched.c: Likewise.
26811         * hooks.h: Likewise.
26812         * hw-doloop.c: Likewise.
26813         * ifcvt.c: Likewise.
26814         * incpath.c: Likewise.
26815         * init-regs.c: Likewise.
26816         * internal-fn.c: Likewise.
26817         * ipa-chkp.c: Likewise.
26818         * ipa-comdats.c: Likewise.
26819         * ipa-cp.c: Likewise.
26820         * ipa-devirt.c: Likewise.
26821         * ipa-icf-gimple.c: Likewise.
26822         * ipa-icf.c: Likewise.
26823         * ipa-inline-analysis.c: Likewise.
26824         * ipa-inline-transform.c: Likewise.
26825         * ipa-inline.c: Likewise.
26826         * ipa-polymorphic-call.c: Likewise.
26827         * ipa-profile.c: Likewise.
26828         * ipa-prop.c: Likewise.
26829         * ipa-pure-const.c: Likewise.
26830         * ipa-ref.c: Likewise.
26831         * ipa-reference.c: Likewise.
26832         * ipa-split.c: Likewise.
26833         * ipa-utils.c: Likewise.
26834         * ipa-visibility.c: Likewise.
26835         * ipa.c: Likewise.
26836         * ira-build.c: Likewise.
26837         * ira-color.c: Likewise.
26838         * ira-conflicts.c: Likewise.
26839         * ira-costs.c: Likewise.
26840         * ira-emit.c: Likewise.
26841         * ira-lives.c: Likewise.
26842         * ira.c: Likewise.
26843         * jump.c: Likewise.
26844         * langhooks.c: Likewise.
26845         * lcm.c: Likewise.
26846         * loop-doloop.c: Likewise.
26847         * loop-init.c: Likewise.
26848         * loop-invariant.c: Likewise.
26849         * loop-iv.c: Likewise.
26850         * loop-unroll.c: Likewise.
26851         * lower-subreg.c: Likewise.
26852         * lra-assigns.c: Likewise.
26853         * lra-coalesce.c: Likewise.
26854         * lra-constraints.c: Likewise.
26855         * lra-eliminations.c: Likewise.
26856         * lra-lives.c: Likewise.
26857         * lra-remat.c: Likewise.
26858         * lra-spills.c: Likewise.
26859         * lra.c: Likewise.
26860         * lto-cgraph.c: Likewise.
26861         * lto-compress.c: Likewise.
26862         * lto-opts.c: Likewise.
26863         * lto-section-in.c: Likewise.
26864         * lto-section-out.c: Likewise.
26865         * lto-streamer-in.c: Likewise.
26866         * lto-streamer-out.c: Likewise.
26867         * lto-streamer.c: Likewise.
26868         * mcf.c: Likewise.
26869         * mode-switching.c: Likewise.
26870         * modulo-sched.c: Likewise.
26871         * omega.c: Likewise.
26872         * omp-low.c: Likewise.
26873         * optabs.c: Likewise.
26874         * opts-global.c: Likewise.
26875         * passes.c: Likewise.
26876         * plugin.c: Likewise.
26877         * postreload-gcse.c: Likewise.
26878         * postreload.c: Likewise.
26879         * predict.c: Likewise.
26880         * print-rtl.c: Likewise.
26881         * print-tree.c: Likewise.
26882         * profile.c: Likewise.
26883         * real.c: Likewise.
26884         * realmpfr.c: Likewise.
26885         * realmpfr.h: Likewise.
26886         * recog.c: Likewise.
26887         * ree.c: Likewise.
26888         * reg-stack.c: Likewise.
26889         * regcprop.c: Likewise.
26890         * reginfo.c: Likewise.
26891         * regrename.c: Likewise.
26892         * regs.h: Likewise.
26893         * regstat.c: Likewise.
26894         * reload.c: Likewise.
26895         * reload1.c: Likewise.
26896         * reorg.c: Likewise.
26897         * resource.c: Likewise.
26898         * rtl-chkp.c: Likewise.
26899         * rtlanal.c: Likewise.
26900         * rtlhooks.c: Likewise.
26901         * sanopt.c: Likewise.
26902         * sched-deps.c: Likewise.
26903         * sched-ebb.c: Likewise.
26904         * sched-rgn.c: Likewise.
26905         * sched-vis.c: Likewise.
26906         * sdbout.c: Likewise.
26907         * sel-sched-dump.c: Likewise.
26908         * sel-sched-ir.c: Likewise.
26909         * sel-sched.c: Likewise.
26910         * sese.c: Likewise.
26911         * shrink-wrap.c: Likewise.
26912         * shrink-wrap.h: Likewise.
26913         * simplify-rtx.c: Likewise.
26914         * stack-ptr-mod.c: Likewise.
26915         * statistics.c: Likewise.
26916         * stmt.c: Likewise.
26917         * stor-layout.c: Likewise.
26918         * store-motion.c: Likewise.
26919         * stringpool.c: Likewise.
26920         * symtab.c: Likewise.
26921         * target-globals.c: Likewise.
26922         * targhooks.c: Likewise.
26923         * toplev.c: Likewise.
26924         * tracer.c: Likewise.
26925         * trans-mem.c: Likewise.
26926         * tree-affine.c: Likewise.
26927         * tree-affine.h: Likewise.
26928         * tree-browser.c: Likewise.
26929         * tree-call-cdce.c: Likewise.
26930         * tree-cfg.c: Likewise.
26931         * tree-cfgcleanup.c: Likewise.
26932         * tree-chkp-opt.c: Likewise.
26933         * tree-chkp.c: Likewise.
26934         * tree-chrec.c: Likewise.
26935         * tree-complex.c: Likewise.
26936         * tree-data-ref.c: Likewise.
26937         * tree-dfa.c: Likewise.
26938         * tree-diagnostic.c: Likewise.
26939         * tree-dump.c: Likewise.
26940         * tree-eh.c: Likewise.
26941         * tree-emutls.c: Likewise.
26942         * tree-if-conv.c: Likewise.
26943         * tree-inline.c: Likewise.
26944         * tree-into-ssa.c: Likewise.
26945         * tree-iterator.c: Likewise.
26946         * tree-loop-distribution.c: Likewise.
26947         * tree-nested.c: Likewise.
26948         * tree-nrv.c: Likewise.
26949         * tree-object-size.c: Likewise.
26950         * tree-outof-ssa.c: Likewise.
26951         * tree-parloops.c: Likewise.
26952         * tree-phinodes.c: Likewise.
26953         * tree-predcom.c: Likewise.
26954         * tree-pretty-print.c: Likewise.
26955         * tree-pretty-print.h: Likewise.
26956         * tree-profile.c: Likewise.
26957         * tree-scalar-evolution.c: Likewise.
26958         * tree-sra.c: Likewise.
26959         * tree-ssa-address.c: Likewise.
26960         * tree-ssa-alias.c: Likewise.
26961         * tree-ssa-ccp.c: Likewise.
26962         * tree-ssa-coalesce.c: Likewise.
26963         * tree-ssa-copy.c: Likewise.
26964         * tree-ssa-copyrename.c: Likewise.
26965         * tree-ssa-dce.c: Likewise.
26966         * tree-ssa-dom.c: Likewise.
26967         * tree-ssa-dse.c: Likewise.
26968         * tree-ssa-forwprop.c: Likewise.
26969         * tree-ssa-ifcombine.c: Likewise.
26970         * tree-ssa-live.c: Likewise.
26971         * tree-ssa-loop-ch.c: Likewise.
26972         * tree-ssa-loop-im.c: Likewise.
26973         * tree-ssa-loop-ivcanon.c: Likewise.
26974         * tree-ssa-loop-ivopts.c: Likewise.
26975         * tree-ssa-loop-manip.c: Likewise.
26976         * tree-ssa-loop-niter.c: Likewise.
26977         * tree-ssa-loop-prefetch.c: Likewise.
26978         * tree-ssa-loop-unswitch.c: Likewise.
26979         * tree-ssa-loop.c: Likewise.
26980         * tree-ssa-loop.h: Likewise.
26981         * tree-ssa-math-opts.c: Likewise.
26982         * tree-ssa-operands.c: Likewise.
26983         * tree-ssa-phiopt.c: Likewise.
26984         * tree-ssa-phiprop.c: Likewise.
26985         * tree-ssa-pre.c: Likewise.
26986         * tree-ssa-propagate.c: Likewise.
26987         * tree-ssa-reassoc.c: Likewise.
26988         * tree-ssa-sccvn.c: Likewise.
26989         * tree-ssa-scopedtables.c: Likewise.
26990         * tree-ssa-sink.c: Likewise.
26991         * tree-ssa-strlen.c: Likewise.
26992         * tree-ssa-structalias.c: Likewise.
26993         * tree-ssa-tail-merge.c: Likewise.
26994         * tree-ssa-ter.c: Likewise.
26995         * tree-ssa-threadedge.c: Likewise.
26996         * tree-ssa-threadupdate.c: Likewise.
26997         * tree-ssa-uncprop.c: Likewise.
26998         * tree-ssa-uninit.c: Likewise.
26999         * tree-ssa.c: Likewise.
27000         * tree-ssanames.c: Likewise.
27001         * tree-stdarg.c: Likewise.
27002         * tree-streamer-in.c: Likewise.
27003         * tree-streamer-out.c: Likewise.
27004         * tree-streamer.c: Likewise.
27005         * tree-switch-conversion.c: Likewise.
27006         * tree-tailcall.c: Likewise.
27007         * tree-vect-data-refs.c: Likewise.
27008         * tree-vect-generic.c: Likewise.
27009         * tree-vect-loop-manip.c: Likewise.
27010         * tree-vect-loop.c: Likewise.
27011         * tree-vect-patterns.c: Likewise.
27012         * tree-vect-slp.c: Likewise.
27013         * tree-vect-stmts.c: Likewise.
27014         * tree-vectorizer.c: Likewise.
27015         * tree-vrp.c: Likewise.
27016         * tree.c: Likewise.
27017         * tsan.c: Likewise.
27018         * ubsan.c: Likewise.
27019         * valtrack.c: Likewise.
27020         * value-prof.c: Likewise.
27021         * var-tracking.c: Likewise.
27022         * varasm.c: Likewise.
27023         * varpool.c: Likewise.
27024         * vmsdbgout.c: Likewise.
27025         * vtable-verify.c: Likewise.
27026         * web.c: Likewise.
27027         * wide-int-print.cc: Likewise.
27028         * wide-int-print.h: Likewise.
27029         * wide-int.cc: Likewise.
27030         * xcoffout.c: Likewise.
27031         * config/aarch64/aarch64-builtins.c: Likewise.
27032         * config/aarch64/aarch64.c: Likewise.
27033         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27034         * config/alpha/alpha.c: Likewise.
27035         * config/arc/arc.c: Likewise.
27036         * config/arm/aarch-common.c: Likewise.
27037         * config/arm/arm-builtins.c: Likewise.
27038         * config/arm/arm-c.c: Likewise.
27039         * config/arm/arm.c: Likewise.
27040         * config/avr/avr-c.c: Likewise.
27041         * config/avr/avr-log.c: Likewise.
27042         * config/avr/avr.c: Likewise.
27043         * config/bfin/bfin.c: Likewise.
27044         * config/c6x/c6x.c: Likewise.
27045         * config/cr16/cr16.c: Likewise.
27046         * config/cris/cris.c: Likewise.
27047         * config/darwin-c.c: Likewise.
27048         * config/darwin.c: Likewise.
27049         * config/default-c.c: Likewise.
27050         * config/epiphany/epiphany.c: Likewise.
27051         * config/epiphany/mode-switch-use.c: Likewise.
27052         * config/epiphany/resolve-sw-modes.c: Likewise.
27053         * config/fr30/fr30.c: Likewise.
27054         * config/frv/frv.c: Likewise.
27055         * config/ft32/ft32.c: Likewise.
27056         * config/glibc-c.c: Likewise.
27057         * config/h8300/h8300.c: Likewise.
27058         * config/i386/i386-c.c: Likewise.
27059         * config/i386/i386.c: Likewise.
27060         * config/i386/msformat-c.c: Likewise.
27061         * config/i386/winnt-cxx.c: Likewise.
27062         * config/i386/winnt-stubs.c: Likewise.
27063         * config/i386/winnt.c: Likewise.
27064         * config/ia64/ia64-c.c: Likewise.
27065         * config/ia64/ia64.c: Likewise.
27066         * config/iq2000/iq2000.c: Likewise.
27067         * config/lm32/lm32.c: Likewise.
27068         * config/m32c/m32c-pragma.c: Likewise.
27069         * config/m32c/m32c.c: Likewise.
27070         * config/m32r/m32r.c: Likewise.
27071         * config/m68k/m68k.c: Likewise.
27072         * config/mcore/mcore.c: Likewise.
27073         * config/mep/mep-pragma.c: Likewise.
27074         * config/mep/mep.c: Likewise.
27075         * config/microblaze/microblaze-c.c: Likewise.
27076         * config/microblaze/microblaze.c: Likewise.
27077         * config/mips/mips.c: Likewise.
27078         * config/mmix/mmix.c: Likewise.
27079         * config/mn10300/mn10300.c: Likewise.
27080         * config/moxie/moxie.c: Likewise.
27081         * config/msp430/msp430-c.c: Likewise.
27082         * config/msp430/msp430.c: Likewise.
27083         * config/nds32/nds32-cost.c: Likewise.
27084         * config/nds32/nds32-fp-as-gp.c: Likewise.
27085         * config/nds32/nds32-intrinsic.c: Likewise.
27086         * config/nds32/nds32-isr.c: Likewise.
27087         * config/nds32/nds32-md-auxiliary.c: Likewise.
27088         * config/nds32/nds32-memory-manipulation.c: Likewise.
27089         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27090         * config/nds32/nds32-predicates.c: Likewise.
27091         * config/nds32/nds32.c: Likewise.
27092         * config/nios2/nios2.c: Likewise.
27093         * config/nvptx/nvptx.c: Likewise.
27094         * config/pa/pa.c: Likewise.
27095         * config/pdp11/pdp11.c: Likewise.
27096         * config/rl78/rl78-c.c: Likewise.
27097         * config/rl78/rl78.c: Likewise.
27098         * config/rs6000/rs6000-c.c: Likewise.
27099         * config/rs6000/rs6000.c: Likewise.
27100         * config/rx/rx.c: Likewise.
27101         * config/s390/s390-c.c: Likewise.
27102         * config/s390/s390.c: Likewise.
27103         * config/sh/sh-c.c: Likewise.
27104         * config/sh/sh-mem.cc: Likewise.
27105         * config/sh/sh.c: Likewise.
27106         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27107         * config/sh/sh_treg_combine.cc: Likewise.
27108         * config/sol2-c.c: Likewise.
27109         * config/sol2-cxx.c: Likewise.
27110         * config/sol2-stubs.c: Likewise.
27111         * config/sol2.c: Likewise.
27112         * config/sparc/sparc-c.c: Likewise.
27113         * config/sparc/sparc.c: Likewise.
27114         * config/spu/spu-c.c: Likewise.
27115         * config/spu/spu.c: Likewise.
27116         * config/stormy16/stormy16.c: Likewise.
27117         * config/tilegx/mul-tables.c: Likewise.
27118         * config/tilegx/tilegx-c.c: Likewise.
27119         * config/tilegx/tilegx.c: Likewise.
27120         * config/tilepro/mul-tables.c: Likewise.
27121         * config/tilepro/tilepro-c.c: Likewise.
27122         * config/tilepro/tilepro.c: Likewise.
27123         * config/v850/v850-c.c: Likewise.
27124         * config/v850/v850.c: Likewise.
27125         * config/vax/vax.c: Likewise.
27126         * config/visium/visium.c: Likewise.
27127         * config/vms/vms-c.c: Likewise.
27128         * config/vms/vms.c: Likewise.
27129         * config/vxworks.c: Likewise.
27130         * config/winnt-c.c: Likewise.
27131         * config/xtensa/xtensa.c: Likewise.
27132         * common/config/bfin/bfin-common.c: Likewise.
27134 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
27136         * tree.h (tree_code_for_canonical_type_merging): New function.
27137         * tree.c (gimple_canonical_types_compatible_p): Use
27138         tree_code_for_canonical_type_merging..
27140 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27142         PR c++/66192
27143         PR target/66200
27144         * doc/tm.texi: Regenerate.
27145         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27146         * target.def (TARGET_RELAXED_ORDERING): Likewise.
27147         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27148         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27149         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27150         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27151         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27152         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27153         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27155 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27157         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27158         register fma steering pass.
27159         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27160         AARCH64_TUNE_FMA_STEERING.
27162 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
27164         * tree.c (verify_type_variant): Verify that type and variant is
27165         compatible.
27166         (gimple_canonical_types_compatible_p): Look for main variants.
27168 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27170         * config.gcc (powerpc*-*-*): Add support for a new configure
27171         option --with-advance-toolchain=<xxx> which overrides using the
27172         default header files, libraries and dynamic linker.
27174         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27175         specs to support the configure --with-advance-toolchain=<xxx>
27176         option.
27177         (INCLUDE_EXTRA_SPEC): Likewise.
27178         (LINK_OS_EXTRA_SPEC32): Likewise.
27179         (LINK_OK_EXTRA_SPEC64): Likewise.
27180         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27181         (DYNAMIC_LINKER_PREFIX): Likewise.
27182         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27183         toolchain support.
27184         (GLIBC_DYNAMIC_LINKER32): Likewise.
27185         (GLIBC_DYNAMIC_LINKER64): Likewise.
27186         (LINK_OS_LINUX_SPEC32): Likewise.
27187         (LINK_OS_LINUX_SPEC64): Likewise.
27189         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27190         configuration option.
27192 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
27194         PR target/66275
27195         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27196         to determine current function ABI.
27197         (ix86_function_value_regno_p): Ditto.
27199 2015-06-03  Martin Liska  <mliska@suse.cz>
27201         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27202         * bitmap.h (struct bitmap_usage): Likewise.
27203         * ggc-common.c (struct ggc_usage): Likewise.
27204         * mem-stats.h (struct mem_location): Likewise.
27205         (struct mem_usage): Likewise.
27206         * vec.c (struct vec_usage): Likewise.
27208 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
27210         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27211         -Bsymbolic.
27213 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
27215         * doc/plugins.texi (enum plugin_event): New event.
27216         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27217         and PLUGIN_FINISH_FUNCTION.
27218         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27219         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27221 2015-06-03  Richard Biener  <rguenther@suse.de>
27223         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27224         compute GROUP_GAP for the first element.
27225         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27226         on in-group gaps.
27228 2015-06-03  Nick Clifton  <nickc@redhat.com>
27230         * config/rl78/rl78-real.md: Add peepholes to avoid a register
27231         copy when calling a function.
27232         * config/rl78/rl78.c (need_to_save): Do not push the frame
27233         pointer in an interrupt handler prologue if it is never used.
27235 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27237         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27239 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27241         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27242         reference when cloning alias node.
27244 2015-06-03  Martin Liska  <mliska@suse.cz>
27246         * alloc-pool.h (struct pool_usage): Correct space padding.
27247         * ggc-page.c (ggc_print_statistics): Align columns in a report.
27248         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27249         * tree.c (dump_tree_statistics): Align columns in a report.
27251 2015-06-03  Martin Liska  <mliska@suse.cz>
27253         * alloc-pool.c (allocate_pool_descriptor): Remove.
27254         (struct pool_output_info): Likewise.
27255         (print_alloc_pool_statistics): Likewise.
27256         (dump_alloc_pool_statistics): Likewise.
27257         * alloc-pool.h (struct pool_usage): New struct.
27258         (pool_allocator::initialize): Change usage of memory statistics
27259         to a new interface.
27260         (pool_allocator::release): Likewise.
27261         (pool_allocator::allocate): Likewise.
27262         (pool_allocator::remove): Likewise.
27263         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27264         for a pool allocator.
27265         * mem-stats.h (struct mem_location): Add new ctor.
27266         (struct mem_usage): Add counter for number of
27267         instances.
27268         (mem_alloc_description::register_descriptor): New overload of
27269         * mem-stats.h (mem_location::to_string): New function.
27270         * bitmap.h (struct bitmap_usage): Use this new function.
27271         * ggc-common.c (struct ggc_usage): Likewise.
27272         the function.
27274 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27276         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27277         of GCC_INSN_FLAGS_H block.
27279 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
27281         * explow.c (plus_constant): Update check after force_const_mem call
27282         to see if the value returned is not a NULL_RTX.
27284 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27286         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27287         remove instumentation thunks calling reachable functions.
27288         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27289         * lto/lto-partition.c (privatize_symbol_name_1): New.
27290         (privatize_symbol_name): Privatize both decl and orig_decl
27291         names for instrumented functions.
27292         * cgraph.c (cgraph_node::verify_node): Add transparent
27293         alias chain check for instrumented node.
27295 2015-06-03  Marek Polacek  <polacek@redhat.com>
27297         PR c/64223
27298         PR c/29358
27299         * tree.c (attribute_value_equal): Handle attribute format.
27300         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27302 2015-06-03  Richard Biener  <rguenther@suse.de>
27304         PR tree-optimization/63916
27305         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27306         Forward-propagate non-invariant addresses by splicing their
27307         reference ops if the result isn't going to be used by PRE.
27308         (vn_reference_lookup_3): Remove pointless assert.
27310 2015-06-03  Richard Biener  <rguenther@suse.de>
27312         PR tree-optimization/66375
27313         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27314         add to the evolution before following SSA edges.
27316 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
27318         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27319         (dump_use, dump_cand, find_induction_variables): Pass new argument
27320         to dump_iv.
27321         (record_use): Preserve the ssa name information in IV.
27323 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27325         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27326         NO_MODE_TEST.
27327         (add_mode_tests): Don't add mode tests if the predicate only
27328         accepts scalar constant integers.  Otherwise, allow the mode
27329         of "op" to be VOIDmode if the predicate does accept such integers.
27331 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
27333         PR target/66258
27334         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27335         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27336         (aarch64_secondary_reload): Likewise
27337         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27338         to !TARGET_FLOAT.
27339         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27340         Likewise.
27342 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
27343             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27345         PR target/65768
27346         * cprop.c (try_replace_reg): Check cost of constants before propagating.
27348 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27350         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27351         provide access to the IBM extended double floating point mode if
27352         long double is IEEE 128-bit floating point.
27353         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27354         point if long double is the IBM extended double type.
27356         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27357         enable adding IEEE 128-bit floating point support.
27358         (-mfloat128-software): Likewise.
27359         (-mfloat128-sw): Likewise.
27361         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27362         128-bit floating point types to occupy any register if
27363         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
27364         -mfloat128-software is enabled.
27365         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27366         support.
27367         (rs6000_option_override_internal): Add -mfloat128-* support.
27368         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27370         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27371         and float128 type nodes.
27372         (ieee128_float_type_node): Likewise.
27373         (ibm128_float_type_node): Likewise.
27375 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27377         PR target/66136
27378         * config/aarch64/geniterators.sh: Rewrite in awk.
27380 2015-06-02  Martin Liska  <mliska@suse.cz>
27382         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27383         values to avoid -Wmaybe-uninitialized errors.
27385 2015-06-02  Richard Biener  <rguenther@suse.de>
27387         PR debug/65549
27388         * dwarf2out.c (lookup_context_die): New function.
27389         (resolve_addr): Avoid forcing a full DIE for the
27390         target of a DW_TAG_GNU_call_site during late compilation.
27391         Instead create a stub DIE without a type if we have a
27392         context DIE present.
27394 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
27396         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27398 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27400         PR tree-optimization/48052
27401         * cfgloop.h (struct control_iv): New.
27402         (struct loop): New field control_ivs.
27403         * tree-ssa-loop-niter.c : Include "stor-layout.h".
27404         (number_of_iterations_lt): Set no_overflow information.
27405         (number_of_iterations_exit): Init control iv in niter struct.
27406         (record_control_iv): New.
27407         (estimate_numbers_of_iterations_loop): Call record_control_iv.
27408         (loop_exits_before_overflow): New.  Interface factored out of
27409         scev_probably_wraps_p.
27410         (scev_probably_wraps_p): Factor loop niter related code into
27411         loop_exits_before_overflow.
27412         (free_numbers_of_iterations_estimates_loop): Free control ivs.
27413         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27415 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
27417         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27418         the target doesn't belong to the current function.
27420 2015-06-02  Marek Polacek  <polacek@redhat.com>
27422         PR middle-end/66345
27423         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27424         get_maxval_strlen does not produce an INTEGER_CST.
27426 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
27428         * config/arc/constraints.md: Use lower-case names in match_code.
27429         * config/mmix/constraints.md: Likewise.
27431 2015-06-02  Richard Biener  <rguenther@suse.de>
27433         PR tree-optimization/65961
27434         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27435         check and clarify dump message.
27436         (vect_build_slp_tree): If all children are built up from scalars
27437         build up the parent from scalars instead.
27438         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27440 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
27442         PR other/65366
27443         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
27444         instead of print ... .
27446 2015-06-02  Alan Modra  <amodra@gmail.com>
27448         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27449         2014-08-11 change.
27451 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
27453         PR tree-optimization/52563
27454         PR tree-optimization/62173
27455         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
27456         (alloc_iv, set_iv): New parameter.
27457         (determine_biv_step): Delete.
27458         (find_bivs): Inline original determine_biv_step.  Pass new
27459         argument to set_iv.
27460         (idx_find_step): Use no_overflow information for conversion.
27461         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27462         resolve_mixers handle folded_casts.
27463         (instantiate_scev_name): Change bool parameter to bool pointer.
27464         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27465         (instantiate_array_ref, instantiate_scev_not): Ditto.
27466         (instantiate_scev_3, instantiate_scev_2): Ditto.
27467         (instantiate_scev_1, instantiate_scev_r): Ditto.
27468         (instantiate_scev_convert, ): Change parameter.  Pass argument
27469         to chrec_convert_aggressive.
27470         (instantiate_scev): Change argument.
27471         (resolve_mixers): New parameter and set it.
27472         (scev_const_prop): New argument.
27473         * tree-scalar-evolution.h (resolve_mixers): New parameter.
27474         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27475         of chrec_conert_1.
27476         (chrec_convert): New parameter.  Move definition below.
27477         (chrec_convert_aggressive): New parameter and set it.  Call
27478         convert_affine_scev.
27479         * tree-chrec.h (chrec_convert): New parameter.
27480         (chrec_convert_aggressive): Ditto.
27482 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27484         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27485         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27486         the LHS of a no-return call if its type has variable size.
27487         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27488         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27490 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
27492         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27493         * config.in: Regenerate.
27495 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27497         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27498         consecutive accesses within outer-loop with force_vectorize
27499         for references with zero step in inner-loop.
27501 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27503         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27504         rather than from gcc/build directory.
27506 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27508         PR target/65697
27509         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27510         for __sync memory models, emit initial loads and final barriers as
27511         appropriate.
27513 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
27515         PR target/65697
27516         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27517         (aarch64_split_atomic_op): Check for __sync memory models, emit
27518         appropriate initial loads and final barriers.
27520 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
27522         * Makefile.in: Fix gcov dependencies that should
27523         not point to a build folder.
27525 2015-06-01  Richard Biener  <rguenther@suse.de>
27527         Revert
27528         2015-05-29  Richard Biener  <rguenther@suse.de>
27530         PR tree-optimization/66314
27531         * tree-ssa-threadupdate.c (create_block_for_threading): Add
27532         parameter that says which loop the new block belongs to.
27533         (ssa_create_duplicates): Blocks duplicated for the threaded
27534         path belong to the loop of the thread destination.
27536 2015-06-01  Martin Liska  <mliska@suse.cz>
27538         * sched-deps.c: Include pool-alloc.h before
27539         cselib.h header file is included.
27541 2015-06-01  Richard Biener  <rguenther@suse.de>
27543         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27544         functions.
27546 2015-06-01  Martin Liska  <mliska@suse.cz>
27548         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27549         a function local variable.
27551 2015-06-01  Martin Liska  <mliska@suse.cz>
27553         * alloc-pool.c (create_alloc_pool): Remove.
27554         (empty_alloc_pool): Likewise.
27555         (free_alloc_pool): Likewise.
27556         (free_alloc_pool_if_empty): Likewise.
27557         (pool_alloc): Likewise.
27558         (pool_free): Likewise.
27559         * alloc-pool.h: Remove old declarations.
27561 2015-06-01  Martin Liska  <mliska@suse.cz>
27563         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27564         (ira_create_object): Likewise.
27565         (ira_create_allocno): Likewise.
27566         (ira_create_live_range): Likewise.
27567         (copy_live_range): Likewise.
27568         (ira_finish_live_range): Likewise.
27569         (ira_free_allocno_costs): Likewise.
27570         (finish_allocno): Likewise.
27571         (finish_allocnos): Likewise.
27572         (initiate_prefs): Likewise.
27573         (ira_create_pref): Likewise.
27574         (finish_pref): Likewise.
27575         (finish_prefs): Likewise.
27576         (initiate_copies): Likewise.
27577         (ira_create_copy): Likewise.
27578         (finish_copy): Likewise.
27579         (finish_copies): Likewise.
27580         (finish_prefs): Likewise.
27582 2015-06-01  Martin Liska  <mliska@suse.cz>
27584         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27585         (allocate_and_init_ipcp_value): Likewise.
27586         (ipcp_lattice::add_value): Likewise.
27587         (merge_agg_lats_step): Likewise.
27588         (ipcp_driver): Likewise.
27589         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27590         (ipa_free_all_structures_after_iinln): Likewise.
27591         * ipa-prop.h: Likewise.
27593 2015-06-01  Martin Liska  <mliska@suse.cz>
27595         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27596         pool allocator.
27597         (set_hint_predicate): Likewise.
27598         (inline_summary_alloc): Likewise.
27599         (reset_inline_edge_summary): Likewise.
27600         (reset_inline_summary): Likewise.
27601         (set_cond_stmt_execution_predicate): Likewise.
27602         (set_switch_stmt_execution_predicate): Likewise.
27603         (compute_bb_predicates): Likewise.
27604         (estimate_function_body_sizes): Likewise.
27605         (inline_free_summary): Likewise.
27607 2015-06-01  Martin Liska  <mliska@suse.cz>
27609         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27610         (ipa_edge_duplication_hook): Likewise.
27611         (ipa_free_all_structures_after_ipa_cp): Likewise.
27612         (ipa_free_all_structures_after_iinln): Likewise.
27614 2015-06-01  Martin Liska  <mliska@suse.cz>
27616         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27617         (ipa_profile_generate_summary): Likewise.
27618         (ipa_profile_read_summary): Likewise.
27619         (ipa_profile): Likewise.
27621 2015-06-01  Martin Liska  <mliska@suse.cz>
27623         * tree-ssa-structalias.c (new_var_info): Use new type-based
27624         pool allocator.
27625         (new_constraint): Likewise.
27626         (init_alias_vars): Likewise.
27627         (delete_points_to_sets): Likewise.
27629 2015-06-01  Martin Liska  <mliska@suse.cz>
27631         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27632         (free_strinfo): Likewise.
27633         (pass_strlen::execute): Likewise.
27635 2015-06-01  Martin Liska  <mliska@suse.cz>
27637         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27638         pool allocator.
27639         (vn_reference_insert_pieces): Likewise.
27640         (vn_phi_insert): Likewise.
27641         (visit_reference_op_call): Likewise.
27642         (copy_phi): Likewise.
27643         (copy_reference): Likewise.
27644         (process_scc): Likewise.
27645         (allocate_vn_table): Likewise.
27646         (free_vn_table): Likewise.
27648 2015-06-01  Martin Liska  <mliska@suse.cz>
27650         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27651         pool allocator.
27652         (add_repeat_to_ops_vec): Likewise.
27653         (get_ops): Likewise.
27654         (maybe_optimize_range_tests): Likewise.
27655         (init_reassoc): Likewise.
27656         (fini_reassoc): Likewise.
27658 2015-06-01  Martin Liska  <mliska@suse.cz>
27660         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27661         pool allocator.
27662         (bitmap_set_new): Likewise.
27663         (get_or_alloc_expr_for_constant): Likewise.
27664         (get_or_alloc_expr_for): Likewise.
27665         (phi_translate_1): Likewise.
27666         (compute_avail): Likewise.
27667         (init_pre): Likewise.
27668         (fini_pre): Likewise.
27670 2015-06-01  Martin Liska  <mliska@suse.cz>
27672         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27673         (delete_dep_node): Likewise.
27674         (create_deps_list): Likewise.
27675         (free_deps_list): Likewise.
27676         (sched_deps_init): Likewise.
27677         (sched_deps_finish): Likewise.
27679 2015-06-01  Martin Liska  <mliska@suse.cz>
27681         * regcprop.c (free_debug_insn_changes): Use new type-based
27682         pool allocator.
27683         (replace_oldest_value_reg): Likewise.
27684         (pass_cprop_hardreg::execute): Likewise.
27686 2015-06-01  Martin Liska  <mliska@suse.cz>
27688         * ira-build.c (initiate_cost_vectors): Use new type-based
27689         pool allocator.
27690         (ira_allocate_cost_vector): Likewise.
27691         (ira_free_cost_vector): Likewise.
27692         (finish_cost_vectors): Likewise.
27694 2015-06-01  Martin Liska  <mliska@suse.cz>
27696         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27697         pool allocator.
27698         (free_sched_pools): Likewise.
27699         * sel-sched-ir.h (_list_alloc): Likewise.
27700         (_list_remove): Likewise.
27702 2015-06-01  Martin Liska  <mliska@suse.cz>
27704         * stmt.c (add_case_node): Use new type-based pool allocator.
27705         (expand_case): Likewise.
27706         (expand_sjlj_dispatch_table): Likewise.
27708 2015-06-01  Martin Liska  <mliska@suse.cz>
27710         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27711         (free_bb): Likewise.
27712         (pass_cse_reciprocals::execute): Likewise.
27714 2015-06-01  Martin Liska  <mliska@suse.cz>
27716         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27717         (sra_deinitialize) Likewise.
27718         (create_access_1) Likewise.
27719         (build_accesses_from_assign) Likewise.
27720         (create_artificial_child_access) Likewise.
27722 2015-06-01  Martin Liska  <mliska@suse.cz>
27724         * dse.c (get_group_info):Use new type-based pool allocator.
27725         (dse_step0) Likewise.
27726         (free_store_info) Likewise.
27727         (delete_dead_store_insn) Likewise.
27728         (free_read_records) Likewise.
27729         (record_store) Likewise.
27730         (replace_read) Likewise.
27731         (check_mem_read_rtx) Likewise.
27732         (scan_insn) Likewise.
27733         (dse_step1) Likewise.
27734         (dse_step7) Likewise.
27736 2015-06-01  Martin Liska  <mliska@suse.cz>
27738         * df-scan.c (struct df_scan_problem_data):Use new type-based
27739         pool allocator.
27740         (df_scan_free_internal) Likewise.
27741         (df_scan_alloc) Likewise.
27742         (df_grow_reg_info) Likewise.
27743         (df_free_ref) Likewise.
27744         (df_insn_create_insn_record) Likewise.
27745         (df_mw_hardreg_chain_delete) Likewise.
27746         (df_insn_info_delete) Likewise.
27747         (df_free_collection_rec) Likewise.
27748         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27749         (df_sort_and_compress_mws) Likewise.
27750         (df_ref_create_structure) Likewise.
27751         (df_ref_record) Likewise.
27753 2015-06-01  Martin Liska  <mliska@suse.cz>
27755         * df-problems.c (df_chain_create):Use new type-based pool allocator.
27756         (df_chain_unlink_1) Likewise.
27757         (df_chain_unlink) Likewise.
27758         (df_chain_remove_problem) Likewise.
27759         (df_chain_alloc) Likewise.
27760         (df_chain_free) Likewise.
27761         * df.h (struct dataflow) Likewise.
27763 2015-06-01  Martin Liska  <mliska@suse.cz>
27765         * cselib.c (new_elt_list):Use new type-based pool allocator.
27766         (new_elt_loc_list) Likewise.
27767         (unchain_one_elt_list) Likewise.
27768         (unchain_one_elt_loc_list) Likewise.
27769         (unchain_one_value) Likewise.
27770         (new_cselib_val) Likewise.
27771         (cselib_init) Likewise.
27772         (cselib_finish) Likewise.
27774 2015-06-01  Martin Liska  <mliska@suse.cz>
27776         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27777         (sh_reorg) Likewise.
27779 2015-06-01  Martin Liska  <mliska@suse.cz>
27781         * cfg.c (initialize_original_copy_tables):Use new type-based
27782         pool allocator.
27783         (free_original_copy_tables) Likewise.
27784         (copy_original_table_clear) Likewise.
27785         (copy_original_table_set) Likewise.
27787 2015-06-01  Martin Liska  <mliska@suse.cz>
27789         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27790         pool allocator.
27791         (asan_mem_ref_new) Likewise.
27792         (free_mem_ref_resources) Likewise.
27794 2015-06-01  Martin Liska  <mliska@suse.cz>
27796         * var-tracking.c (variable_htab_free):Use new type-based
27797         pool allocator.
27798         (attrs_list_clear) Likewise.
27799         (attrs_list_insert) Likewise.
27800         (attrs_list_copy) Likewise.
27801         (shared_hash_unshare) Likewise.
27802         (shared_hash_destroy) Likewise.
27803         (unshare_variable) Likewise.
27804         (var_reg_delete_and_set) Likewise.
27805         (var_reg_delete) Likewise.
27806         (var_regno_delete) Likewise.
27807         (drop_overlapping_mem_locs) Likewise.
27808         (variable_union) Likewise.
27809         (insert_into_intersection) Likewise.
27810         (canonicalize_values_star) Likewise.
27811         (variable_merge_over_cur) Likewise.
27812         (dataflow_set_merge) Likewise.
27813         (remove_duplicate_values) Likewise.
27814         (variable_post_merge_new_vals) Likewise.
27815         (dataflow_set_preserve_mem_locs) Likewise.
27816         (dataflow_set_remove_mem_locs) Likewise.
27817         (variable_from_dropped) Likewise.
27818         (variable_was_changed) Likewise.
27819         (set_slot_part) Likewise.
27820         (clobber_slot_part) Likewise.
27821         (delete_slot_part) Likewise.
27822         (loc_exp_insert_dep) Likewise.
27823         (notify_dependents_of_changed_value) Likewise.
27824         (emit_notes_for_differences_1) Likewise.
27825         (vt_emit_notes) Likewise.
27826         (vt_initialize) Likewise.
27827         (vt_finalize) Likewise.
27829 2015-06-01  Martin Liska  <mliska@suse.cz>
27831         * ira-color.c (init_update_cost_records):Use new type-based
27832         pool allocator.
27833         (get_update_cost_record) Likewise.
27834         (free_update_cost_record_list) Likewise.
27835         (finish_update_cost_records) Likewise.
27836         (initiate_cost_update) Likewise.
27838 2015-06-01  Martin Liska  <mliska@suse.cz>
27840         * lra.c (init_insn_regs): Use new type-based pool allocator.
27841         (new_insn_reg) Likewise.
27842         (free_insn_reg) Likewise.
27843         (free_insn_regs) Likewise.
27844         (finish_insn_regs) Likewise.
27845         (init_insn_recog_data) Likewise.
27846         (init_reg_info) Likewise.
27847         (finish_reg_info) Likewise.
27848         (lra_free_copies) Likewise.
27849         (lra_create_copy) Likewise.
27850         (invalidate_insn_data_regno_info) Likewise.
27852 2015-06-01  Martin Liska  <mliska@suse.cz>
27854         * lra-lives.c (free_live_range): Use new type-based pool allocator.
27855         (free_live_range_list) Likewise.
27856         (create_live_range) Likewise.
27857         (copy_live_range) Likewise.
27858         (lra_merge_live_ranges) Likewise.
27859         (remove_some_program_points_and_update_live_ranges) Likewise.
27860         (lra_live_ranges_init) Likewise.
27861         (lra_live_ranges_finish) Likewise.
27863 2015-06-01  Martin Liska  <mliska@suse.cz>
27865         * et-forest.c (et_new_occ): Use new type-based pool allocator.
27866         (et_new_tree): Likewise.
27867         (et_free_tree): Likewise.
27868         (et_free_tree_force): Likewise.
27869         (et_free_pools): Likewise.
27870         (et_split): Likewise.
27872 2015-06-01  Martin Liska  <mliska@suse.cz>
27874         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
27875         to header file.
27876         * alloc-pool.h (pool_allocator::pool_allocator): New function.
27877         (pool_allocator::release): Likewise.
27878         (inline pool_allocator::release_if_empty): Likewise.
27879         (inline pool_allocator::~pool_allocator): Likewise.
27880         (pool_allocator::allocate): Likewise.
27881         (pool_allocator::remove): Likewise.
27883 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27885         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
27886         in comment.
27888 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27890         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
27891         to fusible_ops.
27892         * config/arm/arm.c (arm_print_tune_info): Likewise.
27893         (arm_macro_fusion_p): Likewise.
27894         (arm_macro_fusion_pair_p): Likewise.
27896 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
27898         * config/aarch64/aarch64-protos.h (tune_params): Rename
27899         fuseable_ops to fusible_ops.
27900         * config/aarch64/aarch64.c (generic_tunings): Rename
27901         fuseable_ops to fusible_ops.
27902         (cortexa53_tunings): Likewise.
27903         (cortexa57_tunings): Likewise.
27904         (thunderx_tunings): Likewise.
27905         (xgene1_tunings): Likewise.
27906         (aarch64_macro_fusion_p): Likewise.
27907         (aarch64_macro_fusion_pair_p): Likewise.
27909 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27911         * config/s390/driver-native.c: New file.
27912         * config/s390/x-native: New file.
27913         * config.host: Add new files for s390.
27914         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
27915         and -march=native
27916         * config.gcc: Likewise.
27917         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
27918         * config/s390/s390-opts.h (enum processor_type): Ditto.
27919         * config/s390/s390.c (s390_option_override): Catch unhandled
27920         PROCESSOR_NATIVE
27922 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
27924         PR target/65527
27925         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
27926         redirection for instrumented calls.
27927         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
27928         (append_compiler_options): Append -fcheck-pointer-bounds.
27929         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
27930         (chkp_redirect_edge): New.
27931         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
27932         (chkp_redirect_edge): New.
27934 2015-06-01  Richard Biener  <rguenther@suse.de>
27936         PR tree-optimization/66280
27937         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
27938         def-use walking.
27940 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27942         * config/aarch64/aarch64.md
27943         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
27944         logic_shift_imm.
27946 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
27948         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
27949         Remove obsolete kludge.
27951 2015-06-01  Richard Biener  <rguenther@suse.de>
27953         * tree-ssa-reassoc.c (get_rank): Simplify.
27955 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
27957         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
27958         * configure: Regenerated.
27960 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
27962         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
27963         issue (add space between string literal and macro).
27964         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
27966 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
27968         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
27969         implict or explicit -fPIE or -fpie.
27971 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
27973         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
27975 2015-05-28  DJ Delorie  <dj@redhat.com>
27977         * expmed.c (extract_bit_field_1): Avoid clobbering a
27978         yet-to-be-used base/index register.
27980 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
27982         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
27983         (alias_stats): Add num_universal.
27984         (alias_set_subset_of): Special case pointers; be ready for NULL
27985         children.
27986         (alias_sets_conflict_p): Special case pointers; be ready for NULL
27987         children.
27988         (init_alias_set_entry): Break out from ...
27989         (record_alias_subset): ... here; propagate new fields;
27990         allocate children only when really needed.
27991         (get_alias_set): Do less generous pointer globbing.
27992         (dump_alias_stats_in_alias_c): Update statistics.
27994 2015-05-30  Alan Modra  <amodra@gmail.com>
27996         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
27997         correct block for use of r12.
27998         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28000 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28002         PR target/66215
28003         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28004         with -mhotpatch=.
28006 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
28008         PR tree-optimization/66142
28009         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28010         virtual phis that feed themselves.
28012 2015-05-29  Richard Biener  <rguenther@suse.de>
28014         PR tree-optimization/66314
28015         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28016         parameter that says which loop the new block belongs to.
28017         (ssa_create_duplicates): Blocks duplicated for the threaded
28018         path belong to the loop of the thread destination.
28020 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28022         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28023         to cleanup-saved-temps.
28024         * doc/sourcebuild.texi (Clean up generated test files): Expand
28025         introduction.
28026         (dg-keep-saved-temps): Document new proc.
28027         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28028         cleanup-saved-temps): Remove.
28030 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
28032         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28033         gcc_AC_CHECK_DECLS.
28034         * configure: Regenerate.
28036 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28038         * config/nios2/linux.h (CPP_SPEC): Define.
28040 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28042         * config/microblaze/linux.h (CPP_SPEC): Define.
28044 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28046         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28047         -pthread is specified.
28049 2015-05-28  Richard Biener  <rguenther@suse.de>
28051         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28052         (vect_fixup_scalar_cycles_with_patterns): Likewise.
28053         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28054         after pattern recog.
28055         (vect_create_epilog_for_reduction): Properly handle reductions
28056         with patterns.
28057         (vectorizable_reduction): Likewise.
28058         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28059         reduction chains.
28060         (vect_get_constant_vectors): Create the correct number of
28061         initial values for reductions.
28062         (vect_schedule_slp_instance): Handle reduction chains that are
28063         type changing properly.
28064         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28066 2015-05-28  Richard Biener  <rguenther@suse.de>
28068         PR tree-optimization/66142
28069         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28070         values better in memcpy destination handling.  Handle non-aliasing
28071         we discover here.
28073 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
28075         PR target/63810
28076         * config/darwin-c.c (version_components): New global enum.
28077         (parse_version, version_as_legacy_macro)
28078         (version_as_modern_macro, macosx_version_as_macro): New functions.
28079         (version_as_macro): Remove.
28080         (darwin_cpp_builtins): Use new function.
28082 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
28084         * builtins.c (expand_builtin_acc_on_device): Mark parameters
28085         with ATTRIBUTE_UNUSED.
28087 2015-05-28  Julian Brown  <julian@codesourcery.com>
28089         PR libgomp/65742
28091         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28092         sequence for !ACCEL_COMPILER.
28094 2015-05-28  Nick Clifton  <nickc@redhat.com>
28096         * config/rx/rx.c (push_regs): New function.  Extracts code from...
28097         (rx_expand_prologue): ... here.  Use push_regs to push even small
28098         spans of registers.
28099         (pop_regs): New function.
28100         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
28101         registers.
28103 2015-05-28  Richard Biener  <rguenther@suse.de>
28105         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28106         member.
28107         (SLP_INSTANCE_BODY_COST_VEC): Remove.
28108         (vect_update_slp_costs_according_to_vf): Likewise.
28109         (vect_slp_analyze_operations): Update prototype.
28110         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28111         vect_update_slp_costs_according_to_vf, adjust.
28112         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28113         (vect_analyze_slp_cost_1): Likewise.
28114         (vect_analyze_slp_cost): Likewise.  Properly deal with
28115         widening reduction ops.  Commit body costs.
28116         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
28117         cost for loops from here.
28118         (vect_slp_analyze_operations): But do it from here when
28119         the vectorization factor is known and stmts are analyzed.
28120         (vect_bb_vectorization_profitable_p): Simplify.
28121         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28122         (vect_update_slp_costs_according_to_vf): Remove.
28124 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
28125             H.J. Lu  <hongjiu.lu@intel.com>
28127         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28128         (BUILD_CFLAGS): Likewise.
28129         (BUILD_CXXFLAGS): Likewise.
28130         (LINKER): Add @NO_PIE_FLAG@.
28131         (BUILD_LDFLAGS): Likewise.
28132         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28133         --enable-default-pie.
28134         * common.opt (fPIE): Initialize to -1.
28135         (fpie): Likewise.
28136         (no-pie): New option.
28137         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28138         * configure.ac: Add --enable-default-pie.
28139         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
28140         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
28141         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
28142         * gcc.c (NO_PIE_SPEC): New.
28143         (PIE_SPEC): Likewise.
28144         (NO_FPIE1_SPEC): Likewise.
28145         (FPIE1_SPEC): Likewise.
28146         (NO_FPIE2_SPEC): Likewise.
28147         (FPIE2_SPEC): Likewise.
28148         (NO_FPIE2_SPEC): Likewise.
28149         (FPIE_SPEC): Likewise.
28150         (NO_FPIE_SPEC): Likewise.
28151         (NO_FPIC1_SPEC): Likewise.
28152         (FPIC1_SPEC): Likewise.
28153         (NO_FPIC2_SPEC): Likewise.
28154         (FPIC2_SPEC): Likewise.
28155         (NO_FPIC2_SPEC): Likewise.
28156         (FPIC_SPEC): Likewise.
28157         (NO_FPIC_SPEC): Likewise.
28158         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28159         (FPIE1_OR_FPIC1_SPEC): Likewise.
28160         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28161         (FPIE2_OR_FPIC2_SPEC): Likewise.
28162         (NO_FPIE_AND_FPIC_SPEC): Likewise.
28163         (FPIE_OR_FPIC_SPEC): Likewise.
28164         (LD_PIE_SPEC): Likewise.
28165         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
28166         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28167         * config/darwin.h (PIE_SPEC): Renamed to ...
28168         (DARWIN_PIE_SPEC): This.
28169         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28170         * config/darwin9.h (PIE_SPEC): Renamed to ...
28171         (DARWIN_PIE_SPEC): This.
28172         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28173         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28174         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28175         FPIE2_OR_FPIC2_SPEC.
28176         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28177         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28178         * config/sol2.h (ASM_PIC_SPEC): Likewise.
28179         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28180         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28181         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28182         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28183         * config/m32r/m32r.h (ASM_SPEC): Likewise.
28184         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28185         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28186         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28187         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28188         * config/sparc/linux.h (ASM_SPEC): Likewise.
28189         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28190         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28191         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28192         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28193         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28194         * config/sparc/sparc.h (ASM_SPEC): Likewise.
28195         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28196         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28197         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28198         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28199         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28200         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28201         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28202         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28203         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28204         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28205         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28206         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28207         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28208         * config/vax/linux.h (ASM_SPEC): Likewise.
28209         * doc/install.texi: Document --enable-default-pie.
28210         * doc/invoke.texi: Document -no-pie.
28211         * config.in: Regenerated.
28212         * configure: Likewise.
28214 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28216         PR rtl-optimization/66168
28217         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28218         can_move_invariant_reg.
28220 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
28222         PR target/66148
28223         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28224         REG_EQUAL note when doing insert.
28226         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28227         instead of "%d" for 'o' operand.
28229 2015-05-27  Nathan Sidwell  <nathan@acm.org>
28231         PR c++/66270
28232         * tree.c (build_pointer_type_for_mode): Canonical type does not
28233         inherit can_alias_all.
28234         (build_reference_type_for_mode): Likewise.
28236 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
28238         * expr.h (array_at_struct_end_p): Move to...
28239         (array_ref_element_size): Likewise.
28240         (component_ref_field_offset): Likewise.
28241         * tree.h (array_ref_element_size): ...here.
28242         (array_at_struct_end_p): Likewise.
28243         (component_ref_field_offset): Likewise.
28244         * expr.c (array_ref_element_size): Move to...
28245         (array_ref_low_bound): Likewise.
28246         (array_at_struct_end_p): Likewise.
28247         (array_ref_up_bound): Likewise.
28248         (component_ref_field_offset): Likewise.
28249         * tree.c (array_ref_element_size): ...here.
28250         (array_ref_low_bound): Likewise.
28251         (array_ref_up_bound): Likewise.
28252         (array_at_struct_end_p): Likewise.
28253         (component_ref_field_offset): Likewise.
28255 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28256             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28258         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28260 2015-05-27  Jason Merrill  <jason@redhat.com>
28262         PR bootstrap/66304
28263         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28264         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28265         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28267 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
28269         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28270         is true.
28272         * statistics.c (statistics_fini_pass): Print pass name.
28274 2015-05-27  Richard Biener  <rguenther@suse.de>
28276         PR tree-optimization/66272
28277         Revert parts of
28278         2014-08-15  Richard Biener  <rguenther@suse.de>
28280         PR tree-optimization/62031
28281         * tree-data-ref.c (dr_analyze_indices): Do not set
28282         DR_UNCONSTRAINED_BASE.
28283         (dr_may_alias_p): All indirect accesses have to go the
28284         formerly DR_UNCONSTRAINED_BASE path.
28285         * tree-data-ref.h (struct indices): Remove
28286         unconstrained_base member.
28287         (DR_UNCONSTRAINED_BASE): Remove.
28289 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
28291         * dwarf2out.c: Remove block_map.
28292         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28293         (gen_lexical_block_die): Same.
28294         (dwarf2out_function_decl): Remove block_map use.
28295         (dwarf2out_c_finalize): Same.
28296         * tree-core.h (struct tree_block): Add die field.
28297         * tree.h (BLOCK_DIE): New.
28299 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28301         PR target/65358
28302         * expr.c (memory_load_overlap): New function.
28303         (emit_push_insn): When pushing partial args to the stack would
28304         clobber the register part load the overlapping part into a pseudo
28305         and put it into the hard reg after pushing.  Change return type
28306         to bool.  Add bool argument.
28307         * expr.h (emit_push_insn): Change return type to bool.
28308         Add bool argument.
28309         * calls.c (expand_call): Cancel sibcall optimization when encountering
28310         partial argument on targets with ARGS_GROW_DOWNWARD and
28311         !STACK_GROWS_DOWNWARD.
28312         (emit_library_call_value_1): Update callsite of emit_push_insn.
28313         (store_one_arg): Likewise.
28315 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28317         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28319 2015-05-27  Martin Liska  <mliska@suse.cz>
28321         * Makefile.in: Add additional dependencies related to memory report
28322         enhancement.
28323         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28324         * bitmap.c (struct bitmap_descriptor_d): Remove.
28325         (struct loc): Likewise.
28326         (struct bitmap_desc_hasher): Likewise.
28327         (bitmap_desc_hasher::hash): Likewise.
28328         (bitmap_desc_hasher::equal): Likewise.
28329         (get_bitmap_descriptor): Likewise.
28330         (bitmap_register): User new memory descriptor API.
28331         (register_overhead): Likewise.
28332         (bitmap_find_bit): Register nsearches and search_iter statistics.
28333         (struct bitmap_output_info): Remove.
28334         (print_statistics): Likewise.
28335         (dump_bitmap_statistics): Use new memory descriptor.
28336         * bitmap.h (struct bitmap_usage): New class.
28337         * genmatch.c: Extend header file inclusion.
28338         * genpreds.c: Likewise.
28339         * ggc-common.c (struct ggc_usage): New class.
28340         (struct ggc_loc_desc_hasher): Remove.
28341         (ggc_loc_desc_hasher::hash): Likewise.
28342         (ggc_loc_desc_hasher::equal): Likewise.
28343         (struct ggc_ptr_hash_entry): Likewise.
28344         (struct ptr_hash_hasher): Likewise.
28345         (ptr_hash_hasher::hash): Likewise.
28346         (ptr_hash_hasher::equal): Likewise.
28347         (make_loc_descriptor): Likewise.
28348         (ggc_prune_ptr): Likewise.
28349         (dump_ggc_loc_statistics): Use new memory descriptor.
28350         (ggc_record_overhead): Likewise.
28351         (ggc_free_overhead): Likewise.
28352         (final_cmp_statistic): Remove.
28353         (cmp_statistic): Likewise.
28354         (ggc_add_statistics): Liekwise.
28355         (ggc_prune_overhead_list): Likewise.
28356         * hash-map-traits.h: New file.
28357         * hash-map.h (struct default_hashmap_traits): Move the traits to a
28358         separate header file.
28359         * hash-set.h: Pass memory statistics info to ctor.
28360         * hash-table.c (void dump_hash_table_loc_statistics): New function.
28361         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28362         (hash_table::~hash_table): Register memory release operation.
28363         (hash_table::alloc_entries): Handle memory allocation operation.
28364         (hash_table::expand): Likewise.
28365         * inchash.c (iterative_hash_hashval_t): Move implementation to header
28366         file.
28367         (iterative_hash_host_wide_int): Likewise.
28368         * inchash.h (class hash): Likewise.
28369         * mem-stats-traits.h: New file.
28370         * mem-stats.h: New file.
28371         (mem_location): Add new class.
28372         (mem_usage): Likewise.
28373         (mem_alloc_description): Likewise.
28374         * sese.c: Add new header file inclusision.
28375         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28376         and hash_set.
28377         * tree-sra.c: Add new header file inclusision.
28378         * vec.c (struct vec_descriptor): Remove.
28379         (hash_descriptor): Likewise.
28380         (struct vec_usage): Likewise.
28381         (struct ptr_hash_entry): Likewise.
28382         (hash_ptr): Likewise.
28383         (eq_ptr): Likewise.
28384         (vec_prefix::register_overhead): Use new memory descriptor API.
28385         (vec_prefix::release_overhead): Likewise.
28386         (add_statistics): Remove.
28387         (dump_vec_loc_statistics): Use new memory descriptor API.
28388         * vec.h (struct vec_prefix): Likewise.
28389         (va_heap::reserve): Likewise.
28390         (va_heap::release): Likewise.
28391         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28393 2015-05-27  Richard Biener  <rguenther@suse.de>
28395         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28396         earlier and remove ??? comment.
28397         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28398         and got called from loop analysis bail out.  Always pass the SLP
28399         node to the vectorizable_* functions.
28400         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28401         the premature SLP check here.
28402         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28403         detected SLP stmts.
28404         (vect_detect_hybrid_slp_1): Likewise.
28406 2015-05-26  Jeff Law  <law@redhat.com>
28408         * combine.c (find_split_point): Verify that the shift count is a
28409         constant when choosing (plus (ashift ...)) as a split point.
28411         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28412         No functional changes.
28414 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
28416         * ipa-polymorphic-call.c
28417         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28418         case when call target is already known.
28420 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
28422         PR target/65979
28423         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28424         take into account the case that operands[1] and operands[2]
28425         are the same register.
28427 2015-05-26  Michael Matz  <matz@suse.de>
28429         PR middle-end/66251
28431         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28432         stores.
28433         (vect_create_vectorized_demotion_stmts): Always set
28434         STMT_VINFO_VEC_STMT, also with SLP.
28435         (vectorizable_store): Handle strided group stores.
28437 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28439         PR target/66049
28440         * config/aarch64/aarch64.md
28441         (*adds_shift_imm_<mode>):  New pattern.
28442         (*subs_shift_imm_<mode>):  Likewise.
28443         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
28444         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28445         (*add_uxt<mode>_shift2): Likewise.
28446         (*add_uxtsi_shift2_uxtw): Likewise.
28447         (*sub_uxt<mode>_shift2): Likewise.
28448         (*sub_uxtsi_shift2_uxtw): Likewise.
28450 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
28452         * config/rs6000/constraints.md (Y, U): Use match_test.
28454 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28456         PR target/52144
28457         * config/arm/arm.c (arm_option_check_internal)
28458         (arm_option_params_internal): Check opts->target_flags to set macros.
28459         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28460         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28461         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28462         (builtin_define): Replaced with def_or_undef_macro.
28463         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28464         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28465         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28466         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28467         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28468         (TARGET_ARM_FEATURE_LDREX_P)
28469         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28470         * config/arm/arm-c.c (def_or_undef_macro): New function.
28471         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28473 2015-05-26  Christian Bruel  <christian.bruel@st.com>
28475         * c-common.h (builtin_define_with_int_value)
28476         (builtin_define_type_sizeof): Declare.
28477         * c-cppbuiltin.c (builtin_define_with_int_value)
28478         (builtin_define_type_sizeof): Externalize.
28479         (builtin_define_std): Cleanup declaration.
28480         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28481         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28482         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28483         (builtin_define, builtin_assert): New macros.
28485 2015-05-26  Richard Biener  <rguenther@suse.de>
28487         PR tree-optimization/66142
28488         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28489         MEM_REFs for the same base address.
28491 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28493         PR ipa/66181
28494         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28496 2015-05-26  Jason Merrill  <jason@redhat.com>
28498         * configure.ac: Set CXXFLAGS for ISL test.
28499         * configure: Regenerate.
28501         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
28502         strstr and basename.
28503         * configure: Regenerate.
28505 2015-05-26  Richard Biener  <rguenther@suse.de>
28507         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28508         X % C -> X & (C - 1) for C being a power-of two to ...
28509         * match.pd: ... patterns.
28511 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
28513         * match.pd (swapped_tcc_comparison): New operator list.
28514         (-A CMP -B): New simplification.
28515         * fold-const.c (fold_comparison): Remove corresponding code.
28517 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28519         * caller-save.c (init_caller_save): Base temporary register numbers
28520         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28521         * cfgloopanal.c (init_set_costs): Likewise.
28522         * dojump.c (prefer_and_bit_test): Likewise.
28523         * expr.c (init_expr_target): Likewise.
28524         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28525         * lower-subreg.c (init_lower_subreg): Likewise.
28526         * postreload.c (reload_cse_regs_1): Likewise.
28528 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
28530         * gensupport.h (compute_test_codes): Declare.
28531         * gensupport.c (compute_predicate_codes): Rename to...
28532         (compute_test_codes): ...this.  Generalize error message.
28533         (process_define_predicate): Update accordingly.
28534         * genpreds.c (compute_maybe_allows): Delete.
28535         (add_constraint): Use compute_test_codes to determine whether
28536         something can accept a SUBREG, REG or MEM.
28538 2015-05-26  Torvald Riegel  <triegel@redhat.com>
28540         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28541         'memory model' to align with C++11; fix description of memory orders;
28542         fix a few typos.
28544 2015-05-26  Richard Biener  <rguenther@suse.de>
28546         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28547         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
28548         detect whether we apply SLP.  Remove call to
28549         vect_update_slp_costs_according_to_vf.
28550         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28551         vect_update_slp_costs_according_to_vf from here.  Dispatch
28552         to vect_slp_analyze_operations to analyze SLP stmts.
28553         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28554         unused bb_vec_info parameter, adjust assert.
28555         (vect_slp_analyze_operations): Pass in the slp instance tree
28556         instead of bb_vec_info.
28557         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28558         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28560 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28562         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28563         Q_REGS.  Expand comment.
28564         (REG_CLASS_NAMES): Ditto.
28565         (REG_CLASS_CONTENTS): Ditto.
28567 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
28569         PR target/66274
28570         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28571         when LEGACY_INT_REGNO_P is processed.
28573 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
28575         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28577 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
28579         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28580         register if not marked dead/unused, before return.
28582 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28584         PR lto/66180
28585         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28586         is set; check for assembler name at LTO time.
28587         (type_in_anonymous_namespace): Remove hacks, check that all
28588         anonymous types are called "<anon>"
28589         (odr_type_p): Simplify; add check for "<anon>"
28590         (odr_subtypes_equivalent): Add odr_type_p check.
28591         * tree.c (need_assembler_name_p): Even anonymous namespace needs
28592         assembler name.
28594 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28596         * ipa-utils.h (method_class_type): Remove.
28597         * cgraphunit.c (walk_polymorphic_call_targets): Use
28598         TYPE_METHOD_BASETYPE.
28599         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28600         on main variants only.
28601         (method_class_type): Remove.
28602         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28603         (build_type_inheritance_graph): Likewise.
28604         * ipa-icf.c (sem_function::equals_wpa): Likewise.
28605         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28606         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28608 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
28610         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28611         is_typedef_decl, typedef_variant_p): Constify.
28612         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28613         is_typedef_decl, typedef_variant_p): Constify.
28615 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28617         * defaults.h (gen_tablejump): New function.
28618         (HAVE_tablejump): Add default value.
28619         * expr.c: Adjust.
28620         * stmt.c: Likewise.
28622 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28624         * defaults.h (gen_store_multiple): New function.
28625         (HAVE_store_multiple): Add default value.
28626         * expr.c (move_block_from_reg): Adjust.
28628 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28630         * defaults.h (gen_load_multiple): New function.
28631         (HAVE_load_multiple): Add default value.
28632         * expr.c (move_block_to_reg): Adjust.
28634 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28636         * defaults.h (gen_mem_signal_fence): New function.
28637         (HAVE_mem_signal_fence): Add default value.
28638         * optabs.c: Adjust.
28640 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28642         * defaults.h (gen_memory_barrier): New function.
28643         (HAVE_memory_barrier): Add default value.
28644         * optabs.c: Adjust.
28646 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28648         * defaults.h (gen_mem_thread_fence): New function.
28649         (HAVE_mem_thread_fence): Add default definition.
28650         * optabs.c: Adjust.
28652 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28654         * combine.c (find_split_point): Check the value of HAVE_lo_sum
28655         instead of if it is defined.
28656         (combine_simplify_rtx): Likewise.
28657         * lra-constraints.c (process_address_1): Likewise.
28658         * config/darwin.c: Adjust.
28659         * genconfig.c (main): Always define HAVE_lo_sum.
28661 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28663         * genmatch.c (parser::parse_operation): Reject expanding
28664         operator-list inside 'for'.
28666 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28668         * genmatch.c (parser::parse_for): Reject iterator if used as
28669         operator-list.
28671 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28673         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28674         after end of id-list.
28676 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28678         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28679         we do not try to compute canonical type for type that does not need
28680         alias set.
28681         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28682         FUNCITON_TYPE.
28683         * tree.h (type_with_alias_set_p): New.
28685 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
28687         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
28688         function attributes.
28689         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28691 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
28693         * Makefile.in (check_gcc_parallelize): Delete.
28694         (lang_checks_parallelized): Update comment.
28696 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
28698         PR rtl-optimization/66237
28699         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28700         location of an "as_a" cast.
28702 2015-05-22  Jeff Law  <law@redhat.com>
28704         * config/pa/pa.md (non-canonical shift-add insns): Remove.
28705         (peepholes with non-canonical RTL sources): Remove.
28706         (peepholes for indexed stores of FP regs in integer modes): Match and
28707         generate canonical RTL.
28709 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28711         PR tree-optimization/63387
28712         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28713         ((x ord x) & (y ord y) -> (x ord y),
28714         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28715         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28716         vectors like scalars.
28718 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28720         * convert.c (convert_to_integer, convert_to_vector): Include the
28721         types in the error message.
28723 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
28725         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28726         simplifications.
28728 2015-05-22  Jeff Law  <law@redhat.com>
28730         * config/pa/pa.md (integer_indexed_store splitters): Use
28731         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
28732         insns -- adjusting the constant 2nd operand accordingly.
28734         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28735         (plus (ashift X log2) Y) if it is a split point.
28737         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28738         out of hppa_legitimize_address to handle both forms of a multiply
28739         by 2, 4 or 8.
28740         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28741         Always generate the ASHIFT variant as the result is not directly
28742         used in a MEM.  Update comments and refactor slightly to improve
28743         readability.
28745 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28747         PR target/65491
28748         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28749         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
28750         (aarch64_composite_type_p): Return false if given type and mode are
28751         for a short vector.
28753 2015-05-22  Richard Biener  <rguenther@suse.de>
28755         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28756         member.
28757         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28758         patterns when determining whether SLP is pure.
28759         (vect_is_slp_reduction): Remove check for pattern stmts.
28760         (vect_is_simple_reduction_1): Remove dead code.
28761         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28762         (vect_get_and_check_slp_defs): Pass in the stmt number.
28763         Allow the first def in a reduction to be not a pattern stmt when
28764         the rest of the stmts def are patterns.
28765         (vect_build_slp_tree_1): Allow tcc_expression codes like
28766         SAD_EXPR and DOT_PROD_EXPR.
28767         (vect_build_slp_tree): Adjust.
28768         (vect_analyze_slp): Refactor and move BB vect error message ...
28769         (vect_slp_analyze_bb_1): ... here.
28771 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
28773         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28774         for CSWTCH temporary.
28776 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28778         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28779         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
28780         unknown unspecs.
28782 2015-05-22  Richard Biener  <rguenther@suse.de>
28784         PR tree-optimization/66251
28785         * tree-vect-stmts.c (vectorizable_conversion): Properly
28786         set STMT_VINFO_VEC_STMT even for the SLP case.
28788 2015-05-22  Marek Polacek  <polacek@redhat.com>
28790         * doc/extend.texi: Use @pxref instead of @xref.
28792 2015-05-22  hiraditya  <hiraditya@msn.com>
28794         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28795         redundant if.
28797 2015-05-22  Richard Biener  <rguenther@suse.de>
28799         PR tree-optimization/65701
28800         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28801         Move peeling cost models into one place.  Peel for alignment
28802         for single loads only if an aligned load is cheaper than
28803         an unaligned load.
28805 2015-05-22  Marek Polacek  <polacek@redhat.com>
28807         PR c/47043
28808         * doc/extend.texi (Enumerator Attributes): New section.
28809         Document syntax of enumerator attributes.
28811 2015-05-22  Richard Biener  <rguenther@suse.de>
28813         * tree-vect-loop.c (get_reduction_op): New function.
28814         (vect_model_reduction_cost): Use it, add reduc_index parameter.
28815         Make ready for BB reductions.
28816         (vect_create_epilog_for_reduction): Use get_reduction_op.
28817         (vectorizable_reduction): Init reduc_index to a valid value.
28818         Adjust vect_model_reduction_cost call.
28819         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28820         operand for reduction defaults.  Add SAD_EXPR support.
28821         Assert we have a neutral op for SLP reductions.
28822         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28823         walking pattern stmt ops only recurse to SSA names.
28825 2015-05-22  Richard Biener  <rguenther@suse.de>
28827         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28828         assert with guard, remove check on detected reduction.
28829         (vect_recog_sad_pattern): Likewise.
28830         (vect_recog_widen_sum_pattern): Likewise.
28832 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28834         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28835         __always_inline__ attribute.
28836         (vaesdq_u8): Likewise.
28837         (vaesmcq_u8): Likewise.
28838         (vaesimcq_u8): Likewise.
28839         (vsha1cq_u32): Likewise.
28840         (vsha1mq_u32): Likewise.
28841         (vsha1pq_u32): Likewise.
28842         (vsha1h_u32): Likewise.
28843         (vsha1su0q_u32): Likewise.
28844         (vsha1su1q_u32): Likewise.
28845         (vsha256hq_u32): Likewise.
28846         (vsha256h2q_u32): Likewise.
28847         (vsha256su0q_u32): Likewise.
28848         (vsha256su1q_u32): Likewise.
28849         (vmull_p64): Likewise.
28850         (vmull_high_p64): Likewise.
28852 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28854         * final.c (final_scan_insn): Don't check HAVE_peephole with the
28855         preprocessor.
28856         * output.h: Likewise.
28857         * genconfig.c (main): Alwways define HAVE_peephole.
28858         * genpeep.c: Don't emit checks of HAVE_peephole.
28860 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28862         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
28863         check HAVE_conditional_move with the preprocessor.
28865 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28867         * genconfig.c (main): Always define HAVE_conditional_move.
28868         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
28869         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
28870         is defined.
28872 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28874         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
28875         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
28876         and FRAME_POINTER_REGNUM with the preprocessor.
28878 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28880         * defaults.h: Add default for STACK_PUSH_CODE.
28881         * expr.c: Don't redefine STACK_PUSH_CODE.
28882         * recog.c: Likewise.
28884 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28886         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
28887         sched-deps.c: Use if instead of preprocessor checks with
28888         STACK_GROWS_DOWNWARD.
28890 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
28892         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
28893         is defined.
28894         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
28895         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
28896         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
28897         * doc/tm.texi: Regenerate.
28899 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
28901         PR target/66232
28902         * config/i386/constraints.md (Bg): New constraint for GOT memory
28903         operand.
28904         * config/i386/i386.md (*call_got_x32): New pattern.
28905         (*call_value_got_x32): Likewise.
28906         * config/i386/predicates.md (GOT_memory_operand): New predicate.
28908 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
28910         PR tree-optimization/66233
28911         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
28912         Simplify.
28914 2015-05-21  Jeff Law  <law@redhat.com>
28916         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
28917         than MULT for shadd sequences.
28919 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
28921         * alias.c (alias_stats): New static var.
28922         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
28923         (dump_alias_stats_in_alias_c): New function.
28924         * alias.h (dump_alias_stats_in_alias_c): Declare.
28925         * tree-ssa-alias.c (dump_alias_stats): Call it.
28927 2015-05-08  Michael Matz  <matz@suse.de>
28929         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
28930         to strided_p.
28931         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
28932         (STMT_VINFO_STRIDED_P): ... this.
28933         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
28934         (vect_verify_datarefs_alignment): Likewise.
28935         (vect_enhance_data_refs_alignment): Likewise.
28936         (vect_analyze_data_ref_access): Likewise.
28937         (vect_analyze_data_refs): Accept strided stores.
28938         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
28939         (vect_model_load_cost): Adjust for macro rename.
28940         (vectorizable_mask_load_store): Likewise.
28941         (vectorizable_load): Likewise.
28942         (vectorizable_store): Open code strided stores.
28944 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28946         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
28947         Document sqrt_insn.
28949 2015-05-21  Richard Biener  <rguenther@suse.de>
28951         PR c++/66211
28952         * match.pd: Guard pattern optimzing (int)(float)int
28953         conversions to apply only on GIMPLE.
28955 2015-05-21  Jeff Law  <law@redhat.com>
28957         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
28958         multiply-accumulate/shift-add insn generation.
28960 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
28962         PR target/54236
28963         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
28964         operands[1] are the same.
28966 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
28968         PR middle-end/66221
28969         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
28970         build_distinct_type_copy to copy bounds.
28972 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
28974         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
28975         Change to unsigned int.
28977 2015-05-20  Jeff Law  <law@redhat.com>
28979         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
28980         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
28981         (pa_shadd_constant_p): Allow constants for shadd insns rather
28982         than valid scaling constants for memory addresses.
28983         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
28984         * config/pa/predicates.md (mem_shadd_operand): New predicate.
28985         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
28986         (shift-add insns using ASHIFT): New patterns.
28988 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
28990         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
28991         feasible.
28992         (fix_up_fall_thru_edges): Likewise.
28993         (fix_crossing_conditional_branches): Likewise. Promote jump targets
28994         from to rtx_insn to rtx_code_label where feasible.
28995         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
28996         gen_move_insn (returned type changed to rtx_insn).
28997         * builtins.c (expand_errno_check): Fix arguments of
28998         do_compare_rtx_and_jump (now expects rtx_code_label).
28999         (expand_builtin_acc_on_device): Likewise.
29000         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29001         invert_jump (now exprects rtx_jump_insn).
29002         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29003         (construct_init_block): Use rtx_code_label.
29004         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29005         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29006         calling redirect_jump.
29007         (patch_jump_insn): Likewise.
29008         (redirect_branch_edge): Likewise.
29009         (force_nonfallthru_and_redirect): Likewise.
29010         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29011         when suitable.
29012         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29013         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29014         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29015         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29016         to store the value retured by gen_label_rtx.
29017         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29018         rtx_jump_insn.
29019         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29020         (split_branches): Fix calls of redirect_jump.
29021         * dojump.c (jumpifnot): Promote argument type from rtx to
29022         rtx_code_label.
29023         (jumpifnot_1): Likewise.
29024         (jumpif): Likewise.
29025         (jumpif_1): Likewise.
29026         (do_jump_1): Likewise.
29027         (do_jump): Likewise. Use rtx_code_label when feasible.
29028         (do_jump_by_parts_greater_rtx): Likewise.
29029         (do_jump_by_parts_zero_rtx): Likewise.
29030         (do_jump_by_parts_equality_rtx): Likewise.
29031         (do_compare_rtx_and_jump): Likewise.
29032         * dojump.h: Update function prototypes.
29033         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29034         returns rtx_insn).
29035         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29036         rtx_jump_insn.
29037         (emit_label_before): Likewise.
29038         (emit_jump_insn_after_noloc): Likewise.
29039         (emit_jump_insn_after_setloc): Likewise.
29040         (emit_jump_insn_after): Likewise
29041         (emit_jump_insn_before_setloc): Likewise.
29042         (emit_jump_insn_before): Likewise.
29043         (emit_label_before): Promote return type to rtx_code_label.
29044         (emit_label): Likewise.
29045         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29046         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29047         gen_move_insn.
29048         (emit_stack_restore): Likewise.
29049         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29050         (do_cmp_and_jump): Likewise.
29051         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29052         from rtx to rtx_code_label.
29053         (gen_move_insn_uncast): New function.
29054         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29055         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29056         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29057         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29058         invert_jump_1 and redirect_jump_1.
29059         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29060         do_compare_rtx_and_jump.
29061         (expand_addsub_overflow): Likewise.
29062         (expand_neg_overflow): Likewise.
29063         (expand_mul_overflow): Likewise.
29064         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29065         return value of gen_move_insn.
29066         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29067         * loop-doloop.c (add_test): Use rtx_code_label.
29068         (doloop_modify): Likewise.
29069         (doloop_optimize): Likewise.
29070         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29071         * lra-constraints.c (emit_spill_move): Remove cast of value returned
29072         by gen_move_insn.
29073         (inherit_reload_reg): Add cast when calling dump_insn_slim.
29074         (split_reg): Likewise.
29075         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29076         gen_move_insn.
29077         * optabs.c (expand_binop_directly): Remove casts of values returned by
29078         maybe_gen_insn.
29079         (expand_unop_direct): Likewise.
29080         (expand_abs): Likewise.
29081         (maybe_emit_unop_insn): Likewise.
29082         (maybe_gen_insn): Promote return type to rtx_insn.
29083         * optabs.h: Update prototype of maybe_gen_insn.
29084         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29085         redundant cast.
29086         * recog.c (struct peep2_insn_data): Promote type of insn field to
29087         rtx_insn.
29088         (peep2_reinit_state): Use NULL instead of NULL_RTX.
29089         (peep2_attempt): Remove casts of insn in peep2_insn_data.
29090         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29091         * recog.h (struct insn_gen_fn): Promote return types of function
29092         pointers and operator ().from rtx to rtx_insn.
29093         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29094         (fill_eager_delay_slots): Likewise.
29095         (relax_delay_slots): Likewise.
29096         (make_return_insns): Likewise.
29097         (dbr_schedule): Likewise.
29098         (optimize_skips): Likewise.
29099         (reorg_redirect_jump): Likewise.
29100         (fill_slots_from_thread): Likewise.
29101         * reorg.h: Update prototypes.
29102         * resource.c (find_dead_or_set_registers): Use dyn_cast to
29103         rtx_jump_insn instead of check.  Use it's jump_target method.
29104         * rtl.h (rtx_jump_insn::jump_label): Define new method.
29105         (rtx_jump_insn::jump_target): Define new method.
29106         (rtx_jump_insn::set_jump_target): Define new method.
29107         * rtlanal.c (tablejump_p): Promote type of one local variable.
29108         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29109         (sched_analyze_insn): Likewise.
29110         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29111         (print_insn): Likewise.
29112         * stmt.c (label_rtx): Promote return type to rtx_insn.
29113         (force_label_rtx): Likewise.
29114         (jump_target_rtx): Define new function.
29115         (expand_label): Use it, get rid of one cast.
29116         (expand_naked_return): Promote rtx to rtx_code_label.
29117         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29118         (expand_case): Use rtx_code_label instread of rtx where feasible.
29119         (expand_sjlj_dispatch_table): Likewise.
29120         (emit_case_nodes): Likewise.
29121         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
29122         * store-motion.c (insert_store): Make use of new return type of
29123         gen_move_insn and remove a cast.
29124         (replace_store_insn): Likewise.
29126 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
29128         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29129         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29131 2015-05-20  Jeff Law  <law@redhat.com>
29133         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29134         dispose of the jump thread path when the jump threading
29135         opportunity is cancelled.
29137 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29139         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29140         when printing the caret character.
29142 2015-05-20  Marek Polacek  <polacek@redhat.com>
29144         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29146 2015-05-20  Marek Polacek  <polacek@redhat.com>
29148         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29149         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29150         * gimple-fold.c (canonicalize_bool): Likewise.
29151         (same_bool_result_p): Likewise.
29152         * tree-if-conv.c (parse_predicate): Likewise.
29154 2015-05-20  Marek Polacek  <polacek@redhat.com>
29156         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29157         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29159 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29161         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29162         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29163         values.
29165 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
29167         * config/mips/mips.h (micromips_globals): Declare.
29169 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
29171         * timevar.def (TV_INITIALIZE_RTL): New.
29172         * toplev.c (initialize_rtl): Use an auto_timevar to account this
29173         function's time to TV_INITIALIZE_RTL.
29175 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
29177         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29178         gimple_build_nop calls.
29179         (chkp_find_bounds_for_elem): Likewise.
29180         (chkp_get_zero_bounds): Likewise.
29181         (chkp_get_none_bounds): Likewise.
29182         (chkp_get_bounds_by_definition): Likewise.
29183         (chkp_generate_extern_var_bounds): Likewise.
29184         (chkp_get_bounds_for_decl_addr): Likewise.
29185         (chkp_get_bounds_for_string_cst): Likewise.
29187 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
29189         PR tree-optimization/65447
29190         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29191         (dump_use, dump_uses): Support to dump sub use.
29192         (record_use): New parameters to support sub use.  Remove call to
29193         dump_use.
29194         (record_sub_use, record_group_use): New functions.
29195         (compute_max_addr_offset, split_all_small_groups): New functions.
29196         (group_address_uses, rewrite_use_address): New functions.
29197         (strip_offset): New declaration.
29198         (find_interesting_uses_address): Call record_group_use.
29199         (add_candidate): New assertion.
29200         (infinite_cost_p): Move definition forward.
29201         (add_costs): Check INFTY cost and return immediately.
29202         (get_computation_cost_at): Clear setup cost and dependent bitmap
29203         for sub uses.
29204         (determine_use_iv_cost_address): Compute cost for sub uses.
29205         (rewrite_use_address_1): Rename from old rewrite_use_address.
29206         (free_loop_data): Free sub uses.
29207         (tree_ssa_iv_optimize_loop): Call group_address_uses.
29209 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29210             Jim Wilson  <jim.wilson@linaro.org>
29212         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29213         new  fields loadv and storev.
29214         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29215         Initialize loadv and storev.
29216         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29217         (cortexa53_extra_costs): Likewise.
29218         (cortexa57_extra_costs): Likewise.
29219         (xgene1_extra_costs): Likewise.
29220         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29221         rtx_costs.
29223 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29225         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29226          storev.
29227         (cortexa8_extra_costs): Likewise.
29228         (cortexa5_extra_costs): Likewise.
29229         (cortexa7_extra_costs): Likewise.
29230         (cortexa12_extra_costs): Likewise.
29231         (cortexa15_extra_costs): Likewise.
29232         (v7m_extra_costs): Likewise.
29234 2015-05-20  Jeff Law  <law@redhat.com>
29236         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29237         instead of open-coded version.  Also delete the jump thread created
29238         within this function.
29240 2015-05-20  Alan Modra  <amodra@gmail.com>
29242         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29243         stack adjusting insn.  Formatting.
29244         (rs6000_emit_prologue): Track stack adjusting insn, and use of
29245         r12.  If possible, emit first -fsplit-stack arg pointer insn
29246         before stack adjust.  Don't use r12 to save cr if split-stack.
29248 2015-05-20  Alan Modra  <amodra@gmail.com>
29250         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29251         Define.
29252         (rs6000_supports_split_stack): New function.
29253         * config/rs6000/rs6000.c (machine_function): Add
29254         split_stack_arg_pointer.
29255         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29256         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29257         rather than virtual_incoming_args_rtx.
29258         (rs6000_va_start): Likewise.
29259         (split_stack_arg_pointer_used_p): New function.
29260         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29261         (morestack_ref): New var.
29262         (gen_add3_const, rs6000_expand_split_stack_prologue,
29263         rs6000_internal_arg_pointer, rs6000_live_on_entry,
29264         rs6000_split_stack_space_check): New functions.
29265         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29266         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29267         (UNSPECV_SPLIT_STACK_RETURN): Define.
29268         (split_stack_prologue, load_split_stack_limit,
29269         load_split_stack_limit_di, load_split_stack_limit_si,
29270         split_stack_return, split_stack_space_check): New expands and insns.
29271         * config/rs6000/rs6000-protos.h
29272         (rs6000_expand_split_stack_prologue): Declare.
29273         (rs6000_split_stack_space_check): Declare.
29275 2015-05-20  Alan Modra  <amodra@gmail.com>
29277         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29278         (direct_return): Test vrsave_size rather than vrsave_mask.
29279         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
29280         (rs6000_emit_epilogue): Likewise.
29282 2015-05-20  Alan Modra  <amodra@gmail.com>
29284         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29285         when not saving registers.
29286         (debug_stack_info): Adjust to omit printing unused offsets,
29287         as before.
29288         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29289         expression.
29291 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29293         PR c++/65835
29294         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29295         value_type to const char *.
29297 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
29299         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29300         to build a biarch toolchain again.
29302 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29304         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29305         or implicit declarations.
29306         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29307         into it.
29308         (get_odr_type): Check type has linkage before adding bases.
29309         (register_odr_type): Check that type has linkage before adding it.
29310         (type_known_to_have_no_deriavations_p): Rename to ..
29311         (type_known_to_have_no_derivations_p): This one.
29312         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29313         (type_known_to_have_no_derivations_p): This one.
29314         * ipa-polymorphic-call.c
29315         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29316         type has linkage.
29318 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29320         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29321         (layout_type): Use RECORD_OR_UNION_TYPE_P.
29323 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29325         * config/s390/s390.c (s390_vector_bool_type_p): New function.
29326         (s390_invalid_binary_op): New function.
29327         (TARGET_INVALID_BINARY_OP): Define macro.
29329 2015-05-19  David Sherwood  <david.sherwood@arm.com>
29331         * loop-invariant.c (create_new_invariant): Don't calculate address cost
29332         if mode is not a scalar integer.
29333         (get_inv_cost): Increase computational cost for unused invariants.
29335 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29337         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
29338         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
29339         * config/s390/s390-builtin-types.def: New file.
29340         * config/s390/s390-builtins.def: New file.
29341         * config/s390/s390-builtins.h: New file.
29342         * config/s390/s390-c.c: New file.
29343         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29344         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29345         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29346         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29347         prototypes.
29348         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29349         Include.
29350         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29351         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29352         variable definitions.
29353         (s390_const_operand_ok): New function.
29354         (s390_expand_builtin): Rewrite.
29355         (s390_init_builtins): New function.
29356         (s390_handle_vectorbool_attribute): New function.
29357         (s390_attribute_table): Add s390_vector_bool attribute.
29358         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29359         (s390_branch_condition_mask): Generate masks for new modes.
29360         (s390_expand_vec_compare_cc): New function.
29361         (s390_mangle_type): Add mangling for vector bool types.
29362         (enum s390_builtin): Remove.
29363         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29364         efpc builtins.
29365         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29366         s390_cpu_cpp_builtins.
29367         (REGISTER_TARGET_PRAGMAS): New macro.
29368         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29369         (insn_cmp mode attribute): Add new CC modes.
29370         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29371         (lcbb): New pattern definition.
29372         * config/s390/s390intrin.h: Include vecintrin.h.
29373         * config/s390/t-s390: New file.
29374         * config/s390/vecintrin.h: New file.
29375         * config/s390/vector.md: Include vx-builtins.md.
29376         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29377         support.
29379 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29381         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29382         CCVFHE.
29383         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29384         (s390_select_ccmode): Likewise.
29385         (s390_canonicalize_comparison): Swap operands if necessary.
29386         (s390_expand_vec_compare_scalar): Expand DFmode compare using
29387         single element vector instructions.
29388         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29389         (s390_branch_condition_mask): Generate CC masks for the new modes.
29390         * config/s390/s390.md (v0, vf, vd): New mode attributes.
29391         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29392         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29393         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29394         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29395         (*extend<DSF:mode><BFP:mode>2): New insn definition.
29396         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29397         (extend<DSF:mode><BFP:mode>2): Turn into expander.
29398         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29399         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29400         (sqrt<mode>2): Add vector instruction.
29402 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29404         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29405         constraints.
29406         * config/s390/predicates.md (const0_operand, constm1_operand)
29407         (constable_operand): Accept vector operands.
29408         * config/s390/s390-modes.def: Add supported vector modes.
29409         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29410         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29411         (s390_bytemask_vector_p, s390_expand_vec_strlen)
29412         (s390_expand_vec_compare, s390_expand_vcond)
29413         (s390_expand_vec_init): Add prototypes.
29414         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29415         (s390_vector_mode_supported_p): New function.
29416         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29417         (s390_contiguous_bitmask_vector_p): New function.
29418         (s390_bytemask_vector_p): New function.
29419         (s390_split_ok_p): Vector regs don't work either.
29420         (regclass_map): Add VEC_REGS.
29421         (s390_legitimate_constant_p): Handle vector constants.
29422         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29423         (legitimate_reload_vector_constant_p): New function.
29424         (s390_preferred_reload_class): Handle CONST_VECTOR.
29425         (s390_reload_symref_address):  Likewise.
29426         (s390_secondary_reload): Vector memory instructions only support
29427         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
29428         (s390_emit_ccraw_jump): New function.
29429         (s390_expand_vec_strlen): New function.
29430         (s390_expand_vec_compare): New function.
29431         (s390_expand_vcond): New function.
29432         (s390_expand_vec_init): New function.
29433         (s390_dwarf_frame_reg_mode): New function.
29434         (print_operand): Handle addresses with 'O' and 'R' constraints.
29435         (NR_C_MODES, constant_modes): Add vector modes.
29436         (s390_output_pool_entry): Handle vector constants.
29437         (s390_hard_regno_mode_ok): Handle vector registers.
29438         (s390_class_max_nregs): Likewise.
29439         (s390_cannot_change_mode_class): New function.
29440         (s390_invalid_arg_for_unprototyped_fn): New function.
29441         (s390_function_arg_vector): New function.
29442         (s390_function_arg_float): Remove size variable.
29443         (s390_pass_by_reference): Handle vector arguments.
29444         (s390_function_arg_advance): Likewise.
29445         (s390_function_arg): Likewise.
29446         (s390_return_in_memory): Vector values are returned in a VR if
29447         possible.
29448         (s390_function_and_libcall_value): Handle vector arguments.
29449         (s390_gimplify_va_arg): Likewise.
29450         (s390_call_saved_register_used): Consider the arguments named.
29451         (s390_conditional_register_usage): Disable v16-v31 for non-vec
29452         targets.
29453         (s390_preferred_simd_mode): New function.
29454         (s390_support_vector_misalignment): New function.
29455         (s390_vector_alignment): New function.
29456         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29457         (TARGET_VECTOR_MODE_SUPPORTED_P)
29458         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29459         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29460         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29461         (TARGET_VECTOR_ALIGNMENT): Define target macro.
29462         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29463         (FIRST_PSEUDO_REGISTER): Increase value.
29464         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29465         (VECTOR_REG_P): Define macros.
29466         (FIXED_REGISTERS, CALL_USED_REGISTERS)
29467         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29468         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29469         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29470         Add vector registers.
29471         (CANNOT_CHANGE_MODE_CLASS): Call C function.
29472         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29473         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29474         memory.
29475         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29476         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29477         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29478         (VR*_REGNUM): New constants.
29479         (ALL): New mode iterator.
29480         (INTALL): Remove mode iterator.
29481         Include vector.md.
29482         (movti): Implement TImode moves for VRs.
29483         Disable TImode splitter for VR targets.
29484         Implement splitting TImode GPR<->VR moves.
29485         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29486         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29487         reload<mode>_la_in, reload<mode>_la_out.
29488         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29489         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29490         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29491         (mov<mode> SF SD): Prefer lder, lde for loading.
29492         Add lrl and strl instructions.
29493         Add vector instructions.
29494         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29495         Call s390_expand_vec_strlen on z13.
29496         (*cc_to_int): Change predicate to nonimmediate_operand.
29497         (addti3): Rename to *addti3.  New expander.
29498         (subti3): Rename to *subti3.  New expander.
29499         * config/s390/vector.md: New file.
29501 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29503         * common/config/s390/s390-common.c (processor_flags_table): Add
29504         z13.
29505         * config.gcc: Add z13.
29506         * config/s390/s390-opts.h (enum processor_type): Add
29507         PROCESSOR_2964_Z13.
29508         * config/s390/s390.c (s390_adjust_priority): Check for
29509         PROCESSOR_2964_Z13.
29510         (s390_reorg): Likewise.
29511         (s390_sched_reorder): Likewise.
29512         (s390_sched_variable_issue): Likewise.
29513         (s390_loop_unroll_adjust): Likewise.
29514         (s390_option_override): Likewise. Default to -mvx when available.
29515         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29516         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29517         (TARGET_VX_ABI): Define macros.
29518         macros.
29519         (TARGET_DEFAULT): Add MASK_OPT_VX.
29520         * config/s390/s390.md ("cpu" attribute): Add z13.
29521         ("cpu_facility" attribute): Add vec.
29522         * config/s390/s390.opt (processor_type): Add z13.
29523         (mvx): New options.
29524         * doc/invoke.texi: Add z13 option for -march.
29526 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29528         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29529         mode check to make sure that only scalar integer values are
29530         accepted.
29532 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29534         * tree.c (verify_type_variant): Fix #undef.
29535         (gimple_canonical_types_compatible_p): Move here from lto.c
29536         (verify_type): Verify TYPE_CANONICAL compatibility.
29537         * tree.h (gimple_canonical_types_compatible_p): Declare.
29539 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29541         PR middle-end/66199
29542         * tree.h (OMP_TEAMS_COMBINED): Define.
29543         * gimplify.c (enum gimplify_omp_var_data): Add
29544         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29545         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29546         (omp_notice_variable): Accept both ORT_TEAMS
29547         and ORT_COMBINED_TEAMS.  Don't recurse if
29548         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29549         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29550         GOVD_FIRSTPRIVATE.
29551         (omp_no_lastprivate): New function.
29552         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29553         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29554         notice_outer and set appropriate bits, otherwise make
29555         sure default(none) combined constructs won't complain.
29556         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29557         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29558         omp_no_lastprivate either remove the clause or turn it
29559         into OMP_CLAUSE_PRIVATE.
29560         (gimplify_omp_for): Fix up handling of implicit
29561         lastprivate or linear iterators.
29562         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29563         ORT_COMBINED_TEAMS.
29564         * omp-low.c (lower_omp_for_lastprivate): For combined
29565         for simd use fd.loop.n2 from the for rather than simd.
29567 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29569         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29570         instead of gen_rtx_raw_REG.
29571         (cris_expand_epilogue): Likewise.
29572         * config/microblaze/microblaze.c (microblaze_classify_address):
29573         Likewise.
29574         * config/sparc/sparc.md: Likewise.
29576 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
29578         * config/alpha/alpha.c (alpha_legitimize_reload_address)
29579         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29580         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29581         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29582         Use CASE_CONST_SCALAR_INT.
29583         (print_operand) <case 'M'>: Use mode_width_operand to check the
29584         value of the constant.
29585         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29586         * config/alpha/predicates.md (input_operand): Use general_operand
29587         instead of match_code as operand check.
29588         (symbolic_operand): Use match_code with subexpression digits.
29589         * config/alpha/constraints.md (Q): Ditto.
29591 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29593         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29595 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29597         * config/s390/s390.c (s390_secondary_reload): Fix check for
29598         load/store relative.
29600 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29602         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
29603         alternative_mask to uint64_t.
29605 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
29607         PR tree-optimization/66187
29608         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29609         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
29610         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29612 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
29614         * diagnostic.c (diagnostic_report_current_module): Strengthen
29615         local "new_map" from const line_map * to
29616         const line_map_ordinary *.
29617         * genmatch.c (error_cb): Likewise for local "map".
29618         (output_line_directive): Likewise for local "map".
29619         * input.c (expand_location_1): Likewise for local "map".
29620         Pass NULL rather than &map to
29621         linemap_unwind_to_first_non_reserved_loc, since the value is never
29622         read from there, and the value written back not read from here.
29623         (is_location_from_builtin_token): Strengthen local "map" from
29624         const line_map * to const line_map_ordinary *.
29625         (dump_location_info): Strengthen locals "map" from
29626         line_map *, one to const line_map_ordinary *, the other
29627         to const line_map_macro *.
29628         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29629         const line_map * to const line_map_macro *.
29630         (maybe_unwind_expanded_macro_loc): Add a call to
29631         linemap_check_macro when writing to the "map" field of the
29632         loc_map_pair.
29633         Introduce local const line_map_ordinary * "ord_map", using it in
29634         place of "map" in the part of the function where we know we have
29635         an ordinary map.  Strengthen local "m" from const line_map * to
29636         const line_map_ordinary *.
29638 2015-05-19  Nick Clifton  <nickc@redhat.com>
29640         PR target/66156
29641         * config/msp430/msp430.md (zero_extendhisi2): Add support for
29642         separate source and destination registers.
29644 2015-05-19  Richard Biener  <rguenther@suse.de>
29646         PR tree-optimization/66165
29647         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29648         for no load permutation.
29650         PR tree-optimization/66185
29651         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29652         when building the SLP node from scalars.
29654 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29655             Tristan Gingold  <gingold@adacore.com>
29657         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29658         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29659         (expand_stack_restore): Call record_new_stack_level.
29660         (expand_stack_save): Do not call do_pending_stack_adjust.
29661         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29662         * calls.c (expand_call): Call record_new_stack_level for alloca.
29663         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29664         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29665         (update_sjlj_context): New global function.
29666         * except.h (update_sjlj_context): Declare.
29667         * explow.c (record_new_stack_level): New global function.
29668         (allocate_dynamic_stack_space): Call record_new_stack_level.
29669         * explow.h (record_new_stack_level): Declare.
29670         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29671         * cfgrtl.c (duplicate_insn_chain): Likewise.
29673 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29675         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29676         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29677         STACK_GROWS_DOWNWARD as normal if.
29678         (expand_call): Likewise.
29680 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
29682         PR target/54236
29683         * config/sh/sh.md (*round_int_even): New insn_and_split and
29684         accompanying new unnamed split.
29686 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29688         * bitmap.c (bitmap_set_range): Handle count==1 specially.
29689         (bitmap_clear_range): Likewise.
29690         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29691         bitmap_set_range unconditionally.
29692         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29693         * df-scan.c (df_mark_reg): Likewise.
29694         * haifa-sched.c (setup_ref_regs): Likewise.
29695         * sched-rgn.c (update_live_1): Likewise.
29697 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29699         * regs.h (END_HARD_REGNO): Delete.
29700         (END_REGNO): Move to...
29701         * rtl.h: ...here.
29702         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29703         * caller-save.c (mark_set_regs): Likewise.
29704         * combine.c (move_deaths, distribute_notes): Likewise.
29705         * cse.c (invalidate, invalidate_for_call): Likewise.
29706         * df-scan.c (df_ref_record): Likewise.
29707         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29708         (record_last_reg_set_info): Likewise.
29709         * reg-stack.c (convert_regs_exit): Likewise.
29710         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29711         * resource.c (update_live_status): Likewise.
29712         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29714 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29716         * rtl.h (reg_info): Add an nregs field.
29717         (REG_NREGS): Use it.
29718         (SET_REGNO_RAW): Delete.
29719         (set_regno_raw): New function.
29720         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29721         (END_REGNO): Redefine in terms of REG_NREGS.
29722         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29723         SET_REGNO_RAW.
29724         * emit-rtl.c (set_mode_and_regno): Likewise.
29725         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29726         instead of SET_REGNO_RAW.
29728 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29730         * rtl.h (PUT_MODE_RAW): New macro.
29731         (PUT_REG_NOTE_KIND): Use it.
29732         (set_mode_and_regno): Declare.
29733         (gen_raw_REG): Change regno to "unsigned int".
29734         (gen_rtx_REG): Change "unsigned" to "unsigned int".
29735         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29736         use set_mode_and_regno to change the mode of registers.
29737         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29738         * emit-rtl.c (set_mode_and_regno): New function.
29739         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
29740         * caller-save.c (reg_save_code): Use set_mode_and_regno.
29741         * expr.c (init_expr_target): Likewise.
29742         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29743         * postreload.c (reload_cse_simplify_operands): Likewise.
29745 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29747         * caller-save.c (init_caller_save): Use word_mode and
29748         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29749         * expr.c (init_expr_target): Likewise.
29750         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29751         * postreload.c (reload_cse_regs_1): Likewise.
29753 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29755         * rtl.def (REG): Change format to "r".
29756         * rtl.h (rtunion): Remove rt_reg.
29757         (reg_info): New structure.
29758         (rtx_def): Add reg field to main union.
29759         (X0REGATTR): Delete.
29760         (REG_CHECK): New macro.
29761         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29762         * rtl.c (rtx_format): Document "r".
29763         (rtx_code_size): Handle REG specially.
29764         * gengenrtl.c (special_format): Return true for formats
29765         that include 'r'.
29766         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29767         Deal with REG_ATTRS after the field loop.
29768         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29769         * expmed.c (init_expmed): Call gen_raw_REG instead of
29770         gen_rtx_raw_REG.
29771         * expr.c (init_expr_target): Likewise.
29772         * regcprop.c (maybe_mode_change): Likewise.
29773         * varasm.c (make_decl_rtl): Likewise.
29774         * final.c (leaf_renumber_regs_insn): Return early after
29775         handling REGs.
29776         * genemit.c (gen_exp): Handle 'r' fields.
29777         * genpeep.c (match_rtx): Likewise.
29778         * gensupport.c (subst_pattern_match): Likewise.
29779         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29780         (alter_constraints, subst_dup): Likewise.
29781         * read-rtl.c (read_rtx_code): Likewise.
29782         * print-rtl.c (print_rtx): Likewise.
29783         * genrecog.c (find_operand, find_matching_operand): Likewise.
29784         (validate_pattern, match_pattern_2): Likewise.
29785         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29786         (rtx_test::regno_field): New function.
29787         (operator ==, safe_to_hoist_p, transition_parameter_type)
29788         (parameter_type_string, print_parameter_value)
29789         (print_nonbool_test, print_test): Handle new enum values.
29790         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29791         * lra-constraints.c (operands_match_p): Likewise.
29793 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29795         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29796         Change type of new_regno to unsigned int.
29797         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29798         new_regno to unsigned int.
29799         (df_ref_change_reg_with_loc): Remove old_regno parameter.
29800         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
29801         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29802         (SET_REGNO_RAW): Add space after ",".
29804 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29806         * rtl.h (REG_NREGS): New macro
29807         * alias.c (record_set): Use it.
29808         * cfgcleanup.c (mark_effect): Likewise.
29809         * combine.c (likely_spilled_retval_1): Likewise.
29810         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29811         (move_deaths, distribute_notes): Likewise.
29812         * cselib.c (cselib_record_set): Likewise.
29813         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29814         * df-scan.c (df_mark_reg): Likewise.
29815         * dse.c (look_for_hardregs): Likewise.
29816         * dwarf2out.c (reg_loc_descriptor): Likewise.
29817         (multiple_reg_loc_descriptor): Likewise.
29818         * expr.c (write_complex_part, read_complex_part): Likewise.
29819         (emit_move_complex): Likewise.
29820         * haifa-sched.c (setup_ref_regs): Likewise.
29821         * ira-lives.c (mark_hard_reg_live): Likewise.
29822         * lra.c (lra_set_insn_recog_data): Likewise.
29823         * mode-switching.c (create_pre_exit): Likewise.
29824         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29825         (reload_combine_recognize_pattern): Likewise.
29826         (reload_combine_note_use, move2add_record_mode): Likewise.
29827         (reload_cse_move2add): Likewise.
29828         * reg-stack.c (subst_stack_regs_pat): Likewise.
29829         * regcprop.c (kill_value, copy_value): Likewise.
29830         (copyprop_hardreg_forward_1): Likewise.
29831         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29832         (build_def_use): Likewise.
29833         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29834         (deps_analyze_insn): Likewise.
29835         * sched-rgn.c (check_live_1, update_live_1): Likewise.
29836         * sel-sched.c (count_occurrences_equiv): Likewise.
29837         * valtrack.c (dead_debug_insert_temp): Likewise.
29839 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
29841         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29842         * dse.c (note_add_store): Likewise.
29843         * ira-lives.c (mark_hard_reg_dead): Likewise.
29844         * loop-invariant.c (mark_reg_store): Likewise.
29845         (mark_reg_death): Likewise.
29846         * postreload.c (reload_combine): Likewise.
29847         (reload_combine_note_store): Likewise.
29848         (reload_combine_note_use): Likewise.
29849         * recog.c (peep2_reg_dead_p): Likewise.
29851 2015-05-19  Alan Modra  <amodra@gmail.com>
29853         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
29854         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
29855         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
29856         unused predicates.
29857         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
29858         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
29859         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
29860         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
29862 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
29864         * config/mips/mips.md (JOIN_MODE): New mode iterator.
29865         (join2_load_Store<JOIN_MODE:mode>): New pattern.
29866         (join2_loadhi): Likewise.
29867         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
29868         load-load and store-stores.
29869         * config/mips/mips.opt (mload-store-pairs): New option.
29870         (TARGET_LOAD_STORE_PAIRS): New macro.
29871         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
29872         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
29873         * config/mips/mips.c (mips_load_store_bonding_p): New function.
29875 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
29877         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
29878         explicit swaps.
29879         * dojump.c (do_compare_rtx_and_jump): Likewise.
29880         * expmed.c (emit_store_flag_1): Likewise.
29881         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
29882         * final.c (sprint_ul): Use std::reverse for reversing a string.
29883         * fold-const.c (extract_muldiv_1): Use std::swap.
29884         * genmodes.c (emit_mode_int_n): Likewise.
29885         * ifcvt.c (dead_or_predicable): Likewise.
29886         * ira-build.c (ira_merge_live_ranges): Likewise.
29887         (swap_allocno_copy_ends_if_necessary): Likewise.
29888         * ira.c (ira_setup_alts): Likewise.
29889         * loop-iv.c (iv_analyze_expr): Likewise.
29890         (implies_p): Likewise.
29891         (canon_condition): Likewise.
29892         * lra-constraints.c (swap_operands): Likewise.
29893         * lra-lives.c (lra_merge_live_ranges): Likewise.
29894         * omega.c (swap): Remove.
29895         (bswap): Remove.
29896         (omega_unprotect_1): Use std::swap.
29897         (omega_solve_geq): Likewise.
29898         * optabs.c (expand_binop_directly): Likewise.
29899         (expand_binop): Likewise.
29900         (emit_conditional_move): Likewise.
29901         (emit_conditional_add): Likewise.
29902         * postreload.c (reload_cse_simplify_operands): Likewise.
29903         * reg-stack.c (emit_swap_insn): Likewise.
29904         (swap_to_top): Likewise.
29905         (compare_for_stack_reg): Likewise.
29906         (subst_asm_stack_regs): Likewise.
29907         * reload.c (find_reloads): Likewise.
29908         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
29909         * sel-sched.c (invoke_reorder_hooks): Likewise.
29910         (create_block_for_bookkeeping): Likewise.
29911         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
29912         (lambda_matrix_right_hermite): Use std::swap.
29913         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
29914         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
29915         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
29916         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
29917         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
29918         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
29919         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
29920         * tree-vrp.c (compare_ranges): Likewise.
29921         * var-tracking.c (add_with_sets): Likewise.
29922         (vt_find_locations): Likewise.
29924 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
29926         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
29927         pie executables.
29928         (FBSD_ENDFILE_SPEC): Likewise.
29929         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
29930         config/freebsd-spec.h.
29931         (ENDFILE_SPEC): Likewise.
29933 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
29934             Richard Henderson  <rth@redhat.com>
29936         PR target/57032
29937         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
29938         Check for a memory location that is not a reference (using an AND)
29939         to an unaligned location here.
29940         * config/alpha/predicates.md (normal_memory_operand): Remove.
29942 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
29944         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
29945         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
29947 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
29949         * config/mips/mips.c (micromips_globals): New variable.
29950         (mips_set_compression_mode): Save and reinitialize target-dependent
29951         state for microMIPS.
29953 2015-05-18  Martin Liska  <mliska@suse.cz>
29955         * dbgcnt.def: Add new counter.
29956         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
29958 2015-05-18  Martin Liska  <mliska@suse.cz>
29960         * dbgcnt.def: Sort counters.
29961         * opts.c (common_handle_option): Do not compile if
29962         -fdbg-cnt-list is enabled.
29964 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29966         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
29967         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
29968         address operator to va_list operand.
29969         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
29970         unconditionally.
29971         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
29972         operand.
29973         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
29974         * config/s390/s390.c (s390_gimplify_va_arg): Same.
29975         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
29977 2015-05-18  Tom de Vries  <tom@codesourcery.com>
29979         * tree-ssa-tail-merge.c: Fix whitespace.
29981 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
29983         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
29984         cortex-a17, and cortex-a17.cortex-a7.
29986 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
29988         PR target/54236
29989         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
29991 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
29993         PR target/66174
29994         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
29995         QImode inner modes for TARGET_AVX512BW.  Force mask operand
29996         to a register for AVX512F modes.
29998 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30000         * toplev.c (emit_debug_global_declarations): Do not output debug info
30001         when doing slim LTO objects.
30003 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30005         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30006         odr_types_equivalent_p): Declare.
30007         (odr_type_p): Use gcc_checking_assert.
30008         (type_in_anonymous_namespace_p) Declare.
30009         (type_with_linkage_p): Declare.
30010         * common.opt (Wlto-type-mismatch): New warning.
30011         * ipa-devirt.c (compound_type_base): New function.
30012         (odr_or_derived_type_p): New function.
30013         (odr_types_equivalent_p): New function.
30014         (add_type_duplicate): Simplify.
30015         (type_with_linkage_p): Add hack to prevent false positives on C types
30016         (type_in_anonymous_namespace_p): Likewise.
30017         * tree.c (need_assembler_name_p): Use type_with_linkage.
30018         * tree.h (type_in_anonymous_namespace_p): Remove.
30019         * doc/invoke.texi (-Wlto-type-mismatch): Document
30021 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30023         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30024         (verify_type): Verify STRING_FLAG.
30026 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30028         PR fortran/44054
30029         * tree-pretty-print.c (percent_K_format): Replace locus pointer
30030         with accessor function.
30031         * tree-diagnostic.c (diagnostic_report_current_function): Use
30032         diagnostic_location function.
30033         (maybe_unwind_expanded_macro_loc): Likewise.
30034         (virt_loc_aware_diagnostic_finalizer): Likewise.
30035         (default_tree_printer): Replace locus pointer with accessor function.
30036         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30037         (diagnostic_set_info_translated): Initialize second location.
30038         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30039         (diagnostic_show_locus): Handle two locations. Call
30040         diagnostic_print_caret_line.
30041         (diagnostic_print_caret_line): New.
30042         (default_diagnostic_starter): Use diagnostic_location function.
30043         (diagnostic_report_diagnostic): Use diagnostic_location function.
30044         (verbatim): Do not set text.locus.
30045         * diagnostic.h (struct diagnostic_info): Remove location field.
30046         (struct diagnostic_context): Make caret_chars an array of two.
30047         (diagnostic_location): New inline.
30048         (diagnostic_expand_location): Handle two locations.
30049         (diagnostic_same_line): New inline.
30050         (diagnostic_print_caret_line): Declare.
30051         (CARET_LINE_MARGIN): New constant.
30052         * pretty-print.c (pp_printf): Do not set text.locus.
30053         (pp_verbatim): Do not set text.locus.
30054         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30055         (struct text_info): Replace locus pointer with locations
30056         array. Add accessor functions.
30058 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
30059             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30061         PR target/65768
30062         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30063         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30064          large constants in register instead of splitting them.
30066 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
30068         PR target/66140
30069         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30070         replacements in memory addresses.
30071         (get_unaligned_address): Ditto.
30073 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
30075         * config/ft32/*: New files for FT32 port.
30076         * doc/install.texi: Add FT32 information.
30077         * doc/invoke.texi: Add FT32 information.
30078         * doc/md.texi: Add FT32 information.
30079         * doc/contrib.texi: Self added.
30081 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
30083         PR tree-optimization/64454
30084         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30085         (-1 - A -> ~A): Remove unnecessary condition.
30087 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
30089         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30090         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30091         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30093 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
30095         * ipa-chkp.h (chkp_wrap_function): New.
30096         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30097         (chkp_wrap_function_name): New.
30098         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30099         to get wrapper name.
30100         * lto-cgraph.c: Include ipa-chkp.h.
30101         (input_cgraph_1): Avoid alias chain for wrappers.
30103 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30105         PR middle-end/66134
30106         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30107         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30109 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30111         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30112         (AARCH64_FL_SLOWMUL): Delete.
30113         (AARCH64_FL_CRC): Redefine to 1<<3.
30114         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30116 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30118         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30119         casting.
30121 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30123         * config/alpha/alpha.md (extendqidi2): Use general_operand
30124         instead of some_operand for operand[1] predicate.
30125         (extendhidi2): Ditto.
30126         (cbranchdi4): Use general_operand instead of some_operand
30127         for operand[1] and operands[2] predicates.
30128         (cstoredi4): Ditto.
30129         * config/alpha/predicates.md (some_operand): Remove unused predicate.
30130         (some_ni_operand): Ditto.
30132 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30134         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30135         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
30136         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30137         low part of the constant using alpha_emit_set_const_1.
30138         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30140 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
30142         * varasm.c (output_constant_pool_1): Pass down alignment from
30143         constant pool entry's descriptor to output_constant_pool_2.
30144         (output_object_block): Add comment prior to call to
30145         output_constant_pool_1.
30147 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
30149         PR rtl-optimization/65862
30150         * target.def (ira_change_pseudo_allocno_class): New hook.
30151         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30152         value of the hook.
30153         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30154         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30155         hook.
30156         * ira-costs.c (find_costs_and_classes): Call the hook and change
30157         classes when it is necessary.
30158         * doc/tm.texi: Update.
30160 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
30162         * config/i386/i386.md (sibcall_memory): Check that register with
30163         callee address is not also used as one of the arguments, instead
30164         of checking that it is not live after the sibcall.
30165         (sibcall_pop_memory): Ditto.
30166         (sibcall_value_memory): Ditto.
30167         (sibcall_value_pop_memory): Ditto.
30169 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
30171         * generic-match-head.c (types_match): Handle non-types.
30172         * gimple-match-head.c (types_match): Likewise.
30173         * match.pd: Remove unnecessary TREE_TYPE for types_match.
30175 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
30177         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30178         (csneg3<mode>_insn): Enable expansion of pattern.
30180 2015-05-14  Nick Clifton  <nickc@redhat.com>
30182         * config/rl78/rl78.c (rl78_select_section): Select the correct
30183         default section based upon the category of the decl.
30185 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30187         PR rtl-optimization/30967
30188         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30189         destination mode for the cost of scc patterns.
30191 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30193         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30194         using SWIM248 mode iterator.
30195         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30196         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
30197         for operand[2] constraint.
30198         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30200 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30202         PR middle-end/66133
30203         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30204         make sure it is never noreturn, even when the task body does not
30205         return.
30206         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30207         right before GIMPLE_OMP_RETURN.
30208         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30209         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
30210         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30212 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30214         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30215         * tree-ssa-math-opts.c: Include params.h
30216         (pow_synth_sqrt_info): New struct.
30217         (representable_as_half_series_p): New function.
30218         (get_fn_chain): Likewise.
30219         (print_nested_fn): Likewise.
30220         (dump_fractional_sqrt_sequence): Likewise.
30221         (dump_integer_part): Likewise.
30222         (expand_pow_as_sqrts): Likewise.
30223         (gimple_expand_builtin_pow): Use above to attempt to expand
30224         pow as series of square roots.  Removed now unused variables.
30226 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30228         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30229         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30230         Remove *p0 and *p1 arguments.  Rewrite function.
30231         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30232         (alpha_split_const_mov): Update calls to alpha_extract_integer and
30233         alpha_emit_set_long_const.
30234         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30235         (alpha_output_mi_thunk_osf): Ditto.
30236         * config/alpha/alpha.md (movti): Do not check operands[1]
30237         for CONST_DOUBLE.
30239 2015-05-13  Richard Biener  <rguenther@suse.de>
30241         PR tree-optimization/66129
30242         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30243         commutative.
30244         (vect_schedule_slp_instance): Fix typo.
30246 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
30248         * common.opt (fdump-internal-locations): New option.
30249         * input.c: Include diagnostic-core.h.
30250         (get_end_location): New function.
30251         (write_digit): New function.
30252         (write_digit_row): New function.
30253         (dump_location_range): New function.
30254         (dump_labelled_location_range): New function.
30255         (dump_location_info): New function.
30256         * input.h (dump_location_info): New prototype.
30257         * toplev.c (compile_file): Handle flag_dump_locations.
30259 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
30261         * gimple-expr.h (is_gimple_constant): Reorder.
30262         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30264 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30266         * combine.c (simplify_set): When generating a CC set, if the
30267         source already is in the correct mode, do not wrap it in a
30268         compare.  Simplify the rest of that code.
30270 2015-05-13  Richard Biener  <rguenther@suse.de>
30272         PR tree-optimization/66123
30273         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30274         a taken edge.
30276 2015-05-13  Richard Biener  <rguenther@suse.de>
30278         PR middle-end/66110
30279         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30280         specially.
30281         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30283 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
30285         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30286         * aclocal.m4: Regenerated with automake-1.11.6.
30288 2015-05-13  Tom de Vries  <tom@codesourcery.com>
30290         PR tree-optimization/66010
30291         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30292         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30293         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
30294         and rval based on do_deref.
30296 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30298         PR target/65103
30299         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30300         link time constants into adress expressions and therefore set
30301         their cost to 0.
30303 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30305         PR target/66112
30306         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30307         Use SWI248 iterator instead of SWI.
30308         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
30309         Use eq_attr "alternative" "0" instead of match_test in
30310         length_immediate attribute computation.
30311         (*mulvhi4, *mulvhi4_1): New define_insns.
30313         PR target/66112
30314         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30315         SIGNED to get precision of non-negative value.
30317 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30319         PR target/66048
30320         * function.c (diddle_return_value_1): Process bounds first.
30321         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30322         register.
30324 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30326         PR rtl-optimization/64616
30327         * loop-invariant.c (can_move_invariant_reg): New.
30328         (move_invariant_reg): Call above new function to decide whether
30329         instruction can just be moved, skipping creation of temporary
30330         register.
30332 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30334         PR target/pr66047.c
30335         * i386.c (ix86_function_sseregparm): Only return -1 if local function
30336         with implied regparm is called from -mno-sse function.
30337         (init_cumulative_args): Output error if ix86_function_sseregparm
30338         return -1 and SSE register would be needed.
30339         (function_arg_advance_32): Likewise.
30340         (function_arg_32): Likewise.
30341         * i386.h (ix86_args): Add decl field.
30343 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30345         PR ipa/65873
30346         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30347         inlines across optimization boundary.
30349 2015-05-12  Jason Merrill  <jason@redhat.com>
30351         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30352         string literal and macro name.
30354 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
30356         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30357         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30358         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30360 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30362         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30363         (-Wmisleading-indentation): New option.
30364         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30366 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
30368         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30369         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30370         (alpha_extract_integer): Ditto.
30371         (alpha_legitimate_constant_p): Ditto.
30372         (alpha_split_tmode_pair): Ditto.
30373         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30374         (alpha_expand_mov): Ditto.
30375         (print_operand): Remove handling of 'H' modifier.
30376         <case 'm'>: Remove CONST_DOUBLE handling.
30377         (summarize_insn): Handle CONST_WIDE_INT.
30378         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30379         (anddi3): Ditto.
30380         (movti): Handle CONST_WIDE_INT.
30381         * config/alpha/constraints.md ('H'): Remove constraint definition.
30382         ('G'): Do not match MODE_FLOAT class.
30383         * config/alpha/predicates.md (const0_operand): Also match
30384         const_wide_int.
30385         (non_add_const_operand): Ditto.
30386         (non_zero_const_operand): Ditto.
30387         (some_operand): Ditto.
30388         (input_operand): Ditto.  Handle CONST_WIDE_INT.
30389         (and_operand): Do not match const_double.
30390         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30392 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
30394         PR target/65697
30395         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30396         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30397         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30398         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30399         is_mm_seq_cst, is_mm_sync): New accessor functions.
30400         * builtins.c (expand_builtin_sync_operation,
30401         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30402         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30403         (get_memmodel,  expand_builtin_atomic_compare_exchange,
30404         expand_builtin_atomic_load, expand_builtin_atomic_store,
30405         expand_builtin_atomic_clear): Use new accessor routines.
30406         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30407         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30408         (maybe_emit_sync_lock_test_and_set): Use new accessors and
30409         MEMMODEL_SYNC_ACQUIRE.
30410         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30411         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30412         expand_atomic_store): Use new accessors.
30413         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30414         * tsan.c (instrument_builtin_call): Update check for memory model beyond
30415         final enum to use MEMMODEL_LAST.
30416         * c-family/c-common.c: Use new accessor for memmodel_base.
30417         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30418         accessors.
30419         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30420         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30421         mem_thread_fence, *dmb): Likewise.
30422         * config/alpha/alpha.c (alpha_split_compare_and_swap,
30423         alpha_split_compare_and_swap_12): Likewise.
30424         * config/arm/arm.c (arm_expand_compare_and_swap,
30425         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30426         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30427         atomic_loaddi): Likewise.
30428         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30429         Likewise.
30430         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30431         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30432         use new accessors.
30433         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30434         atomic_store<mode>, atomic_compare_and_swap<mode>,
30435         atomic_exchange<mode>): Use new accessors.
30436         * config/mips/mips.c (mips_process_sync_loop): Likewise.
30437         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30438         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30439         rs6000_post_atomic_barrier): Add new cases.
30440         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30441         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30442         (atomic_load<mode>): Add new cases and use new accessors.
30443         (store_quadpti): Add new cases.
30444         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30445         accessors.
30446         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30447         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30448         model, not 8.
30450 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30452         * ipa-devirt.c (type_with_linkage_p): New function.
30453         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30454         type has linkage.
30455         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30456         (can_be_name_hashed_p): Simplify.
30457         (hash_odr_name): Check that type has linkage before checking if it is
30458         anonymous.
30459         (types_same_for_odr): Likewise.
30460         (odr_name_hasher::equal): Likewise.
30461         (odr_subtypes_equivalent_p): Likewise.
30462         (warn_types_mismatch): Likewise.
30463         (get_odr_type): Likewise.
30464         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30465         * ipa-utils.h (odr_type_p): Move offline.
30466         * tree.c (need_assembler_name_p): Fix handling of types
30467         without linkages.
30468         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30470 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
30472         * timevar.c (timevar_enable): Delete in favor of...
30473         (g_timer): New global.
30474         (struct timevar_def): Move to timevar.h inside class timer.
30475         (struct timevar_stack_def): Likewise.
30476         (timevars): Delete global in favor of field "m_timevars" within
30477         class timer in timevar.h
30478         (stack): Likewise, in favor of field "m_stack".
30479         (unused_stack_instances): Likewise, in favor of field
30480         "m_unused_stack_instances".
30481         (start_time): Likewise, in favor of field "m_start_time".
30482         (get_time): Eliminate check for timevar_enable.
30483         (timer::timer): New function, built from part of timevar_init.
30484         (timevar_init): Rewrite idempotency test from using
30485         "timevar_enable" bool to using dynamic allocation of "g_timer".
30486         Move rest of implementation into timer's constructor.
30487         (timevar_push_1): Rename to...
30488         (timer::push): ...this, adding "m_" prefixes to variables that
30489         are now fields of timer.
30490         (timevar_pop_1): Likewise, rename to...
30491         (timer::pop): ...this, and add "m_" prefixes.
30492         (timevar_start): Replace test for "timevar_enable" with one for
30493         "g_timer", and move bulk of implementation to...
30494         (timer::start): ...here, adding "m_" prefixes.
30495         (timevar_stop): Likewise, from here...
30496         (timer::stop): ...to here.
30497         (timevar_cond_start): Likewise, from here...
30498         (timer::cond_start): ...to here.
30499         (timevar_cond_stop): Likewise, from here...
30500         (timer::cond_stop): ...to here.
30501         (validate_phases): Rename to...
30502         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
30503         locals "total" and "tv" const.
30504         (timevar_print): Rename to...
30505         (timer::print): ...this, and add "m_" prefixes.  Make locals
30506         "total" and "tv" const.  Eliminate test for timevar_enable.
30507         * timevar.h (timevar_enable): Eliminate.
30508         (g_timer): New declaration.
30509         (timevar_push_1): Eliminate.
30510         (timevar_pop_1): Eliminate.
30511         (timevar_print): Eliminate.
30512         (class timer): New class.
30513         (timevar_push): Rewrite to use g_timer.
30514         (timevar_pop): Likewise.
30515         * toplev.c (toplev::~toplev): Likewise.
30517 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
30519         * arm-protos.h (arm_sched_autopref): Delete.
30520         (tune_params): Re-organize, use enums for flag values.
30521         (FUSE_OPS): New macro.
30522         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30523         (ARM_PREFETCH_BENEFICIAL): Likewise.
30524         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30525         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30526         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30527         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30528         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30529         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
30530         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30531         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30532         format.
30533         (arm_option_override, thumb2_reorg, arm_print_tune_info)
30534         (aarch_macro_fusion_pair_p): Update uses of current_tune.
30535         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30537 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
30539         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30540         "break".
30542 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
30543             Sandra Loosemore <sandra@codesourcery.com>
30545         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30546         value.
30547         (REG_CLASS_NAMES): Add "IJMP_REGS".
30548         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30549         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30550         use new "c" register constraint.
30551         * config/nios2/constraint.md (c): New register constraint
30552         corresponding to IJMP_REGS.
30554 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30556         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30557         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30558         define_splits): Delete, revamp, transmogrify into ...
30559         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30560         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30561         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30562         New.
30564 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30566         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30567         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30569 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30571         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30572         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30573         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30574         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30575         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30576         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30577         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30578         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30579         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30580         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30581         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30582         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30583         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30584         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30585         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30586         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30587         and 30 corresponding splitters): Delete.
30589 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30591         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30592         zero_extract.
30594 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30596         * combine.c (recog_for_combine_1): New function, factored out
30597         from recog_for_combine.
30598         (change_zero_ext): New function.
30599         (recog_for_combine): If recog fails, try again with the pattern
30600         modified by change_zero_ext; if that still fails, restore the
30601         pattern.
30603 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
30605         * combine.c (get_undo_marker): New function.
30606         (undo_to_marker): New function, largely factored out from ...
30607         (undo_all): ... this.  Adjust.
30609 2015-05-12  Richard Biener  <rguenther@suse.de>
30611         PR tree-optimization/66101
30612         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30613         fixup if we turn a loop exit edge to a fallthru edge.
30615 2015-05-12  Richard Biener  <rguenther@suse.de>
30617         PR tree-optimization/37021
30618         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30619         (SLP_TREE_TWO_OPERATORS): New define.
30620         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30621         SLP_TREE_TWO_OPERATORS.
30622         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30623         SLP node.
30624         (vect_build_slp_tree): Adjust.
30625         (vect_analyze_slp_cost_1): Likewise.
30626         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30627         emitting two vector stmts and mixing the results.
30629 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30631         * call.c (print_z_candidates): Remove dead code.
30633 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30635         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30636         and zEC12_simple_fp.
30637         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30638         to 1.
30640 2015-05-12  Tom de Vries  <tom@codesourcery.com>
30642         PR tree-optimization/66010
30643         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30644         ifn_va_arg.
30645         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30646         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
30647         va_lists are passed, and remove corresponding handling.
30648         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
30649         do_deref argument to ifn_va_arg.
30650         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30651         ifn_va_arg.
30653 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30655         PR target/65955
30656         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30657         REG before taking its REGNO.
30659 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30661         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30662         rsp->sign_bit_copies and rsp->nonzero_bits into ...
30663         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
30664         present to get more accurate information about the number of sign bit
30665         copies and non zero bits.
30667 2015-05-12  Richard Biener  <rguenther@suse.de>
30669         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30670         do not allow unrolling.
30672 2015-05-11  Richard Henderson  <rth@redhat.com>
30674         * config/i386/i386-modes.def (CCP): New.
30675         * config/i386/i386.c (put_condition_code): Handle it.
30676         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30678 2015-05-11  Richard Henderson  <rth@redhat.com>
30680         * target.def (md_asm_clobbers): Replace with...
30681         (md_asm_adjust): this.
30682         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30683         (TARGET_MD_ASM_ADJUST): New.
30684         * tm.texi: Rebuild.
30685         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30686         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30687         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30689         * cfgexpand.c (check_operand_nalternatives): Accept vector of
30690         constraints instead of lists of outputs and inputs.
30691         (expand_asm_stmt): Save and restore input_location around the
30692         body of the function.  Move asm data into vectors instead of
30693         building tree lists.  Generate cleanup sequences as needed,
30694         rather than waiting til the end.  Use new md_asm_adjust hook.
30696         * config/vxworks.c: Include vec.h before target.h.
30697         * gimple.c: Likewise.
30698         * incpath.c: Likewise.
30699         * mode-switching.c: Likewise.
30701         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30702         (cris_md_asm_adjust): this.
30703         (TARGET_MD_ASM_CLOBBERS): Remove.
30704         (TARGET_MD_ASM_ADJUST): New.
30705         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30706         (ix86_md_asm_adjust): this.
30707         (TARGET_MD_ASM_CLOBBERS): Remove.
30708         (TARGET_MD_ASM_ADJUST): New.
30709         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30710         (mn10300_md_asm_adjust): this.
30711         (TARGET_MD_ASM_CLOBBERS): Remove.
30712         (TARGET_MD_ASM_ADJUST): New.
30713         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30714         (rs6000_md_asm_adjust): this.
30715         (TARGET_MD_ASM_CLOBBERS): Remove.
30716         (TARGET_MD_ASM_ADJUST): New.
30717         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30718         (visium_md_asm_adjust): this.
30719         (TARGET_MD_ASM_CLOBBERS): Remove.
30720         (TARGET_MD_ASM_ADJUST): New.
30722 2015-05-11  Richard Henderson  <rth@redhat.com>
30724         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30725         if noutputs is zero.
30726         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30728         * cfgexpand.c (expand_asm_operands): Merge into...
30729         (expand_asm_stmt): ... here.
30731         * cfgexpand.c (expand_asm_operands): Don't call
30732         resolve_asm_operand_names.
30733         * stmt.c (resolve_asm_operand_names): Clarify block comment.
30735 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
30737         * dwarf2out.c (gen_member_die): Sanity check that we access
30738         TYPE_MAIN_VARIANT for TYPE_METHODS.
30739         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30740         checking TYPE_METHODS.
30741         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30742         if non-null.
30743         (build_distinct_type_copy): Clear TYPE_METHODS.
30744         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30745         (verify_type): Allow TYPE_METHODS to be error_mark_node.
30746         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30748 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
30750         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30751         (emit_pattern_before_setloc): Likewise.
30753 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30755         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30756         for define_peephole2s.
30757         (get_peephole2_pattern): New function.
30758         (main): Use it.  Call validate_pattern.
30760 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30762         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30763         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30764         (Last callee saved reg is different for AVR_TINY architecture)
30766 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30768         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30769         when looking for memory references.
30771 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30773         PR target/65753
30774         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30775         via function pointers.
30777 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
30779         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30780         indirect call by forcing address into a pseudo with -fno-plt.
30781         * common.opt (flag_plt): New option.
30782         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30783         ([-fno-plt]): Document.
30785 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
30787         PR bootstrap/66105
30788         * config/rs6000/option-defaults.h: Add space between string literal
30789         and macro name.
30791 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30793         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30794         accross ARM targets.
30796 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30798         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30799         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30801 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
30803         PR rtl-optimization/66076
30804         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30805         Don't grow the heap array if it is already big enough from a
30806         previous iteration.
30808 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30810         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30811         (is_called_in_ARM_mode): Remove.
30812         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30813         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30814         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30815          arm_declare_function_name.
30817 2015-05-11  Christian Bruel  <christian.bruel@st.com>
30819         * config/arm/arm.c (arm_option_override): Reoganized and split into :
30820         (arm_option_params_internal); New function.
30821         (arm_option_check_internal): New function.
30822         (arm_option_override_internal): New function.
30823         (thumb_code, thumb1_code): Remove.
30824         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30825         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30826         (thumb_code, thumb1_code): Remove.
30827         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30829 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
30831         * config/alpha/alpha.c (alpha_emit_set_const_1)
30832         (alpha_emit_set_long_const, alpha_extract_integer)
30833         (alpha_legitimate_constant_p, alpha_split_const_mov)
30834         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30835         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30836         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30837         HOST_WIDE_INT_1U.
30838         * config/alpha/predicates.md (mode_mask_operand): Do not match
30839         const_double RTX.
30840         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30841         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30842         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
30843         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30844         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
30846 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
30848         PR target/65780
30849         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
30850         default_binds_local_p_2.
30851         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
30852         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
30854 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30856         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
30858 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30860         Patch by Richard Biener
30861         * coverage.c (coverage_obj_init): Delay building of type variant
30862         until the type is finished.
30864 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30866         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
30867         mismatch between C and C++ type; compoare correctly ARG_TYPES
30868         for non-prototypes and output correctly parameter index for METHOD_TYPE.
30869         (odr_types_equivalent_p): Fix wording of warning about attributes;
30870         it is OK to match prototype and non-prototype.
30872 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30874         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
30875         TYPE_ARG_TYPES list.
30876         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
30877         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
30879 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
30881         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
30882         * tree.h (is_lang_specific): Constify.
30884 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
30886         PR tree-optimization/64454
30887         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
30888         Rewrite.
30890 2015-05-08  Jason Merrill  <jason@redhat.com>
30892         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
30893         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
30894         config/darwin.h, config/darwin9.h, config/elfos.h,
30895         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
30896         config/microblaze/microblaze.h, config/mips/mips.h,
30897         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
30898         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
30899         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
30900         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
30901         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
30902         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
30903         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
30904         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
30905         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
30906         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
30907         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
30908         between string literal and macro name.
30910 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30912         * jump.c: Change argument types to rtx_insn *.
30913         * rtl.h: Adjust.
30915 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30917         * lra-constraints.c: Change argument type to rtx_insn *.
30919 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30921         * df-problems.c: Change argument type to rtx_insn *.
30923 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30925         * combine.c: Change argument type to rtx_insn *.
30927 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30929         * rtl.h: Adjust.
30930         * rtlanal.c: Change argument type to rtx_insn *.
30932 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30934         * sched-deps.c: Change argument types to rtx_insn *.
30935         * sched-int.h: Adjust.
30937 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30939         * dwarf2cfi.c: Change argument type to rtx_insn *.
30941 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30943         * ira.c (decrease_live_ranges_number): Changetype of local
30944         variable to rtx_insn *.
30945         * recog.c: Change argument types to rtx_insn *.
30946         * recog.h: Adjust.
30948 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30950         * reorg.c: Change argument types to rtx_insn *.
30952 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30954         * ira-color.c: Change argument types to rtx_insn *.
30955         * lra-eliminations.c: Likewise.
30956         * ira.h: Adjust.
30958 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30960         * gcse.c: Change argument types to rtx_insn *.
30962 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30964         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
30966 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30968         * emit-rtl.c (emit_debug_insn_before): Change argument type to
30969         rtx_insn *.
30970         * rtl.h: Adjust.
30972 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30974         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
30975         * rtl.h: Adjust.
30977 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30979         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
30980         * rtl.h: Adjust.
30982 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30984         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
30985         * rtl.h: Adjust.
30987 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30989         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
30990         * rtl.h: Adjust.
30992 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30994         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
30995         to rtx_insn *.
30996         * rtl.h: Adjust.
30998 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31000         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31001         to rtx_insn *.
31002         * rtl.h: Likewise.
31004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31006         * except.c (can_nonlocal_goto): Change type of argument to
31007         rtx_insn *.
31008         * rtl.h: Adjust.
31010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31012         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31013         * rtl.h: Adjust.
31015 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31017         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31018         * cfgrtl.c (can_delete_label_p): Adjust.
31019         * rtl.h: likewise.
31021 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31023         * reorg.c (stop_search_p): Change argument to rtx_insn *.
31025 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31027         * except.c (make_reg_eh_region_note): Change argument to
31028         rtx_insn *.
31029         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31030         * except.h: Adjust.
31032 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31034         * mode-switching.c (commit_mode_sets): Change type of local
31035         variable from rtx to rtx_insn *.
31037 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
31039         * doc/install.texi (--enable-languages): Add missing jit and lto info.
31040         Add ^ to grep command.
31041         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31042         arg to last gimple_simplify declaration.  Add missing gimple_build
31043         declaration for built-in function case with four tree args.
31045 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31046             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31048         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31049         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31050         (GNU_USER_DYNAMIC_LINKERN32): Update.
31052 2015-05-08  Richard Biener  <rguenther@suse.de>
31054         PR tree-optimization/66036
31055         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31056         Handle strided group loads.
31057         (vect_verify_datarefs_alignment): Likewise.
31058         (vect_enhance_data_refs_alignment): Likewise.
31059         (vect_analyze_group_access): Likewise.
31060         (vect_analyze_data_ref_access): Likewise.
31061         (vect_analyze_data_ref_accesses): Likewise.
31062         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31063         (vectorizable_load): Likewise.
31065 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
31067         * config/rs6000/rs6000.md: Require operand inequality in one
31068         of the peepholes.
31070 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
31071             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
31073         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31074         from (set ...).
31075         * config/rx/rx.md (movdi, movdf): Likewise.
31076         Likewise for define_peephole2s.
31078 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31080         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31081         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31082         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31083         vtst_u64): Rewrite using gcc vector extensions.
31085 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31087         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31088         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31090 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31092         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31094 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31096         * config/glibc-stdint.h (OPTION_MUSL): Define.
31097         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31098         Change the definition based on OPTION_MUSL for 64 bit targets.
31099         * config/linux.h (OPTION_MUSL): Redefine.
31100         * config/alpha/linux.h (OPTION_MUSL): Redefine.
31101         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31102         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31104 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31105             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31107         * config.gcc (LIBC_MUSL): New tm_defines macro.
31108         * config/linux.h (OPTION_MUSL): Define.
31109         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31110         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31111         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31112         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31113         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31114         * config/linux.opt (mmusl): New option.
31115         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31116         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31117         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31118         * configure: Regenerate.
31120 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31121             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31123         PR target/48904
31124         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31125         * config/i386/knetbsd-gnu64.h: New file.
31127 2015-05-08  Marek Polacek  <polacek@redhat.com>
31129         PR c/64918
31130         * doc/invoke.texi: Document -Woverride-init-side-effects.
31132 2015-05-07  Marek Polacek  <polacek@redhat.com>
31134         PR c/65179
31135         * doc/invoke.texi: Document -Wshift-negative-value.
31137 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
31139         * gcov-tool.c (do_merge): Refactore to remove int ret.
31140         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31141         !type == FUNC to type != FUNC.
31142         * reload.h (struct target_reload): Changee to type of
31143         x_spill_indirect_levels from bool to unsigned char.
31145 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
31147         * rtl.h (always_void_p): New function.
31148         * gengenrtl.c (always_void_p): Likewise.
31149         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31150         with code foo are always VOIDmode.
31151         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31152         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31153         compare-elim.c, config/aarch64/aarch64.c,
31154         config/aarch64/aarch64.md, config/alpha/alpha.c,
31155         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31156         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31157         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31158         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31159         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31160         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31161         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31162         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31163         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31164         config/ia64/vect.md, config/iq2000/iq2000.c,
31165         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31166         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31167         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31168         config/mep/mep.c, config/microblaze/microblaze.c,
31169         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31170         config/mn10300/mn10300.c, config/msp430/msp430.c,
31171         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31172         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31173         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31174         config/rs6000/altivec.md, config/rs6000/rs6000.c,
31175         config/rs6000/rs6000.md, config/rs6000/vector.md,
31176         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31177         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31178         config/sh/sh.md, config/sh/sh_treg_combine.cc,
31179         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31180         config/spu/spu.md, config/stormy16/stormy16.c,
31181         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31182         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31183         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31184         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31185         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31186         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31187         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31188         var-tracking.c: Update calls accordingly.
31190 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
31192         PR middle-end/192
31193         PR middle-end/54303
31194         * varasm.c (function_mergeable_rodata_prefix): New function.
31195         (mergeable_string_section): Use it.
31196         (mergeable_constant_section): Use it.
31198 2015-05-07  Jeff Law  <law@redhat.com>
31200         PR target/39726
31201         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31202         simplifier to narrow arithmetic.
31203         * generic-match-head.c: (types_match, single_use): New functions.
31204         * gimple-match-head.c: (types_match, single_use): New functions.
31206 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
31208         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31209         rtx type.
31211 2015-05-07  Richard Biener  <rguenther@suse.de>
31213         PR tree-optimization/66002
31214         * passes.def: Schedule another pass_merge_phi after ifcombine, right
31215         before phiopt.
31217 2015-05-07  Marek Polacek  <polacek@redhat.com>
31218             Martin Uecker  <uecker@eecs.berkeley.edu>
31220         * doc/invoke.texi: Document -fsanitize=bounds-strict.
31221         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31222         into SANITIZE_NONDEFAULT.
31223         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31225 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
31227         PR target/66015
31228         * config/alpha/alpha.c (alpha_override_options_after_change): New.
31229         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31230         (alpha_override_options): Move align_loops, align_jumps and
31231         align_functions handling into alpha_override_options_after_change.
31233 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
31234             Chris Jones  <chrisj@nvidia.com>
31235             Joshua Conner  <jconner@nvidia.com>
31237         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31238         linking of crtfastmath.o.
31239         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31241 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
31243         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31244         (cstore<mode>4_unsigned_imm): New expander.
31245         (cstore<mode>4): Remove empty constraint strings.  Use the new
31246         expanders.
31248 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
31250         PR target/64208
31251         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31252         alternatives.
31254 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31256         * config/aarch64/geniterators.sh: Use standard BRE in sed.
31258 2015-05-06  Alan Modra  <amodra@gmail.com>
31260         PR target/66033
31261         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31262         (UNSPEC_NOP): Define.
31263         (reload_vsx_from_gpr<mode>): Add missing DONE.
31264         (reload_gpr_from_vsx<mode>): Likewise.
31265         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31266         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31268 2015-05-06  Christian Bruel  <christian.bruel@st.com>
31270         PR target/66015
31271         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31272         align_jumps, align_functions into aarch64_override_options_after_change.
31274 2015-05-06  Richard Biener  <rguenther@suse.de>
31276         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31277         vect_transform_slp_perm_load to check if we support a permutation
31278         for basic-block vectorization.
31280 2015-05-06  Nick Clifton  <nickc@redhat.com>
31282         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31283         used, even if it is not being used as a frame pointer.
31285 2015-05-05  Jason Merrill  <jason@redhat.com>
31287         * dwarf2out.c (gen_member_die): Don't emit anything for an
31288         anonymous class constructor.
31290 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
31292         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31293         that it reflects the block structure.
31294         (afdo_propagate_edge): Likewise.
31295         (afdo_calculate_branch_prob): Likewise.
31296         (afdo_annotate_cfg): Likewise.
31297         * cfgcleanup.c (equal_different_set_p): Likewise.
31298         (try_crossjump_to_edge): Likewise.
31299         * cgraph.c (cgraph_node::verify_node): Likewise.
31300         * cgraphunit.c (expand_all_functions): Likewise.
31301         * config/i386/i386.c (ix86_expand_copysign): Likewise.
31302         (exact_dependency_1): Likewise.
31303         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31304         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31305         * gensupport.c (process_define_subst): Likewise.
31306         * lto-wrapper.c (merge_and_complain): Likewise.
31307         * tree-if-conv.c (if_convertible_bb_p): Likewise.
31308         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31309         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31310         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31311         * tree-vect-loop.c (vectorizable_reduction): Likewise.
31312         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31313         * tree-vect-stmts.c (vectorizable_shift): Likewise.
31314         * tree-vrp.c (vrp_finalize): Likewise.
31315         * tree.c (variably_modified_type_p): Likewise.
31317 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
31319         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31320         on darwin12 and later.
31321         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31322         file to pass -rdynamic on darwin12 and later.
31323         * config/darwin.opt (rdynamic): Add.
31325 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31327         * doc/extend.texi (C Extensions): Update menu for moved Variable
31328         Attributes and Type Attributes sections.
31330 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31332         PR target/65990
31333         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31334         if rep_8byte stringop strategy was specified for 32-bit target.
31336 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
31338         PR target/65915
31339         * config/i386/i386.md (vector convert to float spltiter): Check for
31340         xmm16+, when splitting scalar float conversion.
31341         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31343 2015-05-05  Nick Clifton  <nickc@redhat.com>
31345         * config/msp430/msp430-opts.h (enum msp430_regions): New.
31346         * config/msp430/msp430.c (msp430_override_options): Complain if
31347         -mcode-region or -mdata-region is used on a non MSP430X.
31348         (msp430_section_attr): New function.  Checks lower, upper and
31349         either attributes.
31350         (msp430_attribute_table): Add lower, upper and either.
31351         (gen_prefix): New function.  Generates a prefix for a section
31352         name.
31353         (msp430_select_section): New function - handles the choice of
31354         section for an object.  Takes into account memory region
31355         attributes and options.
31356         (msp430_function_section): Use gen_prefix.
31357         (TARGET_SECTION_TYPE_FLAGS): Define.
31358         (msp430_section_type_flags): New function.
31359         (TARGET_ASM_UNIQUE_SECTION): Define.
31360         (msp430_unique_section): New function.
31361         (msp430_output_aligned_decl_common): New function.
31362         (msp430_do_not_relax_short_jumps): New function.
31363         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31364         Define.
31365         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31366         * config/msp430/msp430-protos.h
31367         (msp430_do_not_relax_short_jumps): New prototype.
31368         (msp430_output_aligned_decl_common): New prototype.
31369         * config/msp430/msp430.md (length): New attribute.
31370         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31371         then use a long code sequence for short jumps.
31372         * config/msp430/msp430.opt (mcode-region): New.
31373         (mdata-region): New.
31374         * doc/invoke.texi: Document new options.
31375         * doc/extend.texi: Document new attributes.
31377 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31379         * config/aarch64-protos.h (struct cpu_branch_cost): New.
31380         (tune_params): Add field branch_costs.
31381         (aarch64_branch_cost): Declare.
31382         * config/aarch64.c (generic_branch_cost): New.
31383         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31384         (cortexa53_tunings): Likewise.
31385         (cortexa57_tunings): Likewise.
31386         (thunderx_tunings): Likewise.
31387         (xgene1_tunings): Likewise.
31388         (aarch64_branch_cost): Define.
31389         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31391 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31393         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31394         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31395         * config/i386/i386.md: Ditto.
31396         * config/i386/winnt.c: Ditto.
31398 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
31400         * doc/extend.texi (__atomic Builtins): Move implementation details
31401         to the end of the description, rewrite opening paragraphs, state
31402         difference with __sync builtins, state C11/C++11 assumptions,
31403         weaken itemized descriptions, add explanation of memory model
31404         behaviour, expand description of compare-exchange, simplify text.
31406 2015-05-05  Renlin Li  <renlin.li@arm.com>
31408         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31410 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
31412         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31413         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31414         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31415         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31416         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31417         * configure: Regenerate.
31418         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31419         * doc/install.texi (aarch64*-*-*): Document new
31420         --enable-fix-cortex-a53-843419 option.
31421         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31422         and -mno-fix-cortex-a53-843419 options.
31424 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31426         PR target/65871
31427         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31429 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
31431         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31432         fix overactive TYPE_MIN_VALUE check and add FIXME for type
31433         compatibility problems.
31435 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31437         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31438         constraints.
31439         (cbranchsi4_reg): New.
31440         * config/microblaze/microblaze.c
31441         (microblaze_expand_conditional_branch_reg): New.
31442         * config/microblaze/microblaze-protos.h
31443         (microblaze_expand_conditional_branch_reg): New prototype.
31445 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
31447         * config/microblaze/microblaze.md (peephole2): New.
31449 2015-05-04  Jeff Law  <law@redhat.com>
31451         Revert:
31452         2015-05-04  Jeff Law  <law@redhat.com>
31454         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31455         simplifier to narrow arithmetic.
31456         * generic-match-head.c: (types_match, single_use): New functions.
31457         * gimple-match-head.c: (types_match, single_use): New functions.
31459 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
31461         PR target/65987
31462         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31463         (split_branches): Likewise.
31465 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
31467         * common.opt (fdelete-null-pointer-checks): Init to -1.
31468         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31469         override flag_delete_null_pointer_checks default.
31470         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31471         behavior re address zero.  Better document target-specific behavior.
31472         (-fisolate-errneous-paths-dereference): Mention relationship to
31473         -fdelete-null-pointer-checks.
31475 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31477         PR tree-optimization/65984
31478         * ubsan.c: Include tree-cfg.h.
31479         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31480         stmt_could_throw_p test, rename can_throw variable to ends_bb.
31482 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31484         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31485         to CONST_DOUBLE_P predicate.
31486         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31487         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31488         allow only operands that satisfy standard_sse_constant_p predicate.
31489         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31490         to CONST_DOUBLE_P predicate.
31492 2015-05-04  Jeff Law  <law@redhat.com>
31494         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31495         simplifier to narrow arithmetic.
31496         * generic-match-head.c: (types_match, single_use): New functions.
31497         * gimple-match-head.c: (types_match, single_use): New functions.
31499 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
31501         * config/arm/arm.c: Restore bootstrap.
31503 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
31505         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31506         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31507         as CONST_WIDE_INT, not CONST_DOUBLE.
31508         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31509         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31510         (ix86_find_base_term): Do not check for CONST_DOUBLE.
31511         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31512         (ix86_build_signbit_mask): Rewrite using wide ints.
31513         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31514         (ix86_rtx_costs): Handle CONST_WIDE_INT.
31515         (find_constant): Ditto.
31516         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31517         using gen_int_mode.
31518         * config/i386/predicates.md (x86_64_immediate_operand)
31519         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31520         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31521         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31522         (const0_operand): Also match const_wide_int.
31523         (constm1_operand): Ditto.
31524         (const1_operand): Ditto.
31526 2015-05-04  Richard Biener  <rguenther@suse.de>
31528         PR tree-optimization/65965
31529         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31530         store groups at gaps.
31532 2015-05-04  Richard Biener  <rguenther@suse.de>
31534         PR tree-optimization/65935
31535         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31536         then make sure to apply that swapping to the IL.
31538 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
31540         * Makefile.in (PATCHLEVEL_c): New variable.
31541         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31542         expand the same way as if DEVPHASE_c was non-empty.
31544 2015-05-04  Kai Tietz  <ktietz@redhat.com>
31546         PR target/65559
31547         * lto-wrapper.c (run_gcc): Open filename
31548         in binary-mode.
31550 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
31552         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
31553         sections up in file, to immediately after the Function Attributes
31554         section.
31556 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
31558         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31560 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31562         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31563         (insert_partition_copy_on_edge): Adjust.
31564         (insert_rtx_to_part_on_edge): Likewise.
31565         (insert_part_to_rtx_on_edge): Likewise.
31567 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31569         * function.c (set_return_jump_label): Change type of argument to
31570         rtx_insn *.
31571         * function.h (set_return_jump_label): Adjust.
31573 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31575         * reload.h (struct reg_equivs_t): Change type of init to
31576         rtx_insn *.
31577         * ira.c (fix_reg_equiv_init): Adjust.
31578         * reload1.c (eliminate_regs_1): Likewise.
31579         (init_eliminable_invariants): Likewise.
31581 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31583         * cselib.c (fp_setter_insn): Take a rtx_insn *.
31584         * cselib.h (fp_setter_insn): Adjust.
31586 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31588         * recog.c (struct validate_replace_src_data): Change type of
31589         insn field to rtx_insn *.
31590         (validate_replace_src_group): Change type of argument to rtx_insn *.
31591         * recog.h (validate_replace_src_group): Adjust.
31593 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31595         * haifa-sched.c: Change the type of some variables to rtx_insn *.
31596         * sched-deps.c: Likewise.
31597         * sched-int.h: Likewise.
31598         * sched-rgn.c: Likewise.
31599         * sel-sched.c: Likewise.
31601 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31603         to rtx_insn *.
31604         * config/i386/i386.c: Change the type of some arguments to
31605         rtx_insn *.
31606         * config/arm/arm.c: Likewise.
31608 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31610         * lra-constraints.c: Change type of some arguments to rtx_insn *.
31612 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31614         * regcprop.c (kill_autoinc_value): Change type of argument to
31615         rtx_insn *.
31617 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31619         * genrecog.c (print_subroutine): Adjust.
31620         * recog.c (get_bool_attr_mask_uncached): Likewise.
31621         * recog.h (struct recog_data_d): Change the type of insn to
31622         rtx_insn *.
31624 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31626         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31628 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31630         * df-problems.c (df_set_note): Change type of argument to
31631         rtx_insn *.
31633 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31635         * builtins.c (expand_builtin_trap): Change type of local
31636         variable to rtx_insn *.
31637         (add_sched_insns_for_speculation): Likewise.
31638         (ix86_emit_save_regs): Likewise.
31639         (get_scratch_register_on_entry): Likewise.
31640         (ix86_emit_restore_reg_using_pop): Likewise.
31641         (ix86_emit_leave): Likewise.
31642         (ix86_emit_restore_regs_using_mov): Likewise.
31643         (ix86_expand_epilogue): Likewise.
31644         Likewise.
31645         (rl78_alloc_physical_registers_umul): Likewise.
31646         * cselib.c (discard_useless_locs): Likewise.
31647         (cselib_invalidate_regno): Likewise.
31648         (cselib_invalidate_mem): Likewise.
31649         * function.c (expand_function_start): Likewise.
31650         (emit_use_return_register_into_block): Likewise.
31651         * gcse.c: Likewise.
31652         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31653         * ifcvt.c (noce_get_alt_condition): Likewise.
31654         * loop-doloop.c (doloop_condition_get): Likewise.
31655         * lra-constraints.c (inherit_in_ebb): Likewise.
31656         * modulo-sched.c (sms_schedule_by_order): Likewise.
31657         * recog.c (next_insn_tests_no_inequality): Likewise.
31658         * reorg.c (emit_delay_sequence): Likewise.
31659         (update_reg_dead_notes): Likewise.
31660         (fix_reg_dead_note): Likewise.
31661         (fill_slots_from_thread): Likewise.
31662         (delete_computation): Likewise.
31664 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
31666         * doc/extend.texi (Variable Attributes): Add menu and proper
31667         @nodes to subsections.  Move Microsoft Windows attributes to
31668         their own subsection.
31669         (Type Attributes): Reorganize introduction to remove duplicate
31670         list of attributes.  Add menu and proper @nodes to subsections.
31671         Alphabetize the main table of common attributes.
31673 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31675         * match.pd: New simplification patterns.
31676         (x + (x & 1))  -> ((x + 1) & ~1)
31677         (x & ~(x & y)) -> ((x & ~y))
31678         (x | ~(x | y)) -> ((x | ~y))
31680 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31682         * target.def (attribute_table): Mention that struct attribute_spec
31683         is defined in tree-core.h rather than tree.h
31684         * doc/tm.texi: Regenerate.
31686 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
31688         * genrecog.c (test): Rename to rtx_test.  Update rest of file
31689         accordingly.
31691 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
31693         PR translation/65959
31694         * params.h (DEFPARAM): Rename msgid to nocmsgid.
31696 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31698         * config/aarch64/aarch64-protos.h (tune_params):
31699         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31700         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31701         Return value depending on target.
31702         (generic_tunings): Initialize new target settings.
31703         (cortexa53_tunings): Likewise.
31704         (cortexa57_tunings): Likewise.
31705         (thunderx_tunings): Likewise.
31706         (xgene1_tunings): Likewise.
31708 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31710         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31711         Make Cortex-A53 shift costs more accurate.
31713 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31715         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31716         UNSIGNED_FLOAT.
31718 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
31720         * config/aarch64/aarch64.c (aarch64_rtx_costs):
31721         Calculate cost of op0 and op1 in PLUS and MINUS cases.
31723 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31725         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31726         Add cost of op0 in the compare-with-fpzero case.
31728 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
31730         * builtins.c (fold_builtin_1): Remove spurious second
31731         semicolon.
31732         * cgraph.h (symtab_node::get_availability): Likewise.
31733         * opts.c (common_handle_option): Remove spurious second semicolon.
31734         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31735         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31737 2015-04-30  Caroline Tice  <cmtice@google.com>
31739         PR gcov-profile/65929
31740         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31741         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31742         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31743         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31744         * doc/tm.texi: Regenerate.
31745         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
31746         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31747         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
31748         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31750 2015-04-30  Marek Polacek  <polacek@redhat.com>
31752         * varasm.c (handle_cache_entry): Fix logic.
31754 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31756         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31757         (*extrsi5_insn_uxtw_alt): Likewise.
31758         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31759         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31760         operations.
31762 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31764         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31765         fabd in ABS case.
31767 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31769         * config/aarch64/aarch64.md
31770         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31771         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31772         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31773         appropriately.  Handle alternative EON form.
31775 2015-04-30  Renlin Li  <renlin.li@arm.com>
31777         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31778         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31780 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31782         PR ipa/65873
31783         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31784         -fstrict-aliasing boundaries.
31786 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31788         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31789         and [SU]MNEGL patterns.
31791 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31793         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31794         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31795         combined arithmetic-shift ops.  Properly handle all shift and extend
31796         operations that can occur in combination with PLUS/MINUS.
31797         Rename maybe_fma to compound_p.
31798         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31799         arithmetic and shift operations.
31801 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31803         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31804         rather than arith_shift cost when costing ADD/MINUS of an
31805         extended value.
31807 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
31809         PR lto/65948
31810         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31811         to itself.
31813 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
31815         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31816         are for the same position.
31818 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
31820         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
31821         vectorize_loops.
31822         (vectorize_loops): Use it.
31824 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31826         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31827         for aggregate types.
31828         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31829         type to be non_ODR.
31830         * tree.c (need_assembler_name_p): Compute mangled name for
31831         non-fundamental types and integer types.
31833 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
31835         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31836         manual swaps.
31837         * expr.c (expand_expr_real_2): Likewise.
31839 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31841         * tree.c (build_common_builtin_nodes): Do not build
31842         __builtin_alloca_with_align as equivalent of library alloca.
31844 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
31846         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
31847         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
31848         bugus variants.
31849         * tree.c: Include print-tree.h and ipa-utils.h
31850         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
31851         (free_lang_data_in_cgraph): Call verify_type.
31852         (verify_type_variant): New function.
31853         (verify_type): New function.
31854         * tree.h (verify_type): Declare.
31856 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
31858         * config/mips/mips-cpus.def: (mips4): Change default processor
31859         from PROCESSOR_R8000 to PROCESSOR_R10000.
31861 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
31863         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
31864         la/jalr instead of jal.
31866 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
31868         PR target/65871
31869         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
31870         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
31871         (setcc+movzbl peephole2): Check also clobbered reg.
31872         (setcc+andl peephole2): Ditto.
31874 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31876         PR libgomp/65099
31877         * config/nvptx/mkoffload.c (target_ilp32): New variable.
31878         (main): Set it depending on "-foffload-abi=[...]".
31879         (compile_native, main): Use it to pass "-m32" or "-m64" to the
31880         compiler.
31882 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31884         PR target/65770
31885         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
31886         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
31887         Flip lane index back at assembly time for bigendian.
31889 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
31891         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
31892         * gimplify.c (gimplify_omp_workshare): Use it.
31894 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31896         * Makefile.in (build/genrecog.o): Depend on inchash.h.
31897         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
31898         build/inchash.o
31899         * genrecog.c: Rewrite most of the code except for the third page.
31901 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31903         * inchash.h, inchash.c: Include bconfig.h for build objects.
31904         * Makefile.in (build/inchash.o): New rule.
31906 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
31908         PR target/65924
31909         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
31910         number in type attribute expression.
31912 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
31914         * loop-iv.c (canon_condition): Generalize to all types of integer
31915         constant.
31917 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
31919         * gimple-walk.c: Prune duplicate or unneeded includes.
31920         (walk_gimple_asm): Only call parse_input_constraint or
31921         parse_output_constraint if their findings are used.
31922         Honour parse_input_constraint and parse_output_constraint
31923         result.
31925 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
31927         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
31929 2015-04-29  Tom de Vries  <tom@codesourcery.com>
31931         PR tree-optimization/65893
31932         * passes.def (pass_all_optimizations): Move pass_stdarg to after
31933         pass_dce.
31935 2015-04-29  Richard Biener  <rguenther@suse.de>
31937         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
31938         compute GROUP_SIZE for basic-block SLP.
31939         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
31940         take into account gaps.
31941         (vect_get_mask_element): Properly reject references to previous
31942         vectors.
31943         (vect_transform_slp_perm_load): Likewise.
31945 2015-04-29  Christian Bruel  <christian.bruel@st.com>
31947         PR target/64835
31948         * config/i386/i386.c (ix86_default_align): New function.
31949         (ix86_override_options_after_change): Call ix86_default_align.
31950         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
31951         (ix86_override_options_after_change): New function.
31953 2015-04-28  Jeff Law  <law@redhat.com>
31955         * tree-ssa-dom.c (record_equality); Fix comment typos.
31957 2015-04-28  Tom de Vries  <tom@codesourcery.com>
31959         PR tree-optimization/65887
31960         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
31962 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
31964         * doc/extend.texi (Declaring Attributes of Functions): Split into
31965         subsections by target.  Alphabetize the table of common attributes.
31966         Rewrite some of the introductory text to reflect the new structure.
31967         Update some cross-references to point to the new subsections.
31968         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
31969         duplicate copies in the discussion of function, label, and type
31970         attributes.
31972 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
31974         PR bootstrap/65910
31975         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
31977 2015-04-28  Jason Merrill  <jason@redhat.com>
31979         PR c++/65734
31980         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
31981         (finalize_type_size): Respect TYPE_USER_ALIGN.
31982         (layout_type) [ARRAY_TYPE]: Likewise.
31984 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
31986         * config/arm/arm.md (*arm_movt): Fix type attribute.
31987         (*cmpsi_shiftsi): Likewise.
31988         (*cmpsi_shiftsi_swp): Likewise.
31989         (*movsicc_insn): Likewise.
31990         (*cond_move): Likewise.
31991         (*if_plus_move): Likewise.
31992         (*if_move_plus): Likewise.
31993         (*if_arith_move): Likewise.
31994         (*if_move_arith): Likewise.
31995         (*if_shift_move): Likewise.
31996         (*if_move_shift): Likewise.
31997         (*arm_movtas_ze): Likewise.
31998         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
31999         redundancy and type attribute.
32000         (*thumb2_movsi_insn): Fix type attribute.
32001         (*thumb2_addsi_short): Likewise.
32002         (thumb2_addsi3_compare0): Likewise.
32003         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32004         attributes accordingly.
32006 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
32008         PR other/65911
32009         * function.c (pad_to_arg_alignment): Add parentheses.
32011 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
32013         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32014         libgcc/config/frv/elf-lib.h.
32016 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32018         * tree-call-cdce.c: Fix example in header comment.
32020 2015-04-28  Richard Biener  <rguenther@suse.de>
32022         PR tree-optimization/62283
32023         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32024         fails fatally and we are vectorizing a basic-block simply
32025         cause the child to be constructed piecewise.
32026         (vect_analyze_slp_cost_1): Adjust.
32027         (vect_detect_hybrid_slp_stmts): Likewise.
32028         (vect_bb_slp_scalar_cost): Likewise.
32029         (vect_get_constant_vectors): For piecewise constructed
32030         constants place them after the last def.
32031         (vect_get_slp_defs): Adjust.
32032         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32033         externals for basic-block vectorization.
32035 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32037         PR target/63503
32038         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32039         aarch64-*-*.
32040         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32041         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32042         (AARCH64_TUNE_FMA_STEERING): Likewise.
32043         * config/aarch64/aarch64-cores.def: Set
32044         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32045         FMUL/FMADD instructions.
32046         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32047         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
32048         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32049         * config/aarch64/cortex-a57-fma-steering.h: New file.
32050         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32052 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
32054         * gensupport.c (std_preds): Add missing codes to address_operand entry.
32056 2015-04-28  Richard Biener  <rguenther@suse.de>
32058         PR tree-optimization/65851
32059         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32060         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
32061         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
32062         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32063         (ccp_visit_phi_node): Adjust.
32064         (evaluate_stmt): For simplifications to SSA names return its
32065         lattice value if that isn't VARYING.  Return immediately when
32066         simplified to a constant.
32067         (visit_assignment): Adjust.
32068         (ccp_visit_stmt): Likewise.
32070 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32072         PR tree-optimization/65818
32073         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32074         evaluated.
32076 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32078         * calls.c (save_fixed_argument_area): Don't check
32079         ARGS_GROW_DOWNWARD with the preprocessor.
32080         (restore_fixed_argument_area): Likewise.
32081         (mem_overlaps_already_clobbered_arg_p): Likewise.
32082         (check_sibcall_argument_overlap): Likewise.
32083         (expand_call): Likewise.
32084         (emit_library_call_value_1): Likewise.
32085         (store_one_arg): Likewise.
32086         * function.c (assign_parms): Likewise.
32087         (locate_and_pad_parm): Likewise.
32088         (pad_to_arg_alignment): Likewise.
32089         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32091 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32093         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32094         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32095         * calls.c (save_fixed_argument_area): Don't chekc if
32096         ARGS_GROW_DOWNWARD is defined.
32097         (restore_fixed_argument_area): Likewise.
32098         (mem_overlaps_already_clobbered_arg_p): Likewise.
32099         (check_sibcall_argument_overlap): Likewise.
32100         (expand_call): Likewise.
32101         (emit_library_call_value_1): Likewise.
32102         (store_one_arg): Likewise.
32103         * function.c (assign_parms): Likewise.
32104         (locate_and_pad_parm): Likewise.
32105         (pad_to_arg_alignment): Likewise.
32106         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32108 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32110         * defaults.h (gen_epilogue): New function.
32111         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32112         defined.
32113         * cfgrtl.c (cfg_layout_finalize): Likewise.
32114         * df-scan.c: Likewise.
32115         * function.c (thread_prologue_and_epilogue_insns): Likewise.
32116         (reposition_prologue_and_epilogue_notes): Likewise.
32117         * reorg.c (find_end_label): Likewise.
32118         * toplev.c: Likewise.
32120 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32122         * bb-reorder.c (HAVE_return): Don't check if its undefined.
32123         * defaults.h (gen_simple_return): New function.
32124         (gen_simple_return): Likewise.
32125         (HAVE_return): Add default definition to false.
32126         (HAVE_simple_return): Likewise.
32127         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32128         HAVE_return and HAVE_simple_return are defined.
32129         * function.c (gen_return_pattern): Likewise.
32130         (convert_jumps_to_returns): Likewise.
32131         (thread_prologue_and_epilogue_insns): Likewise.
32132         * reorg.c (find_end_label): Likewise.
32133         (dbr_schedule): Likewise.
32134         * shrink-wrap.c: Likewise.
32135         * shrink-wrap.h: Likewise.
32137 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32139         * defaults.h (EPILOGUE_USES): Add default definition of false.
32140         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32141         * resource.c (init_resource_info): Likewise.
32143 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32145         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32146         to false.
32147         * dwarf2out.c (field_byte_offset): REmove check if
32148         PCC_BITFIELD_TYPE_MATTERS is defined.
32149         * stor-layout.c (layout_decl): Likewise.
32150         (update_alignment_for_field): Likewise.
32151         (place_field): Likewise.
32153 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32155         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32156         true.
32157         * regrename.c (check_new_reg_p): Remove check if
32158         HARD_REGNO_RENAME_OK is defined.
32159         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32161 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32163         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32164         * cse.c (fold_rtx): Likewise.
32165         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32166         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32167         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32168         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32169         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32170         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32171         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32172         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32173         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32174         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32175         * Likewise.
32176         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32177         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32178         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32179         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32180         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32181         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32182         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32183         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32184         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32185         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32186         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32187         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32188         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32189         * doc/tm.texi: Regenerate.
32190         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32191         either true or false.
32193 2015-04-27  Jeff Law  <law@redhat.com>
32195         PR tree-optimization/65217
32196         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32197         of them has a single use, make sure it is the LHS of the implied
32198         copy.
32200 2015-04-28  Alan Modra  <amodra@gmail.com>
32202         PR target/65810
32203         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32204         (offsettable_ok_by_alignment): Use minimum of decl and toc
32205         pointer alignment.  Replace dead code with assertion.
32206         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
32207         case if size exceeds toc pointer alignment.
32208         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32209         (rs6000_emit_move): Likewise.
32210         * configure.ac: Add linker toc pointer alignment check.
32211         * configure: Regenerate.
32212         * config.in: Regenerate.
32214 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
32216         * config.gcc: Add h8300-*-linux.
32217         * config/h8300/linux.h: New.
32218         * config/h8300/t-linux: New.
32219         * config/h8300/h8300.c (h8300_option_override): Normal mode
32220         is not supported for h8300-*-linux.
32221         (h8300_file_start): Target priority change.
32222         (get_shift_alg): Likewise.
32223         (h8300_shift_need_scratch_p): Likewise.
32224         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32225         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32227 2015-04-27  Caroline Tice  <cmtice@google.com>
32229         * final.c (final_scan_insn):  Output cold_function_name as function
32230         type.
32231         * varasm.c (cold_function_name):  Make global.
32232         (assemble_start_function):  Re-set cold_function_name.
32233         (assemble_end_function): Output cold partition size.
32234         * varasm.h (cold_function_name):  Declare global.
32236 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
32238         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32239         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32240         constraint.
32241         (*movxi_internal_avx512f): Ditto.
32242         (define_split): Check for xmm16+, when splitting scalar float_extend.
32243         (*extendsfdf2_mixed): Use "v" constraint.
32244         (define_split): Check for xmm16+, when splitting scalar float_truncate.
32245         (*truncdfsf_fast_sse): Use "v" constraint.
32246         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32247         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32248         (define_peephole2): Check for xmm16+, when converting scalar
32249         float_truncate.
32250         (define_peephole2): Check for xmm16+, when converting scalar
32251         float_extend.
32252         (*fop_<mode>_comm_mixed): Use "v" constraint.
32253         (*fop_<mode>_comm_sse): Ditto.
32254         (*fop_<mode>_1_mixed): Ditto.
32255         (*sqrt<mode>2_sse): Ditto.
32256         (*ieee_s<ieee_maxmin><mode>3): Ditto.
32258 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32260         * combine.c (simplify_if_then_else): Use std::swap instead
32261         of manually swapping.
32262         (known_cond): Likewise.
32263         (simplify_comparison): Likewise.
32265 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
32267         PR target/64579
32268         * config/rs6000/htm.md: Remove all define_expands.
32269         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32270         UNSPECV_HTM_TABORTWCI): Remove.
32271         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32272         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32273         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32274         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32275         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32276         tabortwci_internal): Remove define_insns.
32277         (tabort<wd>c, tabort<wd>ci): New define_insns.
32278         (tabort): Use gpc_reg_operand.
32279         (tcheck): Remove operand.
32280         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32281         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32282         expected value.
32283         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32284         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
32285         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32286         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32287         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32288         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32289         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32290         (tcheck): Remove builtin argument.
32291         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32292         not TARGET_64BIT.
32293         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
32294         tabortdc and tabortdci builtins when not in 64-bit mode.
32295         Modify code to handle the loss of the HTM define_expands.
32296         Emit code to copy the CR register to TARGET.
32297         (htm_init_builtins): Modify code to handle the loss of the HTM
32298         define_expands.
32299         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32300         (RS6000_BTC_64BIT): Likewise.
32301         (RS6000_BTC_CR): New macro.
32302         * doc/extend.texi: Update documentation for htm builtins.
32304 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32306         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32307         of manually swapping.
32308         (simplify_associative_operation): Likewise.
32309         (simplify_binary_operation): Likewise.
32310         (simplify_plus_minus): Likewise.
32311         (simplify_relational_operation): Likewise.
32312         (simplify_ternary_operation): Likewise.
32314 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32316         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32317         (xs_hi_nonmemory_operand): Remove error.
32318         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32319         general_operand rather than xs_hi_general_operand.
32321 2015-04-27  Richard Biener  <rguenther@suse.de>
32323         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32324         (record_equivalences_from_stmt): Valueize rhs.
32325         (record_equality): Canonicalize x and y order via
32326         tree_swap_operands_p.  Do not swap operands for same loop depth.
32328 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
32330         PR target/65296
32331         PR target/65895
32332         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32333         Add hint how to use own spec file.
32335 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
32337         PR tree-optimization/65875
32338         * tree-vrp.c (update_value_range): If in is_new case setting
32339         old_vr to VR_VARYING, also set new_vr to it.  Remove
32340         old_vr->type == VR_VARYING test.
32341         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32342         SSA_PROP_INTERESTING if update_value_range returned true,
32343         but new range is VR_VARYING.
32345 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32347         * combine.c (sign_extend_short_imm): New.
32348         (set_nonzero_bits_and_sign_copies): Use above new function for sign
32349         extension of src short immediate.
32350         (reg_nonzero_bits_for_combine): Likewise for tem.
32352 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32354         * stor-layout.c (self_referential_component_ref_p): New predicate.
32355         (copy_self_referential_tree_r): Use it.
32356         (self_referential_size): Punt for simple operations directly involving
32357         self-referential component references.
32358         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32360 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
32362         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32364 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32366         * vec.h (vec): Make splice arguments const.  Update definitions
32367         accordingly.
32369 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
32371         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32372         alternatives.
32374 2015-04-26  Tom de Vries  <tom@codesourcery.com>
32376         PR tree-optimization/65826
32377         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32379 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
32381         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32382         (*madd3<mode>): Ditto.
32383         (*msub4<mode>): Ditto.
32384         (*msub3<mode>): Ditto.
32385         (*nmadd4<mode>): Ditto.
32386         (*nmadd3<mode>): Ditto.
32387         (*nmadd4<mode>_fastmath): Ditto.
32388         (*nmadd3<mode>_fastmath): Ditto.
32389         (*nmsub4<mode>): Ditto.
32390         (*nmsub3<mode>): Ditto.
32391         (*nmsub4<mode>_fastmath): Ditto.
32392         (*nmsub3<mode>_fastmath): Ditto.
32394 2015-04-24  Jason Merrill  <jason@redhat.com>
32396         PR c++/50800
32397         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32398         down when building TYPE_CANONICAL.
32399         (build_pointer_type_for_mode): Likewise.
32401 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
32403         * genrecog.c (validate_pattern): Check matching constraint refers
32404         to a lower numbered operand.
32406 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
32408         PR target/65849
32409         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32410         save to independent variables use the Save attribute.  This will
32411         allow these options to be modified with the #pragma/attribute
32412         target support.
32413         (-mallow-movmisalign): Likewise.
32414         (-mallow-df-permute): Likewise.
32415         (-msched-groups): Likewise.
32416         (-malways-hint): Likewise.
32417         (-malign-branch-targets): Likewise.
32418         (-mvectorize-builtins): Likewise.
32419         (-msave-toc-indirect): Likewise.
32421         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32422         can be set via the #pragma/attribute target support.
32423         (rs6000_opt_vars): Likewise.
32424         (rs6000_inner_target_options): If VSX was set, also set
32425         -mno-avoid-indexed-addresses.
32427 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32429         * config/arm/iterators.md (shiftable_ops): Rename to...
32430         (SHIFTABLE_OPS): ... This.  Update use in comments.
32431         (ior_xor): Rename to...
32432         (IOR_XOR): ... This.
32433         (vqh_ops): Rename to...
32434         (VQH_OPS): ... This.
32435         (vqhs_ops): Rename to...
32436         (VQHS_OPS): ... This.
32437         (rshifts): Rename to...
32438         (RSHIFTS): ... This.
32439         (returns): Rename to...
32440         (RETURNS): ... This.
32441         * config/arm/arm.md: Update uses of the above.
32442         * config/arm/neon.md: Likewise.
32444 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32446         * config.host (case ${host}): Add aarch64*-*-linux case.
32447         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32448         fields to all the cores.
32449         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32450         Add MCPU_MTUNE_NATIVE_SPECS.
32451         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32452         field to all extensions.
32453         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32454         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32455         Adjust definition of AARCH64_OPT_EXTENSION.
32456         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32457         (MCPU_MTUNE_NATIVE_SPECS): Define.
32458         * config/aarch64/driver-aarch64.c: New file.
32459         * config/aarch64/x-arch64: New file.
32460         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32461         -mtune and -march.
32463 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32464             Wei Mi  <wmi@google.com>
32466         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32467         * config/i386/i386.c (extract_base_offset_in_addr): New function.
32468         (ix86_operands_ok_for_move_multiple): Ditto.
32469         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32470         (movlpd/movhpd to movupd peephole2): Ditto.
32472 2015-04-24  Marek Polacek  <polacek@redhat.com>
32474         PR c/61534
32475         * input.h (from_macro_expansion_at): Define.
32477         PR c/63357
32478         * doc/invoke.texi: Update description of -Wlogical-op.
32480 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32482         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32483         ternary operator in fprintf and harmonize spacing.
32485 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32487         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32488         Mark operand1 commutative.
32490 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
32492         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32493         input operands in memory.
32494         (*vec_concatv2si_sse4_1): Ditto.
32495         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32496         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32497         register_operand.
32498         (vec_extract_hi_v32hi): Ditto.
32499         (vec_extract_hi_v64hi): Ditto.
32500         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32502 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32503             Steven Bosscher <steven@gcc.gnu.org>
32505         PR rtl-optimization/34503
32506         * cprop.c (cprop_reg_p): New.
32507         (hash_scan_set): Use above function to check if register can be
32508         propagated.
32509         (find_avail_set): Return up to two sets, one whose source is a
32510         register and one whose source is a constant.  Sets are returned in an
32511         array passed as parameter rather than as a return value.
32512         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
32513         sets returned by find_avail_set, starting with the one whose source is
32514         a constant. Use cprop_reg_p to check if register can be propagated.
32515         (do_local_cprop): Use cprop_reg_p to check if register can be
32516         propagated.
32517         (implicit_set_cond_p): Likewise.
32519 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32521         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32522         (sem_function::equals): IGNORED_NODES parameter is now unused;
32523         update call of equals_private.
32524         (sem_function::equals_private): Do not call equals_wpa; skip
32525         gimple body matching if there is no body.
32526         (sem_function::init): Add logic to hash tthunk info.
32527         (sem_function::parse): Also parse thunks.
32528         * ipa-icf.h (equals_private): Update declaration.
32530 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32532         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32533         asterisk from name so this can be generated directly.
32534         (*altivec_stvx_<mode>_internal): Likewise.
32535         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32536         that this is never called during or after reload/lra.
32537         (rs6000_frame_related): Remove split_reg
32538         argument and logic that references it.
32539         (emit_frame_save): Remove last parameter from call to
32540         rs6000_frame_related.
32541         (rs6000_emit_prologue): Remove last parameter from eight calls to
32542         rs6000_frame_related.  Force generation of stvx instruction for
32543         Altivec register saves.  Remove split_reg handling, which is no
32544         longer needed.
32545         (rs6000_emit_epilogue):  Force generation of lvx instruction for
32546         Altivec register restores.
32548 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32550         * config/rs6000/rs6000.opt (mcrypto): Change option description to
32551         match category changes in ISA 2.07B.
32553 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32555         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32556         iterators.
32557         (cmp_op, cmp_type): New code attributes.
32558         (NEON_VCMP, NEON_VACMP): New int iterators.
32559         (cmp_op_unsp): New int attribute.
32560         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32561         (neon_vceq<mode>): Delete.
32562         (neon_vc<cmp_op><mode>_insn): New pattern.
32563         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32564         (neon_vcgeu<mode>): Delete.
32565         (neon_vcle<mode>): Likewise.
32566         (neon_vclt<mode>: Likewise.
32567         (neon_vcage<mode>): Likewise.
32568         (neon_vcagt<mode>): Likewise.
32569         (neon_vca<cmp_op><mode>): New define_expand.
32570         (neon_vca<cmp_op><mode>_insn): New pattern.
32571         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32573 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32575         * tree.h (attribute_value_equal): Declare.
32576         * tree.c (attribute_value_equal): Export.
32578 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32580         * ipa-icf.c (sem_item::compare_attributes): New function.
32581         (sem_item::compare_referenced_symbol_properties): Compare variable
32582         attributes.
32583         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32584         (sem_function::param_used_p): New function.
32585         (sem_function::equals_wpa): Fix attribute comparsion; match
32586         parameter type codes; do not compare paremter flags when
32587         they are not used; compare edge flags; compare indirect calls.
32588         (sem_item::update_hash_by_addr_refs): Hash reference type.
32589         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32590         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32591         reference use type.
32592         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32593         * ipa-icf.h (compare_attributes, param_used_p): Declare.
32595 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
32597         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32598         cleanup.
32599         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32600         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32601         (sem_item::compare_referenced_symbol_properties): New.
32602         (sem_item::hash_referenced_symbol_properties): New.
32603         (sem_item::compare_cgraph_references): Rename to ...
32604         (sem_item::compare_symbol_references): ... this one; use
32605         compare_referenced_symbol_properties.
32606         (sem_function::equals_wpa): Do not compare
32607         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32608         DECL_IS_OPERATOR_NEW; compare pointer sizes.
32609         (sem_item::update_hash_by_addr_refs): Call
32610         hash_referenced_symbol_properties.
32611         (sem_item::update_hash_by_local_refs): Cleanup.
32612         (sem_function::merge): Do not mix up symbol properties.
32613         (sem_variable::equals_wpa): Use compare_symbol_references.
32614         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32615         (sem_item::hash_referenced_symbol_properties): New.
32616         (sem_item::compare_symbol_references): New.
32617         (sem_item::compare_cgraph_references): Remove.
32619 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
32621         PR target/26702
32622         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32623         Emit size of local.
32625 2015-04-23  Nick Clifton  <nickc@redhat.com>
32627         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32628         ATTRIBUTE_UNUSED to x parameter.
32629         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32631 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32633         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32634         TARGET_CRYPTO to TARGET_P8_VECTOR>
32635         (crypto_vpermxor_<mode>): Likewise.
32636         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32637         (BU_CRYPTO_3A): Likewise.
32638         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32639         (BU_CRYPTO_OVERLOAD_3A): New #define.
32640         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32641         (VPMSUMH): Likewise.
32642         (VPMSUMW): Likewise.
32643         (VPMSUMD): Likewise.
32644         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32645         (VPERMXOR_V4SI): Likewise.
32646         (VPERMXOR_V8HI): Likewise.
32647         (VPERMXOR_V16QI): Likewise.
32648         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32649         BU_CRYPTO_OVERLOAD_2A.
32650         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32651         BU_CRYPTO_OVERLOAD_3A.
32652         * config/rs6000/rs6000.opt (mcrypto): Change description of
32653         option.
32655 2015-04-23  Richard Biener  <rguenther@suse.de>
32657         * passes.def: Remove copy propagation passes run directly after CCP.
32658         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32659         SSA names.
32660         (ccp_visit_phi_node): Rework to handle first executable edge
32661         specially.
32663 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
32665         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32666         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32667         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32668         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32669         (thumb_legimitimize_reload_address): Remove.
32670         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32671         Remove.
32672         (thumb_legimitimize_reload_address): Remove.
32674 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32676         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32678 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32680         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32681         MAX_LDM_STM_OPS.
32682         (store_multiple): Likewise.
32684 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32686         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32687         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32688         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32689         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32690         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32691         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32692         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32693         Specify issue_rate value.
32694         (arm_issue_rate): Look up issue rate from tuning structs. Remove
32695         large switch statement.
32696         (arm_marvell_pj4_tune): New struct.
32697         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32698         struct.
32700 2015-04-23  Richard Biener  <rguenther@suse.de>
32702         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32703         (vect_find_last_store_in_slp_instance): Rename to ...
32704         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32705         (vect_analyze_slp_cost_1): Use vector_load for constant defs
32706         and vec_construct for external defs when estimating prologue cost.
32707         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32708         Compute costs here only when vectorizing loops.
32709         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32710         have been determined.
32711         (vect_schedule_slp_instance): Simplify vectorized code placement
32712         and prepare for in-BB external defs.
32713         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32714         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32715         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32716         guard.
32717         (vect_model_load_cost): Likewise.
32718         (vectorizable_store): Instead add it here.
32719         (vectorizable_load): Likewise.
32720         (vect_is_simple_use): Dump def type textually.
32722 2015-04-23  Richard Biener  <rguenther@suse.de>
32724         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32725         * cfgloop.c (verify_loop_structure): Verify the root loop node.
32726         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32727         instead of get_eh_region_from_lp_number.
32728         * loop-init.c (fix_loop_structure): If we removed a loop, reset
32729         the SCEV cache.
32731 2015-04-23  Anton Blanchard  <anton@samba.org>
32733         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32734         need for -mprofile-kernel to save LR to stack.
32736 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32738         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32739         adjustments.
32740         (insn_is_swappable_p): Return 1 for a convert from double to
32741         single precision when all of its uses are splats of BE element
32742         zero.
32744 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
32746         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32748 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32750         PR target/65456
32751         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
32752         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32753         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32754         option.
32755         (rs6000_builtin_mask_for_load): Return 0 for targets with
32756         efficient unaligned VSX accesses so that the vectorizer will use
32757         direct unaligned loads.
32758         (rs6000_builtin_support_vector_misalignment): Always return true
32759         for targets with efficient unaligned VSX accesses.
32760         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32761         stores on targets with efficient unaligned VSX accesses is almost
32762         always the same as the cost of an aligned load or store, so model
32763         it that way.
32764         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32765         unaligned vectors if we have efficient unaligned VSX accesses.
32766         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32767         undocumented option.
32769 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32771         Revert:
32772         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32774         * config.gcc (LIBC_MUSL): New tm_defines macro.
32775         * config/linux.h (OPTION_MUSL): Define.
32776         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32777         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32778         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32780         * config/linux.opt (mmusl): New option.
32781         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32782         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32784         * configure: Regenerate.
32786 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
32788         * config.gcc (LIBC_MUSL): New tm_defines macro.
32789         * config/linux.h (OPTION_MUSL): Define.
32790         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32791         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32792         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32794         * config/linux.opt (mmusl): New option.
32795         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32796         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32798         * configure: Regenerate.
32800 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
32802         * doc/invoke.texi (-fsanitize-sections): Update description.
32803         * asan.c (set_sanitized_sections): Parse incoming arg.
32804         (section_sanitized_p): Support wildcards.
32806 2015-04-22  Tom de Vries  <tom@codesourcery.com>
32808         PR tree-optimization/65823
32809         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32810         equality between ap_copy and ap.
32812 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32814         PR target/47098
32815         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32817 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32819         PR target/47122
32820         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32822 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32824         PR target/55144
32825         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32826         remove already contained t-files.
32828 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32830         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32831         Remove unneeded forward declarations.
32832         (suitable_for_tail_call_opt_p): Commentary typo fix.
32834 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32836         * varasm.c (emit_bss): Remove redundant guard.
32838 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32840         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32842 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32844         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
32846 2015-04-22  Hale Wang  <hale.wang@arm.com>
32847             Terry Guo  <terry.guo@arm.com>
32849         PR rtl-optimization/64818
32850         * combine.c (can_combine_p): Don't combine user-specified
32851         register if it is in an asm input.
32853 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
32855         PR ipa/65076
32856         * passes.def (early_optimizations): Add pass_dse.
32858 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32860         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
32861         * reorg.c (redundant_insn): Remove ifdef
32862         INSN_REFERENCES_ARE_DELAYED.
32863         * resource.c (mark_referenced_resources): Likewise.
32865 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32867         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
32868         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
32869         * resource.c (mark_set_resources): Likewise.
32871 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32873         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
32874         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32875         (flow_find_head_matching_sequence): Likewise.
32876         (try_head_merge_bb): Likewise.
32877         * combine.c (can_combine_p): Likewise.
32878         (try_combine): Likewise.
32879         (distribute_notes): Likewise.
32880         * df-problems.c (can_move_insns_across): Likewise.
32881         * final.c (final): Likewise.
32882         * gcse.c (insert_insn_end_basic_block): Likewise.
32883         * ira.c (find_moveable_pseudos): Likewise.
32884         * reorg.c (try_merge_delay_insns): Likewise.
32885         (fill_simple_delay_slots): Likewise.
32886         (fill_slots_from_thread): Likewise.
32887         * sched-deps.c (sched_analyze_2): Likewise.
32889 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32891         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
32892         PIC_OFFSET_TABLE_REGNUM.
32894 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32896         * alias.c (init_alias_target): Remove ifdef
32897         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
32898         * df-scan.c (df_insn_refs_collect): Likewise.
32899         (df_get_regular_block_artificial_uses): Likewise.
32900         (df_get_eh_block_artificial_uses): Likewise.
32901         (df_get_entry_block_def_set): Likewise.
32902         (df_get_exit_block_use_set): Likewise.
32903         * emit-rtl.c (gen_rtx_REG): Likewise.
32904         * ira.c (ira_setup_eliminable_regset): Likewise.
32905         * reginfo.c (init_reg_sets_1): Likewise.
32906         * regrename.c (rename_chains): Likewise.
32907         * reload1.c (reload): Likewise.
32908         (eliminate_regs_in_insn): Likewise.
32909         * resource.c (mark_referenced_resources): Likewise.
32910         (init_resource_info): Likewise.
32912 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32914         * defaults.h (MASK_RETURN_ADDR): New definition.
32915         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32916         MASK_RETURN_ADDR.
32918 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32920         * defaults.h (RETURN_ADDR_OFFSET): New definition.
32921         * except.c (expand_builtin_extract_return_addr): Remove ifdef
32922         RETURN_ADDR_OFFSET.
32923         (expand_builtin_frob_return_addr): Likewise.
32925 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32927         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
32928         (try_redirect_by_replacing_jump): Likewise.
32929         (rtl_tidy_fallthru_edge): Likewise.
32930         * combine.c (insn_a_feeds_b): Likewise.
32931         (find_split_point): Likewise.
32932         (simplify_set): Likewise.
32933         * cprop.c (cprop_jump): Likewise.
32934         * cse.c (cse_extended_basic_block): Likewise.
32935         * df-problems.c (can_move_insns_across): Likewise.
32936         * function.c (emit_use_return_register_into_block): Likewise.
32937         * haifa-sched.c (sched_init): Likewise.
32938         * ira.c (find_moveable_pseudos): Likewise.
32939         * loop-invariant.c (find_invariant_insn): Likewise.
32940         * lra-constraints.c (curr_insn_transform): Likewise.
32941         * postreload.c (reload_combine_recognize_const_pattern):
32942         * Likewise.
32943         * reload.c (find_reloads): Likewise.
32944         * reorg.c (delete_scheduled_jump): Likewise.
32945         (steal_delay_list_from_target): Likewise.
32946         (steal_delay_list_from_fallthrough): Likewise.
32947         (redundant_insn): Likewise.
32948         (fill_simple_delay_slots): Likewise.
32949         (fill_slots_from_thread): Likewise.
32950         (delete_computation): Likewise.
32951         * sched-rgn.c (add_branch_dependences): Likewise.
32953 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32955         * genconfig.c (main): Always define HAVE_cc0.
32956         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
32957         HAVE_cc0.
32958         * cfgcleanup.c (flow_find_cross_jump): Likewise.
32959         (flow_find_head_matching_sequence): Likewise.
32960         (try_head_merge_bb): Likewise.
32961         * cfgrtl.c (rtl_merge_blocks): Likewise.
32962         (try_redirect_by_replacing_jump): Likewise.
32963         (rtl_tidy_fallthru_edge): Likewise.
32964         * combine.c (do_SUBST_MODE): Likewise.
32965         (insn_a_feeds_b): Likewise.
32966         (combine_instructions): Likewise.
32967         (can_combine_p): Likewise.
32968         (try_combine): Likewise.
32969         (find_split_point): Likewise.
32970         (subst): Likewise.
32971         (simplify_set): Likewise.
32972         (distribute_notes): Likewise.
32973         * cprop.c (cprop_jump): Likewise.
32974         * cse.c (cse_extended_basic_block): Likewise.
32975         * df-problems.c (can_move_insns_across): Likewise.
32976         * final.c (final): Likewise.
32977         (final_scan_insn): Likewise.
32978         * function.c (emit_use_return_register_into_block): Likewise.
32979         * gcse.c (insert_insn_end_basic_block): Likewise.
32980         * haifa-sched.c (sched_init): Likewise.
32981         * ira.c (find_moveable_pseudos): Likewise.
32982         * loop-invariant.c (find_invariant_insn): Likewise.
32983         * lra-constraints.c (curr_insn_transform): Likewise.
32984         * optabs.c (prepare_cmp_insn): Likewise.
32985         * postreload.c (reload_combine_recognize_const_pattern):
32986         * Likewise.
32987         * reload.c (find_reloads): Likewise.
32988         (find_reloads_address_1): Likewise.
32989         * reorg.c (delete_scheduled_jump): Likewise.
32990         (steal_delay_list_from_target): Likewise.
32991         (steal_delay_list_from_fallthrough): Likewise.
32992         (try_merge_delay_insns): Likewise.
32993         (redundant_insn): Likewise.
32994         (fill_simple_delay_slots): Likewise.
32995         (fill_slots_from_thread): Likewise.
32996         (delete_computation): Likewise.
32997         (relax_delay_slots): Likewise.
32998         * sched-deps.c (sched_analyze_2): Likewise.
32999         * sched-rgn.c (add_branch_dependences): Likewise.
33001 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33003         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33004         that is trivially ded on non cc0 targets.
33005         (simplify_set): Likewise.
33006         (mark_used_regs_combine): Likewise.
33007         * cse.c (new_basic_block): Likewise.
33008         (fold_rtx): Likewise.
33009         (cse_insn): Likewise.
33010         (cse_extended_basic_block): Likewise.
33011         (set_live_p): Likewise.
33012         * rtlanal.c (canonicalize_condition): Likewise.
33013         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33015 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33017         * conditions.h: Define macros even if HAVE_cc0 is undefined.
33018         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33019         * final.c: Likewise.
33020         * jump.c: Likewise.
33021         * recog.c: Likewise.
33022         * recog.h: Declare functions even when HAVE_cc0 is undefined.
33023         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33025 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33027         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33028         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33029         * builtins.c (expand_builtin): Remove check if
33030         EH_RETURN_DATA_REGNO is defined.
33031         * df-scan.c (df_bb_refs_collect): Likewise.
33032         (df_get_exit_block_use_set): Likewise.
33033         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33034         * ira-lives.c (process_bb_node_lives): Likewise.
33035         * lra-lives.c (process_bb_lives): Likewise.
33037 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33039         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33040         FIRST_PSEUDO_REG): New.
33041         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33042         (ARG_POINTER_REGNUM): Define to ARGP_REG.
33043         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33044         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33045         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33046         (FIRST_INT_REG): New.
33047         (LAST_INT_REG): New.
33048         (FIRST_*_REG): Define using *_REG.
33049         (LAST_*_REG): Ditto.
33050         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33051         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33052         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33054 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33056         * expmed.c: (synth_mult): Only assume overlapping
33057         shift with previous steps in alg_sub_t_m2 case.
33059 2015-04-21  Richard Biener  <rguenther@suse.de>
33061         PR tree-optimization/65650
33062         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33063         transitions involving copies.
33064         (set_lattice_value): Adjust for copy lattice state.
33065         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33066         if that doesn't dominate the merge point.
33067         (bit_value_unop): Adjust what we treat as varying mask.
33068         (bit_value_binop): Likewise.
33069         (bit_value_assume_aligned): Likewise.
33070         (evaluate_stmt): When we simplified to a SSA name record a copy
33071         instead of dropping to varying.
33072         (visit_assignment): Simplify.
33074         * gimple-match.h (gimple_simplify): Add another callback.
33075         * gimple-fold.c (fold_stmt_1): Adjust caller.
33076         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33077         for the 2nd callback.
33078         * gimple-match-head.c (gimple_simplify): Add a callback that is
33079         used to valueize the stmt operands and use it that way.
33081 2015-04-21  Richard Biener  <rguenther@suse.de>
33083         PR tree-optimization/65788
33084         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33086 2015-04-21  Richard Biener  <rguenther@suse.de>
33088         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33089         vec_construct cost by vec_stmt_cost.
33091 2015-04-21  Richard Biener  <rguenther@suse.de>
33093         * cfghooks.h (create_basic_block): Replace with two overloads
33094         for RTL and GIMPLE.
33095         (split_block): Likewise.
33096         * cfghooks.c (split_block): Rename to ...
33097         (split_block_1): ... this.
33098         (split_block): Add two type-safe overloads for RTL and GIMPLE.
33099         (split_block_after_labels): Call split_block_1.
33100         (create_basic_block): Rename to ...
33101         (create_basic_block_1): ... this.
33102         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33103         (create_empty_bb): Call create_basic_block_1.
33104         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33105         split_block_after_labels.
33106         * omp-low.c (expand_parallel_call): Likewise.
33107         (expand_omp_target): Likewise.
33108         (simd_clone_adjust): Likewise.
33109         * tree-chkp.c (chkp_get_entry_block): Likewise.
33110         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33111         create_basic_block overload.
33112         (cgraph_node::expand_thunk): Likewise.
33113         * tree-cfg.c (make_blocks): Likewise.
33114         (handle_abnormal_edges): Likewise.
33115         * tree-inline.c (copy_bb): Likewise.
33117 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33119         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33120         New pattern.
33121         (*xor_one_cmplsidi3_ze): Likewise.
33123 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33125         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33126         use df_remove_problem rather than manually removing problems, leaving
33127         holes in df->problems_in_order[].
33129 2015-04-21  Tom de Vries  <tom@codesourcery.com>
33131         PR tree-optimization/65802
33132         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33134 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33136         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33137         Increase to 128.
33138         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33139         at '.'.  Assert that there's enough space for everything.
33141 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33143         PR tree-optimization/64950
33144         Revert:
33145         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
33147         PR target/41089
33148         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33149         as volatile.
33151 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
33153         PR rtl-optimization/64916
33154         * cfgcleanup.c (values_equal_p): New function.
33155         (can_replace_by): Use it.
33157 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
33159         PR c++/65801
33160         * doc/invoke.texi ([-Wnarrowing]): Update.
33162 2015-04-20  Jeff Law  <law@redhat.com>
33164         PR tree-optimization/65658
33165         * tree-ssa-threadupdate.c (redirection_block_p): Remove
33166         redundant test for GIMPLE_ASSIGN in last change.
33168 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
33170         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33171         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33172         (legitimize_tls_address): Ditto.
33173         (ix86_expand_move): Ditto.
33174         (ix86_expand_binary_operator): Remove reload_in_progress checks.
33175         (ix86_expand_unary_operator): Ditto.
33176         * config/i386/predicates.md (index_register_operand): Ditto.
33178 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
33180         * reorg.c (try_merge_delay_insns): Improve correctness checking
33181         for targets with multiple delay slots.
33183 2015-04-20  Jeff Law  <law@redhat.com>
33185         PR tree-optimization/65658
33186         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33187         statements too.
33189 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33191         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33192         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33193         Delete.
33195 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
33197         PR debug/65807
33198         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33200 2015-04-20  Richard Biener  <rguenther@suse.de>
33202         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33203         * gimple-fold.c (gimple_build_valueize): New function.
33204         (gimple_build): Always use gimple_build_valueize as valueize hook.
33206 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33208         PR target/64134
33209         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33210         and overwrite variable parts if <= 1/2 the elements are variable.
33212 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
33214         PR rtl-optimization/65805
33215         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33216         Don't use difference of offset and previous offset if
33217         update_sp_offset is non-zero.
33218         (eliminate_regs_in_insn): Ditto.
33219         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33220         lra_eliminate_regs_1 call.
33221         * lra-constraints.c (get_equiv_with_elimination): Ditto.
33223 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
33225         * hash-table.h: Remove version of hash_table that stored value_type *.
33226         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33227         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33228         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33229         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33230         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33231         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33232         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33233         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33234         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33235         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33236         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33237         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33238         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33239         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33240         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33241         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33243 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33244             Jakub Jelinek  <jakub@redhat.com>
33246         PR target/65787
33247         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33248         subsequent SH_NONE operand does not overwrite an existing *special
33249         value.
33250         (adjust_extract): Handle case where a vec_extract operation is
33251         wrapped in a PARALLEL.
33253 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33255         PR target/65780
33256         * config/i386/i386.c (ix86_binds_local_p): Define only if
33257         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33259 2015-04-17  Jeff Law  <law@redhat.com>
33261         PR tree-optimization/47679
33262         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33263         * tree-ssa-scopedtables.c: New file.
33264         * tree-ssa-scopedtables.h: New file.
33265         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33266         (const_and_copies): Change name/type.
33267         (record_const_or_copy): Move into tree-ssa-scopedtables.c
33268         (record_const_or_copy_1): Similarly.
33269         (restore_vars_to_original_value): Similarly.
33270         (pass_dominator::execute): Create and destroy const_and_copies table.
33271         (thread_across_edge): Update passing of const_and_copies.
33272         (record_temporary_equivalence): Use method calls rather than
33273         manipulating const_and_copies directly.
33274         (record_equality, cprop_into_successor_phis): Similarly.
33275         (dom_opt_dom_walker::before_dom_children): Similarly.
33276         (dom_opt_dom_walker::after_dom_children): Similarly.
33277         (eliminate_redundant_computations): Similarly.
33278         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33279         (record_temporary_equivalence): Likewise.
33280         (invalidate_equivalences): Likewise.
33281         (record_temporary_equivalences_from_phis): Update due to type
33282         change of const_and_copies.  Use method calls rather than
33283         manipulating the stack directly.
33284         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33285         (thread_through_normal_block, thread_across_edge): Likewise.
33286         (thread_across_edge): Likewise.
33287         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33288         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
33289         of equiv_stack.
33290         (identify_jump_threads): Update due to type change of equiv_stack.
33291         (finalize_jump_threads): Delete the equiv_stack when complete.
33293 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
33295         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33296         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33297         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33299 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
33301         PR target/65535
33302         * config.gcc: Exit with a comment when we do not have a major version
33303         number for the FreeBSD target.
33305 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33307         PR target/65689
33308         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33309         maybe_allows_mem bitfields.
33310         (maybe_allows_none_start, maybe_allows_none_end,
33311         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33312         maybe_allows_mem_end): New variables.
33313         (compute_maybe_allows): New function.
33314         (add_constraint): Use it to initialize maybe_allows_reg and
33315         maybe_allows_mem fields.
33316         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33317         is_address constraints such that those that allow neither mem nor
33318         reg come first, then those that only allow reg but not mem, then
33319         those that only allow mem but not reg, then the rest.
33320         (write_allows_reg_mem_function): New function.
33321         (write_tm_preds_h): Call it.
33322         * stmt.c (parse_output_constraint, parse_input_constraint): Use
33323         the generated insn_extra_constraint_allows_reg_mem function
33324         instead of always setting *allows_reg = true; *allows_mem = true;
33325         for unknown extra constraints.
33327 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33329         PR target/65780
33330         * output.h (default_binds_local_p_3): New.
33331         * varasm.c (default_binds_local_p_3): Make it public.  Take an
33332         argument to indicate if common symbol may be local.  If common
33333         symbol may be local, treat non-external variable as defined
33334         locally.
33335         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33336         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33337         * config/i386/i386.c (ix86_binds_local_p): New.
33338         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33339         ix86_binds_local_p.
33341 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33343         PR debug/65771
33344         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33345         trying mem_loc_descriptor on XEXP (rtl, 0).
33347 2015-04-17  Martin Liska  <mliska@suse.cz>
33349         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33350         Release symbol_compare_collection.
33351         * ipa-reference.c: Add TODO that a vector should be released.
33353 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33355         PR target/65296
33356         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33357         to new AVR-LibC file layout (bug #44574).
33358         (*avrlibc_devicelib): Same.
33359         * config/avr/avr-mcus.def: Adjust comments.
33360         * config/avr/avr.opt (nodevicelib): Adjust help.
33362 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
33364         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33366 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
33368         PR c++/64527
33369         * gimplify.c (gimplify_init_constructor): Always emit a
33370         side-effecting constructor.
33372 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33374         PR tree-optimization/64950
33375         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33376         in cfun->curr_properties.
33377         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33378         if we generate an IFN_VA_ARG.
33379         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33380         function if PROP_gimple_lva is not set in src function.
33382 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33383             Michael Matz  <matz@suse.de>
33385         PR tree-optimization/64950
33386         * gimple-iterator.c (update_modified_stmts): Remove static.
33387         * gimple-iterator.h (update_modified_stmts): Declare.
33388         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33389         (gimplify_va_arg_internal): New function.
33390         (gimplify_va_arg_expr): Use IFN_VA_ARG.
33391         * gimplify.h (gimplify_va_arg_internal): Declare.
33392         * internal-fn.c (expand_VA_ARG): New unreachable function.
33393         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33394         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33395         (expand_ifn_va_arg): New function.
33396         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33397         (pass_stdarg::execute): Call expand_ifn_va_arg.
33398         (pass_data_lower_vaarg): New pass_data.
33399         (pass_lower_vaarg): New gimple_opt_pass.
33400         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33401         (make_pass_lower_vaarg): New function.
33402         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33403         properties_required field.
33404         * passes.def (all_passes): Add pass_lower_vaarg.
33405         * tree-pass.h (PROP_gimple_lva): Add define.
33406         (make_pass_lower_vaarg): Declare.
33408 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33410         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33411         * calls.c (call_expr_flags): Same.
33413 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33415         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33416         (pass_stdarg::execute): ... here.
33418 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33419             Michael Matz  <matz@suse.de>
33421         * tree-cfg.c (make_blocks_1): Factor out of ...
33422         (make_blocks): ... here.
33423         (make_edges_bb): Factor out of ...
33424         (make_edges): ... here.
33425         (gimple_find_sub_bbs): New function.
33426         * tree-cfg.h (gimple_find_sub_bbs): Declare.
33428 2015-04-17  Tom de Vries  <tom@codesourcery.com>
33430         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33432 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
33434         * asan.c (set_sanitized_sections): New function.
33435         (section_sanitized_p): Ditto.
33436         (asan_protect_global): Optionally sanitize user-defined
33437         sections.
33438         * asan.h (set_sanitized_sections): Declare new function.
33439         * common.opt (fsanitize-sections): New option.
33440         * doc/invoke.texi (-fsanitize-sections): Document new option.
33441         * opts-global.c (handle_common_deferred_options): Handle new
33442         option.
33444 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33446         PR debug/65771
33447         * dwarf2out.c (loc_list_from_tree): Return NULL
33448         for DEBUG_EXPR_DECL.
33450 2015-04-17  Christian Bruel  <christian.bruel@st.com>
33452         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33453         same attributes.
33455 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
33457         * ira-color.c (setup_left_conflict_sizes_p): Do not process
33458         node itself when computing left conflict subnode size.
33460 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33462         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33463         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33464         *fop_<mode>_1_sse using enabled attribute.  Use
33465         register_mixssei387nonimm_operand operand 1 predicate. Change
33466         alternative 3 constraints from "x" to "v".
33468 2015-04-16  Richard Biener  <rguenther@suse.de>
33470         PR tree-optimization/65774
33471         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33472         bit-value tracking on.
33474 2015-04-16  Richard Biener  <rguenther@suse.de>
33476         PR tree-optimization/64277
33477         * tree-vrp.c (check_array_ref): Fix anti-range handling,
33478         simplify upper bound handling.
33479         (search_for_addr_array): Simplify.
33480         (check_array_bounds): Handle ADDR_EXPRs here.
33481         (check_all_array_refs): Simplify.
33483 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
33485         * config/i386/i386.c (print_reg): Rewrite function.
33487 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33489         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33490         Invert the condition.
33492 2015-04-16  Renlin Li  <renlin.li@arm.com>
33494         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33495         simplifications for UNSIGNED_FLOAT.
33497 2015-04-16  Nick Clifton  <nickc@redhat.com>
33499         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33500         MUL_UNINIT.
33501         (enum rl78_cpu_type): New.
33502         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33503         (umulhi3_shift_virt): Remove m constraint from operand 1.
33504         (umulqihi3_virt): Likewise.
33505         * config/rl78/rl78.c (rl78_option_override): Add code to process
33506         -mcpu and -mmul options.
33507         (rl78_alloc_physical_registers): Add code to handle divhi and
33508         divsi valloc attributes.
33509         (set_origin): Likewise.
33510         * config/rl78/rl78.h (RL78_MUL_G14): Define.
33511         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33512         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33513         __RL78_Gxx__.
33514         (ASM_SPEC): Pass -mcpu on to assembler.
33515         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33516         (mulqi3_rl78): Likewise.
33517         (mulhi3_g13): Likewise.
33518         (mulhi3): Generate the G13 or G14 versions of the insn directly.
33519         (mulsi3): Likewise.
33520         (mulhi3_g14): Add clobbers of AX and BC.
33521         (mulsi3_g14): Likewise.
33522         (mulsi3_g13): Likewise.
33523         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33524         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33525         * config/rl78/rl78.opt (mmul): Initialise value to
33526         RL78_MUL_UNINIT.
33527         (mcpu): New option.
33528         (m13, m14, mrl78): New option aliases.
33529         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33530         (MULTILIB_DIRNAMES): Add g13 and g14.
33531         * doc/invoke.texi: Document -mcpu and -mmul options.
33533 2015-04-16  Richard Biener  <rguenther@suse.de>
33535         * tree-ssa-ccp.c (likely_value): See if we have operands that
33536         are marked as never simulate again and return CONSTANT in this
33537         case.
33538         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33539         not have any operands that will be simulated again as
33540         not being simulated again.
33542 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
33544         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33545         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33546         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33547         attribute.
33548         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33549         enabled attribute.
33550         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33551         *float<SWI48:mode><MODEF:mode>2_sse.
33552         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33553         enabled attribute.
33554         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33555         enabled attribute.
33557 2015-04-15  Tom de Vries  <tom@codesourcery.com>
33559         PR other/65487
33560         * function.c (push_dummy_function): New function.
33561         (init_dummy_function_start): Use push_dummy_function.
33562         (pop_dummy_function): New function.  Factored out of ...
33563         (expand_dummy_function_end): ... here.
33564         * function.h (push_dummy_function, pop_dummy_function): Declare.
33565         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33566         pop_dummy_function.
33567         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33569 2015-04-15  Jeff Law  <law@redhat.com>
33571         PR tree-optimization/47679
33572         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33573         need for forward declaration in upcoming changes.
33574         (record_conditions, record_edge_info): Likewise.
33576         PR rtl-optimization/42522
33577         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33578         SIGN_EXTRACT as a whole object rather than simplifying
33579         its operand.
33581 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
33583         PR ipa/65765
33584         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33585         and GIMPLE_PREDICT use break instead of return true. For
33586         GIMPLE_EH_DISPATCH, compare dispatch region.
33588 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
33590         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
33591         details about the implementation.  Make clear preference for
33592         __atomic builtins.  Reduce possibility of future change.
33594 2015-04-15  Nick Clifton  <nickc@redhat.com>
33596         * config/rx/rx.opt (mallow-string-insns): New option.
33597         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33598         builtin if string instructions are denied.
33599         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33600         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33601         appropriate.
33602         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33603         * config/rx/rx.md (movstr): Enable pattern only if string
33604         instructions are allowed.
33605         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33606         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33607         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33608         (MULTILIB_DIRNAMES): Add no-strings.
33609         * doc/invoke.texi: Document -mno-allow-string-insns.
33611 2015-04-15  Alan Modra  <amodra@gmail.com>
33613         PR target/65408
33614         PR target/58744
33615         PR middle-end/36043
33616         * calls.c (load_register_parameters): Don't load past end of
33617         mem unless suitably aligned.
33619 2015-04-15  Nick Clifton  <nickc@redhat.com>
33621         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33622         decrement instruction as being frame related.
33623         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33624         based addresses.
33625         If zero extending a function address enclose the operation in
33626         %code(...).
33627         (rl78_preferred_reload_class): New function.
33628         (TARGET_PREFERRED_RELOAD_CLASS): Define.
33629         * config/rl78/rl78.md: Remove useless constraints in expanders.
33630         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33631         (mulhi3_rl78): Likewise.
33632         (mulhi3_g13): Likewise.
33633         (mulsi3_rl78): Likewise.
33634         (es_addr): Move to before the multiply patterns.
33636 2015-04-15  Alan Modra  <amodra@gmail.com>
33638         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33639         and sequence_stack.  Add seq.
33640         (seq_stack): Delete.
33641         * function.c (prepare_function_start): Don't access x_last_insn.
33642         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33643         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33644         * emit_rtl.c (start_sequence, push_topmost_sequence,
33645         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33646         sequence accessors.
33647         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33648         remove_insn): Likewise.  Simplify.
33649         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33650         and pop_topmost_sequence.
33651         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
33652         debug insns.
33653         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33655 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
33657         PR target/65729
33658         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33659         the assertiion.
33661 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33663         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33664         (LEGACY_INT_REGNO_P): Ditto.
33665         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33666         (ANY_MASK_REG_P): Remove.
33667         (BND_REG_P): Rename from ANY_BND_REG_P.
33668         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33669         legacy integer registers.  Do not handle MMX_REG_P in a special way.
33670         Merge 64byte and 32byte SSE handling.
33672 2015-04-14  Nick Clifton  <nickc@redhat.com>
33674         * expr.c (expand_assignment): Force an address offset computation
33675         into a register before changing its mode.
33676         (expand_expr_real_1): Likewise.
33678 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
33680         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33681         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33682         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33683         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33684         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33685         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33686         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33687         and __aarch64_vget_lane_any.
33689 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
33691         PR rtl-optimization/65761
33692         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33693         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33695 2015-04-14  Richard Biener  <rguenther@suse.de>
33697         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33698         (graphite_can_represent_scev): Use POINTER_TYPE_P.
33700 2015-04-14  Richard Biener  <rguenther@suse.de>
33702         PR tree-optimization/65758
33703         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33704         against -1.
33705         (ccp_lattice_meet): Likewise.
33706         (bit_value_unop): Likewise.
33707         (bit_value_binop): Likewise.
33708         (bit_value_assume_aligned): Likewise.
33710 2015-04-14  Christian Bruel  <christian.bruel@st.com>
33712         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33713         function.
33715 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
33717         PR tree-optimization/63387
33718         * match.pd ((x unord x) | (y unord y) -> (x unord y),
33719         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33721 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
33723         * config/i386/predicates.md (any_QIreg_operand): Rename from
33724         q_regs_operand.  Do not process subregs.
33725         (QIreg_operand): Use QI_REGNO_P predicate.
33726         (ext_QIreg_operand): Ditto.
33727         (ext_register_operand): Ditto.
33728         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33729         (AND splitters): Ditto.
33730         (AND with -65536 splitter): Add SWI48 mode for operand 0.
33731         (AND with -256 splitter): Use any_QIreg_operand predicate and
33732         SWI248 mode for operand 0.
33733         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33734         mode for operand 0.
33735         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33737 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
33739         * doc/plugins.texi: Rewrite first introductory paragraph.
33741 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33743         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33744         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33746 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33748         * ipa-profie.c (ipa_profile): Check number of parameters
33749         and possible polymorphic call targets before
33750         devirtualizing.
33752 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
33754         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33755         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33757 2015-04-13  Richard Biener  <rguenther@suse.de>
33759         PR tree-optimization/65204
33760         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33761         takens for bit-CCP.
33763 2015-04-13  Richard Biener  <rguenther@suse.de>
33765         PR target/65660
33766         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33767         and cond_not_taken_branch_cost to 4 and 2.
33768         (bdver2_cost): Likewise.
33769         (bdver3_cost): Likewise.
33770         (bdver4_cost): Likewise.
33772 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33774         * hash-table.h (hash_table constructor): Add mem stats.
33775         (alloc_entries): Likewise.
33777 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33779         * ipa-cp.c (ipcp_driver): Relase prev_edge.
33780         * passes.c (execute_one_pass): Only add transform if pass has one.
33782 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
33784         * config/i386/i386.c (ix86_option_override_internal): Don't set
33785         -fprefetch-loop-arrays if optimizing for size.
33787 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
33788             Gerald Pfeifer  <gerald@pfeifer.com>
33790         * doc/contrib.texi (Contributors): Add Martin Jambor and
33791         Michael Matz.
33793 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
33795         * BASE-VER: Set to 6.0.0.
33797         PR tree-optimization/65747
33798         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33799         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33801 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33803         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33804         sentence.  Improve grammar.
33806 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
33808         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33810 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33812         PR ipa/65743
33813         * ipa-inline-transform.c (speculation_removed): Remove static var.
33814         (check_speculations): New function.
33815         (clone_inlined_nodes): Do not check spculations.
33816         (inline_call): Call check_speculations.
33817         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33818         consider non-invariants.
33820 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
33821             Martin Liska  <mliska@suse.cz>
33823         PR ipa/65722
33824         * ipa-icf.c (sem_item::compare_cgraph_references): function and
33825         variable can not match.
33826         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33827         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33829 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
33831         PR tree-optimization/65735
33832         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33833         Remove visited_phis argument, add visited_bbs, avoid recursing into the
33834         same bb rather than just into the same phi node.
33835         (thread_through_normal_block): Adjust caller.
33837 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33839         * doc/contrib.texi (Contributors): Add Ira Rosen.
33841 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
33843         * gcov.c (find_source): Fix miswording in error message.
33844         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
33845         (ix86_expand_sse_comi_round): Fix typo in error message.
33847 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
33849         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
33851 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
33853         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
33855 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33857         PR target/65710
33858         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
33859         Print bad_spills_num and insn_pseudos_num.
33861 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33863         PR target/65694
33864         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
33865         when creating +1 values for SImode.
33867 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
33869         PR target/65729
33870         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
33871         assert.
33873 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
33874             Iain Sandoe  <iain@codesourcery.com>
33876         PR target/65351
33877         * configure: Regenerate.
33879 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33881         PR target/65671
33882         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
33884 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
33886         * doc/contrib.texi (Contributors): Add John Marino.
33888 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33890         PR tree-optimization/65709
33891         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
33892         TREE_TYPE (TREE_TYPE (t)).
33894 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
33896         PR target/65710
33897         * lra-int.h (lra_bad_spill_regno_start): New.
33898         * lra.c (lra_bad_spill_regno_start): New.
33899         (lra): Set up lra_bad_spill_regno_start.  Set up
33900         lra_constraint_new_regno_start unconditionally.
33901         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
33902         spill preferences.
33904 2015-04-09  Marek Polacek  <polacek@redhat.com>
33905             Jakub Jelinek  <jakub@redhat.com>
33907         PR middle-end/65554
33908         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
33909         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
33910         of STRIP_NOPS.
33912 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
33914         PR rtl-optimization/65693
33915         * combine.c (is_parallel_of_n_reg_sets): Move outside of
33916         #ifndef HAVE_cc0.
33918 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
33920         PR target/65296
33921         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
33922         device specs file if "device-specs%s" didn't resolve to a path.
33924 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
33926         PR target/65676
33927         * config/i386/i386.c (fixup_modeless_constant): New.
33928         (ix86_expand_args_builtin): Fixup modeless constant operand.
33929         (ix86_expand_round_builtin): Ditto.
33930         (ix86_expand_special_args_builtin): Ditto.
33931         (ix86_expand_builtin): Ditto.
33933 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
33935         PR target/65693
33936         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
33937         any pow2 integer in between 2 and 0x80000000U inclusive.
33939 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
33941         PR rtl-optimization/65693
33942         * combine.c (is_parallel_of_n_reg_sets): Change first argument
33943         from an rtx_insn * to an rtx.
33944         (try_combine): Adjust both callers.  Use it once more.
33946 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33948         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
33949         (chkp_make_static_const_bounds): Search existing
33950         symbol by assembler name.  Use make_decl_one_only.
33951         (chkp_get_zero_bounds_var): Remove node search which
33952         is now performed in chkp_make_static_const_bounds.
33953         (chkp_get_none_bounds_var): Likewise.
33955 2015-04-08  Michael Witten  <mfwitten@gmail.com>
33957         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
33958         to an example.
33960 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33962         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
33964 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33966         * doc/extend.texi (__sync Builtins): Fix grammar.
33968 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33970         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
33972 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33974         * varasm.c (emit_local): Move definition of align.
33976 2015-04-08  Julian Brown  <julian@codesourcery.com>
33978         * config/nvptx/mkoffload.c (process): Support variable mapping.
33980 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
33982         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
33983         alpha_links **.
33984         (alpha_write_one_linkage): Correct typo.
33986 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33988         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
33990 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
33992         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
33994 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
33996         * tree-chkp.h (chkp_insert_retbnd_call): New.
33997         * tree-chkp.c (chkp_insert_retbnd_call): New.
33998         * ipa-split.c (insert_bndret_call_after): Remove.
33999         (split_function): Use chkp_insert_retbnd_call.
34000         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34001         bounds for instrumented functions.
34003 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
34005         PR ipa/65540
34006         * calls.c (initialize_argument_information): When producing tail
34007         call also turn SSA_NAMES passed by references to original PARM_DECLs
34009 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
34011         PR target/65648
34012         * lra-remat.c (do_remat): Process input and non-input insn
34013         registers separately.
34015 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34017         PR debug/65678
34018         * valtrack.c (debug_lowpart_subreg): New function.
34019         (dead_debug_insert_temp): Use it.
34021         PR middle-end/65680
34022         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34023         into signed HOST_WIDE_INT the same as negative bit_offset.
34025 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
34027         * ipa-comdats.c (ipa_comdats): Visit all thunks
34028         to set proper comdat group.
34030 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34032         PR target/65489
34033         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34034         on constants for NEON VSTRUCT modes.
34036 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34037             Iain Sandoe  <iain@codesourcery.com>
34039         PR target/65351
34040         * configure: Regenerate.
34042 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34044         PR target/65614
34045         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34046         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34047         that LFD is used to load double constants instead of LFS.  Add
34048         defaults for all costs structures.  Add comments for missing
34049         initialization fields.
34050         (size32_cost): Likewise.
34051         (size64_cost): Likewise.
34052         (rs64a_cost): Likewise.
34053         (mpccore_cost): Likewise.
34054         (ppc403_cost): Likewise.
34055         (ppc405_cost): Likewise.
34056         (ppc440_cost): Likewise.
34057         (ppc476_cost): Likewise.
34058         (ppc601_cost): Likewise.
34059         (ppc603_cost): Likewise.
34060         (ppc604_cost): Likewise.
34061         (ppc604e_cost): Likewise.
34062         (ppc620_cost): Likewise.
34063         (ppc630_cost): Likewise.
34064         (ppccell_cost): Likewise.
34065         (ppc750_cost): Likewise.
34066         (ppc7450_cost): Likewise.
34067         (ppc8540_cost): Likewise.
34068         (ppce300c2c3_cost): Likewise.
34069         (ppce500mc_cost): Likewise.
34070         (ppce500mc64_cost): Likewise.
34071         (ppce5500_cost): Likewise.
34072         (ppce6500_cost): Likewise.
34073         (titan_cost): Likewise.
34074         (power4_cost): Likewise.
34075         (power6_cost): Likewise.
34076         (power7_cost): Likewise.
34077         (power8_cost): Likewise.
34078         (ppca2_cost): Likewise.
34079         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34081         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34082         instead of XXLOR to copy SFmode to clear out dirty bits created
34083         when SFmode denormals are generated.
34084         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34085         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34087 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34089         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34090         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34091         * config/aarch64/aarch64-tune.md: Regenerate.
34093 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34095         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34096         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34097         * config/arm/arm-cores.def (exynos-m1): New core.
34098         * config/arm/arm-tune.md: Regenerate.
34099         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34100         * config/arm/bpabi.h: Likewise.
34102 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34104         * ipa-cp (set_single_call_flag): Remove too
34105         restrictive assert.
34107 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
34109         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34110         GOMP_offload_unregister from the destructor.
34112 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34114         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34115         flags for instrumentation thunk.
34116         (chkp_produce_thunks): Likewise.
34118 2015-04-05  Martin Liska  <mliska@suse.cz>
34120         PR ipa/65665
34121         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34122         has computed data structure.
34123         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34125 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
34127         * invoke.texi (inline-unit-growth): Increase growth to 20%
34128         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34130 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
34132         PR target/65647
34133         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
34134         value checking.
34135         (lra_rematerialization_iter): New.
34136         * lra.c (lra): Initialize lra_rematerialization_iter.
34137         Stop updating lra_constraint_new_regno_start after switching of
34138         inheritance and rematerialization.
34139         * lra-remat.c (lra_rematerialization_iter): New.
34140         (lra_remat): Add printing pass iteration.  Do rematerialization
34141         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34143 2015-04-04  Richard Biener  <rguenther@suse.de>
34145         PR tree-optimization/64909
34146         PR tree-optimization/65660
34147         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34148         to take a cost vector for scalar iteration cost.
34149         (vect_get_single_scalar_iteration_cost): Likewise.
34150         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34151         Compute the scalar iteration cost into a cost vector.
34152         (vect_get_known_peeling_cost): Use the scalar cost vector to
34153         account for the cost of the peeled iterations.
34154         (vect_estimate_min_profitable_iters): Likewise.
34155         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34156         Likewise.
34158 2015-04-04  Alan Modra  <amodra@gmail.com>
34160         PR target/65576
34161         PR target/65240
34162         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34163         0.0 constant unless TARGET_VSX.
34164         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34165         alternative.
34167 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34169         PR ipa/65654
34170         * ipa-inline-transform.c (inline_call): Skip sanity check to work
34171         around the ICE
34173 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34175         PR ipa/65655
34176         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34177         speculative indirect edges to avoid ordering issue.
34179 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34181         PR ipa/65076
34182         * ipa-inline.c (edge_badness): Add combined size to the denominator.
34184 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
34186         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34187         TYPE_ARTIFICIAL on the .omp_data* types.
34189 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34191         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34192         instrumentation thunks.
34194 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34196         * config/i386/i386.c (ix86_expand_call): Avoid nested
34197         PARALLEL in returned call value.
34199 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34201         * lto-cgraph.c (input_cgraph_1): Always link instrumented
34202         assembler name with original one.
34204 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34206         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34208 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34210         Revert parts of r216820.
34211         * config/i386/i386.md (movqi_internal): Correct type calculation
34212         for alternatives 3 and 5.
34214 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
34216         PR preprocessor/61977
34217         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34218         predefine __vector/__bool/__pixel macros nor context sensitive
34219         macros for CLK_ASM.
34220         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34222 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
34224         * config/pa/pa.c (pa_output_move_double): Directly handle register
34225         indexed memory operand.  Simplify handling of scaled register indexed
34226         memory operands.
34228 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34230         PR driver/65444
34231         * config/i386/linux-common.h (MPX_SPEC): New.
34232         (CHKP_SPEC): Add MPX_SPEC.
34233         * doc/invoke.texi (-fcheck-pointer-boudns): Document
34234         possible issues with '-z bndplt' support in linker.
34236 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34238         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34239         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34240         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34241         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34242         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34244 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
34246         * config/i386/sync.md (UNSPEC_MOVA): Remove.
34247         (atomic_load<mode>): Change operand 0 predicate to
34248         nonimmediate_operand and fix up the destination when needed.
34249         Use UNSPEC_LDA.
34250         (atomic_loaddi_fpu): Use UNSPEC_LDA.
34251         (atomic_store<mode>): Change operand 1 predicate to
34252         nonimmendate_operand and move the source to register when needed.
34253         Use UNSPEC_STA.
34254         (atomic_store<mode>_1): Use UNSPEC_STA.
34255         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34256         Fix moves from memory operand.  Use UNSPEC_STA.
34258 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34260         * expmed.c (strict_volatile_bitfield_p): Check that the access will
34261         not cross a MODESIZE boundary.
34262         (store_bit_field, extract_bit_field): Added assertions in the
34263         strict volatile bitfields code path.
34265 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34267         PR target/65624
34268         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34269         Increase args array size by one to avoid buffer overflow.
34271 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34273         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34274         split_part.
34275         * ipa-inline.c (edge_badness): Add wrapper penalty.
34276         (sum_callers): Move up.
34277         (inline_small_functions): Set single_caller.
34278         * ipa-inline.h (inline_summary): Add single_caller.
34279         * ipa-split.c (split_function): Set split_part.
34280         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34281         * cgraph.h (cgraph_node): Add split_part.
34283 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
34285         PR target/58945
34286         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34287         Do not split operands 0 and operands 2 to halfmode.
34288         (atomic_compare_and_swap<mode>): Update for
34289         atomic_compare_and_swap<dwi>_doubleword changes.
34291 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34293         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34294         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34295         no caching is done.
34297 2015-03-31  Martin Liska  <mliska@suse.cz>
34299         PR ipa/65557
34300         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34301         has already filled up function summary.
34302         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34304 2015-03-31  Richard Biener  <rguenther@suse.de>
34306         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34307         of types.
34309 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34311         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34312         nested functions.
34313         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34314         (s390_asm_output_function_label): Adapt to new signature of
34315         s390_function_num_hotpatch_hw
34316         Optimise the code generating assembler output.
34317         Add comments to assembler file.
34319 2015-03-31  Richard Biener  <rguenther@suse.de>
34321         PR middle-end/65626
34322         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34323         of the noreturn call so it is last and cleanup_control_flow_bb
34324         can do the CFG part.
34326 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
34328         PR target/65531
34329         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34330         same_comdat_group for external symbols.
34331         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34332         infinite same_comdat_group traversal loop.
34334 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
34336         PR plugins/61176
34337         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34338         automatically to $headers.
34340 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
34342         PR ipa/65610
34343         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34344         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34345         function.
34346         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34347         Use it.
34348         * ipa-prop.c (param_type_may_change_p): Likewise.
34349         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34350         (remove_unused_scope_block_p): Add in_ctor_dtor_block
34351         argument.  Before inlining, preserve
34352         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34353         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
34354         recursive calls.
34355         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34357 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34359         PR ipa/65076
34360         * ipa-inline.c (edge_badness): Base denominator on callee's
34361         grwoth squared.
34363 2015-03-27  Martin Jambor  <mjambor@suse.cz>
34365         PR ipa/65478
34366         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34367         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34368         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34369         node_calling_single_call.
34370         * ipa-cp.c (count_callers): New function.
34371         (set_single_call_flag): Likewise.
34372         (initialize_node_lattices): Count callers and set single_flag_call if
34373         necessary.
34374         (incorporate_penalties): New function.
34375         (good_cloning_opportunity_p): Use it, dump new flags.
34376         (propagate_constants_topo): Set node_within_scc flag if appropriate.
34377         * doc/invoke.texi (ipa-cp-recursion-penalty,
34378         ipa-cp-single-call-pentalty): Document.
34380 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34382         PR ipa/65588
34383         * symtab.c (symtab_node::get_partitioning_class): Register vars
34384         are duplicated.
34385         * varpool.c (symbol_table::output_variables) Do not assemble unefined
34386         decls for non-symbols.
34388 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
34390         PR target/65248
34391         * output.h (default_binds_local_p_2): New.
34392         * varasm.c (default_binds_local_p_2): Renamed to ...
34393         (default_binds_local_p_3): This.  Don't return true on protected
34394         data symbol if protected data may be external.
34395         (default_binds_local_p): Use default_binds_local_p_3.
34396         (default_binds_local_p_1): Likewise.
34397         (default_binds_local_p_2): New.
34398         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34399         default_binds_local_p_2 if TARGET_MACHO is undefined.
34401 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
34403         PR target/65593
34404         * config/i386/i386.c (legitimize_pic_address): If base
34405         is SYMBOL_REF or LABEL_REF using %rip addressing, force
34406         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34408 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34410         PR target/65531
34411         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34412         comdat groups.
34414 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
34416         PR ipa/65600
34417         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34418         of optimized out indirect call.
34419         (redirect_to_unreachable): Always build symbol table node for
34420         BUILT_IN_UNREACHABLE
34422 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
34424         PR target/65407
34425         * ira-costs.c (record_reg_classes): Process all constraint string
34426         containing 0-9.
34428 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
34430         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34431         memory_operand.
34433         PR target/65052
34434         * config/c6x/constraints.md (S3): New constraint.
34435         * config/c6x/c6x.md (real_jump): Use it.
34437 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34439         PR middle-end/65595
34440         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34441         do redirection if the call is not optimized out.
34443 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
34445         PR target/65495
34446         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34447         (fchkp-check-incomplete-type): Add LTO.
34448         (fchkp-zero-input-bounds-for-main): Likewise.
34449         (fchkp-first-field-has-own-bounds): Likewise.
34450         (fchkp-narrow-bounds): Likewise.
34451         (fchkp-narrow-to-innermost-array): Likewise.
34452         (fchkp-use-static-bounds): Likewise.
34453         (fchkp-use-static-const-bounds): Likewise.
34454         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34456 2015-03-27  Marek Polacek  <polacek@redhat.com>
34458         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34460 2015-03-27  Marek Polacek  <polacek@redhat.com>
34462         PR sanitizer/65583
34463         * ubsan.c (ubsan_create_edge): New function.
34464         (instrument_bool_enum_load): Call it.
34465         (instrument_nonnull_arg): Likewise.
34466         (instrument_nonnull_return): Likewise.
34467         (instrument_object_size): Likewise.
34469 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34471         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34472         auto_vec.
34474 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34476         PR lto/65536
34477         * lto-streamer.h (class lto_location_cache): New.
34478         (struct data_in): Add location_cache.
34479         (lto_input_location): Update prototype.
34480         (stream_input_location_now): New.
34481         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34482         pointer to location.
34483         (stream_input_location): Update.
34484         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34485         (warn_odr): Apply location cache before warning.
34486         (lto_input_location): Update prototype.
34487         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34488         Use stream_input_location_now.
34489         * lto-streamer-in.c (lto_location_cache::current_cache): New static
34490         variable.
34491         (lto_location_cache::cmp_loc): New function.
34492         (lto_location_cache::apply_location_cache): New function.
34493         (lto_location_cache::accept_location_cache): New function.
34494         (lto_location_cache::revert_location_cache): New function.
34495         (lto_location_cache::input_location): New function.
34496         (lto_input_location): Do location caching.
34497         (stream_input_location_now): New function.
34498         (input_eh_region, input_struct_function_base): Use
34499         stream_input_location_now.
34500         (lto_data_in_create): use new.
34501         (lto_data_in_delete): Use delete.
34502         * tree-streamer-in.c (unpack_ts_block_value_fields,
34503         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34504         lto_input_ts_exp_tree_pointers): Update for cached location api.
34506 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34508         PR ipa/65076
34509         * passes.def: Add pass_nothrow.
34510         * ipa-pure-const.c: (pass_data_nothrow): New.
34511         (pass_nothrow): New.
34512         (pass_nothrow::execute): New.
34513         (make_pass_nothrow): New.
34514         * tree-pass.h (make_pass_nothrow): Declare.
34516 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34518         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34519         edge to change by speculation resolution or redirection.
34520         (edge_set_predicate): Likewise.
34521         (inline_summary_t::duplicate): Likewise.
34522         (remap_edge_summaries): Likewise.
34524 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34526         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34527         New macros.
34528         (can_inline_edge_p): Relax option matching for always inline functions.
34530 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
34532         PR target/65561
34533         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34534         Check operand 4 and operand 0 for equality.
34535         (avx512f_vextract<shuffletype>32x4_1_maskm):
34536         Check operand 6 and operand 0 for equality.
34537         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34538         for equality.
34539         (vec_extract_hi_<mode>_maskm): Ditto.
34541 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34543         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34544         dead calls back to live.
34545         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34546         cross check to ...
34547         (cgraph_node::verify_node): ... here; verify only callee edges,
34548         not caller.
34549         * cif-code.def (CILK_SPAWN): New code.
34551 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
34553         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34554         (edge_set_predicate): Use it to mark unreachable edges.
34555         (inline_summary_t::duplicate): Remove unnecesary code.
34556         (remap_edge_summaries): Likewise.
34557         (dump_inline_summary): Report contains_cilk_spawn.
34558         (compute_inline_parameters): Compute contains_cilk_spawn.
34559         (inline_read_section, inline_write_summary): Stream
34560         contains_cilk_spawn.
34561         * ipa-inline.c (can_inline_edge_p): Do not touch
34562         DECL_STRUCT_FUNCTION that may not be available;
34563         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34564         remove check for callee_fun->can_throw_non_call_exceptions and
34565         replace it by optimization attribute check; check for flag_exceptions.
34566         * ipa-inline-transform.c (inline_call): Maintain
34567         DECL_FUNCTION_PERSONALITY
34568         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34570 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34572         PR tree-optimization/65551
34573         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34574         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34576 2015-03-26  Richard Biener  <rguenther@suse.de>
34578         PR middle-end/65555
34579         * tree-cfg.c (verify_gimple_call): Do not require a call to
34580         have no LHS if it wasn't recognized as control altering yet.
34582 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
34584         PR tree-optimization/64715
34585         * passes.def: Add another instance of pass_object_sizes before ccp1.
34586         * tree-object-size.c (pass_object_sizes::execute): In
34587         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34588         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34589         __bos result and the computed constant.  Remove redundant
34590         checks, obsoleted by gimple_call_builtin_p test.
34592         * var-tracking.c (variable_tracking_main_1): Don't track
34593         variables for targetm.no_register_allocation targets.
34595 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
34597         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34598         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34600 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
34602         PR target/65569
34603         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34604         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
34605         0.0 is correctly setup.
34606         (extenddftf2_internal): Likewise.
34608 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
34610         PR tree-optimization/65177
34611         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34612         (bb_in_bbs): New.
34613         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
34614         edges not adjacent on the path to the original code.
34616 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
34618         PR bootstrap/65537
34619         * doc/install.texi (Building a native compiler): Document new
34620         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
34621         configuration assumes that the host supports the linker plugin.
34623 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
34625         PR target/65508
34626         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34627         chain for generated call.
34629 2015-03-25  Richard Biener  <rguenther@suse.de>
34631         * passes.c (pass_manager::execute_early_local_passes): Guard
34632         execution of pass_chkp_instrumentation_passes with
34633         flag_check_pointer_bounds.
34634         (pass_chkp_instrumentation_passes::gate): Likewise.
34636 2015-03-25  Martin Liska  <mliska@suse.cz>
34638         PR tree-optimization/65538
34639         * symbol-summary.h (function_summary::~function_summary):
34640         Relese memory for allocated summaries.
34641         (function_summary::release): New function.
34643 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
34645         PR lto/65515
34646         * lto-streamer-out.c (DFS::worklist): New struct.
34647         (DFS::worklist_vec): New data member.
34648         (DFS::next_dfs_num): Remove.
34649         (DFS::DFS): Rewritten using worklist instead of recursion,
34650         using most of code from DFS::DFS_write_tree.
34651         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34652         pass it to DFS_write_tree calls.
34653         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34654         quick initial checks push it into worklist_vec and return.
34656 2015-03-25  Richard Biener  <rguenther@suse.de>
34658         PR middle-end/65519
34659         * genmatch.c (expr::gen_transform): Re-write to avoid
34660         using gimple_build.
34662 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34664         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34666 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
34668         * config/arm/arm.opt (print_tune_info): New option.
34669         * config/arm/arm.c (arm_print_tune_info): New function.
34670         (arm_file_start): Call arm_print_tune_info.
34671         * config/arm/arm-protos.h (struct tune_params): Add comment.
34672         * doc/invoke.texi (@item -mprint-tune-info): New item.
34673         (-mtune): mention it in ARM Option Summary.
34675 2015-03-25  DJ Delorie  <dj@redhat.com>
34677         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34678         correct clause.
34680 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
34681             Martin Liska  <mliska@suse.cz>
34683         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34684         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34685         (sem_item::add_type): New function.
34686         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34687         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34688         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34689         (sem_function::equals_wpa): Fix typo.
34690         * ipa-icf.h (sem_item::add_type): New function.
34691         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34692         order.
34694 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
34696         PR tree-optimization/65533
34697         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34698         with swapped operands, call vect_free_slp_tree on
34699         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34700         vector.
34702 2015-03-24  Richard Biener  <rguenther@suse.de>
34704         PR middle-end/65517
34705         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34706         for fixup if necessary.
34708 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
34710         * doc/extend.texi (Function Attributes): Add @cindex entries
34711         for all attributes and regularize their format.  Delete text
34712         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
34713         information about "eightbit_data", "tiny_data", and "model"
34714         variable attributes to the Variable Attributes section.  Fix
34715         some obvious typos and copy-editing issues.
34716         (Variable Attributes, Type Attributes): Likewise add/fix
34717         @cindex entries for all attributes.
34719 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34721         PR target/65523
34722         * tree-chkp.c (chkp_build_returned_bound): Ignore
34723         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34725 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
34727         PR target/65505
34728         * config/sh/predicates.md (simple_mem_operand,
34729         displacement_mem_operand): Add test for reg.
34730         (short_displacement_mem_operand): Test for displacement_mem_operand
34731         before invoking sh_disp_addr_displacement.
34732         * config/sh/constraints.md (Sdd, Sra): Simplify.
34733         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34734         Remove redundant displacement_mem_operand tests.
34736 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
34738         PR target/65296
34739         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34740         the same -mmcu=MCU more than once.
34742 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
34744         PR bootstrap/65522
34745         * ipa-devirt.c: Remove duplicate demangle.h include.
34747         PR target/65504
34748         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34749         on the pseudo.
34750         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34751         REG_POINTER on *destptr after adjusting it for prologue size.
34753         PR ipa/65521
34754         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34755         ultimate_alias_target ()->order ints instead of
34756         ultimate_alias_target () pointers.
34758 2015-03-23  Richard Biener  <rguenther@suse.de>
34760         PR tree-optimization/65518
34761         * tree-vect-stmts.c (vectorizable_load): Reject single-element
34762         interleaving cases we generate absymal code for.
34764 2015-03-23  Richard Biener  <rguenther@suse.de>
34766         PR tree-optimization/65494
34767         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34768         matches here.
34769         (vect_analyze_slp_instance): But do that here, always and once.
34771 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34773         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34774         adding T or multiplying by T+1 and subracting T.
34776 2015-03-22  Jeff Law  <law@redhat.com>
34778         PR rtl-optimization/64317
34779         * Makefile.in (OBJS): Add gcse-common.c
34780         * gcse.c: Include gcse-common.h
34781         (struct modify_pair_s): Move structure definition to gcse-common.h
34782         (compute_transp): Move function to gcse-common.c.
34783         (canon_list_insert): Similarly.
34784         (record_last_mem_set_info): Break out some code and put it into
34785         gcse-common.c.  Call into the new common code.
34786         (compute_local_properties): Pass additional arguments to compute_transp.
34787         * postreload-gcse.c: Include gcse-common.h and df.h
34788         (modify_mem_list_set, blocks_with_calls): New variables.
34789         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34790         (get_bb_avail_insn): Pass in the expression index too.
34791         (alloc_mem): Allocate memory for the new bitmaps and lists.
34792         (free_mem): Free memory for the new bitmaps and lists.
34793         (insert_expr_in_table): Record a bitmap index for each entry we
34794         add to the table.
34795         (record_last_mem_set_info): Call into common code in gcse-common.c.
34796         (get_bb_avail_insn): If no available insn was found in the requested
34797         BB.  If BB has a single predecessor, see if the expression is
34798         transparent in BB and available in that single predecessor.
34799         (compute_expr_transp): New wrapper for compute_transp.
34800         (eliminate_partially_redundant_load): Pass expression's bitmap_index
34801         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
34802         (gcse_after_reload_main): If there are elements in the hash table,
34803         then compute transparency for all the elements in the hash table.
34804         * gcse-common.h: New file.
34805         * gcse-common.c: New file.
34807 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
34809         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34810         as an adjective.
34811         (System Headers): Likewise.
34812         (Ifdef): Likewise.
34813         (Traditional macros): Likewise.
34814         (Invocation): Likewise.
34815         (Option Index): Likewise.
34816         * doc/cppopts.texi (-M): Likewise.
34817         (-finput-charset): Likewise.
34818         (--help): Likewise.
34819         * doc.invoke.texi (AVR Options): Likewise.
34820         (V850 Options): Likewise.
34822 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
34824         PR ipa/65475
34825         * ipa-devirt.c: Include demangle.h
34826         (odr_type_d): Add field rtti_broken.
34827         (odr_subtypes_equivalent_p): Do not require name to match.
34828         (compare_virtual_tables): Fix typo; if type already has ODR violation,
34829         bypass the tests; be ready for function referneces in vtables that are
34830         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34831         (warn_odr): Give up for nameless types.
34832         (warn_types_mismatch): Report mismatch in mangled names;
34833         report mismatch in anonymous namespaces; look into component types to
34834         give useful error; report when mismatch is dragged in from other ODR
34835         type.
34836         (odr_types_equivalent_p): Match types for being polymorphic; avoid
34837         duplicated diagnostics.
34838         (add_type_duplicate): Reorder checks so more informative ones come
34839         first; fix typo; do not output "the extra base is defined here" when
34840         we did not warn.
34841         (BINFO_N_BASE_BINFOS): Relax sanity check.
34843 2015-03-22  Martin Liska  <mliska@suse.cz>
34844             Jakub Jelinek  <jakub@redhat.com>
34846         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
34847         masks that can potentially include a builtin.
34848         (ix86_add_new_builtins): Introduce fast filter for isa values
34849         that cannot trigger builtin inclusion.
34851 2015-03-22  Martin Liska  <mliska@suse.cz>
34853         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
34854         (sem_item::update_hash_by_local_refs): Likewise.
34855         (sem_variable::get_hash): Empty line is fixed.
34856         (sem_item_optimizer::execute): Include adding of hash references.
34857         (sem_item_optimizer::update_hash_by_addr_refs): New function.
34858         (sem_item_optimizer::build_hash_based_classes): Use local hash.
34859         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
34860         (sem_item::update_hash_by_local_refs): Likewise.
34862 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34864         PR ipa/65502
34865         * ipa-comdats.c (enqueue_references): Walk through thunks.
34866         (ipa_comdats): Likewise.
34867         (set_comdat_group_1): New function.
34869 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34871         PR ipa/65475
34872         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
34873         non-polymorphic
34875 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
34876             Gerald Pfeifer  <gerald@pfeifer.com>
34878         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
34880 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
34881             Sandra Loosemore  <sandra@codesourcery.com>
34883         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
34884         function parameter declaration.
34885         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
34886         Update arguments to nios2_adjust_call_address().
34887         (sibcall_internal): Rename from *sibcall.
34888         (sibcall_value_internal): Rename from *sibcall_value.
34889         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
34890         (nios2_large_got_address): Add target temp reg parameter.
34891         (nios2_got_address): Adjust call to nios2_large_got_address, add
34892         force_reg around it.
34893         (nios2_load_pic_address): Add target temp reg parameter, replace call
34894         to nios2_got_address with corresponding code.
34895         (nios2_legitimize_constant_address): Update call to
34896         nios2_load_pic_address.
34897         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
34898         to use temp reg for PIC loading purposes.
34899         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
34900         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
34901         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
34903 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34905         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
34906         usage of "the @option{...}".
34907         (-Wopenmp-simd): Likewise.
34908         (-fsanitize-recover): Likewise.
34909         (-fsanitize-undefined-trap-on-error): Likewise.
34910         (-flto): Likewise.
34911         (tracer-dynamic-coverage-feedback): Likewise.
34912         (reorder-block-duplicate-feedback): Likewise.
34913         (loop-unroll-jam-size): Likewise.
34914         (-B): Likewise.
34915         (-I-): Likewise.
34916         (-mabs=legacy): Likewise.
34917         (-mupper-regs-df): Likewise.
34918         (-mupper-regs-sf): Likewise.
34919         (-mpointers-to-nested-functions): Likewise.
34921 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34923         * doc/extend.texi (Cilk Plus Builtins): Add markup.
34925 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
34927         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
34928         additional index entries and cross-references.
34929         (-fchkp-check-incomplete-type): Likewise.
34930         (-fchkp-first-field-has-own-bounds): Likewise.
34931         (-fchkp-narrow-to-innermost-array): Likewise.
34932         (-fchkp-use-fast-string-functions): Likewise.
34933         (-fchkp-use-nochk-string-functions): Likewise.
34934         (-fchkp-use-static-const-bounds): Likewise.
34935         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34936         (-fchkp-instrument-marked-only): Likewise.
34937         (-fchkp-use-wrappers): Likewise.
34938         (-static-libmpx): Likewise.
34939         (-static-libmpxwrappers): Likewise.
34940         * doc/extend.texi (bnd_legacy): Likewise.
34941         (bnd_instrument): Likewise.
34942         (bnd_variable_size): Likewise.
34943         (Pointer Bounds Checker builtins): Likewise.
34945 2015-03-21  Tom de Vries  <tom@codesourcery.com>
34947         PR tree-optimization/65458
34948         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
34949         * cgraph.h (cgraph_node): Add parallelized_function field.
34950         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
34951         (input_overwrite_node): Read parallelized_function field.
34952         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
34953         parallelized_function on cgraph_node for child_fn.
34954         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
34955         Remove include of gt-tree-parloops.h.
34956         (parallelized_functions): Remove static variable.
34957         (parallelized_function_p): Rewrite using parallelized_function field of
34958         cgraph_node.
34959         (create_loop_fn): Remove adding to parallelized_functions.
34960         * Makefile.in (GTFILES): Remove tree-parloops.c
34962 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
34964         PR rtl-optimization/64366
34965         * lra.c (lra_update_insn_regno_info): Consider regs in
34966         CALL_INSN_FUNCTION_USAGE memory.
34968 2015-03-20  Richard Biener  <rguenther@suse.de>
34970         PR middle-end/64715
34971         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
34972         for type comparison and gcc_checking_assert.
34973         (chrec_fold_plus_poly_poly): Likewise.
34974         (chrec_fold_multiply_poly_poly): Likewise.
34975         (chrec_convert_1): Likewise.
34976         * gimplify.c (gimplify_expr): Remove premature folding of
34977         &X + CST to &MEM[&X, CST].
34979 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
34981         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
34982         already is final.
34983         (ipa_inline): Recompute inline_failed codes.
34984         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34985         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
34986         CIF_FINAL_ERROR.
34988 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
34990         PR rtl-optimization/60851
34991         * recog.c (constrain_operands): Accept a pseudo register before reload
34992         for LRA enabled targets.
34994 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
34996         PR target/65240
34997         * config/rs6000/predicates.md (easy_fp_constant): Remove special
34998         -ffast-math handling that kept non-0 constants live in the RTL
34999         until reload.  Remove logic testing the number of instructions it
35000         took to create a constant in a GPR that was never used, due to a
35001         test for soft-float earlier.
35002         (memory_fp_constant): Delete, no longer used.
35004         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35005         alternatives for loading non-0 constants into GPRs for hard
35006         floating point that is no longer needed due to changes in
35007         easy_fp_constant.  Add support for loading 0.0 into GPRs.
35008         (mov<mode>_hardfloat32): Likewise.
35009         (mov<mode>_hardfloat64): Likewise.
35010         (mov<mode>_64bit_dm): Likewise.
35011         (movtd_64bit_nodm): Likewise.
35012         (pre-reload move FP constant define_split): Delete define_split,
35013         since it is no longer used.
35014         (extenddftf2_internal): Remove GHF constraints that are not valid
35015         for extenddftf2.
35017 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
35019         PR rtl-optimization/63491
35020         * lra-constraints.c (check_and_process_move): Use src instead of
35021         sreg.  Remove some dead code.
35023 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
35025         PR ipa/65380
35026         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35027         (sem_variable::merge): Likewise.
35029 2015-03-19  Martin Liska  <mliska@suse.cz>
35031         PR ipa/65465
35032         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35033         all fields of cgraph_thunk_info.
35035 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35037         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35038         clone instrumented thunks.
35040 2015-03-19  Richard Biener  <rguenther@suse.de>
35042         Revert
35043         2015-03-10  Richard Biener  <rguenther@suse.de>
35045         PR middle-end/63155
35046         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35047         * tree-ssa-coalesce.c: Include timevar.h.
35048         (attempt_coalesce): Handle graph being NULL.
35049         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35050         Split out abnormal coalescing to ...
35051         (perform_abnormal_coalescing): ... this function.
35052         (coalesce_ssa_name): Perform abnormal coalescing without computing
35053         live/conflict.
35054         (verify_ssa_coalescing_worker): New function.
35055         (verify_ssa_coalescing): Likewise.
35057 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35058             Jakub Jelinek  <jakub@redhat.com>
35060         PR sanitizer/65400
35061         * tsan.c (instrument_gimple): Clear tail call flag on
35062         calls.
35064 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
35066         PR sanitizer/65400
35067         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35068         call in the return bb.
35069         (find_split_points): Add RETURN_BB argument, don't call
35070         find_return_bb.
35071         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
35072         if true append TSAN_FUNC_EXIT internal call after the call to
35073         the split off function.
35074         (execute_split_functions): Call find_return_bb here.
35075         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35076         Adjust find_split_points and split_function calls.
35078 2015-03-18  DJ Delorie  <dj@redhat.com>
35080         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35081         (iorqi3_virt): Likewise.
35083 2015-03-18  Tom de Vries  <tom@codesourcery.com>
35085         * tree-parloops.c (parallelize_loops): Make static.
35086         * tree-parloops.h (parallelize_loops): Remove extern declaration.
35088 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
35090         PR middle-end/64491
35091         Revert:
35092         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
35094         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35095         condition would be removed due to undefined behaviour.
35097 2015-03-18  Martin Liska  <mliska@suse.cz>
35099         PR ipa/65432
35100         * cgraph.c (cgraph_node::get_create): Remove unnecessary
35101         xstrdup_for_dump wrapper.
35102         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35103         sem_item::name.
35104         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35105         with xstrdup_for_dump.
35106         (sem_variable::equals): Likewise.
35107         (sem_item_optimizer::read_section): Use symtab_node::name instead of
35108         sem_item::name.
35109         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35110         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35111         symtab_node::asm_name with xstrdup_for_dump.
35112         (congruence_class::dump): Use symtab_node::name instead of
35113         sem_item::name.
35114         * ipa-icf.h (symtab_node::name): Remove.
35115         (symtab_node::asm_name): Likewise.
35117 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35119         PR tree-optimization/65450
35120         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35121         function.
35122         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35123         it instead of duplicate_ssa_name_ptr_info.
35125         PR target/65222
35126         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35128 2015-03-18  Richard Biener  <rguenther@suse.de>
35130         * tree-data-ref.h (struct access_matrix): Remove.
35131         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35132         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35133         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35134         (am_vector_index_for_loop): Likewise.
35135         (struct data_reference): Remove access_matrix member.
35136         (DR_ACCESS_MATRIX): Remove.
35137         (lambda_vector_new): Add comment.
35138         (lambda_matrix_new): Use XOBNEWVEC.
35140 2015-03-18  Richard Biener  <rguenther@suse.de>
35142         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35143         (pass_ch::execute): Cleanup the CFG only if we did sth.
35144         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35146 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35148         * expmed.c (synth_mult): Use std::swap instead of manually
35149         swapping algorithms.
35151 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35153         PR target/65078
35154         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35156 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
35158         PR target/65296
35159         * config/avr/avr.opt (-nodevicelib): New option.
35160         * doc/invoke.texi (AVR Options): Document it.
35161         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35162         libgcc.a, libc.a, libm.a.
35163         * config/avr/specs.h: Same.
35164         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35165         which don't (directly) depend on the device.  Print more help.
35166         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35167         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35168         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35169         case of an error.
35170         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35171         for specs file name.
35172         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35173         * config/avr/avr-mcus.def: Adjust initializers and comments.
35175 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
35177         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35178         DECL_ONE_ONLY to check if decl is one only.
35179         * ipa-split.c (consider_split): Limit splitt of one only functions.
35181 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35183         PR tree-optimization/65427
35184         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35185         functions.
35186         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35188 2015-03-16  Marek Polacek  <polacek@redhat.com>
35190         * cgraph.h (add_new_static_var): Remove declaration.
35191         * varpool.c (add_new_static_var): Remove function.
35193 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35195         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35196         instead of vec<tree> * with vec_alloc and release for args.
35197         Adjust all users.
35199         PR middle-end/65431
35200         * omp-low.c (delete_omp_context): Only splay_tree_delete
35201         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35202         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
35204 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35206         PR sanitizer/64820
35207         * cfgexpand.c (align_base): New function.
35208         (alloc_stack_frame_space): Call it.
35209         (expand_stack_vars): Align prev_frame to be sure
35210         data->asan_vec elements aligned properly.
35212 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
35214         PR middle-end/65409
35215         * expr.c (store_field): Do not do a direct block copy if the source is
35216         a PARALLEL with BLKmode.
35218 2015-03-16  Tom de Vries  <tom@codesourcery.com>
35220         PR middle-end/65414
35221         Revert:
35222         2015-03-12  Tom de Vries  <tom@codesourcery.com>
35224         PR rtl-optimization/64895
35225         * lra-lives.c (check_pseudos_live_through_calls): Use
35226         actual_call_used_reg_set instead of call_used_reg_set, if available.
35228 2015-03-16  Alan Modra  <amodra@gmail.com>
35230         PR target/63150
35231         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35232         Modify Z->r bswapdi splitter to use dest in place of scratch.
35233         In r->Z and Z->r bswapdi splitter rename word_high, word_low
35234         to word1, word2 and rearrange logic to suit.
35235         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35236         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
35237         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35238         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
35239         early clobber.
35241 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
35243         PR tree-optimization/65369
35244         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35245         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35246         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35248         PR tree-optimization/65418
35249         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35250         are casts in the first PLUS_EXPR operand, ensure tbias and
35251         *totallowp are in the inner type.
35253         PR rtl-optimization/65401
35254         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35255         argument.  If true, adjust_address_nv of x with big-endian
35256         correction for the mode widening to GET_MODE (y).
35257         (make_field_assignment): Don't do MEM mode widening here.
35258         Use MEM_P instead of GET_CODE == MEM.
35260 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
35262         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35263         the external decls.
35265 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35267         PR target/64600
35268         * config/arm/arm.c (arm_gen_constant, AND case): Use
35269         ARM_SIGN_EXTEND when constructing AND mask.
35271 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35273         * graph.c (print_graph_cfg): Make function names visible and append
35274         parenthesis to it.  Also make groups of basic blocks belonging to the
35275         same function visible.
35277 2015-03-12  Richard Biener  <rguenther@suse.de>
35279         PR middle-end/44563
35280         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35281         to avoid quadratic behavior with inline expansion splitting blocks.
35282         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35283         with the successor if the predecessor will be merged with it.
35284         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35285         entry block with its successor.
35287 2015-03-13  Richard Biener  <rguenther@suse.de>
35289         PR middle-end/44563
35290         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35291         (cleanup_tree_cfg_1): Do not call it.
35292         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35293         (fixup_noreturn_call): Mark the stmt as control altering.
35294         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35295         here.
35296         (pass_data_fixup_cfg): Produce a dump file.
35297         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35298         (need_noreturn_fixup): New global.
35299         (pass_dominator::execute): Fixup queued noreturn calls.
35300         (optimize_stmt): Queue calls that became noreturn for fixup.
35301         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35302         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35303         (el_to_fixup): New global.
35304         (eliminate_dom_walker::before_dom_childre): Queue calls that
35305         became noreturn for fixup.
35306         (eliminate): Fixup queued noreturn calls.
35307         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35308         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35309         (substitute_and_fold_dom_walker::before_dom_children): Queue
35310         alls that became noreturn for fixup.
35311         (substitute_and_fold): Fixup queued noreturn calls.
35313 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
35315         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35316         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35317         are building; for methods check ODR type of class they belong to if
35318         they may lead to a polymorphic call.
35319         (sem_function::compare_polymorphic_p): Be bit smarter about testing
35320         when function may lead to a polymorphic call.
35321         (sem_function::compare_type_list): Remove.
35322         (sem_variable::equals): Update use of compatible_types_p.
35323         (sem_variable::parse_tree_refs): Remove.
35324         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35325         cdtor.
35326         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35327         matching here.
35328         (func_checker::compatible_polymorphic_types_p): Break out from ...
35329         (unc_checker::compatible_types_p): ... here.
35330         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35331         Declare.
35332         (unc_checker::compatible_types_p): Update.
35333         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35334         Remove.
35336 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35338         PR rtl-optimization/65235
35339         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35340         When first element of vec_concat is const_int, calculate its size
35341         using second element.
35343 2015-03-12  Richard Biener  <rguenther@suse.de>
35345         PR middle-end/65270
35346         * fold-const.c (operand_equal_p): Fix ordering of resetting
35347         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35349 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35351         * config/s390/s390.c (s390_reorg): Move code to output nops after label
35352         to s390_reorg ().
35353         (s390_asm_output_function_label): Likewise.
35354         * config/s390/s390.c (s390_asm_output_function_label):
35355         Fix function label alignment with -mhtopatch.
35356         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35357         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35358         ("nop_2_byte"): New define_insn.
35359         ("nop_4_byte"): Likewise.
35360         ("nop_6_byte"): Likewise.
35361         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35362         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35364 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35366         PR target/65103
35367         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35368         register.
35370 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
35372         PR target/65044
35373         * toplev.c (process_options): Restrict Pointer Bounds Checker
35374         usage with Address Sanitizer.
35376 2015-03-12  Richard Biener  <rguenther@suse.de>
35378         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35379         to split on.
35380         * omp-low.c (expand_omp_taskreg): Split block before removing
35381         the stmt.
35382         (expand_omp_target): Likewise.
35383         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35384         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35385         stmt to split_block.
35387 2015-03-12  Tom de Vries  <tom@codesourcery.com>
35389         PR rtl-optimization/64895
35390         * lra-lives.c (check_pseudos_live_through_calls): Use
35391         actual_call_used_reg_set instead of call_used_reg_set, if available.
35393 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35395         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35396         (cgraph_node::remove): Likewise.
35397         (cgraph_node::get_untransformed_body): Likewise.
35398         * varpool.c (varpool_node::remove): Likewise.
35399         (varpool_node::get_constructor): Add sanity check.
35401 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
35403         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35404         old GCC versions.
35405         (-fabi-compat-version): Likewise.
35406         (-ffriend-injection): Likewise.
35407         (-Wdeclaration-after-statement): Likewise.
35408         (-fomit-frame-pointer): Likewise.
35409         (-ftree-coalesce-inlined-vars): Likewise.
35410         (-fvisibility=): Likewise.
35411         * doc/extend.texi (Typeof): Likewise.
35412         (Zero Length): Likewise.
35413         (Escaped Newlines): Likewise.
35414         (Compound Literals): Likewise.
35415         (Function Attributes): Likewise.
35416         (Label Attributes): Likewise.
35417         (Type Attributes): Likewise.
35418         (Function Names): Likewise.
35419         (Other Builtins): Likewise.
35420         (Function Specific Option Pragmas): Likewise.
35421         (C++ Interface): Likewise.
35423 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
35425         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35427 2015-03-11  Marek Polacek  <polacek@redhat.com>
35429         PR tree-optimization/65388
35430         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35432 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35434         PR target/65296
35435         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35436         * configure: Regenerate.
35437         * config.in: Regenerate.
35438         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35439         [-mn-flash]: Document it.
35440         [__AVR_ARCH__]: Document avrtiny.
35442         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35443         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35444         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35446 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35448         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35450 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35452         PR target/65242
35453         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35454         allow reloads of PLUS in floating point/VSX registers.
35456 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
35458         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35459         crypto_sha256_fast.
35460         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35462 2015-03-11  Richard Biener  <rguenther@suse.de>
35464         PR tree-optimization/65310
35465         * tree-sra.c (build_ref_for_offset): Also preserve larger
35466         alignment.
35468 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
35470         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35472 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35474         PR target/65368
35475         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35476         new define_expand.
35477         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35479 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35481         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35482         (sem_function::equals_wpa): ... here.
35484 2015-03-10  Marek Polacek  <polacek@redhat.com>
35485             Jakub Jelinek  <jakub@redhat.com>
35487         PR sanitizer/65367
35488         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35489         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
35490         separately.
35492 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35494         PR target/65286
35495         * config/rs6000/t-linux: For powerpc64* target set
35496         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35498 2015-03-10  Richard Biener  <rguenther@suse.de>
35500         PR middle-end/44563
35501         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35502         for redirect_all_calls.
35504 2015-03-10  Marek Polacek  <polacek@redhat.com>
35506         * gdbinit.in (pcfun): Define and document.
35508 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
35510         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35511         of libgomp-plugin.h.
35512         (find_target_compiler): Support a case when the path to gcc is
35513         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35514         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35515         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35516         libgomp-plugin.h.
35517         (main): Use GCC_INSTALL_NAME as target_driver_name.
35518         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35519         define.
35520         (mkoffload.o): Remove obsolete include path and defines.
35521         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35523 2015-03-10  Richard Biener  <rguenther@suse.de>
35525         PR middle-end/63155
35526         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35527         * tree-ssa-coalesce.c: Include timevar.h.
35528         (attempt_coalesce): Handle graph being NULL.
35529         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35530         Split out abnormal coalescing to ...
35531         (perform_abnormal_coalescing): ... this function.
35532         (coalesce_ssa_name): Perform abnormal coalescing without computing
35533         live/conflict.
35534         (verify_ssa_coalescing_worker): New function.
35535         (verify_ssa_coalescing): Likewise.
35537 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
35539         PR target/65296
35540         * config.gcc (extra_options) [avr]: Remove.
35541         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35542         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35543         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35545         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35546         (-mmcu=): Add Var and MissingArgError properties.
35547         (-march=): Remove.
35548         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35549         * config/avr/t-multilib: Regenerate.
35550         * config/avr/specs.h: New file.
35551         * config/avr/driver-avr.c: New file.
35552         * config/avr/genopt.sh: Remove file.
35553         * config/avr/avr-tables.opt: Remove file.
35554         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35555         * config/avr/avr-c.c: Same.
35556         * avr-arch.h: Same.
35557         (avr_current_device): Remove proto.
35558         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35559         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35560         (EXTRA_SPEC_FUNCTIONS): Define.
35561         (avr_devicespecs_file): New specs function proto.
35562         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35563         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35564         (avr_current_device): Remove definition and usage.
35565         (avr_set_core_architecture): New static function.
35566         (avr_option_override): Use it.
35567         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35568         (mcu_name): New static array.
35569         (comparator, avr_archs_str, avr_mcus_str): New static functions.
35570         (avr_inform_devices, avr_inform_core_architectures): New functions.
35571         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35572         (avrlibc.h) [WITH_AVRLIBC]: Include.
35573         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35574         (print_mcu): Rewrite from scratch.
35575         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35576         Forward to avr-specific specs defined in device-specs file.
35577         * config/avr/t-avr (driver-avr.o): New rule.
35578         (avr-devices.o): Depend on avr-arch.h.
35579         (avr-mcus): No more depend on avr-tables.opt.
35580         (avr-tables.opt): Remove rule.
35581         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35583 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35585         * c-family/c.opt (fchkp-use-wrappers): New.
35586         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35587         (chkp_wrap_function): New.
35588         (chkp_build_instrumented_fndecl): Support wrapped
35589         functions.
35590         * doc/invoke.texi (-fcheck-pointer-bounds): New.
35591         (-fchkp-check-incomplete-type): New.
35592         (-fchkp-first-field-has-own-bounds): New.
35593         (-fchkp-narrow-bounds): New.
35594         (-fchkp-narrow-to-innermost-array): New.
35595         (-fchkp-optimize): New.
35596         (-fchkp-use-fast-string-functions): New.
35597         (-fchkp-use-nochk-string-functions): New.
35598         (-fchkp-use-static-bounds): New.
35599         (-fchkp-use-static-const-bounds): New.
35600         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35601         (-fchkp-check-read): New.
35602         (-fchkp-check-write): New.
35603         (-fchkp-store-bounds): New.
35604         (-fchkp-instrument-calls): New.
35605         (-fchkp-instrument-marked-only): New.
35606         (-fchkp-use-wrappers): New.
35607         (-static-libmpx): New.
35608         (-static-libmpxwrappers): New.
35610 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35612         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35613         (CHKP_SPEC): Add wrappers library.
35614         * c-family/c.opt (static-libmpxwrappers): New.
35616 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
35618         * config/i386/linux-common.h (LIBMPX_LIBS): New.
35619         (LIBMPX_SPEC): New.
35620         (CHKP_SPEC): New.
35621         * gcc.c (CHKP_SPEC): New.
35622         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35623         * c-family/c.opt (static-libmpx): New.
35625 2015-03-10  Richard Biener  <rguenther@suse.de>
35627         PR middle-end/44563
35628         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35629         for compare_type.
35630         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35631         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35632         (cgraph_add_edge_to_call_site_hash): Likewise.
35633         (cgraph_node::get_edge): Likewise.
35634         (cgraph_edge::set_call_stmt): Likewise.
35635         (cgraph_edge::remove_caller): Likewise.
35637 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
35639         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35640         (callee_saved_gpr_regs_size): ... this.
35641         (callee_saved_regs_first_regno): Rename to ...
35642         (callee_saved_first_gpr_regno): ... this.
35643         (callee_saved_regs_last_regno) Rename to ...
35644         (callee_saved_last_gpr_regno): ... this.
35645         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35646         variables.
35647         (nds32_initial_elimination_offset): Likewise.
35648         (nds32_expand_prologue): Likewise.
35649         (nds32_expand_epilogue): Likewise.
35650         (nds32_expand_prologue_v3push): Likewise.
35651         (nds32_expand_epilogue_v3pop): Likewise.
35652         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35653         Adjust renamed variables.
35654         (nds32_output_stack_pop): Likewise.
35656 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35658         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35659         code in comment.
35661 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
35663         PR rtl-optimization/65321
35664         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35665         than shift mode.
35666         * var-tracking.c (use_narrower_mode): Likewise.
35668 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
35670         PR tree-optimization/65355
35671         * varasm.c (notice_global_symbol): Do not produce RTL.
35672         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35673         anchor.
35674         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35675         check for section anchors.
35677 2015-03-10  Alan Modra  <amodra@gmail.com>
35679         PR target/65286
35680         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35681         to be single-arch by default.  Set cpu_is_64bit for powerpc64
35682         given --with-cpu=native.
35683         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35684         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35685         and powerpc64le.
35686         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35687         rs6000_isa_flags rather than TARGET_64BIT.
35689 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
35690             Kaz Kojima  <kkojima@gcc.gnu.org>
35692         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35694 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
35696         PR lto/65361
35697         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35698         on a TREE_BINFO, instead use BINFO_TYPE.
35700 2015-03-09  Richard Biener  <rguenther@suse.de>
35702         PR middle-end/65270
35703         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35704         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35705         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
35706         of that.  When comparing dereferences compare alignment.
35707         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35709 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35711         * ipa-inline-analysis.c (check_callers): Check
35712         node->can_remove_if_no_direct_calls_and_refs_p.
35713         (growth_likely_positive): Reorganize to call
35714         can_remove_if_no_direct_calls_p later.
35715         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35716         will_be_removed_from_program_if_no_direct_calls_p): Add
35717         will_inline parameter.
35718         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35719         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35720         Handle inliner case correctly.
35722 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35724         PR tree-optimization/63743
35725         * cfgexpand.c (reorder_operands): Also reorder if only second operand
35726         had its definition forwarded by TER.
35728 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
35730         PR lto/65316
35731         * ipa-utils.h (types_odr_comparable): Add strict argument.
35732         * ipa-devirt.c: Fix whitespace;
35733         (odr_hasher): Remove.
35734         (odr_name_hasher, odr_vtable_hasher): New hashers.
35735         (can_be_name_hashed_p): New predicate.
35736         (hash_type_name): remove.
35737         (hash_odr_name): New.
35738         (odr_name_hasher::hash): new.
35739         (can_be_vtable_hashed_p): New.
35740         (hash_odr_vtable): New.
35741         (odr_vtable_hasher::hash): New.
35742         (types_same_for_odr): Add strict parameter.
35743         (types_odr_comparable): Likewise.
35744         (odr_name_hasher::equal): New.
35745         (odr_vtable_hasher::equal): New.
35746         (odr_name_hasher::remove): New.
35747         (odr_hash_type): Change to hash_table<odr_name_hasher>.
35748         (odr_vtable_hash_type): New.
35749         (odr_vtable_hash): New.
35750         (odr_subtypes_equivalent_p): Do strict comparsion.
35751         (add_type_duplicate): Merge type names; cleanup; avoid type
35752         duplicates.
35753         (register_odr_type): Initialize vtable hash.
35754         (build_type_inheritance_graph): Likewise
35755         (get_odr_type): Reorg to use two hashes.
35756         (dump_possible_polymorphic_call_targets): Move sanity check after debug
35757         output.
35758         (ipa_devirt): Dump type_inheritance_graph.
35759         (types_same_for_odr): Add strict mode.
35761 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35763         PR ipa/65334
35764         * cgraph.h (symtab_node): Add definition_alignment,
35765         can_increase_alignment_p and increase_alignment.
35766         * symtab.c (symtab_node::can_increase_alignment_p,
35767         increase_alignment_1, symtab_node::increase_alignment,
35768         symtab_node::definition_alignment): New.
35769         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35770         can_increase_alignment_p.
35771         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35772         * tree-vect-stmts.c (ensure_base_align): Likewise.
35773         * varasm.c (function_section_1): Use definition_alignment.
35774         (assemble_start_function): Likewise.
35775         (emit_local): likewise.
35776         (build_constant_desc): Likewsie.
35777         (output_constant_def_contents): Likewise.
35778         (place_block_symbol): Likewise.
35779         (output_object_block): Likewise.
35781 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35783         PR ipa/65316
35784         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35785         when outputting debug.
35787 2015-03-07  Marek Polacek  <polacek@redhat.com>
35788             Martin Uecker  <uecker@eecs.berkeley.edu>
35790         PR sanitizer/65280
35791         * doc/invoke.texi: Update description of -fsanitize=bounds.
35793 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
35795         * tree-ssa-phiopt.c (neg_replacement): Remove.
35796         (tree_ssa_phiopt_worker): Remove negate optimization.
35798 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35800         PR ipa/65302
35801         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35803 2015-03-06  Richard Biener  <rguenther@suse.de>
35805         PR middle-end/64928
35806         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35807         and liveout_obstack members.
35808         (calculate_live_on_exit): Remove.
35809         (calculate_live_ranges): Change declaration.
35810         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35811         (new_tree_live_info): Adjust.
35812         (calculate_live_ranges): Delete livein when not wanted.
35813         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35814         Deal with partly deleted live info.
35815         (loe_visit_block): Remove temporary bitmap by using
35816         bitmap_ior_and_compl_into.
35817         (live_worklist): Adjust accordingly.
35818         (calculate_live_on_exit): Make static.
35819         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35820         we do not need livein.
35822 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
35824         * real.c (real_from_string): Fix typo in assertion.
35826 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
35828         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35829         the patch.
35831 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
35833         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35835 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
35837         PR target/64342
35838         * lra-assigns.c (find_hard_regno_for): Rename to
35839         find_hard_regno_for_1.  Add a new parameter.
35840         (find_hard_regno_for): New function using find_hard_regno_for_1.
35842 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35844         PR rtl-optimization/65067
35845         * expmed.c (store_bit_field, extract_bit_field): Reworked the
35846         strict volatile bitfield handling.
35848 2015-03-05  Martin Liska  <mliska@suse.cz>
35850         PR ipa/65318
35851         * ipa-icf.c (sem_variable::equals): Compare variables types.
35853 2015-03-05  Richard Henderson  <rth@redhat.com>
35855         PR target/65121
35856         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
35857         correctly check weak symbol binding.
35859 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
35861         PR middle-end/65315
35862         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
35863         needed alignment.
35865 2015-03-05  Martin Liska  <mliska@suse.cz>
35867         * ipa-inline.c (inline_small_functions): Set default value to
35868         prevent warning during bootstrap.
35869         * tree.h: Add pragma guard that ignores false positives during
35870         bootstrap.
35872 2015-03-05  Richard Biener  <rguenther@suse.de>
35874         PR tree-optimization/65310
35875         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
35876         Properly preserve alignment of the base of the access.
35878 2015-03-05  Richard Biener  <rguenther@suse.de>
35880         PR ipa/65270
35881         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
35882         Compare dependence info.
35884 2015-03-05  Richard Biener  <rguenther@suse.de>
35886         PR middle-end/65233
35887         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
35888         tree-into-ssa.h.
35889         (walk_ssa_copies): Revert last chage.  Instead do not walk
35890         SSA names registered for SSA update.
35892 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35894         PR ipa/65270
35895         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
35896         vtable references for their containing type.
35897         (sem_function::equals_wpa): Compare TYPE_RESTRICT
35898         and type attributes.
35900 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
35902         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
35903         before negating it.
35904         * stor-layout.c (finalize_record_size): Revert latest change.
35906 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
35908         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
35910 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35912         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
35913         for correct comdat handling.
35914         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35915         Likewise.
35916         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
35917         (used_from_object_file_p_worker): Remove.
35918         (cgraph_node::only_called_directly_or_alised): Add
35919         used_from_object_file_p.
35920         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
35921         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
35922         can_remove_if_no_direct_calls_and_refs_p.
35924 2015-03-04  Nick Clifton  <nickc@redhat.com>
35926         * config/rl78/rl78.h (enum reg_class): Remove real registers from
35927         General register class.
35928         * config/rl78/rl78-real.md: Replace general register constraints
35929         with real+virtual register constraints.
35931 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
35933         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
35934         from checking for -mhtm option.
35936 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
35938         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
35939         (struct ipa_sra_check_caller_data): Add has_thunk field.
35940         (ipa_sra_check_caller): Check for thunk.
35941         (ipa_sra_preliminary_function_checks): Give up on function with
35942         thunks.
35943         (ipa_early_sra): Use call_for_symbol_and_aliases.
35945 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
35947         PR target/65249
35948         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
35949         called for __stack_chk_guard symbol.
35951 2015-03-03  DJ Delorie  <dj@redhat.com>
35953         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
35954         inc/dec.
35955         (*addhi3_real): Likewise.
35956         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
35957         pattern to match incrementing memory.
35958         * config/rl78/predicates.md (rl78_1_2_operand): New.
35959         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
35960         it's the same and only mem.
35961         (rl78_alloc_physical_registers_op2): If there's effectively only
35962         one MEM, transcode it into HL.
35963         (rl78_far_p): Reject addresses that aren't legitimate.
35965 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35967         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
35968         negating it.
35970         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
35972 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
35974         Implement call0 ABI for xtensa
35975         * config/xtensa/constraints.md ("a" constraint): Include stack
35976         pointer in case of call0 ABI.
35977         ("q" constraint): Make empty in case of call0 ABI.
35978         ("D" constraint): Include stack pointer in case of call0 ABI.
35979         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
35980         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
35981         prototypes.
35982         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
35983         variable.
35984         (xtensa_regno_to_class): Make it a local variable in the
35985         function xtensa_regno_to_class.
35986         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
35987         macro, function prototype and implementation.
35988         (reg_nonleaf_alloc_order): Make it a local variable in the
35989         function order_regs_for_local_alloc.
35990         (xtensa_conditional_register_usage): New function.
35991         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
35992         (xtensa_valid_move): Allow direct moves to stack pointer
35993         register in call0 ABI.
35994         (xtensa_setup_frame_addresses): Only spill register windows in
35995         windowed ABI.
35996         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
35997         call0 ABI respectively.
35998         (xtensa_function_arg_1): Only mark a7 register for copying in
35999         windowed ABI.
36000         (xtensa_call_save_reg): New function.
36001         (compute_frame_size): Add space for callee saved register
36002         storage to the frame size in call0 ABI.
36003         (xtensa_expand_prologue): Generate code to set up stack frame
36004         and save callee-saved registers in call0 ABI.
36005         (xtensa_expand_epilogue): New function.
36006         (xtensa_set_return_address): New function.
36007         (xtensa_return_addr): Calculate return address in call0 ABI.
36008         (xtensa_builtin_saveregs): Only mark a7 register for copying and
36009         emit copying code in windowed ABI.
36010         (order_regs_for_local_alloc): Add preferred register allocation
36011         order for non-leaf function in call0 ABI.
36012         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36013         (xtensa_asm_trampoline_template): Add trampoline generation for
36014         call0 ABI.
36015         (xtensa_trampoline_init): Add trampoline initialization for
36016         call0 ABI.
36017         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36018         functions.
36019         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36020         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36021         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36022         ABI call-used registers.
36023         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36024         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36025         call0 ABI.
36026         (REG_CLASS_CONTENTS): Include all registers into the preferred
36027         reload registers set, adjust the set in the
36028         xtensa_conditional_register_usage.
36029         (xtensa_regno_to_class): Drop variable declaration.
36030         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36031         function.
36032         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36033         respectively.
36034         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36035         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36036         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36037         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36038         location in call0 ABI.
36039         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36040         stack adjustment size when handling exception.
36041         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36042         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36043         definitions.
36044         ("return" pattern): Generate ret.n/ret in call0 ABI.
36045         ("epilogue" pattern): Expand epilogue.
36046         ("nonlocal_goto" pattern): Use default in call0 ABI.
36047         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36048         emit eh_set_a0_* depending on ABI.
36049         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36050         ("eh_set_a0_call0", "blockage"): New patterns.
36052 2015-03-03  Martin Liska  <mliska@suse.cz>
36054         PR ipa/65287
36055         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36057 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
36059         PR 65138/target
36060         * config/rs6000/rs6000-tables.opt: Regenerate table.
36062 2015-03-03  Renlin Li  <renlin.li@arm.com>
36064         * doc/md.texi (@item ^): Change ? into ^.
36066 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
36068         * doc/tm.texi: Regenerated.
36070 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36072         * builtins.c (expand_builtin_return_addr): Add
36073         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36074         surrounding #ifdef.
36075         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36076         definition to 1.
36077         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36078         Likewise.
36079         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36080         undefined.
36081         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36082         paragraph.
36084 2015-03-03  Martin Jambor  <mjambor@suse.cz>
36085             Eric Botcazou  <ebotcazou@adacore.com>
36087         * tree-sra.c (ipa_sra_check_caller_data): New type.
36088         (has_caller_p): Removed.
36089         (ipa_sra_check_caller): New function.
36090         (ipa_sra_preliminary_function_checks): Use it.
36092 2015-03-03  Martin Liska  <mliska@suse.cz>
36094         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36095         instead of if branch.
36097 2015-03-03  Martin Liska  <mliska@suse.cz>
36099         PR ipa/65282
36100         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36102 2015-03-23  Jeff Law  <law@redhat.com>
36104         PR tree-optimization/65241
36105         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36106         hash table if INSERT is true.
36108 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36110         PR target/65296
36111         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36113 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36115         PR target/64331
36116         * config/avr/avr.c (context.h, tree-pass.h): Include them.
36117         (avr_pass_data_recompute_notes): New static variable.
36118         (avr_pass_recompute_notes): New class.
36119         (avr_register_passes): New static function.
36120         (avr_option_override): Call it.
36122 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36124         Fix various problems with specs file generation.
36126         PR target/65296
36127         * config.gcc (extra_gcc_objs) [avr]: Remove.
36128         * config/avr/driver-avr.c: Remove file.
36129         * config/avr/t-avr (driver-avr.o): Remove rule.
36130         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36131         INCLUDES to build.  Depend on TM_H.
36132         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
36133         build warnings.  Fix non-matching types and non-existing %-codes.
36134         (tm.h): Include.
36135         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36136         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36137         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36138         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36139         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36140         (LIBGCC_SPEC): Remove definitions.
36142 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36144         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36145         to create a register in testing mode.
36147 2015-03-03  Martin Liska  <mliska@suse.cz>
36148             Jan Hubicka  <hubicka@ucw.cz>
36150         PR ipa/65263
36151         * cgraph.c (cgraph_node::has_thunk_p): New function.
36152         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36153         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36154         (sem_function::merge): Assert is changed.
36156 2015-03-03  Martin Liska  <mliska@suse.cz>
36157             Martin Jambor  <mjambor@suse.cz>
36159         PR ipa/65087
36160         * ipa-icf.c (sem_item_optimizer::execute): Change function
36161         return value to boolean.
36162         (sem_item_optimizer::merge_classes): Likewise.
36163         (ipa_icf_driver): Return TODO_remove_functions in case there's
36164         a merge operation processed.
36165         * ipa-icf.h: Change function return value to boolean.
36167 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
36169         PR 65138/target
36170         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36171         processor type for 64-bit little endian PowerPC.
36173         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36174         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
36175         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
36176         printing built-in mask so it does not pass NULL pointers.
36178         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36179         -mcpu=powerpc64le.
36181 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
36183         PR target/58158
36184         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36185         !ISA_HAS_FP_CONDMOVE.
36187 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
36189         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36190         reload_completed.
36192 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
36194         * doc/invoke.texi (Options for Code Generation Conventions):
36195         Fix URL of DSO paper.
36197 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36199         PR ipa/65130
36200         * ipa-inline.c (check_callers): Looks for recursion.
36201         (inline_to_all_callers): Give up on uninlinable or recursive edges.
36202         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36203         summary of inline clones.
36204         (do_estimate_growth_1): Fix recursion check.
36206 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36208         PR ipa/64988
36209         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36210         comdat groups.
36212 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36213             Aldy Hernandez  <aldyh@redhat.com>
36215         PR lto/65276
36216         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36217         when checking TYPE_BINFO.
36219 2015-03-02  Richard Biener  <rguenther@suse.de>
36221         PR ipa/65270
36222         * ipa-icf-gimple.c: Include builtins.h.
36223         (func_checker::compare_memory_operand): Compare base alignment.
36225 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36227         PR target/65184
36228         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36229         passed by reference.
36231 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36233         PR target/65183
36234         * tree-chkp.c (chkp_check_lower): Don't check against
36235         zero bounds for already instrumented functions.
36236         (chkp_check_upper): Likewise.
36237         (chkp_fini): Clean pass local data to avoid wrong reusage.
36239 2015-02-28  Martin Liska  <mliska@suse.cz>
36240             Jan Hubicka  <hubicka@ucw.cz>
36242         * ipa-icf.c (sem_variable::equals): Improve debug output;
36243         get variable constructor.
36244         (sem_variable::parse): Do not filter out too early; give up on
36245         volatile and register vars.
36246         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36247         variables.
36248         * ipa-icf.h (sem_variable::init): Do not set ctor.
36249         (sem_variable::ctor): Remove.
36251 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
36253         PR middle-end/65233
36254         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36256 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36258         * ipa-icf.c: Include stor-layout.h
36259         (sem_function::compare_cgraph_references): Rename to ...
36260         (sem_item::compare_cgraph_references): ... this one.
36261         (sem_variable::equals_wpa): New function
36262         (sem_variable::equals): Do not check stuff already verified by
36263         equals_wpa.
36264         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36265         * ipa-icf.h (sem_item): Add compare_cgraph_references.
36266         (sem_function): Remove compare_cgraph_references.
36267         (sem_variable): Turns equals_wpa into non-inline.
36269 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36271         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36272         (sem_item::add_expr): New function.
36273         (sem_function::hash_stmt): Handle operands of most statements.
36274         (sem_variable::get_hash): Hash the actual constructor.
36275         * ipa-icf.h (sem_item): Add add_expr.
36276         (sem_function): Update prototype of hash_stmt
36278 2015-02-28  Martin Liska  <mliska@suse.cz>
36279             Jan Hubicka  <hubicka@ucw.cz>
36281         PR ipa/65245
36282         * ipa-icf-gimple.c (func_checker::compare_function_decl):
36283         Remove.
36284         (func_checker::compare_variable_decl): Skip symtab vars.
36285         (func_checker::compare_cst_or_decl): Update.
36286         * ipa-icf.c (sem_function::parse): Do not consider aliases.
36287         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36288         use correct symtab predicates.
36289         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36290         (sem_variable::parse):  Update comment.
36291         (sem_item_optimizer::build_graph): Consider ultimate aliases
36292         for references.
36294 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36296         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36297         of OBJ_TYPE_REF.
36299 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36301         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36302         (sem_variable::merge) Likewise.
36304 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36306         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36307         target; also match flag_ipa_devirt.
36309 2015-03-01  Martin Liska  <mliska@suse.cz>
36310             Jan Hubicka  <hubicka@ucw.cz>
36312         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36313         Validate variable alignment.
36314         * ipa-icf.c (sem_function::equals_private): Be more precise
36315         about non-common function attributes.
36316         (sem_variable::equals): Likewise.
36318 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36320         PR ipa/65237
36321         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36322         across COMDAT group boundary.
36324 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36326         PR ipa/65232
36327         * ipa-icf.c (clear_decl_rtl): New function.
36328         (sem_function::merge): Clear RTL before forming alias.
36329         (sem_variable::merge): Clear RTL before forming alias.
36331 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36333         PR ipa/65236
36334         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36336 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
36338         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36339         to neon_to_gp<q>.
36341 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36343         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36344         a typo in the description.
36346 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36348         PR target/64317
36349         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36350         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36351         * lra-constraints.c: Include "params.h".
36352         (EBB_PROBABILITY_CUTOFF): Use
36353         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36354         (lra_inheritance): Use '<' instead of '<=' for
36355         EBB_PROBABILITY_CUTOFF.
36356         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36357         Document change.
36359 2015-02-27  Martin Liska  <mliska@suse.cz>
36361         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36362         vector length condition.
36364 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
36366         * doc/extend.texi (x86 transactional memory intrinsics):
36367         Reorganize discussion of _xbegin.  Clarify that the return
36368         value is a bit mask.  Expand example and move to end of section.
36370 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36371             Aldy Hernandez  <aldyh@redhat.com>
36373         PR rtl-optimization/65220
36374         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36376 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
36378         PR target/65032
36379         * lra-remat.c (update_scratch_ops): New.
36380         (do_remat): Call it.
36381         * lra.c (lra_register_new_scratch_op): New. Take code from ...
36382         (remove_scratches): ... here.
36383         * lra-int.h (lra_register_new_scratch_op): New prototype.
36385 2015-02-27  Marek Polacek  <polacek@redhat.com>
36387         PR c/65040
36388         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36389         -Wformat-signedness anymore.
36391 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36393         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36394         function.
36395         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36397 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36399         * config/s390/s390.c (enum s390_builtin):
36400         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36401         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36402         (s390_init_builtins): Generate new builtin functions.
36403         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36404         (s390_sfpc, s390_efpc): New pattern definitions.
36406 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36408         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36409         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36410         (s390_builtin_decls): New array.
36411         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36412         (s390_builtin_decl): New function.
36413         (TARGET_BUILTIN_DECL): Define macro.
36415 2015-02-27  Richard Biener  <rguenther@suse.de>
36417         PR middle-end/63175
36418         * builtins.c (get_object_alignment_2): Make sure to re-apply
36419         the ANDed mask after recursing to its operand gets us a new
36420         misalignment bit position.
36422 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
36423             Martin Liska  <mliska@suse.cz>
36425         PR bootstrap/65150
36426         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36427         Use address_matters_p.
36428         (redirect_all_callers, set_addressable): New functions.
36429         (sem_function::merge): Reorganize and fix merging issues.
36430         (sem_variable::merge): Likewise.
36431         (sem_variable::compare_sections): Remove.
36432         * common.opt (fmerge-all-constants, fmerge-constants): Remove
36433         Optimization flag.
36434         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36435         redirect them.
36436         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36437         decl is used.
36438         (address_matters_1): New function.
36439         (symtab_node::address_matters_p): New function.
36440         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36441         check for merged flag.
36442         * cgraph.h (address_matters_p): Declare.
36443         (symtab_node::address_taken_from_non_vtable_p): Remove.
36444         (symtab_node::address_can_be_compared_p): New method.
36445         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36446         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36447         Remove.
36448         (comdat_can_be_unshared_p_1) Use address_matters_p.
36449         (update_vtable_references): Fix formating.
36450         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36451         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36452         * cgraphclones.c: Preserve merged and icf_merged flags.
36454 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
36456         * doc/extend.texi (Function Attributes): Fix spelling and typos.
36457         (Label Attributes): Likewise.
36458         (Cilk Plus Builtins): Likewise.
36459         (ARC SIMD Built-in Functions): Likewise.
36460         (ARM C Language Extensions (ACLE)): Likewise.
36461         (PowerPC Built-in Functions): Likewise.
36462         (PowerPC Hardware Transactional Memory Built-in Functions):
36463         Likewise.
36465 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36467         PR tree-optimization/65216
36468         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36469         new stmt and new SSA_NAME for lhs whenever the arguments have
36470         changed and weren't just swapped.  Fix comment typo.
36472         PR tree-optimization/65215
36473         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36474         for PDP endian targets.
36475         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36476         Fix up formatting issues.
36477         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
36478         size is smaller than the original, adjust MEM_REF offset by the
36479         difference of sizes.  Use is_gimple_mem_ref_addr instead of
36480         is_gimple_min_invariant test to avoid adding address temporaries.
36482 2015-02-26  Martin Liska  <mliska@suse.cz>
36483             Jan Hubicka  <hubicka@ucw.cz>
36485         PR ipa/64693
36486         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36487         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36488         (sem_item_optimizer::process_cong_reduction): Include division by
36489         sensitive references.
36490         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36491         * ipa-ref.c (ipa_ref::address_matters_p): New function.
36492         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36494 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
36496         PR target/65192
36497         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36498         Remove.
36499         * config/avr/avr.c: Same.
36500         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36501         Refuse any constant address not in 0..0xbf.
36502         * config/avr/avr.md (*mov<mode>, *movsf): Remove
36503         tiny_valid_direct_memory_access_range from insn conditions.
36504         (mov<mode>): Don't special-case expansion of avrtiny addresses.
36506 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
36508         PR target/61142
36509         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36510         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36511         * config/sh/predicates.md (const_logical_operand): New predicate.
36512         * config/sh/sh.md: Add new peephole2 patterns.
36514 2015-02-26  Marek Polacek  <polacek@redhat.com>
36516         PR ipa/65008
36517         * ipa-inline.c (early_inliner): Recompute inline parameters.
36519 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36521         PR target/65171
36522         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36523         instructions with TImode operands are included in the analysis.
36525 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36527         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36528         of an EDGE_FSM_THREAD.
36530 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36532         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36534 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
36536         PR debug/46102
36537         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36539 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
36541         PR tree-optimization/65048
36542         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36543         (thread_through_all_blocks): Call valid_jump_thread_path.
36544         Remove invalid FSM jump-thread paths.
36546 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
36548         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36549         (ipa_write_optimization_summaries): Likewise.
36550         * tree-streamer.h: Include data-streamer.h.
36551         (streamer_mode_table): Declare extern variable.
36552         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36553         * lto-streamer-out.c (lto_output_init_mode_table,
36554         lto_write_mode_table): New functions.
36555         (produce_asm_for_decls): Call lto_write_mode_table when streaming
36556         offloading LTO.
36557         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36558         (lto_create_simple_input_block): Add mode_table argument to the
36559         lto_input_block constructors.
36560         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36561         Likewise.
36562         * data-streamer-in.c (string_for_index): Likewise.
36563         * ipa-inline-analysis.c (inline_read_section): Likewise.
36564         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36565         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36566         * lto-streamer-in.c (lto_read_body_or_constructor,
36567         lto_input_toplevel_asms): Likewise.
36568         (lto_input_mode_table): New function.
36569         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36570         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36571         Use bp_pack_machine_mode.
36572         * real.h (struct real_format): Add name field.
36573         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36574         (class lto_input_block): Add mode_table member.
36575         (lto_input_block::lto_input_block): Add mode_table_ argument,
36576         initialize mode_table.
36577         (struct lto_file_decl_data): Add mode_table field.
36578         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36579         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36580         unpack_ts_decl_common_value_fields,
36581         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36582         * tree-streamer.c (streamer_mode_table): New variable.
36583         * real.c (ieee_single_format, mips_single_format,
36584         motorola_single_format, spu_single_format, ieee_double_format,
36585         mips_double_format, motorola_double_format,
36586         ieee_extended_motorola_format, ieee_extended_intel_96_format,
36587         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36588         ibm_extended_format, mips_extended_format, ieee_quad_format,
36589         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36590         decimal_single_format, decimal_double_format, decimal_quad_format,
36591         ieee_half_format, arm_half_format, real_internal_format): Add name
36592         field.
36593         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36595 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
36597         PR target/65161
36598         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36599         reordering for selective scheduling.
36601 2015-02-26  Terry Guo  <terry.guo@arm.com>
36603         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36604         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36605         (arm_arch_no_volatile_ce): Declare new global variable.
36606         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36607         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36608         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36609         (TARGET_NO_VOLATILE_CE): New macro.
36610         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36611         volatile memory access in IT block
36613 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36615         PR tree-optimization/61917
36616         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36617         that reduc_def_stmt is null.
36619 2015-02-25  Martin Liska  <mliska@suse.cz>
36621         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36622         hard register variables.
36624 2015-02-25  Kai Tietz  <ktietz@redhat.com>
36626         PR target/64212
36627         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36628         (symtab::noninterposable_alias): Likewise.
36630 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36632         PR target/65167
36633         * config/i386/i386.c (ix86_function_arg_regno_p): Support
36634         bounds registers.
36635         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36637 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
36639         PR target/64997
36640         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36641         as split condition; force split via '#' in output pattern.
36643 2015-02-25  Richard Biener  <rguenther@suse.de>
36644             Kai Tietz  <ktietz@redhat.com>
36646         PR tree-optimization/61917
36647         * tree-vect-loop.c (vectorizable_reduction): Allow
36648         vect_internal_def without reduction to exit graceful.
36650 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36652         PR target/65196
36653         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36654         only with NONDEBUG_INSN_P.
36656 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
36658         Use variadic macros with avr-log.c.
36660         * config/avr/avr-protos.h (avr_vdump): New prototype.
36661         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36662         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36663         * config/avr/avr-log.c: Adjust comments.
36664         (avr_vdump): New function.
36665         (avr_vadump): Pass caller as 2nd argument instead of format string.
36666         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36667         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36669 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
36671         PR lto/64374
36672         * target.def (target_option_stream_in): New target hook.
36673         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36674         targetm.target_option.post_stream_in if non-NULL.
36675         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36676         * doc/tm.texi: Updated.
36677         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36678         function.
36679         (TARGET_OPTION_POST_STREAM_IN): Redefine.
36681 2015-02-24  Jeff Law  <law@redhat.com>
36683         PR target/65117
36684         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36685         of operand 0 and operand 2.
36686         (zero_cost_loop_end, loop_end): Similarly.
36688 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
36690         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36691         CXX_MEM_STAT_INFO.
36693 2015-02-24  DJ Delorie  <dj@redhat.com>
36695         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36696         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36697         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36698         instead of hardcoding SImode.
36700 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
36702         * omp-low.c (create_omp_child_function): Tag entrypoint
36703         functions with a special attribute.
36705 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36707         PR target/65058
36708         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36710 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
36712         PR rtl-optimization/65123
36713         * lra-remat.c (operand_to_remat): Check hard regs in insn
36714         definition too.
36716 2015-02-24  Nick Clifton  <nickc@redhat.com>
36718         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36719         to the assembler.
36721 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
36723         PR libgomp/64625
36724         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36725         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36726         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36727         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36728         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36729         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36730         (BUILT_IN_GOACC_PARALLEL): Specify as
36731         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36732         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36733         * builtin-types.def
36734         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36735         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36736         Remove function types.
36737         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36738         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36739         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36740         New function types.
36742 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
36744         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36746 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
36748         PR tree-optimization/65170
36749         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36750         if val[1] < 0, clear also val[2] and return 3.
36752 2015-02-24  Alan Modra  <amodra@gmail.com>
36754         PR target/65172
36755         * config/rs6000/rs6000.c (get_memref_parts): Only return true
36756         when *base is a reg.  Handle nested plus addresses.  Simplify
36757         pre_modify test.
36759 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
36761         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36762         use natural alignment when optimizing for size.
36764 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
36766         PR target/65153
36767         * config/sh/sh.md (movsicc_true+3): Remove peephole.
36768         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36769         * config/sh/sh.c (replace_n_hard_rtx): Remove.
36771 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
36773         PR fortran/63427
36774         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36775         too big for a wide_int.  Implement missing wrapping operation.
36777 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
36779         PR target/65163
36780         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36781         instead of const_int 4294901760.
36783 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
36785         * config/avr/t-avr: Fix typo in comment.
36787 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
36789         * doc/rtl.texi (fma): Clarify documentation.
36791 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
36793         PR debug/58123
36794         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36795         over input_location.
36797 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36799         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36800         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36801         restrict alignments to absolute_biggest_alignment.
36802         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36803         Define.
36804         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36805         * doc/tm.texi: Regenerate.
36806         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36808 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
36810         PR target/64172
36811         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36813 2015-02-20  Richard Biener  <rguenther@suse.de>
36815         PR tree-optimization/65136
36816         * tree-ssa-propagate.c: Include cfgloop.h.
36817         (replace_phi_args_in): Avoid replacing loop latch edge PHI
36818         arguments with constants.
36820 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
36821             Martin Liska  <mliska@suse.cz>
36823         PR target/63892
36824         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36825         don't try to create_thunk if stdarg_p.  If
36826         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36827         redirect_callers if possible.
36828         (sem_item_optimizer::execute): Call unregister_hooks here...
36829         (ipa_icf_driver): ... instead of here.
36831 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36833         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36834         Mark operand 0 as earlyclobber in 2nd alternative.
36835         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36836         Write negated shift amount into QI lowpart operand 0 and use it
36837         in the shift step.
36838         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36840 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36842         * cgraph.h (clone_function_name_1): Declare.
36843         * cgraphclones.c (clone_function_name_1): New function.
36844         (clone_function_name): Use it.
36845         * lto-partition.c: Include "stringpool.h".
36846         (must_not_rename, maybe_rewrite_identifier)
36847         (validize_symbol_for_target): New static functions.
36848         (privatize_symbol_name): Use must_not_rename.
36849         (promote_symbol): Call validize_symbol_for_target.
36850         (lto_promote_cross_file_statics): Likewise.
36851         (lto_promote_statics_nonwpa): Likewise.
36853 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
36855         PR target/64452
36856         * config/avr/avr.md (pushhi_insn): New insn.
36857         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
36859 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
36860             Jakub Jelinek  <jakub@redhat.com>
36862         * tree-streamer.c (preload_common_nodes): Don't preload
36863         TI_VA_LIST* for offloading.
36864         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
36865         in_lto_p.
36867 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
36869         * config/pa/pa.c (pa_emit_move_sequence): Always force
36870         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
36871         note on insn.
36873         * config/pa/pa.c (pa_reloc_rw_mask): New function.
36874         (TARGET_ASM_RELOC_RW_MASK): Define.
36875         (pa_cannot_force_const_mem): Revert previous change.
36877 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
36878             Jan Hubicka  <hubicka@ucw.cz>
36880         PR ipa/65028
36881         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
36882         across jump functions.
36884 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
36886         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
36888 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
36890         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
36892 2015-02-19  Richard Henderson  <rth@redhat.com>
36894         PR middle-end/65074
36895         * varasm.c (default_binds_local_p_2): Don't test node->definition;
36896         test DECL_EXTERNAL independent of symtab_node.
36898 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
36900         PR lto/65012
36901         * varpool.c (varpool_node::get_constructor): Return early
36902         if this->lto_file_data is NULL.
36904 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
36906         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
36907         (rank_for_schedule_debug): Update.
36908         (ready_sort): Make static.  Move sorting logic to ...
36909         (ready_sort_debug, ready_sort_real): New static functions.
36910         (schedule_block): Sort both debug insns and real insns in preparation
36911         for ready list trimming.  Improve debug output.
36912         * sched-int.h (ready_sort): Remove global declaration.
36914 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
36916         * ipa-icf.c (sem_function::equals_private): Adjust.
36917         (sem_function::bb_dict_test): Take a vec<int> * instead of
36918         auto_vec<int>.
36919         * ipa-icf.h (bb_dict_test): Likewise.
36921 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36923         PR gcov-profile/64634
36924         * tree-eh.c (frob_into_branch_around): Fix up typos
36925         in function comment.
36926         (lower_catch): Put eh_seq resulting from EH lowering of
36927         the cleanup sequence after the cleanup rather than before it.
36929 2015-02-18  Tom de Vries  <tom@codesourcery.com>
36931         * common.opt (fstdarg-opt): New option.
36932         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
36933         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
36934         (@item -fstdarg-opt): New item.
36936 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
36938         PR target/65064
36939         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
36940         for common symbols.
36942 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36944         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
36945         insn-modes.h.
36946         (ALL_HOST_OBJS): Add mkoffload.o.
36947         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
36949 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
36951         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
36952         (compare_virtual_tables): Be smarter about skipping typeinfos;
36953         do sane output on virtual table table mismatch.
36954         (warn_odr): Be ready for forward declarations of enums;
36955         output sane info on base mismatch and virtual table mismatch.
36956         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
36957         when only one type is polymorphic.
36958         (get_odr_type): Fix hashtable corruption.
36959         (dump_odr_type): Dump mangled names.
36961 2015-02-18  Richard Biener  <rguenther@suse.de>
36963         PR tree-optimization/65063
36964         * tree-predcom.c (determine_unroll_factor): Return 1 if we
36965         have replaced looparound PHIs.
36967 2015-02-18  Martin Liska  <mliska@suse.cz>
36969         * lto-streamer.c (lto_streamer_init): Encapsulate
36970         streamer_check_handled_ts_structures with checking macro.
36972 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
36974         PR ipa/65087
36975         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
36976         section if !implicit_section.
36977         (cgraph_node::create_version_clone_with_body): Likewise.
36978         * trans-mem.c (ipa_tm_create_version): Likewise.
36980 2015-02-18  Richard Biener  <rguenther@suse.de>
36982         PR tree-optimization/62217
36983         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
36984         into BIVs.
36986 2015-02-18  Marek Polacek  <polacek@redhat.com>
36988         PR sanitizer/65081
36989         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
36990         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
36991         is in range [-16K, -1].  Don't issue run-time error if
36992         (ptr > ptr + offset).
36994 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
36996         * doc/install.texi (nvptx-*-none): New section.
36997         * doc/invoke.texi (Nvidia PTX Options): Likewise.
36998         * config/nvptx/nvptx.opt: Update.
37000         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37001         (access_check): New functions, copied from
37002         config/i386/intelmic-mkoffload.c.
37003         (main): For non-installed testing, look in all COMPILER_PATHs for
37004         GCC_INSTALL_NAME.
37006         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37008 2015-02-18  Andrew Pinski  <apinski@cavium.com>
37009             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37011         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37012         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37014 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37016         * ipa-visibility.c (function_and_variable_visibility): Only
37017         check locality if node is not already local.
37018         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37019         call_for_symbol_and_aliases instead of
37020         call_for_symbol_thunks_and_aliases.
37021         (ipa_inline): Likewise.
37022         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37023         first walk aliases.
37024         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37025         call_for_symbol_and_aliases.
37026         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37027         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37028         (ipa_propagate_frequency): Update.
37029         (ipa_profile): Add opt_for_fn gueards.
37031 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37033         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37034         * doc/invoke.texi (SH options): Document it.
37035         * config/sh/sh.c (sh_insn_length_adjustment): Check
37036         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37038 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
37040         * common.opt (fipa-cp-alignment): New.
37041         * ipa-cp.c (ipcp_store_alignment_results): Check
37042         flag_ipa_cp_alignment.
37043         * opts.c (default_options_table): Enable -fipa-cp-alignment for
37044         -O2.
37045         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37046         * doc/invoke.texi: Document -fipa-cp-alignment.
37048 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37050         PR target/64793
37051         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37052         to nil.  Adjust comments.
37054 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37056         * ipa-visibility.c (function_and_variable_visibility): Only
37057         check locality if node is not already local.
37058         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37059         call_for_symbol_and_aliases instead of
37060         call_for_symbol_thunks_and_aliases.
37061         (ipa_inline): Likewise.
37062         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37063         first walk aliases.
37064         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37065         call_for_symbol_and_aliases.
37066         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37067         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37068         (ipa_propagate_frequency): Update.
37069         (ipa_profile): Add opt_for_fn guards.
37071 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
37073         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37074         skipping of "strange" tokens.
37076 2015-02-17  Jeff Law  <law@redhat.com>
37078         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
37079         obsolete comment.
37081 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
37083         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37084         as forcing a HARD_DEP between instructions, thereby
37085         disallowing rewriting to break dependencies.
37087 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37089         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37090         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37091         variables in boundary that have no inlitalizer encoded and are
37092         not aliases.
37093         * varasm.c (default_binds_local_p_2): External definitions do not
37094         count as definitions here.
37096 2015-02-16  Jeff Law  <law@redhat.com>
37098         PR tree-optimization/64823
37099         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37100         statements.
37101         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37102         threading through blocks with PHIs, but no statements.
37103         (thread_through_normal_block): Distinguish between blocks where
37104         we did not process all the statements and blocks with no statements.
37106 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
37107             James Greenhalgh  <james.greenhalgh@arm.com>
37109         PR ipa/64963
37110         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37111         section if not linkonce.  Fix up formatting.
37112         (cgraph_node::create_version_clone_with_body): Copy section.
37113         * trans-mem.c (ipa_tm_create_version): Likewise.
37115 2015-02-16  Richard Biener  <rguenther@suse.de>
37117         PR tree-optimization/65077
37118         * tree-ssa-structalias.c (get_constraint_for_1): Handle
37119         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37120         (find_func_aliases): Allow float values to carry pointers again.
37122 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
37124         * doc/install.texi (Specific): Reorder targets list to put
37125         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
37126         from the top menu.
37128 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
37129             David Edelsohn  <dje.gcc@gmail.com>
37131         PR target/65058
37132         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37133         mapping class to external variable or function reference.
37134         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37135         mapping class.
37137 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
37139         PR target/53348
37140         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37141         ASM_WEAKEN_DECL if defined.
37143 2015-02-16  Richard Biener  <rguenther@suse.de>
37145         PR lto/65015
37146         * varasm.c (default_file_start): For LTO produced units
37147         emit <artificial> as file directive.
37149 2015-02-16  Richard Biener  <rguenther@suse.de>
37151         PR tree-optimization/63593
37152         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37153         stmts and releasing SSA names until...
37154         (execute_pred_commoning): ... after processing all chains.
37156 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37158         PR ipa/65059
37159         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37160         external functions.
37162 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
37164         * doc/bugreport.texi: Adjust section titles throughout the file
37165         to use "Title Case".
37166         * doc/extend.texi: Likewise.
37167         * doc/gcov.texi: Likewise.
37168         * doc/implement-c.texi: Likewise.
37169         * doc/implement-cxx.texi: Likewise.
37170         * doc/invoke.texi: Likewise.
37171         * doc/objc.texi: Likewise.
37172         * doc/standards.texi: Likewise.
37173         * doc/trouble.texi: Likewise.
37175 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
37177         * cgraph.h (symtab_node::has_aliases_p): Simplify.
37178         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37179         * tree.c (lookup_binfo_at_offset): Make static.
37180         (get_binfo_at_offset): Do not shadow offset; add explanatory
37181         comment.
37183 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
37185         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37186         for all floading point loads and stores except those using a register
37187         index address.
37188         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37189         to a register.
37191 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37193         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37194         (do_estimate_growth_1): Record if any uninlinable edge was seen.
37195         (estimate_growth): Handle uninlinable edges correctly.
37196         (check_callers): New.
37197         (growth_likely_positive): Handle aliases correctly.
37199 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37201         * ipa-chkp.c: Use iterate_direct_aliases.
37202         * symtab.c (resolution_used_from_other_file_p): Move inline.
37203         (symtab_node::create_reference): Fix formating.
37204         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37205         (symtab_node::iterate_reference): Move inline.
37206         (symtab_node::iterate_referring): Move inline.
37207         (symtab_node::iterate_direct_aliases): Move inline.
37208         (symtab_node::used_from_object_file_p_worker): Inline into ...
37209         (symtab_node::used_from_object_file_p): ... this one; move inline.
37210         (symtab_node::call_for_symbol_and_aliases): Move inline;
37211         use iterate_direct_aliases.
37212         (symtab_node::call_for_symbol_and_aliases_1): New method.
37213         (cgraph_node::call_for_symbol_and_aliases): Move inline;
37214         use iterate_direct_aliases.
37215         (cgraph_node::call_for_symbol_and_aliases_1): New method.
37216         (varpool_node::call_for_node_and_aliases): Rename to ...
37217         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37218         use iterate_direct_aliases.
37219         (varpool_node::call_for_symbol_and_aliases_1): New method.
37220         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37221         (ipa_discover_readonly_nonaddressable_var): Update.
37222         * ipa-devirt.c: Fix formating.
37223         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37224         Move inline.
37225         (cgraph_node::call_for_symbol_and_aliases): Move inline.
37226         (cgraph_node::call_for_symbol_and_aliases_1): New function..
37227         * cgraph.h (used_from_object_file_p_worker): Remove.
37228         (resolution_used_from_other_file_p): Move inline.
37229         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37230         (symtab_node::iterate_reference): Move inline.
37231         (symtab_node::iterate_referring): Move inline.
37232         (symtab_node::iterate_direct_aliases): Move inline.
37233         (symtab_node::used_from_object_file_p_worker): Inline into ...
37234         (symtab_node::used_from_object_file_p): Move inline.
37235         * tree-emutls.c (ipa_lower_emutls): Update.
37236         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37237         (varpool_node::call_for_node_and_aliases): Remove.
37239 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
37241         PR tree-optimization/62209
37242         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37243         op == range->exp, insert seq and gimplified code after labels
37244         instead of after the phi.
37246 2015-02-13  Jeff Law  <law@redhat.com>
37248         PR bootstrap/65060
37249         Revert my change for tree-optimization/64823.
37251 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37253         PR tree-optimization/65053
37254         * tree-ssa-phiopt.c (value_replacement): When moving assign before
37255         cond, either reset VR on lhs or set it to phi result VR.
37257 2015-02-13  Jeff Law  <law@redhat.com>
37259         PR tree-optimization/64823
37260         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37261         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37262         threading through blocks with PHIs, but no statements.
37263         (thread_through_normal_block): Distinguish between blocks where
37264         we did not process all the statements and blocks with no statements.
37266         PR rtl-optimization/47477
37267         * match.pd (convert (plus/minus (convert @0) (convert @1): New
37268         simplifier to narrow arithmetic.
37270 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
37272         PR ipa/65028
37273         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37274         polymorphic call info when type is not known to be preserved.
37276 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
37278         PR ipa/65028
37279         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37280         (inline_call): Use it.
37282 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
37284         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37285         GOMP_DEVICE_NVIDIA_PTX.
37287 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37289         PR ipa/65034
37290         * stmt.c (emit_case_nodes): Use void_type_node instead of
37291         NULL_TREE as LABEL_DECL type.
37293 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
37295         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37296         constraints.
37297         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37298         symbolic references to data to be forced to constant memory on the
37299         SOM target.
37301 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
37303         PR tree-optimization/65002
37304         * tree-cfg.c (pass_data_fixup_cfg): Don't update
37305         SSA on start.
37306         * tree-sra.c (some_callers_have_no_vuse_p): New.
37307         (ipa_early_sra): Reject functions whose callers
37308         assume function is read only.
37310 2015-02-13  Richard Biener  <rguenther@suse.de>
37312         PR lto/65015
37313         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37314         for LTO produced CUs.
37316 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
37318         PR tree-optimization/64705
37319         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37320         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37321         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37322         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37323         expand_simple_operations.
37325 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
37326             Richard Henderson  <rth@redhat.com>
37328         PR rtl/32219
37329         * cgraphunit.c (cgraph_node::finalize_function): Set definition
37330         before notice_global_symbol.
37331         (varpool_node::finalize_decl): Likewise.
37332         * varasm.c (default_binds_local_p_2): Rename from
37333         default_binds_local_p_1, add weak_dominate argument.  Use direct
37334         returns instead of assigning to local variable.  Unify varpool and
37335         cgraph paths via symtab_node.  Reject undef weak variables before
37336         testing visibility.  Reorder tests for simplicity.
37337         (default_binds_local_p): Use default_binds_local_p_2.
37338         (default_binds_local_p_1): Likewise.
37339         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37340         via symtab_node.
37341         (default_elf_asm_output_external): Emit visibility when specified.
37343 2015-02-13  Alan Modra  <amodra@gmail.com>
37345         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37346         code setting up r11 for out-of-line fp restore.
37348 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
37350         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37351         (muser-mode): Likewise.
37353 2015-02-13  Alan Modra  <amodra@gmail.com>
37355         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37356         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37358 2015-02-12  David Howells  <dhowells@redhat.com>
37360         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37361         warning.
37362         * tree-ssa-uninit.c (dump_predicates): Likewise.
37363         * opts.c (print_filtered_help): Likewise.
37365 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37367         * dwarf2out.c (output_die): Use "%s", name instead of name to
37368         avoid -Wformat-security warning.
37370         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37371         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37372         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37373         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37375 2015-02-12  Jason Merrill  <jason@redhat.com>
37377         * common.opt (-flifetime-dse): New.
37379 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
37381         PR sanitizer/65019
37382         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37384         PR tree-optimization/65014
37385         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37386         use original second operand of arg0 or arg1 instead of
37387         that adjusted by STRIP_NOPS.
37389 2015-02-11  Jeff Law  <law@redhat.com>
37391         PR target/63347
37392         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37393         that needs to be queued, just queue it for a single cycle.
37395 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
37397         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37398         bodies of thunks; comment on why.
37399         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37400         symbols are extern.
37402 2015-02-11  Richard Henderson  <rth@redhat.com>
37404         PR sanitize/65000
37405         * tree-eh.c (mark_reachable_handlers): Mark source and destination
37406         regions of __builtin_eh_copy_values.
37408 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37410         PR middle-end/65003
37411         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37412         ultimate alias is MEM with SYMBOL_REF satisfying
37413         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
37414         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37416 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
37418         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37419         "diagnostic-core.h".
37420         (main): Initialize progname, and call diagnostic_initialize.
37422         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37423         instead of __OPENMP_TARGET__.
37425         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37426         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37427         hard-coding PTX_ID.
37429 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
37431         * doc/sourcebuild.texi (pie_enabled): Document.
37433 2015-02-11  Martin Liska  <mliska@suse.cz>
37435         PR ipa/64813
37436         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37437         a return value for call to a function that is noreturn.
37439 2015-02-11  Richard Biener  <rguenther@suse.de>
37441         PR lto/65015
37442         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37443         and -fresolution.
37445 2015-02-11  Andrew Pinski  <apinski@cavium.com>
37447         PR target/64893
37448         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37449         Change the first argument type to size_type_node and add another
37450         size_type_node.
37451         (aarch64_simd_expand_builtin): Handle the new argument to
37452         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37453         print an out when the first two arguments are not
37454         nonzero integer constants.
37455         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37456         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37458 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
37460         PR target/61925
37461         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37462         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37463         (ix86_set_current_function): Rewritten.
37464         (ix86_add_new_builtins): Temporarily clear current_target_pragma
37465         when creating builtin fndecls.
37467 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37469         PR ipa/65005
37470         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37471         function.
37472         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37473         have no comdat group.
37474         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37475         (lto_output_varpool_node): Always output alias info.
37476         (output_refs): Output refs of boundary aliases, too.
37477         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37478         (output_symtab): Output call eges in thunks in boundary.
37479         (get_alias_symbol): Remove.
37480         (input_node, input_varpool_node): Do not special case weakrefs.
37481         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37482         alias and thunks targets in the boundary; do not take removed symbols
37483         from their comdat groups.
37484         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37485         (cgraph_node::global_info): Remove.
37486         (cgraph_node::rtl_info): Look through aliases and thunks.
37487         * cgrpah.h (global_info): Remove.
37488         (non_local_p): Remove.
37490 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37491             Sandra Loosemore  <sandra@codesourcery.com>
37493         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37494         to inline asm.  List dialects in proper order.
37496 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37497             Sandra Loosemore  <sandra@codesourcery.com>
37499         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37501 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
37503         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37504         modified) reference to Solaris.
37506 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
37508         * doc/extend.texi (Extended Asm): Fix typos.
37510 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
37512         PR sanitizer/65004
37513         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37515 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
37517         PR target/64661
37518         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37519         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37520         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37521         * config/sh/constraints.md (Ara, Add): New constraints.
37522         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37523         predicates.
37524         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37525         atomic_mem_operand_0.  Don't use force_reg on the memory address.
37526         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37527         Sra constraint.  Convert to insn_and_split.  Add workaround for
37528         PR 64974.
37529         (atomic_compare_and_swap<mode>_hard): Copy to
37530         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
37531         Use atomic_mem_operand_0 predicate.
37532         (atomic_compare_and_swap<mode>_soft_gusa,
37533         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37534         AraAdd constraints.
37535         (atomic_compare_and_swap<mode>_soft_tcb,
37536         atomic_compare_and_swap<mode>_soft_imask,
37537         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37538         atomic_mem_operand_0 predicate and SraSdd constraints.
37539         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37540         constraint.
37541         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37542         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
37543         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37544         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
37545         force_reg on the memory address.
37546         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37547         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37548         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37549         atomic_mem_operand_1 predicate and Sra constraint.
37550         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37551         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37552         Use atomic_mem_operand_1 predicate.
37553         (atomic_<fetchop_name><mode>_hard): Copy to
37554         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
37555         Use atomic_mem_operand_1 predicate.
37556         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37557         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37558         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
37559         insn_and_split.  Use atomic_mem_operand_1 predicate.
37560         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37561         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
37562         Use atomic_mem_operand_1 predicate.
37563         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37564         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
37565         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37566         in generated insn with original mem operand before emitting the insn.
37567         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37568         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37569         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37570         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37571         Use atomic_mem_operand_1 predicate and AraAdd constraints.
37572         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37573         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37574         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37575         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37576         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37577         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37578         atomic_not_fetch<mode>_soft_tcb,
37579         atomic_<fetchop_name>_fetch<mode>_soft_imask,
37580         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37581         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37582         Use atomic_mem_operand_1 predicate and SraSdd constraints.
37584 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
37586         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37587         and 3 earlyclobber operands.
37589 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37591         * common.opt (fstack-reuse): Mark as optimization.
37593 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
37595         PR ipa/64982
37596         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37598 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
37600         PR tree-optimization/64326
37601         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37603 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
37605         PR gcov-profile/61889
37606         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37608 2015-02-10  Richard Biener  <rguenther@suse.de>
37610         PR tree-optimization/64995
37611         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37612         value we use is final.
37613         (visit_reference_op_store): Always valueize op.
37614         (visit_use): Properly valueize vuses.
37616 2015-02-10  Richard Biener  <rguenther@suse.de>
37618         PR tree-optimization/64909
37619         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37620         pass a scalar-stmt count estimate to the cost model.
37621         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37623 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
37625         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37626         enabled by default together with var-tracking.
37628 2015-02-10  Nick Clifton  <nickc@redhat.com>
37630         * config/rl78/rl78.c: Remove DIV attribute code accidentally
37631         included in previous rl78 commit.
37633 2015-02-10  Richard Biener  <rguenther@suse.de>
37635         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37636         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37637         return the bitpack.
37639 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37641         PR gcov-profile/61889
37642         * config.in: regenerate.
37643         * configure.in: Likewise.
37644         * configure.ac: Check for ftw.h.
37645         * gcov-tool.c: Check for ftw.h before using nftw.
37647 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
37649         PR lto/64076
37650         * ipa-visibility.c (update_visibility_by_resolution_info): Only
37651         assert when not in lto mode.
37653 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
37655         * ira-color.c (setup_left_conflict_sizes_p): Simplify
37656         initialization/assignment of conflict_size.
37658 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
37660         PR ipa/64978
37661         * ipa-cp.c (gather_caller_stats): Skip thunks.
37662         (propagate_constants_topo): Skip aliases.
37664 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
37666         PR target/64761
37667         * config/sh/sh.c (sh_option_override): Don't change
37668         -freorder-blocks-and-partition to -freorder-blocks even when
37669         unwinding is enabled.
37670         (sh_can_follow_jump): Return false if the followee jump is
37671         a crossing jump when -freorder-blocks-and-partition is specified.
37672         * config/sh/sh.md (*jump_compact_crossing): New insn.
37674 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
37675             Kaz Kojima  <kkojima@gcc.gnu.org>
37677         PR target/64761
37678         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37679         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37680         (sh_can_redirect_branch): Rename to ...
37681         (sh_can_follow_jump): ... this.  Constify argument types.
37682         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37683         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37684         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37685         * doc/tm.texi: Regenerate.
37687 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37689         PR sanitizer/64981
37690         * builtins.c (expand_builtin): Call targetm.expand_builtin
37691         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37693 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37695         PR ipa/61548
37696         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37698 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37700         PR ipa/63566
37701         * ipa-icf.c (set_local): New function.
37702         (sem_function::merge): Use it.
37704 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37706         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37707         (add_type_duplicate): Fix comparison of BINFOs.
37709 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37711         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37712         on getting VOID pointer.
37714 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
37716         PR target/64979
37717         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37718         va_list escapes.
37720 2015-02-09  Richard Biener  <rguenther@suse.de>
37722         * genmatch.c (replace_id): Copy expr_type.
37724 2015-02-09  Richard Biener  <rguenther@suse.de>
37726         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37727         (streamer_write_tree_bitfields): Declare.
37728         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37729         properly unpack padding.
37730         (unpack_value_fields): Inline ...
37731         (streamer_read_tree_bitfields): ... here.
37732         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37733         and properly add padding bits.
37734         (streamer_pack_tree_bitfields): Fold into ...
37735         (streamer_write_tree_bitfields): ... this new function,
37736         exposing the bitpack object.
37737         * lto-streamer-out.c (lto_write_tree_1): Call
37738         streamer_write_tree_bitfields.
37740 2015-02-09  Richard Biener  <rguenther@suse.de>
37742         PR tree-optimization/54000
37743         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37744         (struct ivopts_data): Add loop_loc member.
37745         (tree_ssa_iv_optimize_loop): Dump loop location.
37746         (create_new_ivs): Likewise, also dump number of IVs generated.
37748 2015-02-09  Martin Liska  <mliska@suse.cz>
37750         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37751         just if not yet registered.
37752         (ipa_icf_generate_summary): Register callgraph hooks.
37754 2015-02-08  Andrew Pinski  <apinski@cavium.com>
37756         * config/aarch64/aarch64.c (gty_dummy): Delete.
37758 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37760         PR ipa/63566
37761         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37762         (cgraph_node::local_p): Remove thunk related FIXME.
37764 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37766         PR ipa/63566
37767         * i386.c (ix86_function_regparm): Look through aliases to see if callee
37768         is local and optimized.
37769         (ix86_function_sseregparm): Likewise; also use target's SSE math
37770         settings; error out instead of silently generating wrong code
37771         on mismatches.
37772         (init_cumulative_args): Look through aliases.
37774 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37776         PR ipa/63566
37777         * ipa-split.c (execute_split_functions): Split if function has aliases.
37779 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
37781         PR ipa/63566
37782         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37783         aliases before trying to expand it.
37784         (cgraph_node::expand_thunk): Fix formating.
37786 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
37788         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37789         (Using Assembly Language with C): Expand introduction.
37790         (Basic Asm): Copy-edit.  Add more information about uses of
37791         basic asm.
37792         (Extended Asm): Copy-edit.  Document new escape syntax and
37793         %l[label] syntax.
37794         (Global Reg Vars): Copy-edit.
37795         (Local Reg Vars): Likewise.
37797 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
37799         PR debug/2714
37800         PR bootstrap/64256
37801         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37802         (DBX_CONTIN_CHAR): Define.
37804 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
37805             Brian Rzycki  <b.rzycki@samsung.com>
37807         PR tree-optimization/64878
37808         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37809         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37810         Stop recursion at loop phi nodes after having visited a loop phi node.
37812 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37814         * toplev.c (process_options): Change flag_ipa_ra before creating
37815         optimization_{default,current}_node.
37817         PR ipa/64896
37818         * cgraphunit.c (cgraph_node::expand_thunk): If
37819         restype is not is_gimple_reg_type nor the thunk_fndecl
37820         returns aggregate_value_p, set restmp to a temporary variable
37821         instead of resdecl.
37823 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
37825         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37827 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
37829         PR target/64205
37830         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37831         add a general secondary reload handler for SDmode, unless we have
37832         both read/write support for SDmode.
37834 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37836         PR middle-end/64937
37837         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37838         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37839         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37840         1 before, push it to abstract_vec.
37841         (dwarf2out_abstract_function): Adjust caller.  Don't call
37842         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
37843         DECL_ABSTRACT_P flags for all abstract_vec elts.
37845 2015-02-06  Renlin Li  <renlin.li@arm.com>
37847         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
37848         complex gimple.
37849         * tree-ssa.c (execute_update_addresses_taken): Likewise.
37851 2015-02-06  Jeff Law  <law@redhat.com>
37853         PR target/64889
37854         * config/h8300/h8300.c (push): New argument "in_prologue".
37855         Pass "in_prologue" along to "F".
37856         (h8300_push_pop): Corresponding changes.
37857         (h8300_expand_prologue): Likewise.
37858         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
37860 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
37862         PR rtl-optimization/64957
37863         PR debug/64817
37864         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
37865         IOR rather than for AND.
37867 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
37869         PR target/62631
37870         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
37871         of shift-add and (add + shift) operations.  Rename local variable.
37873 2015-02-05  Jeff Law  <law@redhat.com>
37875         PR target/17306
37876         * config/h8300/constraints.md (U): Correctly dectect
37877         "eightbit_data" memory addresses.
37878         * config/h8300/h8300.c (eightbit_constant_address_p): Also
37879         handle (const (plus (symbol_ref (x)))) where x is declared
37880         as an 8-bit data memory address.
37881         * config/h8300/h8300.md (call, call_value): Correctly detect
37882         "funcvec" functions.
37884         PR target/43264
37885         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
37886         24 to 28 bits for the H8/300.
37888 2015-02-06  Alan Modra  <amodra@gmail.com>
37890         PR target/64876
37891         * config/rs6000/rs6000.c (chain_already_loaded): New function.
37892         (rs6000_call_aix): Use it.
37894 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
37896         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
37897         check.
37899 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
37901         * config/h8300/constraints.md ("U" constraint): Use strict
37902         variant of REG_OK_FOR_BASE_P after reload has started.
37904 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
37906         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
37907         define to zero if !TARGET_NEON.
37908         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
37910 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37911             Trevor Saunders  <tsaunders@mozilla.com>
37913         PR ipa/61548
37914         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
37916 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37918         PR ipa/61548
37919         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
37920         when removing varpool nodes.
37922 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37924         PR ipa/61548
37925         * varpool.c (varpool_node::remove): Fix order of variables.
37927 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37929         PR ipa/64686
37930         * ipa-inline.c (inline_small_functions): Fix ordering issue between
37931         speculation resolution and key updates.
37933 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37935         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
37936         about not letting any speculative edges unupdated.
37938 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37940         PR gcov/64123
37941         * gcov-io.c (gcov_var): Export.
37943 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37945         PR middle-end/64922
37946         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
37947         edges that become speculative.
37949 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
37951         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
37952         or DW_LANG_Fortran08.
37953         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
37954         DW_LANG_Fortran08.
37955         (gen_compile_unit_die): Handle "GNU Fortran2003" and
37956         "GNU Fortran2008" language strings.
37957         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
37958         * langhooks.h (lang_GNU_Fortran): New prototype.
37959         * langhooks.c (lang_GNU_Fortran): New function.
37960         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
37961         lang_GNU_Fortran.
37963 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37965         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
37966         (RTX_OK_FOR_OLO10_P): Likewise.
37968 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
37970         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
37972 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
37974         PR middle-end/64922
37975         * gimple.c: Include gimple-ssa.h.
37976         (maybe_remove_unused_call_args): New function.
37977         * gimple.h (maybe_remove_unused_call_args): Declare.
37978         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
37979         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
37980         * gimple-fold.c (gimple_fold_call): Likewise.
37982 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
37984         PR rtl-optimization/64905
37985         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
37986         pointer alignment if it isn't needed.
37988 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
37990         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
37991         cortex-a72.cortex-a53.
37992         * config/aarch64/aarch64-tune.md: Regenerate.
37993         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
37995 2015-02-04  Nick Clifton  <nickc@redhat.com>
37997         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
37998         inside a MEM.
38000 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38002         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38003         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38004         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38005         of DEF_BUILTIN.
38006         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38007         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38008         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38009         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38010         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38011         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38012         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38013         * tree-core.h (enum built_in_function): In between
38014         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38015         for builtins that use DEF_BUILTIN_CHKP macro.
38017 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
38019         PR debug/64817
38020         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38021         operands for tcc_comparison exprs.  Fix typos.
38023         PR debug/64817
38024         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38025         of two XORs that have an intervening AND or IOR.
38027         PR debug/64817
38028         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38029         simplification of XOR of AND to not allocate new rtx before
38030         committing to a simplification.
38032 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38034         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38035         manual swaps in all peepholes.
38037 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38039         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38040         of manual swapping implementation.
38041         (aarch64_expand_vec_perm_const_1): Likewise.
38043 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
38045         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38046         (generic_addrcost_table): Remove NAMED_PARAM.
38047         (cortexa57_addrcost_table): Likewise.
38048         (xgene1_addrcost_table): Likewise.
38049         (generic_regmove_table): Likewise.
38050         (cortexa53_regmove_table): Likewise.
38051         (xgene1_regmove_table): Likewise.
38052         (generic_vector_table): Likewise.
38053         (cortexa57_vector_table): Likewise.
38054         (xgene1_vector_table): Likewise.
38055         (generic_tunings): Likewise.
38056         (cortexa53_tunings): Likewise.
38057         (cortexa57_tunings): Likewise.
38058         (xgene1_tunings): Likewise.
38060 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38062         * config/arm/arm-cores.def: Add cortex-a72 and
38063         cortex-a72.cortex-a53.
38064         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38065         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38066         * config/arm/arm-tune.md: Regenerate.
38067         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38068         "cortex-a72.cortex-a53".
38069         * doc/invoke.texi (ARM Options/-mtune): Likewise.
38071 2015-02-04  Nick Clifton  <nickc@redhat.com>
38073         PR target/64408
38074         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38075         of accepted codes.
38076         (nonimmediate_di_operand): Likewise.
38078         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38079         prefixes of known F5 using MSP430 MCUs.
38081 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38083         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38084         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38085         instead of __builtin_sqrt.
38087 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
38089         * varasm.c (do_assemble_alias): Follow transparent alias
38090         chain for target.
38091         (default_assemble_visibility): Follow transparent alias
38092         chain for decl name.
38094 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38096         PR middle-end/62103
38097         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38098         to compute size of referenced value in the constant case.
38100 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38102         PR rtl-optimization/64756
38103         * cse.c (invalidate_dest): New function.
38104         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
38105         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38106         invalidate and do not record it.
38108 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
38110         PR target/64660
38111         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38112         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38113         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38114         atomic_nand<mode>_soft_tcb): New insns.
38115         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38116         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38117         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38118         Split into atomic_not_fetchsi_hard if operands[0] is unused.
38119         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38120         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38121         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
38122         atomic_not<mode>_hard if operands[0] is unused.
38123         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38124         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38125         if operands[0] is unused.
38126         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
38127         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38128         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38129         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38130         unused.
38131         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
38132         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38133         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38134         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38135         if operands[0] is unused.
38136         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
38137         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38138         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
38139         atomic_nand_fetchsi_hard if operands[0] is unused.
38140         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
38141         atomic_nand<mode>_hard if operands[0] is unused.
38142         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
38143         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38144         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
38145         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38146         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
38147         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38148         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38149         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38150         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
38151         atomic_not<mode>_hard if operands[0] is unused.
38152         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38153         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38154         unused.
38155         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38156         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38157         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
38158         atomic_nand<mode>_hard if operands[0] is unused.
38159         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38160         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38162 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
38164         PR jit/64810
38165         * Makefile.in (GCC_OBJS): Add gcc-main.o.
38166         * gcc-main.c: New file, containing "main" taken from gcc.c.
38167         * gcc.c (do_self_spec): Free decoded_options.
38168         (class driver): Move declaration to gcc.h.
38169         (main): Move declaration and implementation to new file
38170         gcc-main.c.
38171         (driver_get_configure_time_options): New function.
38172         * gcc.h (class driver): Move this declaration here, from
38173         gcc.c.
38174         (driver_get_configure_time_options): New declaration.
38176 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
38178         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38179         cross-module inlining.
38180         * cgraph.h (cgraph_node): Add flag merged.
38181         * ipa-icf.c (sem_function::merge): Maintain it.
38183 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
38185         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38186         instead of OBJECT_P.
38188 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
38190         PR target/62631
38191         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38192         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38193         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38194         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38196 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38198         PR other/63504
38199         * combine.c (reg_n_sets_max): New variable.
38200         (can_change_dest_mode, reg_nonzero_bits_for_combine,
38201         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38202         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38203         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38204         (rest_of_handle_combine): Initialize reg_n_sets_max.
38206 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
38208         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38209         if some always_inline was inlined, apply changes before inlining
38210         heuristically.
38212 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
38214         PR jit/64810
38215         * config/arm/arm.c (arm_option_override): Set
38216         arm_selected_arch/cpu/tune to NULL on entry.
38218 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
38219             Andrew Pinski  <pinskia@gcc.gnu.org>
38220             Jakub Jelinek  <jakub@gcc.gnu.org>
38222         PR target/64231
38223         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38224         integer typing for small model. Use IN_RANGE.
38226 2015-02-02  Richard Biener  <rguenther@suse.de>
38228         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38229         * tree-vrp.c (vrp_valueize_1): Likewise.
38231 2015-02-02  Alan Modra  <amodra@gmail.com>
38233         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38234         than mem for toc_restore.
38235         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38236         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38237         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38239 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
38241         PR target/64047
38242         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38243         explicit default options.
38245 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
38247         PR ipa/64872
38248         * ipa-utils.c (ipa_merge_profiles): Add release argument.
38249         * ipa-icf.c (sem_function::merge): Do not release body when merging.
38250         * ipa-utils.h (ipa_merge_profiles): Update prototype.
38252 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
38254         PR debug/64817
38255         * cfgexpand.c (deep_ter_debug_map): New variable.
38256         (avoid_deep_ter_for_debug): New function.
38257         (expand_debug_expr): If TERed SSA_NAME is in
38258         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38259         instead of trying to expand SSA_NAME's def stmt.
38260         (expand_debug_locations): When expanding debug bind
38261         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38262         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38263         value.
38264         (pass_expand::execute): Call avoid_deep_ter_for_debug on
38265         all debug bind stmts.  Delete deep_ter_debug_map after
38266         expand_debug_location if non-NULL and clear it.
38268 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
38270         PR target/64851
38271         * config/sh/sync.md (atomic_fetch_notsi_hard,
38272         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38273         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38274         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38275         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38276         atomic_not_fetch<mode>_soft_imask): New insns.
38278 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38280         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38281         (rank_for_schedule_debug): Split from ...
38282         (rank_for_schedule): ... this.
38283         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38284         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38286 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38288         * doc/md.texi (Machine Constraints): Alphabetize table by target.
38289         * doc/extend.texi (x86 Variable Attributes): Move section to
38290         correct alphabetization after renaming.
38291         (x86 Type Attributes): Likewise.
38292         (Target Builtins): Re-alphabetize menu.
38293         (x86 Built-in Functions): Move section to correct alphabetization
38294         after renaming.
38295         (x86 transactional memory intrinsics): Likewise.
38296         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38297         and x86 Windows Options in table and menu.
38298         (x86 Options): Move section to correct alphabetization after
38299         renaming.
38300         (x86 Windows Options): Likewise.
38302 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38304         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38305         preferred names of the architecture and its 32- and 64-bit
38306         variants.
38307         * doc/invoke.texi: Likewise.
38308         * doc/md.texi: Likewise.
38310 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38312         PR target/64882
38313         * config/i386/predicates.md (address_no_seg_operand): Reject
38314         non-CONST_INT_P operands in invalid mode.
38316 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38318         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38319         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
38320         * config/i386/predicates.md (address_no_seg_operand): Call
38321         address_operand with VOIDmode.
38322         (vsib_address_operand): Ditto.
38323         (address_mpx_no_base_operand): Ditto.
38324         (address_mpx_no_index_operand): Ditto.
38326 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38328         PR target/64688
38329         * lra-constraints.c (original_subreg_reg_mode): New.
38330         (simplify_operand_subreg): Try to simplify subreg of const.  Use
38331         original_subreg_reg_mode for it.
38332         (swap_operands): Update original_subreg_reg_mode.
38333         (curr_insn_transform): Set up original_subreg_reg_mode.
38335 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38337         PR target/64617
38338         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38339         function.
38340         (process_alt_operands): Use it.
38341         (curr_insn_transform): Check the optional reload pseudo class is
38342         ok for the mode.
38344 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
38346         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38347         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38348         prototype.
38349         * toplev.h (init_asm_output): Update comment on use of
38350         UNKNOWN_LOCATION with fatal_error.
38351         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38352         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38353         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38354         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38355         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38356         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38357         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38358         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38359         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38360         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38361         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38362         fatal_error changed to pass input_location as first argument.
38364 2015-01-30  Martin Liska  <mliska@suse.cz>
38366         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38367         in #pragma GCC diagnostic guards.
38369 2015-01-30  Richard Biener  <rguenther@suse.de>
38371         PR tree-optimization/64829
38372         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38373         not add a widening conversion pattern but hand off extra
38374         widenings to callers.
38375         (vect_recog_widen_mult_pattern): Handle extra widening produced
38376         by vect_handle_widen_op_by_const.
38377         (vect_recog_widen_shift_pattern): Likewise.
38378         (vect_pattern_recog_1): Remove excess vertical space in dumping.
38379         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38380         (vect_init_vector_1): Likewise.
38381         (vect_get_vec_def_for_operand): Likewise.
38382         (vect_finish_stmt_generation): Likewise.
38383         (vectorizable_load): Likewise.
38384         (vect_analyze_stmt): Likewise.
38385         (vect_is_simple_use): Likewise.
38387 2015-01-29  Jeff Law  <law@redhat.com>
38389         * combine.c (try_combine): Fix typo in comment.
38391 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
38393         PR target/64580
38394         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38395         (rs6000_stack_info): Add assert.
38396         (rs6000_output_savres_externs): New function, split off from...
38397         (rs6000_output_function_prologue): ... here.  Do not call it for
38398         thunks.
38400 2015-01-29  Jeff Law  <law@redhat.com>
38402         PR target/15184
38403         * combine.c (try_combine): If I0 is a memory load and I3 a store
38404         to a related address, increase the "goodness" of doing a 4-insn
38405         combination with I0-I3.
38406         (make_field_assignment): Handle SUBREGs in the ior+and case.
38408 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
38410         PR tree-optimization/64746
38411         * tree-if-conv.c (mask_exists): New function.
38412         (predicate_mem_writes): Save created mask with given size for further
38413         use.
38414         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38415         (ifcvt_repair_bool_pattern): Collect all statements that are root
38416         of bool pattern and use iterative algorithm to remove multiple uses
38417         of predicates, display number of required iterations.
38419 2015-01-29  Richard Biener  <rguenther@suse.de>
38421         PR tree-optimization/64853
38422         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38423         stmt will get simulated again.
38424         * tree-ssa-ccp.c (valueize_op_1): Likewise.
38426 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38428         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38429         return_in_pc.  Remove redundant assignments.
38430         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38431         (arm_expand_epilogue): Don't compare boolean with true in if condition.
38433 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
38435         * config/i386/i386.c (ix86_mode_after): Make static.
38437 2015-01-29  Richard Biener  <rguenther@suse.de>
38439         PR tree-optimization/64844
38440         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38441         dump cost model analysis.
38442         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38443         Do not register adjusted load/store costs here.
38445 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38446             Uros Bizjak  <ubizjak@gmail.com>
38448         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38449         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38450         using x86_use_pseudo_pic_reg.
38451         * config/i386/i386.c (ix86_conditional_register_usage): Remove
38452         support for fixed PIC register.
38453         (ix86_use_pseudo_pic_reg): Not static any more.
38455 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
38457         PR middle-end/64805
38458         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38459         to avoid error in cgraph node verification.
38461 2015-01-29  Marek Polacek  <polacek@redhat.com>
38463         * doc/standards.texi: Reflect that the default for C is gnu11.
38465 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
38467         PR target/64761
38468         * reorg.c (switch_text_sections_between_p): New function.
38469         (relax_delay_slots): Call it when testing if the jump insn
38470         is removable.  Use targetm.can_follow_jump when testing if
38471         the conditional branch can follow an unconditional jump.
38473 2015-01-27  Caroline Tice  <cmtice@google.com>
38475         Committing VTV Cywin/Ming patch for Patrick Wollgast
38476         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38477         if -fvtable-verify=preinit/std is used.
38478         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38479         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38480         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38481         if -fvtable-verify=preinit/std is used.
38482         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38483         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38484         if -fvtable-verify=preinit/std is used.
38485         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38486         * config/i386/mingw32.h (LIB_SPEC): Likewise.
38487         * varasm.c (assemble_variable): Add code to properly set the comdat
38488         section and name for the .vtable_map_vars section in case the
38489         target is PE or COFF.
38491 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38493         PR ipa/64801
38494         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38495         make sane BB profile.
38496         (cgraph_node::expand_thunk): Make sane BB profile.
38497         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38498         * cgraph.h (init_lowered_empty_function): Update prototype.
38499         * config/i386/i386.c (make_resolver_func): Update call.
38500         * predict.c (gate): Disable branch prediction pass if
38501         profile is already there.
38503 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
38505         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38506         * opth-gen.awk: Likewise.
38507         * common.opt: Mark flag_fp_contract_mode as Optimization.
38509 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38511         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38512         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38514 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
38516         PR target/64659
38517         * config/sh/predicates.md (atomic_arith_operand,
38518         atomic_logical_operand): Remove.
38519         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38520         (atomic_arith_operand_0): New predicate.
38521         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38522         Use atomic_arith_operand_0 for input values.
38523         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38524         atomic_compare_and_swap<mode>_soft_gusa,
38525         atomic_compare_and_swap<mode>_soft_tcb,
38526         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38527         arith_reg_operand instead of register_operand.
38528         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
38529         atomic_arith_operand_0 for newval input.
38530         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38531         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38532         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38533         arith_reg_operand instead of register_operand.
38534         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38535         fetchop_predicate_1, fetchop_constraint_1_llcs,
38536         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38537         fetchop_constraint_1_imask): New code iterator attributes.
38538         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38539         register_operand.  Use fetchop_predicate_1.
38540         (atomic_fetch_<fetchop_name>si_hard,
38541         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38542         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38543         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38544         and arith_reg_operand instead of register_operand.  Use
38545         fetchop_predicate_1, fetchop_constraint_1_gusa.
38546         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38547         and arith_reg_operand instead of register_operand.  Use
38548         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
38549         to allow R0 usage.
38550         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38551         and arith_reg_operand instead of register_operand.  Use
38552         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
38553         to allow R0 usage.
38554         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38555         register_operand.  Use atomic_logical_operand_1.
38556         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38557         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38558         arith_reg_operand instead of register_operand.
38559         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38560         Use arith_reg_dest and arith_reg_operand instead of register_operand.
38561         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
38562         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38563         register_operand.  Use fetchop_predicate_1.
38564         (atomic_<fetchop_name>_fetchsi_hard,
38565         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38566         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38567         fetchop_constraint_1_llcs.
38568         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38569         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38570         fetchop_constraint_1_gusa.
38571         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38572         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38573         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
38574         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38575         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
38576         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
38577         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38578         register_operand.  Use atomic_logical_operand_1.
38579         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38580         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38581         arith_reg_operand instead of register_operand.
38582         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38583         arith_reg_operand instead of register_operand.  Use logical_operand
38584         and K08.  Adjust asm sequence to allow R0 usage.
38585         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38586         arith_reg_operand instead of register_operand.  Use logical_operand
38587         and K08.
38589 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38591         PR other/63504
38592         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38593         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38594         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38595         only get_full_len HOST_WIDE_INTs from get_val () array rather than
38596         all bits in *val_wide.
38598 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
38600         * varpool.c (tls_model_names): Fix names.
38601         (varpool_node::dump): Dump tls- prefix for tls models.
38603 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
38604             Bernd Schmidt  <bernds@codesourcery.com>
38605             Nathan Sidwell  <nathan@codesourcery.com>
38607         * config/nvptx/mkoffload.c: New file.
38608         * config/nvptx/t-nvptx: Add build rules for it.
38609         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38610         (extra_programs): Add mkoffload.
38611         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38612         function.
38613         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38615 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
38617         PR middle-end/64809
38618         * cfgexpand.c (reorder_operands): Skip debug gimples.
38620 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
38622         PR tree-optimization/64277
38623         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38624         range info when possible to refine estimation.
38626 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38628         PR tree-optimization/64718
38629         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38630         be a 16bit unsigned integer when n->range is 16.
38631         (bswap_replace): Convert src to that type if necessary for all bswap
38632         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
38633         set in pass_optimize_bswap::execute ().
38635 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
38637         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38638         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38639         integer and floating point variants.
38640         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38642 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
38644         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38645         for all vector modes.
38647 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
38649         PR bootstrap/64612
38650         * doc/sourcebuild.texi (comdat_group): Document.
38652 2015-01-28  Terry Guo  <terry.guo@arm.com>
38654         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38656 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
38658         * toplev.c (print_version): Add param "show_global_state", and
38659         only print GGC and plugin information if it is true.
38660         (init_asm_output): Pass in "true" for the new param when calling
38661         print_version.
38662         (process_options): Likewise.
38663         (toplev::main): Likewise.
38664         * toplev.h (print_version): Add new param to decl.
38666 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38668         PR ipa/60871
38669         PR ipa/64139
38670         * tree.c (lookup_binfo_at_offset): New function.
38671         (get_binfo_at_offset): Use it.
38673 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
38675         PR ipa/64282
38676         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38677         on vtable being vtable.
38679 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
38681         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38682         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38683         -mhotpatch= option.
38684         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38685         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
38686         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38687         Renamed.
38688         (s390_hotpatch_trampoline_halfwords_max): Renamed.
38689         (s390_hotpatch_hw_max): New name.
38690         (s390_hotpatch_trampoline_halfwords): Renamed.
38691         (s390_hotpatch_hw_before_label): New name.
38692         (get_hotpatch_attribute): Removed.
38693         (s390_hotpatch_hw_after_label): New name.
38694         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38695         attribute.
38696         (s390_attribute_table): Ditto.
38697         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38698         (s390_function_num_hotpatch_hw): New name.
38699         Remove special handling of inline functions and hotpatching.
38700         Return number of nops before and after the function label.
38701         (s390_can_inline_p): Removed.
38702         (s390_asm_output_function_label): Emit a configurable number of nops
38703         after the function label.
38704         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38705         (TARGET_CAN_INLINE_P) Removed.
38706         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38708 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
38709             Jiong Wang  <jiong.wang@arm.com>
38711         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38712         of scratch reg.
38713         (cb<optab><mode>1): Likewise.
38714         * config/aarch64/iterators.md (bcond): New define_code_attr.
38716 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38718         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38719         memory accesses.
38721 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38723         * config/s390/s390.c (s390_register_move_cost): Increase costs for
38724         FPR->GPR moves.
38726 2015-01-27  Richard Biener  <rguenther@suse.de>
38728         * tree-vrp.c (update_value_range): Intersect the range with
38729         old recorded SSA name range information.
38731 2015-01-27  Nick Clifton  <nickc@redhat.com>
38733         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38734         BC, DE and HL registers directly, not via AX.
38735         When decrementing the stack pointer by a large amount, transfer SP
38736         into AX and perform the subtraction there.
38737         (rl78_expand_epilogue): Perform the inverse of the above
38738         enhancements.
38740 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38742         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38744 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38745             Yury Gribov  <y.gribov@samsung.com>
38747         PR ubsan/64741
38748         * ubsan.c (ubsan_source_location): Refactor code.
38749         (ubsan_type_descriptor): Update type size. Refactor code.
38751 2015-01-27  Richard Biener  <rguenther@suse.de>
38753         PR tree-optimization/56273
38754         PR tree-optimization/59124
38755         PR tree-optimization/64277
38756         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38757         from the first VRP pass.
38759 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38761         PR ipa/64776
38762         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38763         handle the first argument in the same loop as all the other arguments.
38765         PR rtl-optimization/61058
38766         * jump.c (cleanup_barriers): Update basic block boundaries
38767         if BLOCK_FOR_INSN is non-NULL on PREV.
38769 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
38771         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38772         bounds narrowing, already instrumented calls and calls to
38773         not instrumentable functions.
38775 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
38777         PR tree-optimization/64807
38778         * wide-int.cc (wi::divmod_internal): Clear
38779         b_dividend[dividend_blocks_needed].
38781 2015-01-26  DJ Delorie  <dj@redhat.com>
38783         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38784         volatile memory references.
38786 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
38788         PR target/49263
38789         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38790         remove_insn.
38791         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38792         shifts if it already fits into K08.
38794 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38796         PR ipa/64730
38797         * ipa-inline.c (inline_small_functions): Print "unknown" even
38798         if edge->call_stmt is non-NULL, but has builtins or unknown
38799         location.
38801         PR middle-end/64421
38802         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38803         with asterisk, skip the first character.
38805 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38807         PR target/64806
38808         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38809         order change.
38811 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
38813         PR target/64795
38814         * config/i386/i386.md (*movdi_internal): Also check operand 0
38815         to determine TYPE_LEA operand.
38816         (*movsi_internal): Ditto.
38818 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
38820         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38821         OPTION_MASK_QUAD_MEMORY_ATOMIC.
38823 2015-01-26  Renlin Li  <renlin.li@arm.com>
38825         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38826         the comment.
38827         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38828         for higher part.
38830 2015-01-26  Richard Biener  <rguenther@suse.de>
38832         PR middle-end/64764
38833         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38834         combining two BIT_AND_EXPR predicates.
38836 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
38838         PR bootstrap/64754
38839         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38841 2015-01-26  Terry Guo  <terry.guo@arm.com>
38843         * config/arm/arm.c (arm_file_start): Update the assignment of
38844         Tag_ABI_HardFP_use.
38846 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
38848         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
38849         pipeline model.
38850         config/arm/arm.md: Include the new Cortex-A57 model.
38851         (generic_sched): Don't use generic_sched when tuning for
38852         Cortex-A57.
38854 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
38855             Uros Bizjak  <ubizjak@gmail.com>
38857         * config/i386/i386.c (get_builtin_code_for_version): Add
38858         support for BMI and BMI2 multiversion functions.
38860 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
38862         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
38863         (extract_bit_field): Likewise.
38864         (extract_low_bits): Likewise.
38865         (expand_mult): Likewise.
38866         (expand_mult_highpart_adjust): Likewise.
38868 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
38870         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
38871         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
38872         * config/i386/i386.c (processor_model): Add
38873         M_INTEL_COREI7_BROADWELL.
38874         (arch_names_table): Add "broadwell".
38876 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
38878         PR target/49263
38879         PR target/53987
38880         PR target/64345
38881         PR target/59533
38882         PR target/52933
38883         PR target/54236
38884         PR target/51244
38885         * config/sh/sh-protos.h
38886         (sh_extending_set_of_reg::can_use_as_unextended_reg,
38887         sh_extending_set_of_reg::use_as_unextended_reg,
38888         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
38889         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
38890         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
38891         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
38892         (sh_treg_insns): New class.
38893         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
38894         (scope_counter): New class.
38895         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
38896         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
38897         sh_extending_set_of_reg::can_use_as_unextended_reg,
38898         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
38899         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
38900         sh_split_treg_set_expr): New functions.
38901         (addsubcosts): Handle treg_set_expr.
38902         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
38903         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
38904         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
38905         (sh_insn_operands_modified_between_p): Make non-static.
38906         * config/sh/predicates.md (zero_extend_movu_operand): Allow
38907         simple_mem_operand in addition to displacement_mem_operand.
38908         (zero_extend_operand): Don't allow zero_extend_movu_operand.
38909         (treg_set_expr, treg_set_expr_not_const01,
38910         arith_reg_or_treg_set_expr): New predicates.
38911         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
38912         arith_or_int_operand instead of logical_operand.  Convert to
38913         insn_and_split.  Try to optimize constant operand in splitter.
38914         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
38915         (*tstqi_t_zero): Delete.
38916         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
38917         (tstsi_t_and_not): Delete.
38918         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
38919         Convert to insn_and_split.
38920         (unnamed split, tstsi_t_zero_extract_xor,
38921         tstsi_t_zero_extract_subreg_xor_little,
38922         tstsi_t_zero_extract_subreg_xor_big): Delete.
38923         (*tstsi_t_shift_mask): New insn_and_split.
38924         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
38925         to recombine with surrounding insns when splitting.
38926         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
38927         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
38928         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
38929         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
38930         (*cbranch_div0s: Delete.
38931         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38932         Try to recombine with surrounding insns when splitting.  Add operand
38933         order variants.
38934         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
38935         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
38936         *addc_r_r_msb, *addc_2r_msb): Delete.
38937         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
38938         order variant.
38939         (*addc_negreg_t): New insn_and_split.
38940         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
38941         Try to recombine with surrounding insns when splitting.
38942         Add operand order variants.
38943         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
38944         insn_and_split patterns.
38945         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
38946         surrounding insns when splitting.
38947         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
38948         (*rotcl): Likewise.  Add zero_extract variant.
38949         (*ashrsi2_31): New insn_and_split.
38950         (*negc): Convert to insn_and_split.  Use treg_set_expr.
38951         (*zero_extend<mode>si2_disp_mem): Update comment.
38952         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
38953         condition.
38954         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
38955         with surrounding insns when splitting.
38956         (any_treg_expr_to_reg): New insn_and_split.
38957         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
38958         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
38959         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
38960         *zero_extract_2): New single bit zero extract patterns.
38961         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
38962         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
38963         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
38964         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
38965         set destination.
38966         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
38967         register_operand for set source.
38969 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
38971         * i386.opt (prefetch_sse): New targetsave.
38972         * i386.c (ix86_function_specific_save): Save prefetch_sse.
38973         (ix86_function_specific_restore): Restore prefetch_sse and initialize
38974         ix86_cost/ix86_tune_cost.
38976 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
38978         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
38979         Support the JIT by using 0 as the language type.
38981 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
38983         PR target/64317
38984         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
38985         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
38986         (mark_regno_live, process_bb_lives): Pass new parameter value to
38987         make_hard_regno_born.
38989 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
38991         PR rtl-optimization/63637
38992         PR rtl-optimization/60663
38993         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
38994         if elt->cost is MAX_COST for ASM_OPERANDS.
38995         (find_sets_in_insn): Fix up comment typo.
38996         (cse_insn): Don't set src_volatile for all non-volatile
38997         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
38998         or with "memory" clobber.  Set elt->cost to MAX_COST
38999         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
39000         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39002 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39004         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39005         alternative 1.
39007 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39009         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39010         libgcc/config/i386/elf-lib.h.
39012 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39014         PR driver/64737
39015         * gcc.c (print_configuration): Don't print a blank line at the end
39016         here...
39017         (run_attempt): ... but here unstead.
39019         PR middle-end/64734
39020         * omp-low.c (scan_sharing_clauses): Don't ignore
39021         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39022         on target data/update constructs.
39024 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39026         PR target/50928
39027         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39028         (DEBUG_RELOAD): Removed define.
39029         (m32c_limit_reload_class): Enable traces with if DEBUG0.
39030         (m32c_function_arg): Added a type cast.
39031         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39032         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39033         * config/m32c/bitops.md (andqi3_16): Likewise.
39034         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39035         (push_a01_l): Likewise.
39037 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39039         PR jit/64721
39040         * main.c (main): Construct toplev instances with init_signals=true.
39041         * toplev.c (general_init): Add param "init_signals", and use it to
39042         conditionalize the calls to signal and host_hooks.extra_signals.
39043         (toplev::toplev): Add param "init_signals".
39044         (toplev::main): When invoking general_init, pass m_init_signals
39045         to control whether signal-handlers are installed.
39046         * toplev.h (toplev::toplev): Add param "init_signals".
39047         (toplev::m_init_signals): New field.
39049 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39051         PR jit/64722
39052         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39053         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39054         latter may be affected by the former (e.g. on i686).
39056 2015-01-23  Martin Liska  <mliska@suse.cz>
39058         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39059         false positive during profiledbootstrap.
39061 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39063         PR libgomp/64672
39064         * lto-opts.c (lto_write_options): Output non-explicit conservative
39065         -fno-openacc.
39066         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39067         (append_compiler_options): Pass -fopenacc through.
39069 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39071         PR libgomp/64707
39072         * lto-opts.c (lto_write_options): Output non-explicit conservative
39073         -fno-openmp.
39074         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39075         (append_compiler_options): Pass -fopenmp through.
39077 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39079         PR debug/64511
39080         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39081         GTY markup.
39083         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39084         * diagnostic.def (DK_ICE_NOBT): New kind.
39085         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39086         like DK_ICE, but never print backtrace.
39087         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39088         (internal_error_no_backtrace): New function.
39089         * gcc.c (execute): Use internal_error_no_backtrace instead of
39090         internal_error.
39092 2015-01-22  Jeff Law  <law@redhat.com>
39094         PR target/52076
39095         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39096         improve code density for small immediate to memory case.
39097         (insv): Better handle bitfield assignments when the field is
39098         being set to all ones.
39099         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39100         operand predicate.
39102 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39103             Jakub Jelinek  <jakub@redhat.com>
39105         PR middle-end/64729
39106         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39107         for !TARGET_LIBC_PROVIDES_SSP version and
39108         -fstack-protector-{all,strong,explicit} otherwise.
39109         * config/freebsd.h (LINK_SSP_SPEC): Handle
39110         -fstack-protector-{strong,explicit}.
39112 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
39113             H.J. Lu  <hongjiu.lu@intel.com>
39115         PR ipa/64694
39116         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39117         heap.
39119 2015-01-22  Wei Mi  <wmi@google.com>
39121         PR rtl-optimization/64557
39122         * dse.c (record_store): Call get_addr for mem_addr.
39123         (check_mem_read_rtx): Likewise.
39125 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
39127         * fold-const.c (const_binop): Add early return for non-tcc_binary.
39129 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
39131         * toplev.c (init_local_tick): Process the failure when read
39132         fails for random_seed.
39134         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39135         'pretty_name' to avoid memory overflow.
39137 2015-01-22  Richard Biener  <rguenther@suse.de>
39139         PR middle-end/64728
39140         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39141         abnormal coalescing on undefined SSA names.
39143 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
39145         PR target/64688
39146         PR target/64477
39147         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39148         for alternative 3.
39149         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39151 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
39153         PR middle-end/63325
39154         * fold-const.c (fold_checksum_tree): Don't include value of
39155         expr->decl_with_vis.symtab_node in the checksum.
39157 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39159         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39161 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
39163         PR driver/64690
39164         * gcc.c (insert_comments): New function.
39165         (try_generate_repro): Call it.
39166         (append_text): Removed.
39168 2015-01-22  Richard Biener  <rguenther@suse.de>
39170         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39171         with IL incompatible options.  Properly honor user optimize
39172         attributes.
39174 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
39176         PR rtl-optimization/64682
39177         * combine.c (distribute_notes): When moving a death note for
39178         a register that is set in the new I2, make sure to put it
39179         before that new I2.
39181 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
39183         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39184         not TARGET_DEFAULT.
39186 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
39188         PR debug/64511
39189         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39190         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39191         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39193         PR sanitizer/64706
39194         * doc/invoke.texi (-fsanitize=vptr): Document.
39196         PR rtl-optimization/62078
39197         * dse.c: Include cfgcleanup.h.
39198         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39199         anything call purge_all_dead_edges and cleanup_cfg at the end
39200         of the pass.
39202 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
39204         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39205         edges.
39207 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39209         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39210         decl attribute.
39212 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39213             Tejas Belagod <Tejas.Belagod@arm.com>
39215         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39216         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39217         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39218         Removed.
39220 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39221             Tejas Belagod <Tejas.Belagod@arm.com>
39223         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39224         (aarch64_reverse_mask): New decls.
39225         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39226         (insn_count): New mode_attr.
39227         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39228         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39229         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39230         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39231         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39232         (aarch64_simd_st4): New patterns.
39233         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39234         (aarch64_reverse_mask): New functions.
39236 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39238         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39239         Declare.
39240         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39241         addressing modes for BE.
39242         (aarch64_print_operand): Add 'R' specifier.
39243         (aarch64_simd_disambiguate_copy): Delete.
39244         (aarch64_simd_emit_reg_reg_move): New function.
39245         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39246         in define_splits for structural moves.
39247         (mov<mode>): Use less restrictive predicates.
39248         (*aarch64_mov<mode>): Simplify and only allow for LE.
39249         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39251 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39253         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39255 2015-01-21  Richard Henderson  <rth@redhat.com>
39257         PR target/64669
39258         * ccmp.c (used_in_cond_stmt_p): Remove.
39259         (expand_ccmp_expr): Don't use it.
39261 2015-01-21  Nick Clifton  <nickc@redhat.com>
39263         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39264         PARALLELs.
39266 2015-01-21  Richard Biener  <rguenther@suse.de>
39268         PR middle-end/64313
39269         * tree-core.h (builtin_info, builtin_info_type): Turn from
39270         an object with two arrays into an array of an object with
39271         decl and two flags, implicit_p and declared_p.
39272         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39273         set_builtin_decl, set_builtin_decl_implicit_p,
39274         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39275         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39276         * builtins.c (builtin_info): Adjust.
39277         * gimplify.c (gimplify_addr_expr): References to builtins
39278         that have been declared by the user makes them eligible for
39279         use by the compiler.  Call set_builtin_decl_implicit_p on them.
39281 2015-01-20  Jeff Law  <law@redhat.com>
39283         PR target/59946
39284         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39285         allow pc-relative addresses in operand predicates or constraints.
39287 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
39289         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39290         neon on aarch32 processors for stringops.
39292 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39294         PR ipa/63576
39295         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39297 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39299         PR lto/45375
39300         * ipa-inline.c: Include lto-streamer.h
39301         (report_inline_failed_reason): Output source file differences and
39302         flags on optimization/target node mismatch.
39303         (can_inline_edge_p): Consider caller to be the outer inline function;
39304         be less restrictive about matching opimize and optimize_size attributes.
39305         (inline_account_function_p): Break out from ...
39306         (inline_small_functions): ... here.
39307         * ipa-inline-transform.c (clone_inlined_nodes): Use
39308         inline_account_function_p.
39309         (inline_call): Use optimize attribution; use inline_account_function_p.
39310         (inline_transform): Use opt_for_fn.
39311         * ipa-inline.h (inline_account_function_p): Declare.
39313 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
39315         PR debug/64663
39316         * dwarf2out.c (decl_piece_node): Don't put bitsize into
39317         mode if bitsize <= 0.
39318         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39319         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39320         sizes and positions.
39322 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
39324         * config/nios2/nios2.c (nios2_asm_file_end): Implement
39325         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39326         needed.
39327         (TARGET_ASM_FILE_END): Define.
39329 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39331         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39332         (struct tune_params): Use the enum.
39333         * arm.c (arm_*_tune): Update.
39334         (arm_option_override): Update.
39336 2015-01-20  Richard Biener  <rguenther@suse.de>
39338         PR ipa/64684
39339         * ipa-reference.c (add_static_var): Inline ...
39340         (analyze_function): ... here after splitting out from ...
39341         (is_proper_for_analysis): ... this.
39343 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
39345         PR target/64149
39346         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39347         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39348         replace the conditional with it's true branch.
39349         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39350         (arm_lra_p): Remove.
39352 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
39354         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39356 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39358         * config/tilegx/mul-tables.c: Move symtab.h include after
39359         coretypes.h include.
39360         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39361         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39362         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39363         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39364         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39366 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
39368         PR bootstrap/64676
39369         Revert:
39370         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39372         PR rtl-optimization/64081
39373         * loop-iv.c (def_pred_latch_p): New function.
39374         (latch_dominating_def): Allow specific cases with non-single
39375         definitions.
39376         (iv_get_reaching_def): Likewise.
39377         (check_complex_exit_p): New function.
39378         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39379         with exits not executing on any iteration.
39381 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39383         PR lto/45375
39384         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39385         to set branch cost.
39387 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39389         PR lto/45375
39390         * i386.c (gate): Check flag_expensive_optimizations and
39391         optimize_size.
39392         (ix86_option_override_internal): Drop optimize_size condition
39393         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39394         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39395         MASK_PREFER_AVX128.
39396         (ix86_avx256_split_vector_move_misalign,
39397         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39398         * sse.md (all uses of TARGET_PREFER_AVX128): Add
39399         optimize_insn_for_speed_p check.
39401 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
39403         * config/mips/mips.h (FP_ASM_SPEC): New define.
39404         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39405         instead.
39407 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
39409         PR target/53988
39410         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39411         nullptr for insn when reaching the first insn.
39412         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39413         (sh_insn_operands_modified_between_p): Add nullptr check.
39414         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
39415         sign extending mem load if the insn contains any UNSPEC or
39416         UNSPEC_VOLATILE.
39418 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39420         * params.def (inline-unit-growth): Drop to 15%.
39421         * invoke.texi (inline-unit-growth): Document change.
39423 2015-01-19  Martin Liska  <mliska@suse.cz>
39425         PR ipa/64668
39426         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39427         function for second argument of OBJ_TYPE_REF.
39429 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39431         PR ipa/64218
39432         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39433         whether function is an alias.
39435 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39437         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39438         cases.
39440 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
39442         PR rtl-optimization/64671
39443         * lra-remat.c (operand_to_remat): Don't consider jump and call
39444         insns.
39446 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
39448         PR target/59828
39449         * config/rs6000/default64.h: Include rs6000-cpus.def.
39450         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39451         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39452         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39453         and POWER8.
39454         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39455         POWER8.
39456         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39457         pseudo-op to specify assembler dialect.
39459 2015-01-19  Martin Liska  <mliska@suse.cz>
39461         PR ipa/64664
39462         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39463         Handle safe potentially removed nodes during filtering.
39465 2015-01-19  Martin Liska  <mliska@suse.cz>
39467         * doc/extend.texi (no_icf): Add new attribute description.
39468         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39469         where the pass attempts to merge a function with no_icf attribute.
39471 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39473         PR target/64532
39474         * doc/md.texi (ARM Options): Document register constraints.
39476 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
39477             Andrew Pinski  <apinski@cavium.com>
39479         PR target/64304
39480         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39481         (ashl<mode>3): Don't expand if operands[2] is not constant.
39483 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39485         PR target/64448
39486         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39487         Match xor-and-xor RTL pattern.
39489 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
39491         PR rtl-optimization/64081
39492         * loop-iv.c (def_pred_latch_p): New function.
39493         (latch_dominating_def): Allow specific cases with non-single
39494         definitions.
39495         (iv_get_reaching_def): Likewise.
39496         (check_complex_exit_p): New function.
39497         (check_simple_exit): Use check_complex_exit_p to allow certain cases
39498         with exits not executing on any iteration.
39500 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
39502         * common.opt (fgraphite): Fix a typo.
39504 2015-01-19  Felix Yang  <felix.yang@huawei.com>
39506         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39507         pattern.
39508         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39509         uminp, smax_nanp, smin_nanp): New builtins.
39510         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39511         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39512         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39513         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39514         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39515         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39516         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39517         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39518         vpminnms_f32): Rewrite using builtin functions.
39520 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
39522         PR libgomp/64625
39523         * omp-low.c (offload_symbol_decl): Remove variable.
39524         (get_offload_symbol_decl): Remove function.
39525         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39526         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39527         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39528         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39529         BUILT_IN_GOACC_UPDATE don't pass it at all.
39531 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39533         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39534         callers.
39536 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
39538         * ipa-chkp.c (chkp_produce_thunks): Add early param
39539         to split thunks production into two passes.  Keep
39540         'always_inline' function bodies after the first pass.
39541         (pass_data_ipa_chkp_early_produce_thunks): New.
39542         (pass_ipa_chkp_early_produce_thunks): New.
39543         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39544         chkp_produce_thunks signature.
39545         (make_pass_ipa_chkp_early_produce_thunks): New.
39546         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39547         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39548         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39550 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39552         * cgraph.c (cgraph_node::dump): Dump profile flags.
39554 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
39556         PR target/64652
39557         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39558         reg appear first in the parallel.
39560 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39562         * ipa-reference.c (set_reference_optimization_summary,
39563         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39564         disabled.
39565         (ignore_module_statics): New static var.
39566         (propagate_bits): If ipa-reference is disabled, do not look into local
39567         properties.
39568         (analyze_function): Disable analysis when ipa_reference is disabled.
39569         (generate_summary): Do not dump when reference is disabled;
39570         collect vars accessed from functions with ipa-reference disabled.
39571         (get_read_write_all_from_node): When ipa-reference is disabled, use the
39572         node flags.
39573         (gate): Enable for LTO.
39574         (ignore_edge_p): New function.
39575         (propagate): Skip functions w/o ipa-reference analysis.
39576         * optc-save-gen.awk: Handle optimize_debug correctly.
39577         * opth-gen.awk: Likewise.
39578         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39579         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39580         fira-share-save-slots, fira-share-spill-slots,
39581         fmodulo-sched-allow-regmoves, fpartial-inlining,
39582         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39583         ftracer, ftree-parallelize-loops, fassociative-math,
39584         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39585         Optimization
39586         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39587         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39588         Optimization.
39589         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39590         Fix for IPA.
39592 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
39594         PR ipa/64378
39595         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39596         flag correctly.
39597         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39599 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
39601         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39602         Remove duplicate option listings.
39604 2015-01-18  Felix Yang  <felix.yang@huawei.com>
39606         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39607         (autofdo_source_profile::get_callsite_total_count,
39608         function_instance::get_function_instance_by_decl,
39609         string_table::get_index, string_table::get_index_by_decl,
39610         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39611         Fix comment typos. Reformatting and minor code rearrangement.
39613 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39615         * config/rs6000/rs6000.md (probe_stack): Delete.
39616         (probe_stack_address): New.
39618 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39620         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39621         to test for 32-bit ABIs, not !TARGET_POWERPC64.
39623 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
39625         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39626         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
39627         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
39628         snafu.
39629         (rs6000_libcall_value): Use the new function.
39631 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
39633         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39635 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
39637         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39638         implement a more precise life analysis for it during backward scan.
39640 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
39642         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39644 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
39646         PR rtl-optimization/52773
39647         * calls.c (emit_library_call_value): When pushing arguments use
39648         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39649         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
39650         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39652 2015-01-17  Jeff Law  <law@redhat.com>
39654         PR rtl-optimization/32790
39655         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39656         not ZERO_EXTEND in SET_DESTs.
39658 2015-01-17  Alan Modra  <amodra@gmail.com>
39660         * cprop.c (do_local_cprop): Revert last change.
39662 2015-01-16  DJ Delorie  <dj@redhat.com>
39663             Nick Clifton  <nickc@redhat.com>
39665         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39666         (addhi3_real): Likewise.  Fix [HL+0] syntax.
39667         (subqi3_real): Likewise.
39668         (subhi3_real): Likewise.
39669         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
39670         (cbranchhi4_real): Likewise.
39671         (cbranchhi4_real_inverted): Likewise.
39672         (cbranchsi4_real_lt): Likewise.
39673         (cbranchsi4_real_ge): Likewise.
39674         (cbranchsi4_real_ge): Likewise.
39675         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39676         (sub<mode>3_virt): Likewise.
39677         (cbranchqi4_virt): Likewise.
39678         (cbranchhi4_virt): Likewise.
39679         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39680         always use '[reg+imm]' even when imm is zero.
39681         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39682         (rl78_general_operand): New.
39683         (rl78_nonimmediate_operand): New.
39684         (rl78_nonfar_operand): Use them.
39685         (rl78_nonfar_nonimm_operand): Likewise.
39686         (rl78_stack_based_mem): Fix.
39687         * config/rl78/constraints.md (Ibqi): New.
39688         (IBqi): New.
39689         (Wsa): New.
39690         (Wsf): New.
39691         (Cs1): Fix.
39692         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39693         (iorqi3): Likewise.
39694         (xorqi3): Likewise.
39695         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39697         * config/rl78/constrains (Qs8): New constraint.
39698         * config/rl78/rl78.c (rl78_flags_already_set): New function.
39699         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39700         * config/rl78/rl78-real.md (update_Z): New attribute.
39701         Update patterns to set it.
39702         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39703         shorter compare and branch sequence can be used.
39704         (cbranchhi4_real): Likewise.
39705         (cbranchhi4_real_inverted): Likewise.
39707         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39708         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39709         address space.
39710         * config/rl78/rl78.c (rl78_get_name_encoding): New.
39711         (rl78_option_override): Allow -mes0 only if C.
39712         (characterize_address): Support subregs of symbol_refs.
39713         (rl78_addr_space_address_mode): Move.  Add __near.
39714         (rl78_far_p): Likewise.
39715         (rl78_addr_space_pointer_mode): Likewise.
39716         (rl78_as_legitimate_address): Likewise.
39717         (rl78_addr_space_subset_p): Likewise.
39718         (rl78_addr_space_convert): Likewise.
39719         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39720         symbols with -mes0.
39721         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
39722         addressing.
39723         (rl78_alloc_physical_registers_op1): Change logic to prefer
39724         symbol[BC] addressing.
39725         (frodata_section): New.
39726         (rl78_asm_init_sections): Initialize it.
39727         (rl78_select_section): Put __far readonly symbols in .frodata.
39728         (rl78_make_type_far): New.
39729         (rl78_insert_attributes): Force all readonly symbols to be
39730         __far when -mes0.
39731         (rl78_asm_out_integer): New.
39732         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39733         * config/rl78/rl78.opt (-mes0): New.
39735         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39736         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39737         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39738         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39739         (rl78_saddr_p): New.
39740         (rl78_output_aligned_common): New.
39741         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39742         (rl78_handle_saddr_attribute): New.
39743         (rl78_handle_naked_attribute): New.
39744         (rl78_attribute_table): Add saddr.
39745         (rl78_print_operand_1): Don't print '!' on saddr operands.
39746         (rl78_print_operand_1): Strip encodings.
39747         (rl78_sfr_p): New.
39748         (rl78_strip_name_encoding): New.
39749         (rl78_attrlist_to_encoding): New.
39750         (rl78_encode_section_info): New.
39751         (rl78_asm_init_sections): New.
39752         (rl78_select_section): New.
39753         (rl78_output_labelref): New.
39754         (rl78_output_aligned_common): New.
39755         (rl78_asm_out_integer): New.
39756         (rl78_asm_ctor_dtor): New.
39757         (rl78_asm_constructor): New.
39758         (rl78_asm_destructor): New.
39760         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39761         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39762         (transcode_memory_rtx): Update.
39763         (rl78_expand_epilogue): Use A_REG instead of 0.
39765 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39767         * config/arm/arm-protos.h (struct tune_params): New field
39768         sched_autopref_queue_depth.
39769         * config/arm/arm.c (sched-int.h): Include header.
39770         (arm_first_cycle_multipass_dfa_lookahead_guard,)
39771         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39772         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39773         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39774         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39775         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39776         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39777         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39778         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
39779         * config/arm/t-arm (arm.o): Update.
39780         * haifa-sched.c (update_insn_after_change): Update.
39781         (rank_for_schedule): Use auto-prefetcher model, if requested.
39782         (autopref_multipass_init): New static function.
39783         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39784         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39785         variable for debug dumps.
39786         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39787         (autopref_multipass_dfa_lookahead_guard): New global function that
39788         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39789         (init_h_i_d): Update.
39790         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39791         * sched-int.h (enum autopref_multipass_data_status): New const enum.
39792         (autopref_multipass_data_): Structure for auto-prefetcher data.
39793         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39794         (struct _haifa_insn_data:autopref_multipass_data): New field.
39795         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39796         (autopref_multipass_dfa_lookahead_guard): Declare.
39798 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39800         * rtlanal.c (get_base_term): Handle SCRATCH.
39802 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39804         * config/aarch64/aarch64.c
39805         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39806         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39807         * config/arm/arm.c
39808         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39809         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39811 2015-01-17  Alan Modra  <amodra@gmail.com>
39813         * cprop.c (do_local_cprop): Disallow replacement of fixed
39814         hard registers.
39816 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39818         PR target/62066
39819         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39820         early return 0.
39822 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39824         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39825         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39827 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39829         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39830         * config/arm/thumb1.md: ... Here.
39832 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39834         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39835         TImode for TARGET_32BIT.
39837 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39839         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39840         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39841         as ...
39842         (rs6000_abi_word_mode): New function.
39844 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39846         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
39847         instead of UNITS_PER_WORD to describe the size of stack slots.
39849 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39851         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
39852         as rs6000_promote_function_mode.  Move comment to there.
39853         (rs6000_promote_function_mode): New function.
39855 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
39857         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
39858         -mpowerpc64 is active.
39860 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39862         PR middle-end/64353
39863         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
39864         virtuals on start.
39866 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39868         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
39869         introduced in revision 219724.
39871 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39872             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39874         PR target/64263
39875         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
39876         destination is not a GP reg.
39877         (*movdi_aarch64): Likewise.
39879 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
39881         PR target/64623
39882         * config/rs6000/default64.h: Revert ISA change.
39884 2015-01-16  Richard Biener  <rguenther@suse.de>
39886         PR middle-end/64614
39887         * tree-ssa-uninit.c: Include tree-cfg.h.
39888         (MAX_SWITCH_CASES): New define.
39889         (convert_control_dep_chain_into_preds): Handle switch statements.
39890         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
39891         (normalize_one_pred_1): Do not split bit-manipulations.
39892         Record (x & CST).
39894 2015-01-16  Richard Biener  <rguenther@suse.de>
39896         PR tree-optimization/64568
39897         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
39898         complex load rewriting for TARGET_MEM_REFs.
39900 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
39902         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
39904 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
39906         PR target/64149
39907         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
39908         variable.
39909         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
39910         (aarch64_lra_p): Remove.
39912 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
39914         PR target/64363
39915         * ipa-chkp.h (chkp_instrumentable_p): New.
39916         * ipa-chkp.c: Include tree-inline.h.
39917         (chkp_instrumentable_p): New.
39918         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
39919         Fix processing of not instrumentable functions.
39920         (chkp_versioning): Use chkp_instrumentable_p. Warn about
39921         not instrumentable functions.
39922         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
39923         chkp_instrumentable_p.
39924         * tree-inline.h (copy_forbidden): New.
39925         * tree-inline.c (copy_forbidden): Not static anymore.
39927 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39929         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
39930         ptr1, ptr2 unused.
39932 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39934         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
39935         type OP_OUT to OP_INOUT.
39937 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
39939         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
39940         (high x) y) to y if x and y have the same base.
39942 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
39944         * config/arm/cortex-a57.md: New.
39945         * config/aarch64/aarch64.md: Include it.
39946         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
39947         * config/aarch64/aarch64-tune.md: Regenerate.
39949 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
39951         PR target/64015
39952         * ccmp.c (expand_ccmp_next): New function.
39953         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
39954         and compare insn sequence.
39955         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
39956         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
39957         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
39958         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
39959         (*ccmp_ior): Changed to ccmp_ior<mode>.
39960         (cmp<mode>): New pattern.
39961         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
39962         parameters.
39963         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
39965 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
39967         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
39968         _mm256_bsrli_epi128): New.
39969         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
39971 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39973         * expmed.c (store_bit_field_using_insv): Improve warning message.
39974         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
39976 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
39978         PR rtl-optimization/64011
39979         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
39980         there is partial overflow.
39982 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
39984         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
39985         prototype.
39986         (nds32_expand_epilogue_v3pop): Likewise.
39987         * config/nds32/nds32.md (sibcall): Define this for sibling call
39988         optimization.
39989         (sibcall_register): Likewise.
39990         (sibcall_immediate): Likewise.
39991         (sibcall_value): Likewise.
39992         (sibcall_value_register): Likewise.
39993         (sibcall_value_immediate): Likewise.
39994         (sibcall_epilogue): Likewise.
39995         (epilogue): Pass false to indicate this is not a sibcall epilogue.
39996         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
39997         (nds32_expand_epilogue_v3pop): Likewise.
39999 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40001         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40002         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40003         (return_internal): New.
40004         (return): Define this named pattern.
40005         (simple_return): Define this named pattern.
40006         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40007         pattern instead of unspec_volatile_func_return.
40008         (nds32_expand_epilogue_v3pop): Likewise.
40009         (nds32_can_use_return_insn): New function.
40011 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40013         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40014         * config/nds32/nds32.md (pop25return): New.
40015         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40016         pop25return pattern.
40018 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40020         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40021         -mforbid-fp-as-gp, and -mex9 options.
40023 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40025         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40026         remove -mgp-direct option.
40028 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40030         * doc/invoke.texi (--param early-inlining-insns): Update default value.
40031         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40033 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40035         * ipa-inline.c (inline_small_functions): Work around hints
40036         cache issue.
40038 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
40040         PR target/59710
40041         * doc/invoke.texi (Option Summary): Document new Nios II
40042         -mgpopt= syntax.
40043         (Nios II Options): Likewise.
40044         * config/nios2/nios2.opt: Add -mgpopt= option support.
40045         Modify existing -mgpopt and -mno-gpopt options to be aliases.
40046         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40047         * config/nios2/nios2.c (nios2_option_override): Adjust
40048         -mgpopt defaulting.
40049         (nios2_in_small_data_p): Return true for explicit small data
40050         sections even with -G0.
40051         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40052         option choices.
40054 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40056         PR ipa/64612
40057         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40058         of comdat locals.
40059         (inline_call): Fix removal of aliases.
40061 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40063         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40064         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40065         * opts.c (common_handle_option): Add -fsanitize=vptr.
40066         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40067         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40068         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40069         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40070         (ubsan_expand_vptr_ifn): New prototype.
40071         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40072         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40073         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40074         expand_LOOP_VECTORIZED): Make argument nameless, remove
40075         ATTRIBUTE_UNUSED.
40076         (expand_UBSAN_VPTR): New function.
40077         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40078         in fn spec.
40079         (UBSAN_VPTR): New internal function.
40080         * sanopt.c (tree_map_traits): Renamed to ...
40081         (sanopt_tree_map_traits): ... this.
40082         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40083         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40084         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
40085         (maybe_optimize_ubsan_vptr_ifn): New function.
40086         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40087         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
40088         -fsanitize=vptr.
40089         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40090         internal calls like pure functions for aliasing, even when they
40091         have other side-effects that prevent making them ECF_PURE.
40092         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40093         (ubsan_expand_vptr_ifn): New function.
40095 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
40097         PR rtl-optimization/64110
40098         * stmt.c (parse_output_constraint): Process '^' and '$'.
40099         (parse_input_constraint): Ditto.
40100         * lra-constraints.c (process_alt_operands): Process the new
40101         constraints.
40102         * ira-costs.c (record_reg_classes): Process the new constraint
40103         '^'.
40104         * genoutput.c (indep_constraints): Add '^' and '$'.
40105         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40106         * doc/md.texi: Add description of the new constraints.
40108 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
40109             Bernd Schmidt  <bernds@codesourcery.com>
40110             Cesar Philippidis  <cesar@codesourcery.com>
40111             James Norris  <jnorris@codesourcery.com>
40112             Tom de Vries  <tom@codesourcery.com>
40113             Ilmir Usmanov  <i.usmanov@samsung.com>
40114             Dmitry Bocharnikov  <dmitry.b@samsung.com>
40115             Evgeny Gavrin  <e.gavrin@samsung.com>
40116             Jakub Jelinek  <jakub@redhat.com>
40118         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40119         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40120         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40121         New function types.
40122         * builtins.c: Include "gomp-constants.h".
40123         (expand_builtin_acc_on_device): New function.
40124         (expand_builtin, is_inexpensive_builtin): Handle
40125         BUILT_IN_ACC_ON_DEVICE.
40126         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40127         New macros.
40128         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40129         flag_openmp.
40130         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40131         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40132         i386/intelmic-offload.h.
40133         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40134         to libgomp and its dependencies.
40135         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40136         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40137         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40138         * config/ia64/hpux.h (LIB_SPEC): Likewise.
40139         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40140         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40141         * doc/generic.texi: Update for OpenACC changes.
40142         * doc/gimple.texi: Likewise.
40143         * doc/invoke.texi: Likewise.
40144         * doc/sourcebuild.texi: Likewise.
40145         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40146         GF_OMP_FOR_KIND_OACC_LOOP.
40147         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40148         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40149         GF_OMP_TARGET_KIND_OACC_UPDATE,
40150         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40151         Dump more data.
40152         * gimple.c: Update comments for OpenACC changes.
40153         * gimple.def: Likewise.
40154         * gimple.h: Likewise.
40155         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40156         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40157         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40158         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40159         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40160         appropriate place.
40161         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40162         * gimplify.c: Include "gomp-constants.h".
40163         Update comments for OpenACC changes.
40164         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40165         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40166         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40167         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40168         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40169         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40170         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40171         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40172         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40173         OMP_CLAUSE_SEQ.
40174         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40175         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40176         OMP_CLAUSE_SET_MAP_KIND.
40177         (gimplify_oacc_cache): New function.
40178         (gimplify_omp_for): Handle OACC_LOOP.
40179         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40180         OACC_DATA.
40181         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40182         OACC_EXIT_DATA, OACC_UPDATE.
40183         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40184         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40185         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40186         (gimplify_body): Consider flag_openacc next to flag_openmp.
40187         * lto-streamer-out.c: Include "gomp-constants.h".
40188         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40189         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40190         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40191         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40192         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40193         (BUILT_IN_ACC_ON_DEVICE): New builtins.
40194         * omp-low.c: Include "gomp-constants.h".
40195         Update comments for OpenACC changes.
40196         (struct omp_context): Add reduction_map, gwv_below, gwv_this
40197         members.
40198         (extract_omp_for_data, use_pointer_for_field, install_var_field)
40199         (new_omp_context, delete_omp_context, scan_sharing_clauses)
40200         (create_omp_child_function, scan_omp_for, scan_omp_target)
40201         (check_omp_nesting_restrictions, lower_reduction_clauses)
40202         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40203         Update for OpenACC changes.
40204         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40205         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40206         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40207         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40208         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40209         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
40210         OMP_CLAUSE_MAP_*.
40211         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40212         Handle GF_OMP_FOR_KIND_OACC_LOOP.
40213         (expand_omp_target, lower_omp_target): Handle
40214         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40215         GF_OMP_TARGET_KIND_OACC_UPDATE,
40216         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40217         GF_OMP_TARGET_KIND_OACC_DATA.
40218         (pass_expand_omp::execute, execute_lower_omp)
40219         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40220         flag_openmp.
40221         (offload_symbol_decl): New variable.
40222         (oacc_get_reduction_array_id, oacc_max_threads)
40223         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40224         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40225         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40226         (oacc_gimple_assign, oacc_initialize_reduction_data)
40227         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40228         functions.
40229         (is_targetreg_ctx): Remove function.
40230         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40231         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40232         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40233         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40234         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40235         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40236         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40237         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40238         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40239         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40240         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40241         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40242         * tree-core.h: Update comments for OpenACC changes.
40243         (enum omp_clause_map_kind): Remove.
40244         (struct tree_omp_clause): Change type of map_kind member from enum
40245         omp_clause_map_kind to unsigned char.
40246         * tree-inline.c: Update comments for OpenACC changes.
40247         * tree-nested.c: Likewise.  Include "gomp-constants.h".
40248         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40249         (convert_tramp_reference_stmt, convert_gimple_call): Update for
40250         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40251         OMP_CLAUSE_SET_MAP_KIND.
40252         * tree-pretty-print.c: Include "gomp-constants.h".
40253         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40254         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40255         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40256         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40257         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40258         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
40259         instead of OMP_CLAUSE_MAP_*.
40260         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40261         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40262         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40263         * tree-streamer-in.c: Include "gomp-constants.h".
40264         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40265         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
40266         * tree-streamer-out.c: Include "gomp-constants.h".
40267         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40268         OMP_CLAUSE_MAP_*.
40269         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40270         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40271         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40272         * tree.c (omp_clause_num_ops): Update accordingly.
40273         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40274         Likewise.
40275         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40276         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40277         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40278         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40279         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40280         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40281         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40282         (OMP_CLAUSE_SET_MAP_KIND): New macro.
40283         * varpool.c (varpool_node::get_create): Consider flag_openacc next
40284         to flag_openmp.
40285         * config/i386/intelmic-offload.h: New file.
40286         * config/nvptx/offload.h: Likewise.
40288 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40290         * explow.h: Remove duplicate contents.
40291         * dojump.h: Likewise.
40293 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
40295         * arm.c (arm_xgene_tune): Add default initializer for instruction
40296         fusion.
40298 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40300         PR ipa/64068
40301         PR ipa/64559
40302         * ipa.c (symbol_table::remove_unreachable_nodes):
40303         Do not put abstract origins into boundary.
40305 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
40307         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40308         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40310 2015-01-15  Steve Ellcey  <sellcey@mips.com>
40312         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40313         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40314         builtins.def, and chkp-builtins.def.
40316 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
40318         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40319         ISA 2.7 (POWER8).
40321 2015-01-15  Richard Biener  <rguenther@suse.de>
40323         PR tree-optimization/61743
40324         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40325         information on PHIs for some simple cases.
40327 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40329         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40330         Include xgene1.md.
40331         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40332         * config/arm/arm-cores.def (xgene1): New entry.
40333         * config/arm/arm-tables.opt: Regenerate.
40334         * config/arm/arm-tune.md: Regenerate.
40335         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40337 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40339         * tree-if-conv.c: Include hash-map.h.
40340         (aggressive_if_conv): New variable.
40341         (fold_build_cond_expr): Add simplification of non-zero condition.
40342         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40343         destination block is not always executed.
40344         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40345         than two predecessors if AGGRESSIVE_IF_CONV is true.
40346         (if_convertible_stmt_p): Fix commentary.
40347         (all_preds_critical_p): New function.
40348         (has_pred_critical_p): New function.
40349         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40350         BB can have more than two predecessors and all incoming edges can be
40351         critical.
40352         (predicate_bbs): Skip predication for loop exit block, use build2_loc
40353         to compute predicate for true edge.
40354         (find_phi_replacement_condition): Delete this function.
40355         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40356         Allow interchange PHI arguments if EXTENDED is false.
40357         Change check that block containing reduction statement candidate
40358         is predecessor of phi-block since phi may have more than two arguments.
40359         (phi_args_hash_traits): New helper structure.
40360         (struct phi_args_hash_traits): New type.
40361         (phi_args_hash_traits::hash): New function.
40362         (phi_args_hash_traits::equal_keys): New function.
40363         (gen_phi_arg_condition): New function.
40364         (predicate_scalar_phi): Add handling of phi nodes with more than two
40365         arguments, delete COND and TRUE_BB arguments, insert body of
40366         find_phi_replacement_condition to predicate ordinary phi nodes.
40367         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40368         delete call of find_phi_replacement_condition and invoke
40369         predicate_scalar_phi with two arguments.
40370         (insert_gimplified_predicates): Add assert that non-predicated block
40371         don't have statements to insert.
40372         (ifcvt_split_critical_edges): New function.
40373         (ifcvt_split_def_stmt): Likewise.
40374         (ifcvt_walk_pattern_tree): Likewise.
40375         (stmt_is_root_of_bool_pattern): Likewise.
40376         (ifcvt_repair_bool_pattern): Likewise.
40377         (ifcvt_local_dce): Likewise.
40378         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40379         is copy of inner or outer loop force_vectorize field, invoke
40380         ifcvt_split_critical_edges, ifcvt_local_dce and
40381         ifcvt_repair_bool_pattern for aggressive if-conversion.
40383 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
40385         * config/aarch64/aarch64.md: Include xgene1.md.
40386         * config/aarch64/xgene1.md: New file.
40388 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40390         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40391         xgene1 (APM XGene-1) core definition.
40392         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40393         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40394         * doc/invoke.texi: Document -mcpu=xgene1.
40396 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40398         * dojump.h: New header file.
40399         * explow.h: Likewise.
40400         * expr.h: Remove includes.
40401         Move expmed.c prototypes to expmed.h.
40402         Move dojump.c prototypes to dojump.h.
40403         Move alias.c prototypes to alias.h.
40404         Move explow.c prototypes to explow.h.
40405         Move calls.c prototypes to calls.h.
40406         Move emit-rtl.c prototypes to emit-rtl.h.
40407         Move varasm.c prototypes to varasm.h.
40408         Move stmt.c prototypes to stmt.h.
40409         (saved_pending_stack_adjust): Move to dojump.h.
40410         (adjust_address): Move to explow.h.
40411         (adjust_address_nv): Move to emit-rtl.h.
40412         (adjust_bitfield_address): Likewise.
40413         (adjust_bitfield_address_size): Likewise.
40414         (adjust_bitfield_address_nv): Likewise.
40415         (adjust_automodify_address_nv): Likewise.
40416         * explow.c (expr_size): Move to expr.c.
40417         (int_expr_size): Likewise.
40418         (tree_expr_size): Likewise.
40419         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40420         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40421         * genemit.c (main): Generate includes statistics.h, real.h,
40422         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40423         stmt.h.
40424         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40425         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40426         explow.h, emit-rtl.h, stmt.h.
40427         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40428         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40429         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40430         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40431         emit-rtl.h, varasm.h, stmt.h.
40432         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40433         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40434         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40435         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40436         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40437         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40438         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40439         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40440         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40441         tm.h tree.h varasm.h vec.h wide-int.h.
40442         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40443         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40444         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40445         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40446         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40447         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40448         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40449         * loop-iv.c: Likewise.
40450         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40451         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40452         statistics.h stmt.h tree.h varasm.h wide-int.h.
40453         * lra-constraints.c: Likewise.
40454         * lra-eliminations.c: Likewise.
40455         * lra-lives.c: Likewise.
40456         * lra-remat.c: Likewise.
40457         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40458         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40459         statistics.h stmt.h tree.h varasm.h wide-int.h.
40460         * hw-doloop.c: Likewise.
40461         * ira-color.c: Likewise.
40462         * ira-emit.c: Likewise.
40463         * loop-doloop.c: Likewise.
40464         * loop-invariant.c: Likewise.
40465         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40466         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40467         statistics.h stmt.h tree.h varasm.h wide-int.h.
40468         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40469         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40470         statistics.h stmt.h tree.h varasm.h wide-int.h.
40471         * combine-stack-adj.c: Likewise.
40472         * cse.c: Likewise.
40473         * ddg.c: Likewise.
40474         * ifcvt.c: Likewise.
40475         * ira-costs.c: Likewise.
40476         * jump.c: Likewise.
40477         * lra-coalesce.c: Likewise.
40478         * lra-spills.c: Likewise.
40479         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40480         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40481         stmt.h varasm.h wide-int.h.
40482         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40483         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40484         varasm.h.
40485         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40486         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40487         statistics.h stmt.h varasm.h wide-int.h.
40488         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40489         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40490         varasm.h wide-int.h.
40491         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40492         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40493         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40494         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40495         statistics.h stmt.h.
40496         * config/tilepro/tilepro.c: Likewise.
40497         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40498         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40499         * config/pdp11/pdp11.c: Likewise.
40500         * config/xtensa/xtensa.c: Likewise.
40501         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40502         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40503         varasm.h.
40504         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40505         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40506         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40507         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40508         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40509         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40510         * rtl-chkp.c: Likewise.
40511         * tree-chkp-opt.c: Likewise.
40512         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40513         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40514         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40515         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40516         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40517         statistics.h stmt.h.
40518         * tree-vect-data-refs.c: Likewise.
40519         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40520         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40521         rtl.h statistics.h stmt.h varasm.h.
40522         * internal-fn.c: Likewise.
40523         * ipa-icf-gimple.c: Likewise.
40524         * lto-section-out.c: Likewise.
40525         * tree-data-ref.c: Likewise.
40526         * tree-nested.c: Likewise.
40527         * tree-outof-ssa.c: Likewise.
40528         * tree-predcom.c: Likewise.
40529         * tree-pretty-print.c: Likewise.
40530         * tree-scalar-evolution.c: Likewise.
40531         * tree-ssa-strlen.c: Likewise.
40532         * tree-vect-loop.c: Likewise.
40533         * tree-vect-patterns.c: Likewise.
40534         * tree-vect-slp.c: Likewise.
40535         * tree-vect-stmts.c: Likewise.
40536         * tsan.c: Likewise.
40537         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40538         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40539         stmt.h.
40540         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40541         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40542         statistics.h stmt.h varasm.h.
40543         * loop-unroll.c: Likewise.
40544         * ubsan.c: Likewise.
40545         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40546         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40547         stmt.h varasm.h.
40548         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40549         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40550         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40551         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40552         statistics.h stmt.h.
40553         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40554         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40555         statistics.h stmt.h varasm.h.
40556         * gimple-match-head.c: Likewise.
40557         * lto-cgraph.c: Likewise.
40558         * lto-section-in.c: Likewise.
40559         * lto-streamer-in.c: Likewise.
40560         * lto-streamer-out.c: Likewise.
40561         * tree-affine.c: Likewise.
40562         * tree-cfg.c: Likewise.
40563         * tree-cfgcleanup.c: Likewise.
40564         * tree-if-conv.c: Likewise.
40565         * tree-into-ssa.c: Likewise.
40566         * tree-ssa-alias.c: Likewise.
40567         * tree-ssa-copyrename.c: Likewise.
40568         * tree-ssa-dse.c: Likewise.
40569         * tree-ssa-forwprop.c: Likewise.
40570         * tree-ssa-live.c: Likewise.
40571         * tree-ssa-math-opts.c: Likewise.
40572         * tree-ssa-pre.c: Likewise.
40573         * tree-ssa-sccvn.c: Likewise.
40574         * tree-tailcall.c: Likewise.
40575         * tree-vect-generic.c: Likewise.
40576         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40577         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40578         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40579         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40580         * varasm.c: Likewise.
40581         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40582         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40583         varasm.h.
40584         * init-regs.c: Likewise.
40585         * ira.c: Likewise.
40586         * omp-low.c: Likewise.
40587         * stack-ptr-mod.c: Likewise.
40588         * tree-ssa-reassoc.c: Likewise.
40589         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40590         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40591         varasm.h.
40592         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40593         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40594         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40595         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40596         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40597         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40598         * tree-ssa-phiopt.c: Likewise.
40599         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40600         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40601         * config/fr30/fr30.c: Likewise.
40602         * config/frv/frv.c: Likewise.
40603         * expr.c: Likewise.
40604         * final.c: Likewise.
40605         * optabs.c: Likewise.
40606         * passes.c: Likewise.
40607         * simplify-rtx.c: Likewise.
40608         * stmt.c: Likewise.
40609         * toplev.c: Likewise.
40610         * var-tracking.c: Likewise.
40611         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40612         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40613         * lower-subreg.c: Likewise.
40614         * postreload-gcse.c: Likewise.
40615         * ree.c: Likewise.
40616         * reginfo.c: Likewise.
40617         * store-motion.c: Likewise.
40618         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40619         fixed-value.h hashtab.h real.h stmt.h varasm.h.
40620         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40621         fixed-value.h hashtab.h statistics.h stmt.h.
40622         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40623         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40624         * except.c: Likewise.
40625         * explow.c: Likewise.
40626         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40627         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40628         varasm.h.
40629         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40630         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40631         * tree-ssa-structalias.c: Likewise.
40632         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40633         fixed-value.h insn-config.h real.h statistics.h.
40634         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40635         fixed-value.h insn-config.h real.h statistics.h stmt.h.
40636         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40637         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40638         * cfgbuild.c: Likewise.
40639         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40640         fixed-value.h real.h rtl.h statistics.h stmt.h.
40641         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40642         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40643         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40644         fixed-value.h real.h statistics.h stmt.h.
40645         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40646         fixed-value.h real.h statistics.h stmt.h varasm.h.
40647         * cprop.c: Likewise.
40648         * modulo-sched.c: Likewise.
40649         * postreload.c: Likewise.
40650         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40651         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40652         statistics.h stmt.h varasm.h.
40653         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40654         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40655         rtl.h statistics.h stmt.h varasm.h.
40656         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40657         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40658         varasm.h.
40659         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40660         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40661         varasm.h.
40662         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40663         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40664         varasm.h.
40665         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40666         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40667         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40668         function.h real.h statistics.h stmt.h varasm.h.
40669         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40670         insn-config.h real.h statistics.h stmt.h.
40671         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40672         statistics.h stmt.h.
40673         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40674         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40675         statistics.h stmt.h varasm.h.
40676         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40677         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40678         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40679         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40680         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40681         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40682         statistics.h stmt.h varasm.h.
40683         * ipa-polymorphic-call.c: Likewise.
40684         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40685         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40686         statistics.h stmt.h.
40687         * config/c6x/c6x.c: Likewise.
40688         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40689         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40690         statistics.h stmt.h varasm.h.
40691         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40692         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40693         stmt.h varasm.h.
40694         * ipa-split.c: Likewise.
40695         * tree-eh.c: Likewise.
40696         * tree-ssa-dce.c: Likewise.
40697         * tree-ssa-loop-niter.c: Likewise.
40698         * tree-vrp.c: Likewise.
40699         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40700         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40701         stmt.h.
40702         * config/nds32/nds32-fp-as-gp.c: Likewise.
40703         * config/nds32/nds32-intrinsic.c: Likewise.
40704         * config/nds32/nds32-isr.c: Likewise.
40705         * config/nds32/nds32-md-auxiliary.c: Likewise.
40706         * config/nds32/nds32-memory-manipulation.c: Likewise.
40707         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40708         * config/nds32/nds32-predicates.c: Likewise.
40709         * config/nds32/nds32.c: Likewise.
40710         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40711         fixed-value.h hashtab.h real.h statistics.h.
40712         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40713         fixed-value.h hashtab.h real.h statistics.h stmt.h.
40714         * config/arm/arm.c: Likewise.
40715         * config/avr/avr.c: Likewise.
40716         * config/bfin/bfin.c: Likewise.
40717         * config/h8300/h8300.c: Likewise.
40718         * config/i386/i386.c: Likewise.
40719         * config/ia64/ia64.c: Likewise.
40720         * config/iq2000/iq2000.c: Likewise.
40721         * config/m32c/m32c.c: Likewise.
40722         * config/m32r/m32r.c: Likewise.
40723         * config/m68k/m68k.c: Likewise.
40724         * config/mcore/mcore.c: Likewise.
40725         * config/mep/mep.c: Likewise.
40726         * config/mips/mips.c: Likewise.
40727         * config/mn10300/mn10300.c: Likewise.
40728         * config/moxie/moxie.c: Likewise.
40729         * config/pa/pa.c: Likewise.
40730         * config/rl78/rl78.c: Likewise.
40731         * config/rx/rx.c: Likewise.
40732         * config/s390/s390.c: Likewise.
40733         * config/sh/sh.c: Likewise.
40734         * config/sparc/sparc.c: Likewise.
40735         * config/spu/spu.c: Likewise.
40736         * config/stormy16/stormy16.c: Likewise.
40737         * config/v850/v850.c: Likewise.
40738         * config/vax/vax.c: Likewise.
40739         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40740         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40741         * config/msp430/msp430.c: Likewise.
40742         * predict.c: Likewise.
40743         * value-prof.c: Likewise.
40744         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40745         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40746         * config/microblaze/microblaze.c: Likewise.
40747         * config/nios2/nios2.c: Likewise.
40748         * config/rs6000/rs6000.c: Likewise.
40749         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40750         insn-config.h real.h rtl.h statistics.h stmt.h.
40751         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40752         insn-config.h real.h statistics.h stmt.h.
40753         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40754         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40755         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40756         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40757         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40758         fixed-value.h real.h statistics.h stmt.h.
40759         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40760         fixed-value.h statistics.h stmt.h.
40761         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40762         stmt.h.
40764 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40766         * gengtype.c (create_user_defined_type): Workaround
40767         -Wmaybe-uninitialized false positives.
40768         * cse.c (fold_rtx): Likewise.
40769         * loop-invariant.c (gain_for_invariant): Likewise.
40771 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
40773         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40774         set the memory attributes in all cases but clear MEM_EXPR if need be.
40776 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40778         PR tree-optimization/64434
40779         * cfgexpand.c (reorder_operands): New function.
40780         (expand_gimple_basic_block): Insert call of reorder_operands if
40781         optimized is true.
40783 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
40785         * config/mips/micromips.md (*swp): Remove explicit parallel.
40786         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40787         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40788         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40789         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40790         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40791         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40792         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40793         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40794         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40795         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40796         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40797         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40798         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40799         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40800         (mips_wrdsp): Likewise.
40801         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40802         parallel.
40803         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40804         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40805         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40806         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40807         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40808         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40809         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40810         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40811         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40813 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40815         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40816         (mips_print_operand): Support 'y' to print exact log2 in decimal
40817         of a const_int.
40818         * config/mips/mips.h (ISA_HAS_LSA): New define.
40819         (ISA_HAS_DLSA): Likewise.
40820         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40821         * config/mips/predicates.md (const_immlsa_operand): New predicate.
40823 2015-01-15  Martin Liska  <mliska@suse.cz>
40825         PR target/64377
40826         * optc-save-gen.awk: Add support for array types.
40828 2015-01-15  Richard Biener  <rguenther@suse.de>
40830         PR middle-end/64365
40831         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40832         for MEM_REF access functions with the same base can never partially
40833         overlap.
40835 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
40837         * common.opt: New option -fstack-protector-explicit.
40838         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40839         (stack_protect_decl_phase): Handle stack_protect attribute for
40840         explicit stack protection requests.
40841         (expand_used_vars): Similarly.
40842         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
40843         * doc/extend.texi: Add documentation for "stack_protect" attribute.
40844         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
40846 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
40848         PR target/53988
40849         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
40850         reg-reg copies.
40851         (sh_extending_set_of_reg): New struct.
40852         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
40853         sh_remove_reg_dead_or_unused_notes): New Declarations.
40854         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
40855         sh_find_extending_set_of_reg, sh_split_tst_subregs,
40856         sh_extending_set_of_reg::use_as_extended_reg): New functions.
40857         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
40858         convert to insn_and_split and use new function sh_split_tst_subregs.
40860 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
40862         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
40863         option.
40864         (Optimization Options): Move -fuse-ld documentation to...
40865         (Link Options): ...here.
40867 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40869         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
40870         offsets.
40871         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
40872         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
40873         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
40874         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
40875         instead of ZR for the memory operand of LL/SC.
40876         (compare_and_swap_12, sync_add<mode>): Likewise.
40877         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
40878         (sync_new_<optab>_12, sync_nand_12): Likewise.
40879         (sync_old_nand_12, sync_new_nand_12): Likewise.
40880         (sync_sub<mode>, sync_old_add<mode>): Likewise.
40881         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
40882         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
40883         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
40884         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
40885         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
40886         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
40887         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
40888         * doc/md.texi (ZC): Update description.
40890 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40892         * builtins.c (expand_builtin_atomic_exchange): Remove error when
40893         memory model is CONSUME.
40894         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
40895         expand_builtin_atomic_store): Change invalid memory model errors to
40896         warnings.
40897         (expand_builtin_atomic_clear): Change invalid model errors to warnings
40898         and issue warning for CONSUME.
40900 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
40902         * lto-cgraph: Update function comments for
40903         lto_symtab_encoder_encode_*.
40905 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40907         * Makefile.in (site.exp): Do not set ENABLE_LTO.
40909 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
40911         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
40912         * lto-cgraph.c (select_what_to_stream): Remove argument, use
40913         lto_stream_offload_p instead.
40914         * lto-streamer.h (select_what_to_stream): Remove argument.
40915         * passes.c (ipa_write_summaries): Likewise.
40916         * tree-pass.h (ipa_write_summaries): Likewise.
40918 2015-01-14  Richard Biener  <rguenther@suse.de>
40920         PR tree-optimization/59354
40921         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
40922         groups larger than the slp group size as having gaps.
40924 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
40926         PR middle-end/59448
40927         * builtins.c (get_memmodel): Promote consume to acquire always.
40929 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40931         PR target/64386
40932         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
40933         V32HImode.
40935 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40937         PR target/64393
40938         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
40939         Enable AVX512BW.
40940         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
40941         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
40942         AVX512VBMI, as it implies AVX512BW.
40944 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
40946         PR target/64387
40947         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
40948         (vec_unpacks_hi_v16sf): Ditto.
40950 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40952         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
40953         is not available.
40955 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40957         * doc/invoke.texi (mapcs): Mention deprecation.
40958         (mapcs-frame): Likewise.
40960 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40962         PR target/64453
40963         * config/arm/arm.c (callee_saved_reg_p): Define.
40964         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
40965         register is callee saved instead of !call_used_regs[reg].
40966         (thumb1_compute_save_reg_mask): Likewise.
40968 2015-01-14  Hale Wang  <hale.wang@arm.com>
40970         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
40971         Cortex-M7.
40973 2015-01-14  Richard Biener  <rguenther@suse.de>
40975         PR lto/64415
40976         * tree-inline.c (insert_debug_decl_map): Check destination
40977         function MAY_HAVE_DEBUG_STMTS.
40978         (insert_init_debug_bind): Likewise.
40979         (insert_init_stmt): Remove redundant check.
40980         (remap_gimple_stmt): Drop debug stmts if the destination
40981         function has var-tracking assignments disabled.
40983 2015-01-14  Martin Liska  <mliska@suse.cz>
40985         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
40986         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
40988 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40990         PR target/64460
40991         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
40992         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
40994 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
40996         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
40997         level from an ARCH; do not inject the default.
40998         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
40999         MIPS_ISA_LEVEL_SPEC.
41000         (MIPS_ISA_NAN2008_SPEC): Update comment.
41001         (BASE_DRIVER_SELF_SPECS): Likewise.
41002         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41003         MIPS_DEFAULT_ISA_LEVEL_SPEC.
41004         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41005         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41006         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41008 2015-01-14  Richard Biener  <rguenther@suse.de>
41010         PR tree-optimization/64493
41011         PR tree-optimization/64495
41012         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41013         assign the proper vectorized PHI to the inner loop exit PHIs.
41015 2015-01-14  Joey Ye  <joey.ye@arm.com>
41017         * config/arm/arm.c (arm_compute_save_reg_mask):
41018         Do not save lr in case of tail call.
41019         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41021 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
41023         * tree-vrp.c (check_array_ref): Emit more warnings
41024         for warn_array_bounds >= 2.
41025         * common.opt: New option -Warray-bounds=.
41026         * doc/invoke.texi: Document -Warray-bounds=.
41028 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
41030         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41031         (mforbid-fp-as-gp): Remove.
41032         (mex9): Remove.
41033         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41034         (nds32_symbol_load_store_p): Remove.
41035         (nds32_fp_as_gp_check_available): Clean up implementation.
41036         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41037         cases.
41038         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41039         fp-as-gp and ex9 cases.
41041 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41043         * tree-profile.c (init_ic_make_global_vars): Drop workaround
41044         for bintuils bug 14342.
41045         (init_ic_make_global_vars): Likewise.
41046         (gimple_init_edge_profiler): Likewise.
41047         (gimple_gen_ic_func_profiler): Likewise.
41049 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
41051         * ipa-inline.c (inline_small_functions): Swap the operands in
41052         enum.
41054 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41056         PR ipa/64481
41057         * ipa-inline-analysis.c (node_growth_cache): Remove.
41058         (initialize_growth_caches): Do not initialize it.
41059         (free_growth_caches): Do not free it.
41060         (do_estimate_growth): Rename to ...
41061         (estimate_growth): ... this one; drop growth cache code.
41062         (growth_likely_positive): Always go the heuristics way.
41063         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41064         (reset_edge_caches): Do not reset node growth.
41065         (heap_edge_removal_hook): Do not maintain cache.
41066         (inline_small_functions): Likewise; strenghten sanity check.
41067         (ipa_inline): Do not maintain caches.
41068         * ipa-inline.h (node_growth_cache): Remove.
41069         (do_estimate_growth): Remove to ...
41070         (estimate_growth): this one; remove inline version.
41071         (reset_node_growth_cache): Remove.
41073 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41075         PR ipa/64565
41076         * ipa-inline.c (inline_small_functions): Update callee keys after
41077         resolving speculation
41078         (inline_small_functions): Always check monotonicity of the queue.
41080 2015-01-13  Marek Polacek  <polacek@redhat.com>
41082         PR middle-end/64391
41083         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41085 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41087         PR rtl-optimization/64286
41088         * ree.c (combine_reaching_defs): Move part of comment earlier,
41089         remove !SCALAR_INT_MODE_P check.
41090         (add_removable_extension): Don't add vector mode
41091         extensions if all uses of the source register aren't the same
41092         vector extensions.
41094 2015-01-13  Renlin Li  <renlin.li@arm.com>
41096         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41097         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41099 2015-01-13  Martin Liska  <mliska@suse.cz>
41101         * ipa-icf.c (sem_function::equals_private): Call new functions
41102         cl_target_option_print_diff and cl_optimization_print_diff.
41103         * optc-save-gen.awk (cl_target_option_print_diff): New function.
41104         (cl_optimization_print_diff): Likewise.
41105         * opth-gen.awk: Likewise.
41107 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
41109         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41110         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41111         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41112         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41113         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41114         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41116 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41118         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41119         instead of src mode.
41121 2015-01-13  Richard Biener  <rguenther@suse.de>
41123         PR lto/64373
41124         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41125         DECL_CONTEXT.
41127 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41129         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41130         volatile mems.
41131         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41133 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41135         PR middle-end/63974
41136         * cfgexpand.c (expand_computed_goto): Don't call
41137         convert_memory_address here.
41139 2015-01-13  Richard Biener  <rguenther@suse.de>
41141         PR tree-optimization/64406
41142         * tree-loop-distibution.c (pass_loop_distribution::execute):
41143         Reset the SCEV hashtable if we distributed anything.
41145 2015-01-13  Richard Biener  <rguenther@suse.de>
41147         PR tree-optimization/64404
41148         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41149         SLP types for CSEd loads.
41151 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41153         PR tree-optimization/64436
41154         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41155         merge of two symbolic numbers for a bitwise OR to ...
41156         (perform_symbolic_merge): This. Also fix computation of the range and
41157         end of the symbolic number corresponding to the result of a bitwise OR.
41159 2015-01-13  Richard Biener  <rguenther@suse.de>
41161         PR tree-optimization/64568
41162         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41163         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41165 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41167         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41168         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41170 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41172         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41173         target-specific symbol_ref flag.
41174         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41175         resides in rodata section.
41176         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41177         (nds32_encode_section_info): New function.
41179 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41181         * config/nds32/nds32.md (call): Use pseudo instruction bal which
41182         clobbers TA_REGNUM if large code model is specified.
41183         (call_register): Likewise.
41184         (call_immediate): Likewise.
41185         (call_value): Likewise.
41186         (call_value_register): Likewise.
41187         (call_value_immediate): Likewise.
41189 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41191         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41192         (TARGET_CMODEL_MEDIUM): New macro.
41193         (TARGET_CMODEL_LARGE): New macro.
41194         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41195         code model setting in assembly code.
41197 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41199         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41200         Remove MASK_GP_DIRECT flag.
41201         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41202         one of the multilib default options.
41203         * config/nds32/nds32.opt (mgp-direct): Remove.
41204         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41205         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
41207 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41209         * config/nds32/nds32.opt (mcmodel): Add new option.
41210         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41211         to describe code model.
41213 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
41215         PR target/64479
41216         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41218 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
41220         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41221         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41222         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41223         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41224         __builtin_sh_set_fpscr.
41226 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41228         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41229         after a funtion name just to indicate it is a function.
41230         ([-fsanitize-undefined-trap-on-error]): Likewise.
41231         ([-fdbg-cnt=]): Likewise.
41232         ([-mmemcpy]): Likewise.
41233         ([-mflush-func]): Likewise.
41234         ([-msynci]): Likewise.
41236 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41238         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41239         example.
41241 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
41243         PR tree-optimization/64563
41244         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41245         instead of != VR_VARYING.
41247         PR target/64513
41248         * config/i386/i386.c (ix86_expand_prologue): Add
41249         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41251         PR tree-optimization/64454
41252         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41253         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41254         for signed or [0, op1 - 1] for unsigned modulo.
41255         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41256         even if op1 does not satisfy integer_pow2p.
41258         PR other/64370
41259         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41261 2015-01-12  Jeff Law  <law@redhat.com>
41263         PR target/64461
41264         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41265         (trunchiqi2, truncsihi2): Similarly.
41267         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41268         rather than calling F.
41270 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41272         * tsan.c (instrument_expr): Use force_gimple_operand.
41273         Use may_be_nonaddressable_p instead of is_gimple_addressable.
41275 2015-01-12  Richard Biener  <rguenther@suse.de>
41277         PR tree-optimization/64530
41278         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41279         back dr1.
41281 2015-01-12  Richard Biener  <rguenther@suse.de>
41283         PR middle-end/64357
41284         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41285         latches properly.
41287 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41289         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41290         Cortex-A17 tuning parameters.
41291         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41293 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41295         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41296         * config/arm/arm.c (arm_macro_fusion_p): New function.
41297         (arm_macro_fusion_pair_p): Likewise.
41298         (TARGET_SCHED_MACRO_FUSION_P): Define.
41299         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41300         (ARM_FUSE_NOTHING): Likewise.
41301         (ARM_FUSE_MOVW_MOVT): Likewise.
41302         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41303         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41304         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41305         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41306         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41307         arm_cortex_a5_tune): Specify fuseable_ops value.
41309 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
41311         PR bootstrap/64561
41312         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41313         test for PIE with copy reloc.
41314         * configure: Regenerated.
41316 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41318         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41319         in gen_rtx_REG.
41320         (arm_tls_descseq_addr): Likewise.
41321         (arm_gen_movmemqi): Likewise.
41322         (arm_expand_epilogue_apcs_frame): Likewise.
41323         (arm_expand_epilogue): Likewise.
41324         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
41325         in gen_rtx_REG.
41327 2015-01-12  Martin Liska  <mliska@suse.cz>
41329         PR ipa/64550
41330         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41331         volatility for correct operands.
41333 2015-01-12  Martin Liska  <mliska@suse.cz>
41335         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41336         indication that a function is not leaf.
41337         (sem_function::compare_polymorphic_p): Likewise.
41339 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41341         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41342         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41343         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41344         fold-const.h, tree-check.h.
41346 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41348         PR ipa/63967
41349         PR ipa/64425
41350         * ipa-inline.c (compute_uninlined_call_time,
41351         compute_inlined_call_time): Use counts for extra precision when
41352         needed possible.
41353         (big_speedup_p): Fix formating.
41354         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41355         (relative_time_benefit): Remove.
41356         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41357         merge guessed and read profile paths.
41358         (inline_small_functions): Count only !optimize_size functions into
41359         initial size; be more lax about sanity check when profile is used;
41360         be sure to update inlined function profile when profile is read.
41362 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
41364         PR ipa/63470
41365         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41366         cost when edge becomes direct.
41367         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41368         is resolved or when introducing new speculation.
41370 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
41372         PR ipa/64551
41373         PR ipa/64552
41374         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41375         '||' to fix typo issue.
41377         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41378         accept and return NULL.
41380 2015-01-12  Martin Liska  <mliska@suse.cz>
41382         * cgraph.c (cgraph_edge::remove_callee): Move function to header
41383         file for being inlined.
41384         (cgraph_set_edge_callee): Delete.
41385         (cgraph_edge::redirect_callee): Move function to header file
41386         for being inlined.
41387         (cgraph_edge::make_direct): Use new function.
41388         (cgraph_edge::dump_edge_flags): New function created from
41389         static dump_edge_flags function.
41390         (cgraph_node::dump): Use new function.
41391         (cgraph_edge::verify_count_and_frequency): New function created
41392         from verify_edge_count_and_frequency.
41393         (cgraph_edge::verify_corresponds_to_fndecl): New function created
41394         from verify_edge_corresponds_to_fndecl.
41395         (verify_edge_corresponds_to_fndecl): Delete.
41396         (cgraph_node::verify_node): Use new function.
41397         * cgraph.h (cgraph_edge::set_callee): New function.
41398         (cgraph_edge::dump_edge_flags): Likewise.
41399         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41401 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
41403         * ipa-utils.c (estimate_function_body_sizes): Do not
41404         free node params when called late with early=true.
41406 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
41408         * doc/md.texi (Instruction Patterns): Rewrite text for
41409         clarity.
41410         (Example): Likewise.
41412 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
41414         * doc/invoke.texi (Option Summary): Break long lines.
41415         [(-fdiagnostics-color)]: Put long literal in @smallexample
41416         instead of inline.
41417         [(-fsanitize-recover)]: Likewise.
41418         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41419         [(-ffast-math)]: Likewise.
41420         [(--param max-inline-insns-recursive)]: Likewise.
41421         [(--param max-inline-recursive-depth)]: Likewise.
41422         [(-mno-text-section-literals)]: Likewise.
41424 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
41426         * doc/install.texi: Update for libgomp being renamed from "GNU
41427         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41428         Runtime Library".
41429         * doc/sourcebuild.texi: Likewise.
41431 2015-01-10  Anthony Green  <green@moxielogic.com>
41433         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41434         mul.x availability for moxiebox configuration.
41436 2015-01-09  Anthony Green  <green@moxielogic.com>
41438         * config/moxie/moxie.md: Tabify assembly output.
41440 2015-01-09  Anthony Green  <green@moxielogic.com>
41442         * config/moxie/moxie.md (CC_REG): Correct register definition.
41444 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
41446         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41447         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
41448         of log files.
41450 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41452         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41454 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
41455             Jakub Jelinek  <jakub@redhat.com>
41457         PR middle-end/64412
41458         * lto-streamer.h (lto_stream_offload_p): New declaration.
41459         * lto-streamer.c (lto_stream_offload_p): New variable.
41460         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41461         at the same time as section_name_prefix.
41462         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41463         if lto_stream_offload_p.
41464         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41465         stream TREE_TARGET_OPTION if lto_stream_offload_p.
41466         (write_ts_function_decl_tree_pointers): Don't
41467         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41468         * tree-streamer-in.c (unpack_value_fields): Don't stream
41469         TREE_TARGET_OPTION in if ACCEL_COMPILER.
41470         (lto_input_ts_function_decl_tree_pointers): Don't stream
41471         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41472         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41473         instead of section_name_prefix string comparisons.
41475 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
41477         PR rtl-optimization/64536
41478         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41479         tablejumps.
41481 2015-01-09  Michael Collison  <michael.collison@linaro.org>
41483         PR tree-optimization/64322
41484         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41485         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41487 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41489         PR rtl-optimization/64539
41490         * regcprop.c (kill_clobbered_values): Factor out of ...
41491         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
41492         instead of note_stores with kill_clobbered_value.
41494 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41496          * ginclude/unwind-arm-common.h: Revert previous commit.
41498 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
41500         * config.gcc (arm*-*-freebsd*): New configuration.
41501         * config/arm/freebsd.h: New file.
41502         * config.host: Add extra components for arm*-*-freebsd*.
41503         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41504         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41506 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41508         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41509         for -mcpu=e6500.
41510         * config/rs6000/t-rtems: Add e6500 multilibs.
41512 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41514         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41515         MPC8540.
41517 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41519         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41520         MULTILIB_EXCEPTIONS.
41522 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41524         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41525         MULTILIB_EXCEPTIONS.
41527 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
41529         * config/arm/t-rtems-eabi: Rename to...
41530         * config/arm/t-rtems: ...this.
41531         * config/arm/rtems-eabi.h: Rename to...
41532         * config/arm/rtems.h: ...this.
41533         * config.gcc (arm*-*-rtems*): Reflect changes above.
41535 2015-01-09  Richard Biener  <rguenther@suse.de>
41537         PR tree-optimization/64410
41538         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41539         on the LHS.
41540         (execute_update_addresses_taken): Deal with that.
41541         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41542         loads/stores for complex variables.
41544 2015-01-09  Martin Liska  <mliska@suse.cz>
41546         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41547         name comparison.
41548         (func_checker::compare_memory_operand): New function.
41549         (func_checker::compare_operand): Split case to newly
41550         added functions.
41551         (func_checker::compare_cst_or_decl): New function.
41552         (func_checker::compare_gimple_call): Identify
41553         memory operands.
41554         (func_checker::compare_gimple_assign): Likewise.
41555         * ipa-icf-gimple.h: New function.
41557 2015-01-09  Martin Liska  <mliska@suse.cz>
41559         PR ipa/64503
41560         * sreal.c (sreal::dump): Change unsigned format to signed for
41561         m_exp value.
41562         (sreal::to_double): Replace exp2 with scalbln.
41564 2015-01-09  Martin Liska  <mliska@suse.cz>
41566         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41567         * ipa-icf.c (sem_function::equals_private): Add support for target and
41568         (sem_item_optimizer::merge_classes): Remove redundant function
41569         optimization flags comparison.
41570         * tree.h (target_opts_for_fn): New function.
41572 2015-01-09  Tom de Vries  <tom@codesourcery.com>
41574         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41576 2015-01-09  Kito Cheng  <kito@0xlab.org>
41578         PR rtl-optimization/64348
41579         * lra-constraints.c (split_reg): Fix caller-save store/restore
41580         instruction generation.
41582 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
41584         PR gcov-profile/61790
41585         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41586         long long.  Fallback to int64_t if host doesn't have long long and
41587         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
41589 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41591         PR tree-optimization/63989
41592         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41593         from 1000 to 10000.
41594         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41595         (get_stridx): If we don't have a record for certain SSA_NAME,
41596         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41597         constant offset, call get_stridx_plus_constant.
41598         (get_stridx_plus_constant): New function.
41599         (zero_length_string): Don't use get_stridx here.
41601         PR target/55023
41602         PR middle-end/64388
41603         * dse.c (struct insn_info): Mention frame_read set also
41604         before reload for tail calls on some targets.
41605         (scan_insn): Revert 2014-12-22 change.  Set frame_read
41606         also before reload for tail calls if
41607         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
41608         instead of add_non_frame_wild_read for non-const/memset
41609         tail calls after reload.
41611 2015-01-08  Jason Merrill  <jason@redhat.com>
41613         * ubsan.c (do_ubsan_in_current_function): New.
41614         (pass_ubsan::gate): Use it.
41615         * ubsan.h: Declare it.
41616         * convert.c (convert_to_integer): Use it.
41618 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41620         PR target/64338
41621         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41622         compare_code when it is unconditionally overwritten afterwards.
41623         Use ix86_reverse_condition instead of reverse_condition.  Don't
41624         change code if *reverse_condition* returned UNKNOWN and don't
41625         swap ct/cf and negate diff in that case.
41627 2015-01-08  Mike Stump  <mikestump@comcast.net>
41629         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41630         (pass_tsan_O0::gate): Likewise.
41631         * extend.texi (Function Attributes): Add no_sanitize_thread
41632         documentation.
41634 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
41636         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41637         for registering builtins.
41638         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41639         add -fopenmp to the argv_obstack used when invoking
41640         compile_for_target.
41642         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41643         add "-m32" or "-m64" to argv_obstack.
41644         (generate_host_descr_file): Likewise, when invoking host_compiler.
41645         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41646         ld.
41648 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41650         * config/sh/sh-mem.cc: Use constant as second operand when emitting
41651         tstsi_t insns.
41653 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
41655         PR target/55212
41656         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41657         constant load if constant operand fits into I08.
41659 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
41661         PR sanitizer/64336
41662         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41663         and TREE_THIS_VOLATILE for MEM_REFs.
41664         (build5_stat): Fix up initialization of TREE_READONLY and
41665         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41667 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
41669         PR target/64533
41670         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41671         of r for the second alternative of the destination operand.
41673 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
41675         PR target/36557
41676         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41678 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41680         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41681         keywords.
41682         ([-fivar-visibility], [-fvisibility]): Likewise.
41684 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
41686         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41687         the file where @code, @command, etc is more appropriate.
41689 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
41691         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41692         of -mrecip= documentation.
41694 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
41696         PR target/64505
41697         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41698         correct reload handler if -m32 -mpowerpc64 is used.
41700 2015-01-06  Tom de Vries  <tom@codesourcery.com>
41702         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41704 2015-01-08  Christian Bruel  <christian.bruel@st.com>
41706         PR target/64507
41707         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41709 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41711         PR tree-optimization/63259
41712         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41713         if optab exists for 16bit byteswap.
41715 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
41717         * opts.c (common_handle_option): Add support for
41718         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41719         * doc/invoke.texi: Document -fno-sanitize=all,
41720         -f{,no-}sanitize-recover=all.  Document that
41721         -fsanitize=float-cast-overflow is not enabled
41722         by -fsanitize=undefined.  Fix up documentation
41723         of -f{,no-}sanitize-recover.
41725 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
41727         * config.gcc: Add Visium support.
41728         * configure.ac: Likewise.
41729         * configure: Regenerate.
41730         * doc/extend.texi (interrupt attribute): Add Visium.
41731         * doc/invoke.texi: Document Visium options.
41732         * doc/install.texi: Document Visium target.
41733         * doc/md.texi: Document Visium constraints.
41734         * common/config/visium: New directory.
41735         * config/visium: Likewise.
41737 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41739         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41740         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41742 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
41744         * combine.c (combine_validate_cost): Do not count the cost of a
41745         split I2 twice.  Do not display it twice in the dump, either.
41747 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41749         Revert parts of r219199.
41750         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41751         <inttypes.h>.
41752         ([-Wtraditional]): Restore markup on <limits.h>.
41754 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
41756         PR c++/31397
41757         * doc/invoke.texi: Document -Wsuggest-override.
41759 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
41761         PR rtl-optimization/64287
41762         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41763         (process_options): Disable flag_ipa_ra if profiling.
41765 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
41767         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41769 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
41771         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41772         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41773         put under #if TARGET_LOOPS guard.
41775 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
41777         * config/i386/i386.c (output_387_binary_op): Use std::swap.
41779 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
41781         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41782         * rtl.h (refers_to_regno_p): Add overload.
41783         * cse.c: Use it.
41784         * bt-load.c: Likewise.
41785         * combine.c: Likewise.
41786         * df-scan.c: Likewise.
41787         * sched-deps.c: Likewise.
41788         * config/s390/s390.c: Likewise.
41789         * config/m32r/m32r.c: Likewise.
41790         * config/rs6000/spe.md: Likewise.
41791         * config/rs6000/rs6000.c: Likewise.
41792         * config/pa/pa.c: Likewise.
41793         * config/stormy16/stormy16.c: Likewise.
41794         * config/cris/cris.c: Likewise.
41795         * config/arc/arc.md: Likewise.
41796         * config/arc/arc.c: Likewise.
41797         * config/sh/sh.md: Likewise.
41798         * config/sh/sh.c: Likewise.
41799         * config/frv/frv.c: Likewise.
41801 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41803         PR sanitizer/64265
41804         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41805         call as cleanup of the whole body.
41806         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41807         * tsan.c (replace_func_exit): New function.
41808         (instrument_func_exit): Moved earlier.
41809         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41810         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41811         been found.
41812         (tsan_pass): Don't call instrument_func_exit.
41813         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41814         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41815         inlining.
41817         PR sanitizer/64344
41818         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41819         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41820         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
41821         if the result is integer_zerop, return NULL_TREE.
41822         * convert.c (convert_to_integer): Pass expr as ARG.
41824         PR tree-optimization/64465
41825         * tree-inline.c (redirect_all_calls): During inlining
41826         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41827         changed the stmt to a non-throwing call.
41829 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
41831         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41832         etc markup throughout the file.
41834 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41836         Enable experimental TSAN support for Ada.
41837         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41839 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41841         PR tree-optimization/64494
41842         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
41843         clear SSA_NAME_ANTI_RANGE_P flag.
41845 2015-01-05  Marek Polacek  <polacek@redhat.com>
41847         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
41849 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
41851         Update copyright years.
41853         * gcc.c (process_command): Update copyright notice dates.
41854         * gcov-dump.c: Ditto.
41855         * gcov.c: Ditto.
41856         * doc/cpp.texi: Bump @copying's copyright year.
41857         * doc/cppinternals.texi: Ditto.
41858         * doc/gcc.texi: Ditto.
41859         * doc/gccint.texi: Ditto.
41860         * doc/gcov.texi: Ditto.
41861         * doc/install.texi: Ditto.
41862         * doc/invoke.texi: Ditto.
41864         * auto-profile.c, auto-profile.h: Fix up Copyright line.
41866 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
41868         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
41869         verb tense, etc.
41870         ([-fvtable-verify], [-fvtv-debug]): Likewise.
41871         ([-Wabi]): Likewise.
41872         ([-fmessage-length]): Likewise.
41873         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
41874         ([-Wno-discarded-qualifiers]): Likewise.
41875         ([-Wnodiscarded-array-qualifiers]): Likewise.
41876         ([-Wno-virtual-move-assign]): Likewise.
41877         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
41878         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
41879         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
41880         ([-fsanitize-undefined-trap-on-error]): Likewise.
41881         ([-floop-interchange]): Likewise.
41882         ([-ftree-coalesce-inlined-vars]): Likewise.
41883         ([-fvect-cost-model]): Likewise.
41884         ([-flto]): Likewise.
41885         ([--param]): Likewise.
41886         (Spec Files): Likewise.
41887         ([-mstrict-align]): Likewise.
41888         ([-mfix-cortex-a53-835769]): Likewise.
41889         ([-march], [-mtune]): Likewise.
41890         ([-mpic-register]): Likewise.
41891         ([-munaligned-access]): Likewise.
41892         ([-msp8]): Likewise.
41893         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
41894         (AVR Built-in Macros): Likewise.
41895         ([-mpreferred-stack-boundary]): Likewise.
41896         ([-mtune-crtl]): Likewise.
41897         ([-mashf]): Likewise.
41898         ([-mmcu=]): Likewise.
41899         ([-minrt]): Likewise.
41900         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
41901         ([-mupper-regs]): Likewise.
41902         ([-matomic-model]): Likewise.
41903         ([-mdiv]): Likewise.
41904         ([-mzdcbranch]): Likewise.
41905         ([-mdisable-callt]): Likewise.
41906         ([-msoft-float]): Likewise.
41907         ([-m8byte-align]): Likewise.
41908         ([-fstack-reuse]): Likewise.
41910 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41912         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
41913         Fix markup, light copy-editing.
41914         ([-fauto-profile]): Rewrite to fix formatting and content
41915         problems.
41917 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41919         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
41920         Copy-edit description.
41921         ([-fisolate-erroneous-paths-attribute]): Likewise.
41922         * common.opt (fisolate-erroneous-paths-dereference):
41923         Copy-edit description.
41924         (fisolate-erroneous-paths-attribute): Likewise.
41926 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41928         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
41929         tidy grammar.
41931 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
41933         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
41934         ([-fvtv-debug]): Likewise.
41935         ([-Wc++-compat]): Likewise.
41936         ([-Wc++11-compat]): Likewise.
41937         ([-Wc++14-compat]): Likewise.
41938         ([-Wno-sized-deallocation]): Likewise.
41939         ([-femit-class-debug-always]): Likewise.
41940         ([-femit-struct-debug-detailed]): Likewise.
41941         ([-fno-keep-inline-dllexport]): Likewise.
41942         ([-fira-algorithm]): Likewise.
41943         ([-fira-region]): Likewise.
41944         ([-flra-remat]): Likewise.
41945         ([-fipa-ra]): Likewise.
41946         ([-fhoist-adjacent-loads]): Likewise.
41947         ([-fisolate-erroneous-paths-dereference]): Likewise.
41948         ([-fisolate-erroneous-paths-attribute]): Likewise.
41949         ([-ftree-switch-conversion]): Likewise.
41950         ([-ftree-tail-merge]): Likewise.
41951         ([-ftree-loop-if-convert]): Likewise.
41952         ([-ftree-loop-if-convert-stores]): Likewise.
41953         ([-ftree-loop-distribution]): Likewise.
41954         ([-ftree-loop-distribute-patterns]): Likewise.
41955         ([-flto-compression-level]): Likewise.
41956         ([-flto-report]): Likewise.
41957         ([-flto-report-wpa]): Likewise.
41958         ([-fuse-linker-plugin]): Likewise.
41959         ([-mfix-cortex-a53-835769]): Likewise.
41960         ([-mno-fix-cortex-a53-835769]): Likewise.
41961         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
41962         explicit listing; add a note to the discussion indicating they
41963         exist.  Reorder table to group similar options.  Add missing
41964         @opindex entries.  Add @need commands throughout the table to
41965         allow it to be split across multiple pages.
41966         ([-m8bit-idiv]): Fix @opindex.
41967         ([-mavx256-split-unaligned-load]): Likewise.
41968         ([-mavx256-split-unaligned-store]): Likewise.
41969         ([-mstack-protector-guard]): Likewise.
41970         ([-mcpu=]): Likewise.
41971         ([-mcpu]): Likewise.
41972         ([-mpointer-size=]): Likewise.
41974 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
41976         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
41977         instead of `m' constraint.  Likewise for unnamed movb comparison
41978         patterns using reg_before_reload_operand predicate.
41979         * config/pa/predicates.md (reg_before_reload_operand): Tighten
41980         predicate to reject register index and LO_SUM DLT memory forms
41981         after reload.
41983 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41985         * doc/invoke.texi (Option Summary): Fix spelling of
41986         -fdevirtualize-at-ltrans.
41987         ([-fdevirtualize]): Fix markup.
41988         ([-fdevirtualize-speculatively]): Fix typo.
41989         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
41990         implementor-speaky.
41991         * common.opt (fdevirtualize-at-ltrans): Likewise.
41992         * ipa-devirt.c: Fix typos in comments throughout the file.
41993         (ipa_devirt): Fix typos in format strings for dump output.
41995 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
41997         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
41998         discussion of defaults, light copy-editing.
42000 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42002         * tsan.c (instrument_expr): corrected previous checkin.
42004 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42006         Instrument bit field and unaligned accesses for TSAN.
42007         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42008         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42009         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42010         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42011         unaligned memory regions.
42013 2015-01-01  Anthony Green  <green@moxielogic.com>
42015         * config/moxie/predicates.md (moxie_general_movsrc_operand):
42016         Restrict move source register offsets to 16 bits.
42018 Copyright (C) 2015 Free Software Foundation, Inc.
42020 Copying and distribution of this file, with or without modification,
42021 are permitted in any medium without royalty provided the copyright
42022 notice and this notice are preserved.